@aws-amplify/ui-vue 4.3.7 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),ir=require("aws-amplify/utils"),Y=require("aws-amplify/auth"),x=require("@aws-amplify/core/internals/utils"),Da=require("aws-amplify"),ce=n.defineComponent({__name:"base-footer",setup(e){const t=n.useSlots();return(r,o)=>n.renderSlot(r.$slots,"footert",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("footer",n.normalizeProps(n.guardReactiveProps(r.$attrs)),[n.renderSlot(r.$slots,"default")],16)])}}),ue=n.defineComponent({__name:"base-form",setup(e){const t=n.useSlots();return(r,o)=>n.renderSlot(r.$slots,"formt",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("form",n.mergeProps({"data-amplify-form":""},r.$attrs),[n.renderSlot(r.$slots,"default")],16)])}}),on=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},Ba={};function Va(e,t){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default")])}const X=on(Ba,[["render",Va]]),za=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],ne=n.defineComponent({__name:"amplify-button",props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null,loading:{type:[Boolean,String]},disabled:{type:[Boolean,String]}},setup(e){const t=e,{type:r,fullWidth:o,size:i,variation:a,fontWeight:s}=n.toRefs(t);return(l,c)=>n.renderSlot(l.$slots,"buttont",n.normalizeProps(n.guardReactiveProps(l.$attrs)),()=>[n.createElementVNode("button",n.mergeProps({class:["amplify-button amplify-field-group__control",{[`amplify-button--${n.unref(a)}`]:n.unref(a),[`amplify-button--${n.unref(i)}`]:n.unref(i),"amplify-button--fullwidth":n.unref(o),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:n.unref(r),style:{fontWeight:n.unref(s)},"data-fullwidth":n.unref(o),"data-size":n.unref(i),"data-fontWeight":n.unref(s),"data-variation":n.unref(a),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},l.$attrs,{"data-amplify-button":""}),[n.renderSlot(l.$slots,"default")],16,za)])}}),ar=e=>{var t;return(t=e.context.actorRef)==null?void 0:t.getSnapshot()},sr=e=>{var t;return(t=ar(e))==null?void 0:t.context},La={category:x.Category.AI,apis:[x.AiAction.CreateConversation,x.AiAction.DeleteConversation,x.AiAction.ListConversations,x.AiAction.UpdateConversation,x.AiAction.OnMessage,x.AiAction.SendMessage,x.AiAction.Generation]},Ga={apis:[x.AuthAction.DeleteUser,x.AuthAction.UpdatePassword],category:x.Category.Auth},ja={apis:[x.AuthAction.SignUp,x.AuthAction.ConfirmSignUp,x.AuthAction.ResendSignUpCode,x.AuthAction.SignIn,x.AuthAction.ConfirmSignIn,x.AuthAction.FetchUserAttributes,x.AuthAction.SignOut,x.AuthAction.ResetPassword,x.AuthAction.ConfirmResetPassword,x.AuthAction.SignInWithRedirect],category:x.Category.Auth},Wa={apis:[x.StorageAction.UploadData],category:x.Category.Storage},Ha={apis:[x.InAppMessagingAction.NotifyMessageInteraction],category:x.Category.InAppMessaging},Ka={category:x.Category.Geo,apis:[x.GeoAction.SearchByText,x.GeoAction.SearchForSuggestions,x.GeoAction.SearchByPlaceId]},Ya={category:x.Category.Geo,apis:[]},qa={apis:[x.StorageAction.UploadData],category:x.Category.Storage},Ja={apis:[x.StorageAction.UploadData,x.StorageAction.Copy,x.StorageAction.GetUrl,x.StorageAction.List,x.StorageAction.Remove,x.StorageAction.GetDataAccess,x.StorageAction.ListCallerAccessGrants],category:x.Category.Storage};function yt(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function ni(e){return typeof e=="string"||typeof e=="object"&&Object.prototype.toString.call(e)==="[object String]"}function Za(e){return yt(e)&&Object.prototype.toString.call(e)==="[object Map]"}function Qa(e){return yt(e)&&Object.prototype.toString.call(e)==="[object Set]"}function ri(e){if(e==null)return!0;if(yt(e)&&(Za(e)||Qa(e)))return!e.size;if(yt(e)&&(ni(e)||Array.isArray(e)))return!e.length;for(const t in e)if(es(e,t))return!1;return!0}function Xa(e){return yt(e)&&ri(e)}function es(e,t){return e!=null&&Object.prototype.hasOwnProperty.call(e,t)}function to(e){return typeof e=="function"}function ts(...e){}const oi=({payload:e},t,r)=>{var c;const{data:o,event:i}=e,{send:a}=t,{onSignIn:s,onSignOut:l}=r??{};switch(i){case"signedIn":{to(s)&&s(e);break}case"signInWithRedirect":{a("SIGN_IN_WITH_REDIRECT");break}case"signedOut":{to(l)&&l(),a("SIGN_OUT");break}case"tokenRefresh_failure":{if(((c=o==null?void 0:o.error)==null?void 0:c.name)===x.AmplifyErrorCode.NetworkError)return;a("SIGN_OUT");break}}},ns=(e,t=oi)=>{const r=o=>t(o,e);return ir.Hub.listen("auth",r,"authenticator-hub-handler")},rs=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],vt={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"text",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:rs,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},os=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],is=(e,t)=>{if(t!=null&&t.matches("federatedSignIn")){if(e.matches("signUpActor"))return"signUp";if(e.matches("signInActor"))return"signIn"}switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(t==null?void 0:t.matches("confirmSignUp")):case(t==null?void 0:t.matches("resendSignUpCode")):return"confirmSignUp";case(t==null?void 0:t.matches("confirmSignIn")):return"confirmSignIn";case(t==null?void 0:t.matches("setupTotp.edit")):case(t==null?void 0:t.matches("setupTotp.submit")):return"setupTotp";case(t==null?void 0:t.matches("signIn")):return"signIn";case(t==null?void 0:t.matches("signUp")):case(t==null?void 0:t.matches("autoSignIn")):return"signUp";case(t==null?void 0:t.matches("forceChangePassword")):return"forceNewPassword";case(t==null?void 0:t.matches("forgotPassword")):return"forgotPassword";case(t==null?void 0:t.matches("confirmResetPassword")):return"confirmResetPassword";case(t==null?void 0:t.matches("selectUserAttributes")):return"verifyUser";case(t==null?void 0:t.matches("confirmVerifyUserAttribute")):return"confirmVerifyUser";case(t==null?void 0:t.matches("setupEmail")):return"setupEmail";case(t==null?void 0:t.matches("selectMfaType")):return"selectMfaType";case e.matches("getCurrentUser"):case(t==null?void 0:t.matches("fetchUserAttributes")):return"transition";default:return null}},as=e=>{const t=r=>o=>e({type:r,data:o});return{initializeMachine:t("INIT"),resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toForgotPassword:t("FORGOT_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},ss=e=>{var _,y;const t=sr(e)??{},{allowedMfaTypes:r,challengeName:o,codeDeliveryDetails:i,remoteError:a,validationError:s,totpSecretCode:l=null,unverifiedUserAttributes:c,username:u}=t,{socialProviders:d=[]}=((_=e.context)==null?void 0:_.config)??{},m=(t==null?void 0:t.user)??((y=e.context)==null?void 0:y.user),f=!!(s&&Object.keys(s).length>0),p=ar(e),h=e.hasTag("pending")||(p==null?void 0:p.hasTag("pending")),v=is(e,p),w=(S=>{switch(S){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(v);return{allowedMfaTypes:r,authStatus:w,challengeName:o,codeDeliveryDetails:i,error:a,hasValidationErrors:f,isPending:h,route:v,socialProviders:d,totpSecretCode:l,unverifiedUserAttributes:c,user:m,username:u,validationErrors:s}},ls=({send:e,state:t})=>{const r=as(e),o=ss(t);return{...r,...o}};var zn;(function(e){e.Apple="Apple",e.Amazon="Amazon",e.Facebook="Facebook",e.Google="Google"})(zn||(zn={}));var no;(function(e){e.Email="email",e.PhoneNumber="phone_number"})(no||(no={}));const cs=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],us=["username","email","phone_number"],ii=[...us,...cs,"confirmation_code","password","confirm_password"],ds=e=>ii.includes(e),de=e=>{const t=new FormData(e.target);return Object.fromEntries(t)},ai=e=>ii.includes(e),fs=e=>Array.isArray(e),ps=e=>e?fs(e)?e:[e]:null,ms=e=>{const t=e.trim().split("");for(let r=0;r<t.length;r++)r>0&&r<t.length-1&&(t[r]="*");return t.join("")},gs=e=>{if(e.length<4)return e;const t=e.split("");for(let r=0;r<t.length-4;r++)t[r]="*";return t.join("")},hs=e=>{const t=e.split("@");return`${ms(t[0])}@${t[1]}`},ys=(e,t)=>e==="Phone Number"?gs(t):hs(t),vs=e=>os.some(t=>e.includes(t)),_s=(e,t,r)=>encodeURI(`otpauth://totp/${e}:${t}?secret=${r}&issuer=${e}`);function Ss(e,...t){return Object.entries(e).reduce((r,[o,i])=>({...r,[o]:t.includes(o)?i:i==null?void 0:i.trim()}),{})}const ws={"Account recovery requires verified contact information":"Zurücksetzen des Accounts benötigt einen verifizierten Account","Add your Profile":"Ihr Profil hinzufügen","Add your Website":"Ihre Website hinzufügen","Authenticator App (TOTP)":"Authentifikator-App (TOTP)","Back to Sign In":"Zurück zur Anmeldung","Change Password":"Passwort ändern",Changing:"Ändern von",Code:"Code","Confirm Email Code":"E-Mail-Code bestätigen","Confirm Password":"Passwort bestätigen","Please confirm your Password":"Bitte bestätigen Sie Ihr Passwort","Confirm Sign Up":"Registrierung bestätigen","Confirm SMS Code":"SMS-Code bestätigen","Confirm TOTP Code":"TOTP-Code bestätigen",Confirm:"Bestätigen","Confirmation Code":"Bestätigungs-Code",Confirming:"Wird bestätigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",Email:"E-Mail","Email Message":"E-Mail-Nachricht","Enter your Birthdate":"Geben Sie Ihr Geburtsdatum ein","Enter your code":"Geben Sie Ihren Code ein","Enter your Confirmation Code":"Geben Sie Ihren Bestätigungs-Code ein","Enter your Email":"Geben Sie Ihre E-Mail ein","Enter your Family Name":"Geben Sie Ihren Nachnamen ein","Enter your Given Name":"Geben Sie Ihren Vornamen ein","Enter your Middle Name":"Geben Sie Ihren zweiten Vornamen ein","Enter your Name":"Geben Sie Ihren Namen ein","Enter your Nickname":"Geben Sie Ihren Spitznamen ein","Enter your Password":"Geben Sie Ihr Passwort ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your email":"Geben Sie Ihre E-Mail ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your Preferred Username":"Geben Sie Ihren bevorzugten Benutzernamen ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot password?":"Passwort vergessen?","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen","It may take a minute to arrive":"Es kann eine Minute dauern, bis er ankommt",Loading:"Wird geladen","Multi-Factor Authentication":"Multifaktor-Authentifizierung","Multi-Factor Authentication Setup":"Einrichtung der Multifaktor-Authentifizierung","New password":"Neues Passwort",or:"oder",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zurücksetzen des Passworts","Reset your password":"Zurücksetzen des passworts","Select MFA Type":"MFA-Typ auswählen","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup Email":"E-Mail einrichten","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"Überspringen",Submit:"Abschicken",Submitting:"Wird gesendet","Text Message (SMS)":"Textnachricht (SMS)",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","We Emailed You":"E-Mail wurde versendet","We Sent A Code":"Wir haben einen Code gesendet","We Texted You":"Wir haben Ihnen eine SMS gesendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir per E-Mail verschickt haben","Your code is on the way. To log in, enter the code we sent you":"Ihr Code ist unterwegs. Um sich anzumelden, geben Sie den Code ein, den wir Ihnen gesendet haben","Your code is on the way. To log in, enter the code we texted to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir per SMS verschickt haben","An account with the given email already exists.":"Ein Account mit dieser E-Mail existiert bereits.","Confirm a Code":"Code bestätigen","Confirm Sign In":"Anmeldung bestätigen","Create account":"Hier registrieren","Sign Up with Facebook":"Mit Facebook registrieren","Sign Up with Google":"Mit Google registrieren","Forgot Password":"Passwort vergessen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Incorrect username or password.":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ungültiges Passwort-Format","Invalid phone number format":"Ungültiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","It may take a minute to arrive.":"Es könnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Reset password":"Passwort zurücksetzen","Reset Password":"Passwort Zurücksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein"},Cs={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Add your Profile":"Add your Profile","Add your Website":"Add your Website","Authenticator App (TOTP)":"Authenticator App (TOTP)","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code","Confirm Email Code":"Confirm Email Code","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm MFA Code":"Confirm MFA Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Email Message":"Email Message","Enter your Birthdate":"Enter your Birthdate","Enter your code":"Enter your code","Enter your Confirmation Code":"Enter your Confirmation Code","Enter your Email":"Enter your Email","Enter your Family Name":"Enter your Family Name","Enter your Given Name":"Enter your Given Name","Enter your Middle Name":"Enter your Middle Name","Enter your Name":"Enter your Name","Enter your Nickname":"Enter your Nickname","Enter your Password":"Enter your Password","Enter your phone number":"Enter your phone number","Enter your Preferred Username":"Enter your Preferred Username","Enter your username":"Enter your username","Forgot password?":"Forgot password?","Forgot your password?":"Forgot your password?","Hide password":"Hide password","It may take a minute to arrive":"It may take a minute to arrive",Loading:"Loading","Multi-Factor Authentication":"Multi-Factor Authentication","Multi-Factor Authentication Setup":"Multi-Factor Authentication Setup","New password":"New password",or:"or",Password:"Password","Phone Number":"Phone Number","Please confirm your Password":"Please confirm your Password","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Select MFA Type":"Select MFA Type","Send code":"Send code","Send Code":"Send Code",Sending:"Sending","Setup Email":"Setup Email","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in to your account":"Sign in to your account","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"Sign in","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting","Text Message (SMS)":"Text Message (SMS)",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify","We Emailed You":"We Emailed You","We Sent A Code":"We Sent A Code","We Texted You":"We Texted You","Your code is on the way. To log in, enter the code we emailed to":"Your code is on the way. To log in, enter the code we emailed to","Your code is on the way. To log in, enter the code we sent you":"Your code is on the way. To log in, enter the code we sent you","Your code is on the way. To log in, enter the code we texted to":"Your code is on the way. To log in, enter the code we texted to"},bs={"Account recovery requires verified contact information":"La recuperación de la cuenta requiere información de contacto verificada","Authenticator App (TOTP)":"Aplicación de autenticación (TOTP)","Back to Sign In":"Volver a inicio de sesión","Cannot reset password for the user as there is no registered/verified email or phone_number":"No se puede restablecer la contraseña para el usuario debido a que no hay Email registrado / verificado o número de teléfono","Change Password":"Cambiar contraseña",Changing:"Cambiando",Code:"Código","Code *":"Código *","Confirm Email Code":"Confirmar el código de correo electrónico","Confirm Password":"Confirmar contraseña","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el código de SMS","Confirm TOTP Code":"Confirmar código TOTP",Confirm:"Confirmar","Confirmation Code":"Código de confirmación",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Email Message":"Mensaje de correo electrónico","Enter your code":"Ingrese el código","Enter your Email":"Escriba su Email","Enter your email":"Escriba su email","Enter your Password":"Escriba su Contraseña","Enter your phone number":"Ingrese el número de teléfono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"¿Olvidó su contraseña?","Hide password":"Ocultar contraseña","It may take a minute to arrive":"Es posible que tarde un minuto en llegar",Loading:"Cargando","Multi-Factor Authentication":"Autenticación multifactor","Multi-Factor Authentication Setup":"Configuración de autenticación multifactor","New password":"Nueva contraseña",or:"o",Password:"Contraseña","Phone Number":"Número de teléfono","Resend Code":"Reenviar código","Reset your password":"Restablecer su contraseña","Reset your Password":"Restablecer su Contraseña","Select MFA Type":"Seleccionar el tipo de MFA","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup Email":"Configurar correo electrónico","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contraseña","Sign in to your account":"Iniciar sesión en tu cuenta","Sign In with Amazon":"Iniciar Sesión con Amazon","Sign In with Apple":"Iniciar Sesión con Apple","Sign In with Facebook":"Iniciar Sesión con Facebook","Sign In with Google":"Iniciar Sesión con Google","Sign in":"Iniciar sesión","Sign In":"Iniciar Sesión","Signing in":"Iniciando sesión",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando","Text Message (SMS)":"Mensaje de texto (SMS)",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","We Emailed You":"Le hemos enviado un correo electrónico","We Sent A Code":"Hemos enviado un código","We Texted You":"Le hemos enviado un mensaje de texto","Your code is on the way. To log in, enter the code we emailed to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por correo electrónico a","Your code is on the way. To log in, enter the code we sent you":"El código está en camino. Para iniciar sesión, escriba el código que le hemos enviado","Your code is on the way. To log in, enter the code we texted to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por mensaje de texto a","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un código","Confirm Sign In":"Confirmar inicio de sesión","Forgot Password":"Olvidé mi contraseña","Incorrect username or password.":"Nombre de usuario o contraseña incorrecta","Enter your Family Name":"Escriba su apellido","Enter your Given Name":"Escriba su nombre","Given Name":"Nombre","Family Name":"Apellido","Reset Password":"Restablecer contraseña","Please confirm your Password":"Confirme su contraseña","Invalid password format":"Formato de contraseña inválido","Invalid phone number format":"Formato de número de teléfono inválido","Loading...":"Cargando...","New Password":"Nueva contraseña","Resend a Code":"Reenviar un código","Sign Out":"Cerrar sesión","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe","Username/client id combination not found.":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vacío","Your passwords must match":"Las contraseñas deben coincidir","Password must have at least 8 characters":"La contraseña debe tener al menos 8 caracteres","Password must have upper case letters":"La contraseña debe tener al menos un carácter en mayúscula","Password must have numbers":"La contraseña debe tener al menos un carácter numérico","Password must have special characters":"La contraseña debe tener al menos un símbolo","Password must have lower case letters":"La contraseña debe tener al menos un carácter en minúsculas","Invalid verification code provided, please try again.":"Código de verificación no válido, inténtelo de nuevo.","Attempt limit exceeded, please try after some time.":"Número máximo de intentos excedido, por favor inténtelo de nuevo más tarde.","A network error has occurred.":"Se ha producido un error de red."},As={"Account recovery requires verified contact information":"La récupération du compte nécessite des informations de contact vérifiées","Authenticator App (TOTP)":"Application d’authentification (TOTP)","Back to Sign In":"Retour à la connexion","Cannot reset password for the user as there is no registered/verified email or phone_number":"Impossible de réinitialiser le mot de passe pour l'utilisateur car il n'a pas d'adresse e-mail ou de numéro de téléphone enregistré / vérifié","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Email Code":"Confirmer le code e-mail","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Créer un nouveau compte","Create Account":"Créer un compte","Creating Account":"Création d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Email Message":"Message de l’e-mail","Enter your code":"Saisissez cotre code de confirmation","Enter your Email":"Saisissez votre adresse e-mail","Enter your email":"Saisissez votre adresse e-mail","Enter your phone number":"Saisissez votre numéro de téléphone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oublié ? ","Hide password":"Masquer le mot de passe","It may take a minute to arrive":"Cela peut prendre une minute",Loading:"Chargement en cours","Multi-Factor Authentication":"Authentification multifactorielle","Multi-Factor Authentication Setup":"Configuration de l’authentification multifactorielle","New password":"Nouveau mot de passe",or:"ou",Password:"Mot de passe","Phone Number":"Numéro de téléphone","Resend Code":"Renvoyer le code","Reset your Password":"Réinitialiser votre mot de passe","Reset your password":"Réinitialisez votre mot de passe","Select MFA Type":"Sélectionner le type de MFA","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup Email":"E-mail de configuration","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion à votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours","Text Message (SMS)":"Message texte (SMS)",Username:"Nom d'utilisateur","Verify Contact":"Vérifier le contact",Verify:"Vérifier","We Sent A Code":"Nous avons envoyé un code","We Texted You":"Nous vous avons envoyé un SMS","Your code is on the way. To log in, enter the code we sent you":"Votre code est en cours d'envoi. Pour vous connecter, saisissez le code que nous vous avons envoyé","Add your Profile":"Ajoutez votre profil","Add your Website":"Ajoutez votre site web","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe déjà.",Birthdate:"Date de naissance",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Créer un compte","Enter your Birthdate":"Saisissez votre date de naissance","Enter your Confirmation Code":"Saisissez votre code de confirmation","Enter your Family Name":"Saisissez votre nom de famille","Enter your Given Name":"Saisissez votre prénom","Enter your Middle Name":"Saisissez votre deuxième prénom","Enter your Name":"Saisissez votre nom","Enter your Nickname":"Saisissez votre surnom","Enter your Password":"Saisissez votre mot de passe","Enter your Phone Number":"Saisissez votre numéro de téléphone","Enter your Preferred Username":"Saisissez votre nom d'utilisateur","Enter your password":"Saisissez votre mot de passe","Given Name":"Prénom","Family Name":"Nom de famille","Forgot Password":"Mot de passe oublié","Forgot Password?":"Mot de passe oublié ?","Incorrect username or password":"Identifiant ou mot de passe incorrect","Incorrect username or password.":"Identifiant ou mot de passe incorrect.","Have an account? ":"Déjà un compte ? ",Hello:"Bonjour","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de numéro de téléphone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur réseau","New Password":"Nouveau mot de passe",Name:"Nom","No account? ":"Pas de compte ? ","Please confirm your Password":"Confirmez votre mot de passe","Preferred Username":"Nom d'utilisateur préféré",Profile:"Profil","Resend a Code":"Renvoyer un code","Reset password":"Réinitialiser le mot de passe","Reset Password":"Réinitialiser le mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"Déconnexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe déjà","User does not exist":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit être renseigné","Username/client id combination not found.":"L'utilisateur n'existe pas","We Emailed You":"Nous vous avons envoyé un code","Your code is on the way. To log in, enter the code we emailed to":"Votre code est en route. Pour vous connecter entrez le code reçu sur cette adresse email","Your code is on the way. To log in, enter the code we texted to":"Votre code est en route. Pour vous connecter entrez le code reçu sur ce numéro de téléphone","Your passwords must match":"Vos mots de passe doivent être identiques","It may take a minute to arrive.":"Cela peut prendre quelques minutes.",Website:"Site web","Password must have at least 8 characters":"Le mot de passe doit comporter au moins 8 caractères","Password must have upper case letters":"Le mot de passe doit comporter des caractères majuscules","Password must have numbers":"Le mot de passe doit comporter des caractères numériques","Password must have special characters":"Le mot de passe doit comporter des symboles","Password must have lower case letters":"Le mot de passe doit comporter des caractères minuscules","Invalid verification code provided, please try again.":"Code de vérification invalide, veuillez réessayer.","Attempt limit exceeded, please try after some time.":"Nombre maximum de tentatives dépassé, veuillez réessayer plus tard.","A network error has occurred.":"Une erreur de réseau s'est produite."},Es={"A network error has occurred.":"Hálózati hiba történt.","Account recovery requires verified contact information":"A fiók helyreállításához hitelesített kapcsolattartási adatok szükségesek","Add your Profile":"Profil hozzáadása","Add your Website":"Weboldal hozzáadása","An account with the given email already exists.":"Ezzel az e-mail címmel már létezik fiók.","Attempt limit exceeded, please try after some time.":"Próbálkozási limit túllépve, kérjük próbálja újra később.","Authenticator App (TOTP)":"Hitelesítő alkalmazás (TOTP)","Back to Sign In":"Vissza a bejelentkezéshez",Birthdate:"Születési dátum","Change Password":"Jelszó módosítása",Changing:"Módosítás",Code:"Kód",Confirm:"Megerősítés","Confirm a Code":"Kód megerősítése","Confirm Email Code":"E-mail kód megerősítése","Confirm MFA Code":"MFA kód megerősítése","Confirm Password":"Jelszó megerősítése","Confirm Sign In":"Bejelentkezés megerősítése","Confirm Sign Up":"Regisztráció megerősítése","Confirm SMS Code":"SMS kód megerősítése","Confirm TOTP Code":"TOTP kód megerősítése","Confirmation Code":"Megerősítő kód",Confirming:"Megerősítés","Create a new account":"Új fiók létrehozása","Create Account":"Fiók létrehozása","Create account":"Fiók létrehozása","Creating Account":"Fiók létrehozása","Dismiss alert":"Figyelmeztetés ignorálása",Email:"E-mail","Email Message":"E-mail üzenet","Enter your Birthdate":"Adja meg a születési dátumát","Enter your code":"Adja meg a kódot","Enter your Confirmation Code":"Adja meg a megerősítő kódot","Enter your email":"Adja meg az e-mail címét","Enter your Email":"Adja meg az e-mail címét","Enter your Family Name":"Adja meg a vezetéknevét","Enter your Given Name":"Adja meg a keresztnevét","Enter your Middle Name":"Adja meg második keresztnevét (ha van)","Enter your Name":"Adja meg a nevét","Enter your Nickname":"Adja meg a becenevét","Enter your password":"Adja meg a jelszavát","Enter your Password":"Adja meg a jelszavát","Enter your phone number":"Adja meg a telefonszámát","Enter your Phone Number":"Adja meg a telefonszámát","Enter your Preferred Username":"Adja meg a preferált felhasználónevét","Enter your username":"Adja meg a felhasználónevét","Enter your Username":"Adja meg a felhasználónevét","Family Name":"Vezetéknév","Forgot Password":"Elfelejtett jelszó","Forgot password?":"Elfelejtette a jelszavát?","Forgot your password?":"Elfelejtette a jelszavát?","Given Name":"Keresztnév","Have an account? ":"Van már fiókja? ",Hello:"Üdvözöljük","Hide password":"Jelszó elrejtése","Incorrect username or password":"Helytelen felhasználónév vagy jelszó","Incorrect username or password.":"Helytelen felhasználónév vagy jelszó.","Invalid password format":"Érvénytelen jelszó formátum","Invalid phone number format":"Érvénytelen telefonszám formátum","It may take a minute to arrive":"Egy percet igénybe vehet, amíg megérkezik","It may take a minute to arrive.":"Egy percet igénybe vehet, amíg megérkezik.",Loading:"Betöltés","Loading...":"Betöltés...","Lost your code? ":"Elvesztette a kódot? ","Middle Name":"Második keresztnév","Multi-Factor Authentication":"Többfaktoros hitelesítés","Multi-Factor Authentication Setup":"Többfaktoros hitelesítés felállítása",Name:"Név","Network error":"Hálózati hiba","New Password":"Új jelszó","New password":"Új jelszó",Nickname:"Becenév","No account? ":"Nincs még fiókja? ",or:"vagy",Password:"Jelszó","Password attempts exceeded":"Jelszó próbálkozási limit túllépve","Password did not conform with policy":"A jelszónak tartalmaznia kell kisbetűket","Password must have lower case letters":"A jelszónak tartalmaznia kell kisbetűket","Password must have numbers":"A jelszónak tartalmaznia kell számokat","Password must have special characters":"A jelszónak tartalmaznia kell szimbólumokat","Password must have upper case letters":"A jelszónak tartalmaznia kell nagybetűket","Password not long enough":"Jelszó nem elég hosszú","Password must have at least 8 characters":"A jelszónak legalább 8 karakterből kell állnia","Phone Number":"Telefonszám","Please confirm your Password":"Kérjük, erősítse meg a jelszavát","Preferred Username":"Preferált felhasználónév",Profile:"Profil","Resend a Code":"Kód újraküldése","Resend Code":"Kód újraküldése","Reset Password":"Új jelszó felállítása","Reset password":"Új jelszó felállítása","Reset your password":"Új jelszó felállítása","Reset your Password":"Új jelszó felállítása","Select MFA Type":"MFA típus kiválasztása",Send:"Küldés","Send code":"Kód küldése","Send Code":"Kód küldése",Sending:"Küldés","Setup Email":"E-mail cím beállítása","Setup TOTP":"TOTP beállítása","Show password":"Jelszó megjelenítése","Sign In":"Bejelentkezés","Sign in":"Bejelentkezés","Sign in to your account":"Jelentkezzen be a fiókjába","Sign In with Amazon":"Bejelentkezés Amazon-nal","Sign In with Apple":"Bejelentkezés Apple-lel","Sign In with AWS":"Bejelentkezés AWS-sel","Sign In with Facebook":"Bejelentkezés Facebook-kal","Sign In with Google":"Bejelentkezés Google-lal","Sign out":"Kijelentkezés","Sign Out":"Kijelentkezés","Sign up":"Regisztráció","Sign Up":"Regisztráció","Sign Up with Amazon":"Regisztráció Amazon-nal","Sign Up with Apple":"Regisztráció Apple-lel","Sign Up with Facebook":"Regisztráció Facebook-kal","Sign Up with Google":"Regisztráció Google-lal","Signing in":"Bejelentkezés",Skip:"Kihagyás",SMS:"SMS",Submit:"Küldés",Submitting:"Küldés","Text Message (SMS)":"SMS üzenet","User already exists":"A felhasználó már létezik","User does not exist":"Felhasználó nem található","User is disabled.":"A felhasználó le van tiltva.",Username:"Felhasználónév","Username cannot be empty":"A felhasználónév mező nem lehet üres","Username/client id combination not found.":"Felhasználónév/kliens azonosító kombináció nem található.",Verify:"Ellenőrzés","Verify Contact":"Kapcsolat ellenőrzése","We Emailed You":"Küldtünk Önnek egy e-mailt","We Sent A Code":"Küldtünk Önnek egy kódot","We Texted You":"Küldtünk Önnek egy SMS-t",Website:"Weboldal","Your code is on the way. To log in, enter the code we emailed to":"A bejelentkezéshez szükséges kód küldése folyamatban van, amelyet a következő e-mail címre küldtünk:","Your code is on the way. To log in, enter the code we sent you":"A bejelentkezéshez szükséges kód küldése folyamatban van","Your code is on the way. To log in, enter the code we texted to":"A bejelentkezéshez szükséges kód küldése folyamatban van, amelyet SMS-ben küldtünk a következő számra:","Your passwords must match":"A jelszavaknak meg kell egyezniük"},Ts={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Authenticator App (TOTP)":"App di autenticazione (TOTP)","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Email Code":"Conferma codice e-mail","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Ignora l'avviso",Email:"Email","Email Message":"Messaggio e-mail","Enter your code":"Inserisci il tuo codice","Enter your Email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password","It may take a minute to arrive":"L'arrivo potrebbe richiedere qualche minuto",Loading:"Caricamento in corso","Multi-Factor Authentication":"Autenticazione a più fattori","Multi-Factor Authentication Setup":"Configurazione dell'autenticazione a più fattori","New password":"Nuova password",or:"oppure",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Invia nuovamente il codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Select MFA Type":"Seleziona il tipo di MFA","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup Email":"Configura l'e-mail","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accedi","Sign In":"Accedi","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso","Text Message (SMS)":"Messaggio di testo (SMS)",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","We Emailed You":"Ti abbiamo inviato un'e-mail","We Sent A Code":"Ti abbiamo inviato un codice","We Texted You":"Ti abbiamo inviato un SMS","Your code is on the way. To log in, enter the code we emailed to":"Il codice è in arrivo. Per effettuare l'accesso, immetti il codice che ti abbiamo inviato via e-mail","Your code is on the way. To log in, enter the code we sent you":"Il codice è in arrivo. Per accedere, immetti il codice che ti abbiamo inviato","Your code is on the way. To log in, enter the code we texted to":"Il codice è in arrivo. Per accedere, immetti il codice che abbiamo inviato tramite SMS","An account with the given email already exists.":"Questa email è già utilizzata da un altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot Password?":"Password dimenticata?","Have an account? ":"Già registrato?","Incorrect username or password":"Nome utente o password errati","Incorrect username or password.":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your code?":"Codice smarrito?","New Password":"Nuova password","No account? ":"Non hai un account?","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti è stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente già esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non può essere vuoto"},Is={"Account recovery requires verified contact information":"アカウントの復旧には確認済みの連絡先が必要です","Authenticator App (TOTP)":"認証アプリ (TOTP)","Back to Sign In":"サインインに戻る","Change Password":"パスワードを変える ",Changing:"変更中",Code:"コード","Confirm Email Code":"E メールコードを確認","Confirm Password":"パスワードの確認","Confirm Sign Up":"登録する","Confirm SMS Code":"SMS コードを確認","Confirm TOTP Code":"TOTP コードを確認",Confirm:"確定","Confirmation Code":"確認コード",Confirming:"確認中","Create a new account":"新しいアカウントを作る","Create Account":"アカウントを作る","Creating Account":"アカウントの作成中","Dismiss alert":"アラートを閉じる",Email:"メールアドレス","Email Message":"E メールメッセージ","Enter your code":"コードを入力","Enter your Email":"メールアドレスを入力","Enter your phone number":"電話番号を入力","Enter your username":"ユーザー名を入力 ","Enter your Username":"ユーザー名を入力 ","Forgot your password?":"パスワードを忘れましたか? ","Hide password":"パスワードを非表示","It may take a minute to arrive":"到着するまでに 1 分かかることがあります",Loading:"ロード中","Multi-Factor Authentication":"多要素認証","Multi-Factor Authentication Setup":"多要素認証のセットアップ","New password":"新しいパスワード",or:"又は",Password:"パスワード ","Phone Number":"電話番号","Resend Code":"コードを再送信","Reset your Password":"パスワードをリセット","Reset your password":"パスワードをリセットする","Select MFA Type":"MFA タイプを選択","Send code":"コードを送信","Send Code":"コードを送信",Sending:"送信中","Setup Email":"E メールをセットアップ","Setup TOTP":"TOTP をセットアップ","Show password":"パスワードを表示","Sign in to your account":"アカウントにサインイン ","Sign In with Amazon":"Amazonでサインイン","Sign In with Apple":"Apple でサインイン","Sign In with Facebook":"Facebookでサインイン","Sign In with Google":"Googleでサインイン","Sign In":"サインイン ","Sign in":"サインイン","Signing in":"サインイン中",Skip:"スキップ",Submit:"送信",Submitting:"送信中","Text Message (SMS)":"テキストメッセージ (SMS)",Username:"ユーザー名 ","Verify Contact":"連絡先を確認",Verify:"確認","We Sent A Code":"コードが送信されました","We Texted You":"テキストが送信されました","Your code is on the way. To log in, enter the code we sent you":"コードが途中です。ログインするには、送信したコードを入力してください","An account with the given email already exists.":"入力されたメールアドレスのアカウントが既に存在します","Confirm a Code":"コードを確認","Confirm Sign In":"サインインする","Create account":"アカウントを作る ","Enter your password":"パスワードを入力 ","Enter your Password":"パスワードを入力","Please confirm your Password":"パスワードを入力","Forgot Password":"パスワードを忘れた ","Have an account? ":"アカウントを持っていますか?","Incorrect username or password":"ユーザー名かパスワードが異なります ","Incorrect username or password.":"ユーザー名かパスワードが異なります ","Invalid password format":"パスワードの形式が無効です ","Invalid phone number format":`不正な電話番号の形式です。
2
- +12345678900 の形式で入力してください`,"It may take a minute to arrive.":"コードを受信するまで数分かかる場合があります。","Lost your code? ":"コードを失くしましたか?","New Password":"新しいパスワード","No account? ":"アカウントが無いとき ","Password attempts exceeded":"サインインの試行回数が上限に達しました","Reset password":"パスワードをリセット ","Reset Password":"パスワードをリセット","Sign Out":"サインアウト ","Sign Up":"登録 ","User already exists":"既にユーザーが存在しています ","User does not exist":"ユーザーが存在しません ","Username cannot be empty":"ユーザー名は入力必須です","We Emailed You":"コードを送信しました","Your code is on the way. To log in, enter the code we emailed to":"ログインするには、メールに記載されたコードを入力してください。送信先:","Your code is on the way. To log in, enter the code we texted to":"ログインするには、テキストメッセージに記載されたコードを入力してください。送信先:"},Ps={"Account recovery requires verified contact information":"계정 복구를 위해 연락처 확인이 필요합니다","Authenticator App (TOTP)":"인증 앱(TOTP)","Back to Sign In":"로그인으로 돌아가기","Change Password":"비밀번호 변경하기",Changing:"변경중",Code:"코드","Confirm Email Code":"이메일 코드 확인","Confirm Password":"비밀번호 재확인","Confirm Sign Up":"회원가입 확인","Confirm SMS Code":"휴대폰 본인 확인","Confirm TOTP Code":"TOTP 인증번호 확인",Confirm:"확인","Confirmation Code":"인증번호",Confirming:"확인중","Create a new account":"회원가입","Create Account":"회원가입","Creating Account":"회원가입중","Dismiss alert":"알림 무시",Email:"이메일","Email Message":"이메일 메시지","Enter your Birthdate":"생년월일 입력","Enter your code":"인증번호를 입력해주세요","Enter your Confirmation Code":"확인 코드 입력","Enter your Email":"이메일 입력","Enter your Family Name":"성 입력","Enter your Given Name":"사용장 이름 입력","Enter your Name":"이름 입력","Enter your Nickname":"닉네임 입력","Enter your Password":"비밀번호 입력","Enter your phone number":"전화번호 입력","Enter your Preferred Username":"선호하는 아이디 입력","Enter your username":"아이디를 입력해주세요","Forgot password?":"비밀번호를 잊으셨나요?","Hide password":"비밀번호 숨기기","It may take a minute to arrive":"도착하는 데 1분 정도 걸릴 수 있습니다",Loading:"로딩중","Multi-Factor Authentication":"다중 인증","Multi-Factor Authentication Setup":"다중 인증 설정","New password":"새 비밀번호",or:"또는",Password:"비밀번호","Phone Number":"전화번호","Please confirm your Password":"비밀번호를 확인해 주세요.","Resend Code":"인증번호 재전송","Reset your password":"비밀번호 재설정","Reset your Password":"비밀번호 재설정","Select MFA Type":"MFA 유형 선택","Send code":"인증코드 보내기","Send Code":"코드 전송",Sending:"전송중","Setup Email":"이메일 설정","Setup TOTP":"TOTP 설정하기","Show password":"비밀번호 보이기","Sign in to your account":"로그인","Sign In with Amazon":"Amazon 로그인","Sign In with Apple":"Apple 로그인","Sign In with Facebook":"Facebook 로그인","Sign In with Google":"Google 로그인","Sign in":"로그인","Sign In":"로그인","Signing in":"로그인중",Skip:"다음에 하기",Submit:"확인",Submitting:"확인중","Text Message (SMS)":"문자 메시지(SMS)",Username:"아이디","Verify Contact":"연락처 확인",Verify:"인증","We Emailed You":"이메일을 보냄","We Sent A Code":"코드를 보냄","We Texted You":"문자 메시지를 보냄","Your code is on the way. To log in, enter the code we emailed to":"코드가 전송 중입니다. 로그인하려면 이메일로 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we sent you":"코드가 전송 중입니다. 로그인하려면 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we texted to":"코드가 전송 중입니다. 로그인하려면 문자 메시지로 전송한 코드를 입력하세요",Birthdate:"생년월일","Family Name":"성","Forgot your password?":"비밀번호를 잊으셨나요?","Given Name":"이름",Name:"성함",Nickname:"닉네임","Preferred Username":"닉네임",Profile:"프로필","Reset Password":"비밀번호 재설정",Website:"웹사이트"},ks={"Account recovery requires verified contact information":"Gjenoppretting av konto krever verifisert kontaktinformajson","Add your Profile":"Legg til profilen din","Add your Website":"Legg til nettsiden din","Authenticator App (TOTP)":"Autentiseringsapp (TOTP)","Back to Sign In":"Tilbake til innlogging","Change Password":"Bytt passord",Changing:"Endre",Code:"Kode","Confirm Email Code":"Bekreft e-postkode","Confirm Password":"Bekreft passordet","Confirm Sign Up":"Bekreft registrering","Confirm SMS Code":"Bekreft SMS-kode","Confirm TOTP Code":"Bekreft TOTP-kode",Confirm:"Bekreft","Confirmation Code":"Bekreftelseskode",Confirming:"Bekrefter","Create a new account":"Opprett en ny konto","Create Account":"Opprett konto","Creating Account":"Oppretter konto","Dismiss alert":"Avvis varsel",Email:"E-post","Email Message":"E-postmelding","Enter your Birthdate":"Skriv inn fødselsdatoen din","Enter your code":"Skriv inn koden din","Enter your Confirmation Code":"Skriv inn bekreftelseskoden din","Enter your Email":"Skriv inn e-postadressen din","Enter your Family Name":"Skriv inn etternavnet ditt","Enter your Given Name":"Skriv inn fornavnet ditt","Enter your Middle Name":"Skriv inn mellomnavnet ditt","Enter your Name":"Skriv inn navnet ditt","Enter your Nickname":"Skriv inn kallenavnet ditt","Enter your Password":"Skriv inn passordet ditt","Enter your phone number":"Skriv inn telefonnummeret ditt","Enter your Preferred Username":"Skriv inn det foretrukne brukernavnet ditt","Enter your username":"Skriv inn brukernavnet ditt","Forgot password?":"Glemt passord?","Forgot your password?":"Glemt passordet ditt?","Hide password":"Skjul passordet","It may take a minute to arrive":"Det kan ta et minutt for å komme frem",Loading:"Laster inn","Multi-Factor Authentication":"Flerfaktorautentisering","Multi-Factor Authentication Setup":"Oppsett av flerfaktorautentisering","New password":"Nytt passord",or:"eller",Password:"Passord","Phone Number":"Telefonnummer","Please confirm your Password":"Vennligst bekreft passordet ditt","Resend Code":"Send koden på nytt","Reset your password":"Nullstill passordet ditt","Reset your Password":"Nullstill passordet ditt","Select MFA Type":"Velg MFA-type","Send code":"Send kode","Send Code":"Send kode",Sending:"Sender","Setup Email":"Konfigurer e-post","Setup TOTP":"Konfigurer TOTP","Show password":"Vis passordet","Sign in to your account":"Logg inn på kontoen din","Sign In with Amazon":"Logg inn med Amazon","Sign In with Apple":"Logg inn med Apple","Sign In with Facebook":"Logg inn med Facebook","Sign In with Google":"Logg inn med Google","Sign in":"Logg inn","Sign In":"Logg inn","Signing in":"Logger inn",Skip:"Hopp over",Submit:"Send inn",Submitting:"Sender inn","Text Message (SMS)":"Tekstmelding (SMS)",Username:"Brukernavn","Verify Contact":"Bekreft kontakt",Verify:"Bekreft","We Emailed You":"Vi sendte deg en e-post","We Sent A Code":"Vi sendte en kode","We Texted You":"Vi sendte deg en tekstmelding","Your code is on the way. To log in, enter the code we emailed to":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte e-post til","Your code is on the way. To log in, enter the code we sent you":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte deg","Your code is on the way. To log in, enter the code we texted to":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte tekstmelding til","An account with the given email already exists.":"Det finnes allerede en konto med denne e-postadressen","Confirm a Code":"Bekreft koden","Confirm Sign In":"Bekreft innlogging","Create account":"Opprett konto","Enter your password":"Skriv inn passordet ditt","Forgot Password":"Glemt passordet","Have an account? ":"Har en konto allerede? ","Incorrect username or password":"Feil brukernavn eller passord","Incorrect username or password.":"Feil brukernavn eller passord","Invalid password format":"Ugyldig passordformat","Invalid phone number format":"Ugyldig telefonnummerformat","Lost your code? ":"Mistet koden? ","New Password":"Nytt passord","No account? ":"Ingen konto? ","Password attempts exceeded":"For mange mislykkede passordforsøk","Reset password":"Nullstill passord","Sign Out":"Logg ut","Sign Up":"Registrering","User already exists":"Brukeren finnes allerede","User does not exist":"Brukeren finnes ikke","Username cannot be empty":"Brukernavnet kan ikke være tomt"},Ns={"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Authenticator App (TOTP)":"Authenticator-app (TOTP)","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Email Code":"E-mailcode bevestigen","Confirm Password":"Bevestig Wachtwoord","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Email Message":"E-mailbericht","Enter your code":"Vul je code in","Enter your Email":"Vul je e-mail in","Enter your Password":"Vul je wachtwoord in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Enter your Username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord","It may take a minute to arrive":"Het kan even duren voordat deze aankomt",Loading:"Laden","Multi-Factor Authentication":"Multi-Factor Authentication","Multi-Factor Authentication Setup":"Multi-Factor Authentication instellen","New password":"Nieuw wachtwoord","New Password":"Nieuw Wachtwoord",or:"of",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Please confirm your Password":"Bevestig je wachtwoord","Resend Code":"Verstuur code nogmaals","Reset Password":"Wachtwoord resetten","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Select MFA Type":"MFA-type kiezen","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup Email":"E-mailadres instellen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd","Text Message (SMS)":"Tekstbericht (sms)",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer","We Emailed You":"We hebben u een e-mail gestuurd","We Sent A Code":"We hebben een code gestuurd","We Texted You":"We hebben u een sms gestuurd","Your code is on the way. To log in, enter the code we emailed to":"Uw code is onderweg. Om in te loggen, voer de code in die we gemaild hebben naar","Your code is on the way. To log in, enter the code we sent you":"Uw code is onderweg. Om in te loggen, voer de code in die we u hebben gestuurd","Your code is on the way. To log in, enter the code we texted to":"Uw code is onderweg. Om in te loggen, voer de code in die we hebben gestuurd naar","Your passwords must match":"Je wachtwoorden moeten overeenkomen"},Ms={"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Authenticator App (TOTP)":"Aplikacja uwierzytelniania (TOTP)","Back to Sign In":"Powrót do logowania","Change Password":"Zmień hasło",Changing:"Zmienianie",Code:"Kod","Confirm Email Code":"Potwierdź kod e-mail","Confirm Password":"Potwierdź Hasło","Confirm Sign Up":"Potwierdź rejestrację","Confirm SMS Code":"Potwierdź kod SMS","Confirm TOTP Code":"Potwierdź hasło jednorazowe",Confirm:"Potwierdź","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create a new account":"Utwórz nowe konto","Create Account":"Utwórz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzuć alert",Email:"E-mail","Email Message":"Wiadomość e-mail","Enter your code":"Wprowadź swój kod","Enter your Email":"Wpisz swój adres e-mail","Enter your phone number":"Wpisz swój numer telefonu","Enter your username":"Wprowadź swoją nazwę użytkownika","Forgot your password?":"Zapomniałeś hasła? ","Hide password":"Ukryj hasło","It may take a minute to arrive":"Może to chwilę potrwać",Loading:"Ładowanie","Multi-Factor Authentication":"Uwierzytelnianie wieloskładnikowe","Multi-Factor Authentication Setup":"Konfigurowanie uwierzytelniania wieloskładnikowego","New password":"Nowe hasło",or:"albo",Password:"Hasło","Phone Number":"Numer telefonu","Resend Code":"Wyślij kod ponownie","Reset your password":"Zresetuj swoje hasło","Reset your Password":"Zresetuj swoje hasło","Select MFA Type":"Wybierz typ MFA","Send code":"Wyślij kod","Send Code":"Zresetuj hasło",Sending:"Wysyłanie","Setup Email":"Konfiguracja poczty e-mail","Setup TOTP":"Konfiguruj TOTP","Show password":"Pokaż hasło","Sign in to your account":"Zaloguj się na swoje konto","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign In":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomiń",Submit:"Wyślij",Submitting:"Wysyłanie","Text Message (SMS)":"Wiadomość tekstowa (SMS)",Username:"Nazwa użytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imię","Middle Name":"Drugie imię",Name:"Imię i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa użytkownika",Profile:"Profil",Website:"Strona internetowa","We Emailed You":"Wysłaliśmy Ci wiadomość e-mail","We Sent A Code":"Wysłaliśmy kod","We Texted You":"Wysłaliśmy Ci wiadomość SMS","Your code is on the way. To log in, enter the code we emailed to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany na adres e-mail","Your code is on the way. To log in, enter the code we sent you":"Twój kod został wysłany. Aby się zalogować, wprowadź wysłany do Ciebie kod","Your code is on the way. To log in, enter the code we texted to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany do Ciebie w wiadomości SMS pod numer"},xs={"Account recovery requires verified contact information":"A recuperação da conta requer informações de contato verificadas","Authenticator App (TOTP)":"Aplicativo autenticador (TOTP)","Add your Profile":"Adicione seu Perfil","Add your Website":"Adicione seu Website","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"Código","Confirm Email Code":"Confirmar código de e-mail","Confirm Password":"Confirme a Senha","Confirm Sign Up":"Confirmar inscrição","Confirm SMS Code":"Confirme o código SMS","Confirm MFA Code":"Confirme o código MFA","Confirm TOTP Code":"Confirme o código TOTP",Confirm:"confirme","Confirmation Code":"Código de confirmação",Confirming:"Confirmando","Create a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Email Message":"Mensagem de e-mail","Enter your Birthdate":"Digite sua Data de Nascimento","Enter your code":"Insira seu código","Enter your Confirmation Code":"Digite seu código de confirmação","Enter your Email":"Digite seu e-mail","Enter your Family Name":"Digite seu Sobrenome","Enter your Given Name":"Digite seu Primeiro Nome","Enter your Middle Name":"Digite seu Nome do Meio","Enter your Name":"Digite seu Nome","Enter your Nickname":"Digite seu Apelido","Enter your Password":"Digite sua senha","Enter your phone number":"Digite seu número de telefone","Enter your Preferred Username":"Digite seu nome de usuário preferido","Enter your username":"Digite seu nome de usuário","Forgot password?":"Esqueceu a senha?","Forgot your password?":"Esqueceu sua senha?","Hide password":"Esconder a senha","It may take a minute to arrive":"Pode levar um minuto para chegar",Loading:"Carregando","Multi-Factor Authentication":"Autenticação multifator","Multi-Factor Authentication Setup":"Configuração da autenticação multifator","New password":"Nova Senha",or:"ou",Password:"Senha","Phone Number":"Número de telefone","Please confirm your Password":"Por favor confirme sua Senha","Resend Code":"Reenviar código","Reset your password":"Redefina sua senha","Reset your Password":"Redefina sua senha","Select MFA Type":"Selecionar tipo de MFA","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup Email":"Configurar e-mail","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign in to your account":"Faça login em sua conta","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Faça login no Google","Sign in":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando","Text Message (SMS)":"Mensagem de texto (SMS)",Username:"Nome do usuário","Verify Contact":"Verificar contato",Verify:"Verificar","We Emailed You":"Enviamos um e-mail para você","We Sent A Code":"Enviamos um código","We Texted You":"Enviamos um SMS para você","Your code is on the way. To log in, enter the code we emailed to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos um e-mail","Your code is on the way. To log in, enter the code we sent you":"Seu código está a caminho. Para fazer login, insira o código que enviamos para você","Your code is on the way. To log in, enter the code we texted to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos uma mensagem de texto","An account with the given email already exists.":"Já existe uma conta com o email utilizado.","Confirm a Code":"Confirmar um Código","Confirm Sign In":"Confirmar Início de Sessão","Forgot Password":"Esqueci Minha Senha","Incorrect username or password.":"Nome de usuário ou senha incorreta","Invalid password format":"Formato de senha inválido","Invalid phone number format":"Formato de número de telefone inválido","Loading...":"Carregando...","New Password":"Nova Senha","Resend a Code":"Reenviar um Código","Sign Out":"Sair","Sign Up with Amazon":"Criar Conta com a Amazon","Sign Up with Apple":"Criar Conta com a Apple","Sign Up with Facebook":"Criar Conta com o Facebook","Sign Up with Google":"Criar Conta com o Google","Sign Up":"Criar Conta","User already exists":"Usuário já existe","User does not exist":"Usuário não existe","Username cannot be empty":"Nome de usuário não pode estar vazio","Your passwords must match":"Suas senhas devem ser iguais"},Us={"Account recovery requires verified contact information":"账户恢复需要验证过的联系方式","Authenticator App (TOTP)":"Authenticator 应用程序(TOTP)","Back to Sign In":"回到登录","Change Password":"更改密码",Changing:"正在修改",Code:"确认码","Confirm Email Code":"确认电子邮件代码","Confirm Password":"确认密码","Confirm Sign Up":"确认注册","Confirm SMS Code":"确认短信验证码","Confirm TOTP Code":"确认 TOTP 代码",Confirm:"确认","Confirmation Code":"确认码",Confirming:"正在确认","Create a new account":"创建新账户","Create Account":"创建账户","Creating Account":"正在创建账户","Dismiss alert":"关闭警报",Email:"邮箱","Email Message":"电子邮件消息","Enter your code":"输入验证码","Enter your Email":"输入电子邮件","Enter your Password":"输入密码","Enter your phone number":"输入电话号码","Enter your username":"输入用户名","Forgot your password?":"忘记密码了?","Hide password":"隐藏密码","It may take a minute to arrive":"可能需要一分钟才能到达",Loading:"正在加载","Multi-Factor Authentication":"多重身份验证","Multi-Factor Authentication Setup":"多重身份验证设置","New password":"新密码",or:"或者",Password:"密码","Phone Number":"电话","Please confirm your Password":"请再次输入密码","Resend Code":"重发验证码","Reset your password":"重置密码","Reset your Password":"重置密码","Select MFA Type":"选择 MFA 类型","Send Code":"发送确认码","Send code":"发送验证码",Sending:"正在发送","Setup Email":"设置电子邮件","Setup TOTP":"设置 TOTP","Show password":"显示密码","Sign in to your account":"登录账户","Sign In with Amazon":"通过 Amazon 登录","Sign In with Apple":"通过 Apple 登录","Sign In with Facebook":"通过 Facebook 登录","Sign In with Google":"通过 Google 登录","Sign in":"登录","Sign In":"登录","Signing in":"正在登录",Skip:"跳过",Submit:"提交",Submitting:"正在提交","Text Message (SMS)":"短信(SMS)",Username:"用户名","Verify Contact":"验证联系方式",Verify:"验证","We Emailed You":"我们给您发送了电子邮件","We Sent A Code":"我们发送了代码","We Texted You":"我们给您发送了短信","Your code is on the way. To log in, enter the code we emailed to":"您的代码正在发送中。要登录,请输入我们通过电子邮件发送给以下人员的代码:","Your code is on the way. To log in, enter the code we sent you":"您的代码正在发送中。要登录,请输入我们发送给您的代码","Your code is on the way. To log in, enter the code we texted to":"您的代码正在发送中。要登录,请输入我们通过短信发送给以下人员的代码:","Confirm a Code":"确认码","Confirm Sign In":"确认登录","Forgot Password":"忘记密码","Incorrect username or password":"用户名或密码错误","Incorrect username or password.":"用户名或密码错误","Invalid password format":"密码格式错误","Invalid phone number format":"电话格式错误,请使用格式 +12345678900","New Password":"新密码","Resend a Code":"重发确认码","Sign Out":"退出","Sign Up":"注册","User already exists":"用户已经存在","User does not exist":"用户不存在"},Fs={"Account recovery requires verified contact information":"För att återställa kontot behöver du ett verifierat konto","Authenticator App (TOTP)":"Autentiseringsapp (TOTP)","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt lösenord",Changing:"Ändra",Code:"Kod","Confirm Email Code":"Bekräfta e-postkod","Confirm Password":"Bekräfta lösenord","Confirm Sign Up":"Bekräfta registrering","Confirm SMS Code":"Bekräfta SMS-kod","Confirm TOTP Code":"Bekräfta TOTP-kod",Confirm:"Bekräfta","Confirmation Code":"Verifikationskod",Confirming:"Bekräftar","Create a new account":"Skapa ett nytt konto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Email Message":"E-postmeddelande","Enter your code":"Skriv din kod","Enter your Email":"Ange din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt användarnamn","Forgot your password?":"Glömt ditt lösenord? ","Hide password":"Dölj lösenord","It may take a minute to arrive":"Det kan ta en minut att komma fram",Loading:"Laddar","Multi-Factor Authentication":"Multifaktorautentisering","Multi-Factor Authentication Setup":"Konfigurering av multifaktorautentisering","New password":"Nytt lösenord",or:"eller",Password:"Lösenord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"Återställ ditt lösenord","Reset your Password":"Återställ ditt lösenord","Select MFA Type":"Välj MFA-typ","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup Email":"Konfigurera e-post","Setup TOTP":"Konfigurera TOTP","Show password":"Visa lösenord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa över",Submit:"Skicka",Submitting:"Skickar in","Text Message (SMS)":"Textmeddelande (SMS)",Username:"Användarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","We Sent A Code":"Vi skickade en kod","We Texted You":"Vi sms:ade dig","Your code is on the way. To log in, enter the code we emailed to":"Din kod är på väg. För att logga in, ange koden vi mejlade till","Your code is on the way. To log in, enter the code we sent you":"Din kod är på väg. För att logga in, ange koden vi skickade till dig","Your code is on the way. To log in, enter the code we texted to":"Din kod är på väg. För att logga in, ange koden vi sms:ade till","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekräfta koden","Confirm Sign In":"Bekräfta inloggning","Create account":"Skapa konto","Enter your Password":"Ange ditt lösenord","Forgot Password?":"Glömt lösenord?","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt användarnamn eller lösenord","Incorrect username or password.":"Felaktigt användarnamn eller lösenord","Invalid password format":"Ogiltigt lösenordsformat","Invalid phone number format":"Ogiltigt format för telefonnummer","Lost your code? ":"Förlorat koden? ","New Password":"Nytt lösenord","No account? ":"Inget konto? ","Password attempts exceeded":"Maximalt antal felaktiga inloggningsförsök har uppnåtts","Reset Password":"Återställ lösenord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Användaren finns redan","User does not exist":"Användaren finns inte","Username cannot be empty":"Användarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig","Please confirm your Password":"Bekräfta ditt lösenord"},Os={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Authenticator App (TOTP)":"Aplikasi Pengauntentikasi (TOTP)","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Email Code":"Konfirmasi Kode Email","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Email Message":"Pesan Email","Enter your code":"Masukkan kode anda","Enter your Email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi","It may take a minute to arrive":"Mungkin perlu waktu satu menit untuk tiba",Loading:"Memuat","Multi-Factor Authentication":"Autentikasi Multifaktor","Multi-Factor Authentication Setup":"Pengaturan Autentikasi Multifaktor","New password":"Kata sandi baru",or:"atau",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Select MFA Type":"Pilih tipe MFA","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup Email":"Atur Email","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan","Text Message (SMS)":"Pesan Teks (SMS)",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","We Sent A Code":"Kami Mengirim Kode","We Texted You":"Kami mengirim SMS kepada Anda","Your code is on the way. To log in, enter the code we sent you":"Kode Anda segera hadir. Untuk masuk, masukkan kode yang kami kirimkan kepada Anda","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot Password":"Lupa kata sandi","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","No account? ":"Tidak ada akun?","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},Rs={"Account recovery requires verified contact information":"Hesap kurtarma, doğrulanmış iletişim bilgilerini gerektirir","Authenticator App (TOTP)":"Kimlik Doğrulayıcı Uygulaması (TOTP)","Add your Profile":"Profilinizi ekleyin","Add your Website":"Web sitenizi ekleyin","Back to Sign In":"Oturum Açmaya Geri Dön","Change Password":"Şifreyi Değiştir",Changing:"Değiştiriliyor",Code:"Kod","Confirm Email Code":"E-posta Kodunu Onayla","Confirm Password":"Şifreyi Doğrula","Confirm Sign Up":"Kayıt İşlemini Doğrula","Confirm SMS Code":"SMS Kodunu Doğrula","Confirm MFA Code":"Çoklu Faktörlü Doğrulama Kodunu Doğrula","Confirm TOTP Code":"Tek Kullanımlık Şifreyi Doğrula",Confirm:"Doğrula","Confirmation Code":"Doğrulama Kodu",Confirming:"Doğrulanıyor","Create a new account":"Yeni bir hesap oluştur","Create Account":"Hesap Oluştur","Creating Account":"Hesap Oluşturuluyor","Dismiss alert":"Uyarıyı reddet",Email:"E-posta","Email Message":"E-posta Mesajı","Enter your Birthdate":"Doğum gününüzü girin","Enter your code":"Kodu girin","Enter your Confirmation Code":"Doğrulama Kodunuzu Girin","Enter your Email":"E-posta adresinizi girin","Enter your email":"E-posta adresinizi girin","Enter your Family Name":"Ad Soyadınızı girin","Enter your Given Name":"Adınızı girin","Enter your Middle Name":"Soyadınızı girin","Enter your Name":"Adınızı girin","Enter your Nickname":"Takma adınızı girin","Enter your Password":"Şifrenizi girin","Enter your phone number":"Telefon numaranızı girin","Enter your Preferred Username":"Tercih ettiğiniz kullanıcı adınızı girin","Enter your username":"Kullanıcı adınızı girin","Forgot Password?":"Şifrenizi Mi Unuttunuz?","Forgot password?":"Şifrenizi mi unuttunuz?","Forgot your password?":"Şifrenizi mi unuttunuz?","Hide password":"Şifreyi gizle","It may take a minute to arrive":"Kodun gelmesi bir dakika sürebilir",Loading:"Yükleniyor","Multi-Factor Authentication":"Çok Faktörlü Kimlik Doğrulama","Multi-Factor Authentication Setup":"Çok Faktörlü Kimlik Doğrulama Kurulumu","New password":"Yeni şifre",or:"veya",Password:"Şifre","Phone Number":"Telefon Numarası","Please confirm your Password":"Lütfen şifrenizi doğrulayın","Resend Code":"Kodu Yeniden Gönder","Reset your password":"Şifrenizi sıfırlayın","Reset your Password":"Şifrenizi Sıfırlayın","Reset Password":"Şifreyi Sıfırla","Select MFA Type":"MFA türünü seçin","Send code":"Kod gönder","Send Code":"Kod Gönder",Sending:"Gönderiliyor","Setup Email":"E-postayı ayarla","Setup TOTP":"Tek kullanımlık şifre kurulumu yap","Show password":"Şifreyi göster","Sign in to your account":"Hesabınızda oturum açın","Sign In with Amazon":"Amazon ile Oturum Aç","Sign In with Apple":"Apple ile Oturum Aç","Sign In with Facebook":"Facebook ile Oturum Aç","Sign In with Google":"Google ile Oturum Aç","Sign in":"Oturum aç","Sign In":"Oturum Aç","Sign Up with Facebook":"Facebook ile Kayıt Ol","Sign Up with Google":"Google ile Kayıt Ol","Signing in":"Oturum açılıyor",Skip:"Atla",Submit:"Gönder",Submitting:"Gönderiliyor","Text Message (SMS)":"Kısa Mesaj (SMS)",Username:"Kullanıcı adı","Verify Contact":"Kişiyi Doğrula",Verify:"Doğrula","We Emailed You":"Size E-posta Gönderdik","We Sent A Code":"Bir Kod Gönderdik","We Texted You":"Size Mesaj Gönderdik","Your code is on the way. To log in, enter the code we emailed to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz e-postadaki kodu girin","Your code is on the way. To log in, enter the code we sent you":"Kodunuz yolda. Oturum açmak için, size gönderdiğimiz kodu girin","Your code is on the way. To log in, enter the code we texted to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz mesajdaki kodu girin","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum Açmayı Doğrula","Have an account? ":"Hesabınız var mı? ","Incorrect username or password":"Yanlış kullanıcı adı ya da şifre","Incorrect username or password.":"Yanlış kullanıcı adı ya da şifre","Invalid password format":"Geçersiz parola formatı","Invalid phone number format":"Geçersiz telefon numarası formatı","Lost your code? ":"Kodu mu kaybettiniz? ","No account? ":"Hesabınız yok mu? ","Password attempts exceeded":"Maksimum oturum açma girişimi aşıldı","Sign Out":"Çıkış yap","Sign Up":"Kayıt Ol","User already exists":"Bu kullanıcı zaten var","User does not exist":"Böyle bir kullanıcı mevcut değil","Username cannot be empty":"Kullanıcı adı boş olamaz"},$s={"Account recovery requires verified contact information":"Восстановление учетной записи требует проверки контактной информации","Authenticator App (TOTP)":"Приложение для аутентификации (TOTP)","Back to Sign In":"Назад, чтобы войти","Change Password":"изменять пароль",Changing:"Изменение",Code:"Код","Confirm Email Code":"Подтвердите код электронной почты","Confirm Password":"Подтверждение пароля","Confirm Sign Up":"Подтверждение зарегистрироваться","Confirm SMS Code":"Подтверждение CMC-Код","Confirm TOTP Code":"Подтверждение TOTP-Код",Confirm:"Подтверждать","Confirmation Code":"код подтверждения",Confirming:"подтверждение","Create a new account":"Создавать новую учетную запись","Create Account":"Создать учетную запись","Creating Account":"создание учетная запись","Dismiss alert":"Закрыть оповещение",Email:"электронная почта","Email Message":"Сообщение по электронной почте","Enter your code":"ввести ваш Код","Enter your Email":"ввести ваш электронная почта","Enter your phone number":"ввести ваш номер телефона","Enter your username":"ввести ваш имя пользователя","Forgot your password?":"Забыли ваш пароль?","Hide password":"Скрывать пароль","It may take a minute to arrive":"Доставка может занять некоторое время",Loading:"Загрузка","Multi-Factor Authentication":"Многофакторная аутентификация","Multi-Factor Authentication Setup":"Настройка многофакторной аутентификации","New password":"Новый пароль",or:"или",Password:"Пароль","Phone Number":"Номер телефона","Resend Code":"Отправь еще раз Код","Reset your password":"сброс ваш пароль","Reset your Password":"сброс ваш Пароль","Select MFA Type":"Выберите тип МФА","Send code":"Отправлять Код","Send Code":"Отправлять Код",Sending:"отправка","Setup Email":"Настроить электронную почту","Setup TOTP":"Настраивать TOTP","Show password":"Показывать пароль","Sign in to your account":"знак в свой аккаунт","Sign In with Amazon":"знак в с Amazon","Sign In with Apple":"знак в с Apple","Sign In with Facebook":"знак в с Facebook","Sign In with Google":"знак в с Google","Sign in":"знак в","Sign In":"знак в","Signing in":"подписание в",Skip:"Пропускать",Submit:"Представлять на рассмотрение",Submitting:"Представив","Text Message (SMS)":"Текстовое сообщение (SMS)",Username:"Имя пользователя","Verify Contact":"Проверить контакт",Verify:"Проверить","We Emailed You":"Мы отправили вам электронное письмо","We Sent A Code":"Мы отправили код","We Texted You":"Мы отправили вам текстовое сообщение","Your code is on the way. To log in, enter the code we emailed to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили по электронной почте","Your code is on the way. To log in, enter the code we sent you":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы послали вам","Your code is on the way. To log in, enter the code we texted to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили текстовым сообщением"},Ds={"Account recovery requires verified contact information":"שחזור לקוח דורש עוד מידע","Authenticator App (TOTP)":"אפליקציית אימות (TOTP)","Back to Sign In":"חזור להרשמה","Change Password":"עדכון סיסמא",Changing:"מעדכן",Code:"קוד","Confirm Email Code":"אמת קוד אימייל","Confirm Password":"אשר סיסמא","Confirm Sign Up":"אשר הרשמה","Confirm SMS Code":"אשר sms קוד","Confirm TOTP Code":"אשר totp קוד",Confirm:"אישור","Confirmation Code":"אישור קוד",Confirming:"מאשר","Create a new account":"צור משתמש חדש","Create Account":"צור משתמש","Creating Account":"יצירת משתמש","Dismiss alert":"הסר התראה",Email:"אימייל","Email Message":"הודעת אימייל","Enter your code":"הכנס את הקוד","Enter your Email":"הכנס את המייל שלך","Enter your phone number":"הכנס את מספר הטלפון שלך","Enter your username":"הכנס את שם המתמש שלך","Forgot your password?":"שכחת סיסמא ?","Hide password":"הסתר סיסמא",Loading:"טוען","Multi-Factor Authentication":"אימות רב-גורמי","Multi-Factor Authentication Setup":"הגדרת אימות רב-גורמי","New password":"סיסמא חדשה",or:"אוֹ",Password:"סיסמא","Phone Number":"מספר טלפון","Resend Code":"שלח קוד שוב","Reset your password":"אפס סיסמא","Reset your Password":"אפס סיסמא","Select MFA Type":"בחר סוג אימות רב-גורמי","Send code":"שלח קוד","Send Code":"שלח קוד",Sending:"שולח","Setup Email":"הגדר אימייל","Setup TOTP":"Setup TOTP","Show password":"הצג סיסמא","Sign in to your account":"התחבר לחשבון שלך","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"התחבר","Sign In":"התחבר","Signing in":"מתחבר",Skip:"דלג",Submit:"שלח",Submitting:"שולח","Text Message (SMS)":"הודעת טקסט (SMS)",Username:"שם משתמש","Verify Contact":"אמת איש קשר",Verify:"אמת"},Bs={"Account recovery requires verified contact information":"Відновлення облікового запису потребує контактної інформації","Authenticator App (TOTP)":"Додаток автентифікації (TOTP)","Back to Sign In":"Назад на сторінку входу","Change Password":"Змінити пароль",Changing:"Змінюємо",Code:"Код","Confirm Email Code":"Підтвердити код електронної пошти","Confirm Password":"Підтвердіть пароль","Confirm Sign Up":"Підтвердіть реєстрацію","Confirm SMS Code":"Підтвердіть SMS код","Confirm TOTP Code":"Підтвердіть TOTP код",Confirm:"Підтвердити","Confirmation Code":"Код підтвердження",Confirming:"Підтверджуємо","Create a new account":"Зареєструватися","Create Account":"Зареєструватися","Creating Account":"Реєструємо","Dismiss alert":"Відхилити сповіщення",Email:"Email","Email Message":"Повідомлення електронної пошти","Enter your code":"Введіть код","Enter your Email":"Введіть ваш email","Enter your phone number":"Введіть ваш номер телефону","Enter your username":"Введіть ваше імʼя користувача","Forgot password?":"Забули пароль?","Forgot your password?":"Забули ваш пароль?","Hide password":"Сховати пароль","It may take a minute to arrive":"Доставка може тривати хвилину",Loading:"Загружаємо","Multi-Factor Authentication":"Багатофакторна автентифікація","Multi-Factor Authentication Setup":"Налаштування багатофакторної автентифікації","New password":"Новий пароль",or:"або",Password:"Пароль","Phone Number":"Номер Телефону","Resend Code":"Відправити код повторно","Reset your password":"Скинути пароль","Reset your Password":"Скинути пароль","Select MFA Type":"Виберіть тип MFA","Send code":"Відправити код","Send Code":"Відправити код",Sending:"Відправляємо","Setup Email":"Налаштувати електронну пошту","Setup TOTP":"Налаштувати TOTP","Show password":"Показати пароль","Sign in to your account":"Увійти у ваш обліковий запис","Sign In with Amazon":"Увійти з Amazon","Sign In with Apple":"Увійти з Apple","Sign In with Facebook":"Увійти з Facebook","Sign In with Google":"Увійти з Google","Sign in":"Увійти","Sign In":"Увійти","Signing in":"Входимо",Skip:"Пропустити",Submit:"Відправити",Submitting:"Відправляємо","Text Message (SMS)":"Текстове повідомлення (SMS)",Username:"Імʼя користувача","Verify Contact":"Підтвердити Контакт",Verify:"Підтвердити","We Emailed You":"Ми відправили вам Email","We Sent A Code":"Ми відправили код","We Texted You":"Ми відправили вам текстове повідомлення","Your code is on the way. To log in, enter the code we emailed to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам на Email","Your code is on the way. To log in, enter the code we sent you":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми вам відправили","Your code is on the way. To log in, enter the code we texted to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам текстовим повідомленням","An account with the given email already exists.":"Обліковий запис з цим Email вже існує.","Confirm a Code":"Підтвердіть код","Confirm Sign In":"Підтвердіть вхід","Forgot Password":"Забули пароль","Incorrect username or password.":"Невірне імʼя користувача або пароль","Invalid password format":"Невірний формат паролю","Invalid phone number format":"Невірний формат номеру телефону","Loading...":"Загружаємо...","New Password":"Новий пароль","Resend a Code":"Відправити код повторно","Reset Password":"Скинути пароль","Sign Out":"Вийти","Sign Up with Amazon":"Зареєструватися з Amazon","Sign Up with Apple":"Зареєструватися з Apple","Sign Up with Facebook":"Зареєструватися з Facebook","Sign Up with Google":"Зареєструватися з Google","Sign Up":"Зареєструватися","User already exists":"Користувач вже існує","User does not exist":"Такий користувач не існує","Username cannot be empty":"Імʼя користувача не може бути пустим","Your passwords must match":"Паролі мають збігатися"},Vs={"Account recovery requires verified contact information":"การกู้คืนบัญชีต้องมีข้อมูลติดต่อที่ได้รับการยืนยันแล้ว","Add your Profile":"เพิ่มโปรไฟล์ของคุณ","Add your Website":"เพิ่มเว็บไซต์ของคุณ","Authenticator App (TOTP)":"แอปพลิเคชันยืนยันตัวตน (TOTP)","Back to Sign In":"กลับไปที่การเข้าสู่ระบบ","Change Password":"เปลี่ยนรหัสผ่าน",Changing:"กำลังเปลี่ยน",Code:"รหัส","Confirm Email Code":"ยืนยันรหัสอีเมล","Confirm Password":"ยืนยันรหัสผ่าน","Please confirm your Password":"กรุณายืนยันรหัสผ่านของคุณ","Confirm Sign Up":"ยืนยันการลงทะเบียน","Confirm SMS Code":"ยืนยันรหัส SMS","Confirm MFA Code":"ยืนยันรหัส MFA","Confirm TOTP Code":"ยืนยันรหัส TOTP",Confirm:"ยืนยัน","Confirmation Code":"รหัสยืนยัน",Confirming:"กำลังยืนยัน","Create a new account":"สร้างบัญชีใหม่","Create Account":"สร้างบัญชี","Creating Account":"กำลังสร้างบัญชี","Dismiss alert":"ปิดการแจ้งเตือน",Email:"อีเมล","Email Message":"ข้อความอีเมล","Enter your Birthdate":"กรอกวันเกิดของคุณ","Enter your code":"กรอกรหัสของคุณ","Enter your Confirmation Code":"กรอกรหัสยืนยันของคุณ","Enter your Email":"กรอกอีเมลของคุณ","Enter your Family Name":"กรอกนามสกุลของคุณ","Enter your Given Name":"กรอกชื่อของคุณ","Enter your Middle Name":"กรอกชื่อกลางของคุณ","Enter your Name":"กรอกชื่อของคุณ","Enter your Nickname":"กรอกชื่อเล่นของคุณ","Enter your Password":"กรอกรหัสผ่านของคุณ","Enter your email":"กรอกอีเมลของคุณ","Enter your phone number":"กรอกหมายเลขโทรศัพท์ของคุณ","Enter your Preferred Username":"กรอกชื่อผู้ใช้ที่ต้องการ","Enter your username":"กรอกชื่อผู้ใช้ของคุณ","Forgot password?":"ลืมรหัสผ่าน?","Forgot your password?":"ลืมรหัสผ่านใช่หรือไม่?","Hide password":"ซ่อนรหัสผ่าน","It may take a minute to arrive":"อาจใช้เวลาสักครู่",Loading:"กำลังโหลด","Multi-Factor Authentication":"การยืนยันตัวตนหลายขั้นตอน","Multi-Factor Authentication Setup":"ตั้งค่าการยืนยันตัวตนแบบหลายขั้นตอน","New password":"รหัสผ่านใหม่",or:"หรือ",Password:"รหัสผ่าน","Phone Number":"หมายเลขโทรศัพท์","Resend Code":"ส่งรหัสอีกครั้ง","Reset your Password":"รีเซ็ตรหัสผ่านของคุณ","Reset your password":"รีเซ็ตรหัสผ่านของคุณ","Select MFA Type":"เลือกประเภท MFA","Send code":"ส่งรหัส","Send Code":"ส่งรหัส",Sending:"กำลังส่ง","Setup Email":"ตั้งค่าอีเมล","Setup TOTP":"ตั้งค่า TOTP","Show password":"แสดงรหัสผ่าน","Sign in to your account":"เข้าสู่ระบบบัญชีของคุณ","Sign In with Amazon":"เข้าสู่ระบบด้วย Amazon","Sign In with Apple":"เข้าสู่ระบบด้วย Apple","Sign In with Facebook":"เข้าสู่ระบบด้วย Facebook","Sign In with Google":"เข้าสู่ระบบด้วย Google","Sign in":"เข้าสู่ระบบ","Sign In":"เข้าสู่ระบบ","Signing in":"กำลังเข้าสู่ระบบ",Skip:"ข้าม",Submit:"ส่ง",Submitting:"กำลังส่ง","Text Message (SMS)":"ข้อความตัวอักษร (SMS)",Username:"ชื่อผู้ใช้","Verify Contact":"ยืนยันการติดต่อ",Verify:"ยืนยัน","We Emailed You":"เราได้ส่งอีเมลถึงคุณแล้ว","We Sent A Code":"เราได้ส่งรหัสแล้ว","We Texted You":"เราได้ส่ง SMS ถึงคุณแล้ว","Your code is on the way. To log in, enter the code we emailed to":"รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยังอีเมล","Your code is on the way. To log in, enter the code we sent you":"รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งให้คุณ","Your code is on the way. To log in, enter the code we texted to":"รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยัง SMS","An account with the given email already exists.":"บัญชีที่ใช้อีเมลนี้มีอยู่แล้ว","Confirm a Code":"ยืนยันรหัส","Confirm Sign In":"ยืนยันการเข้าสู่ระบบ","Create account":"สร้างบัญชี","Sign Up with Facebook":"ลงทะเบียนด้วย Facebook","Sign Up with Google":"ลงทะเบียนด้วย Google","Sign Up with Apple":"ลงทะเบียนด้วย Apple","Sign Up with Line":"ลงทะเบียนด้วย Line","Forgot Password":"ลืมรหัสผ่าน","Have an account? ":"มีบัญชีอยู่แล้ว? ","Incorrect username or password":"ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง","Incorrect username or password.":"ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง","Invalid password format":"รูปแบบรหัสผ่านไม่ถูกต้อง","It may take a minute to arrive.":"อาจใช้เวลาสักครู่ในการมาถึง","Lost your code? ":"หารหัสไม่เจอ? ","New Password":"รหัสผ่านใหม่","No account? ":"ไม่มีบัญชี? ","Password attempts exceeded":"เกินจำนวนครั้งที่อนุญาตให้ใส่รหัสผ่าน","Reset password":"รีเซ็ตรหัสผ่าน","Reset Password":"รีเซ็ตรหัสผ่าน","Sign Out":"ออกจากระบบ","Sign Up":"ลงทะเบียน","User already exists":"ผู้ใช้นี้มีอยู่แล้ว","User does not exist":"ไม่มีผู้ใช้นี้","Username cannot be empty":"ต้องใส่ชื่อผู้ใช้งาน"},zs={ADD_PROFILE:"Add your Profile",ADD_WEBSITE:"Add your Website",BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Please confirm your Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_EMAIL:"Confirm Email Code",CONFIRM_MFA_DEFAULT:"Confirm MFA Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",EMAIL_OTP:"Email Message",ENTER_BIRTHDATE:"Enter your Birthdate",ENTER_CODE:"Enter your code",ENTER_CONFIRMATION_CODE:"Enter your Confirmation Code",ENTER_EMAIL:"Enter your Email",ENTER_FAMILY_NAME:"Enter your Family Name",ENTER_GIVEN_NAME:"Enter your Given Name",ENTER_MIDDLE_NAME:"Enter your Middle Name",ENTER_NAME:"Enter your Name",ENTER_NICK_NAME:"Enter your Nickname",ENTER_PASSWORD:"Enter your Password",ENTER_PHONE_NUMBER:"Enter your Phone Number",ENTER_PREFERRED_USERNAME:"Enter your Preferred Username",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",MFA_SETUP_SELECTION:"Multi-Factor Authentication Setup",MFA_SELECTION:"Multi-Factor Authentication",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SELECT_MFA_TYPE:"Select MFA Type",SETUP_EMAIL:"Setup Email",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SMS_MFA:"Text Message (SMS)",SUBMIT:"Submit",SUBMITTING:"Submitting",SOFTWARE_TOKEN_MFA:"Authenticator App (TOTP)",UPPERCASE_COPY:"COPY",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"},Ls={...ws},Gs={...Cs},js={...bs},Ws={...As},Hs={...Es},Ks={...Ts},Ys={...Is},ro={...Ps},qs={...ks},Js={...Ns},Zs={...Ms},Qs={...xs},Xs={...Us},el={...Fs},tl={...Os},nl={...Rs},rl={...$s},ol={...Ds},il={...Bs},al={...Vs},Vt={...zs},O={...Vt};function P(e){return ir.I18n.get(e)}const sl={de:Ls,en:Gs,es:js,fr:Ws,hu:Hs,id:tl,it:Ks,ja:Ys,kr:ro,ko:ro,nb:qs,nl:Js,pl:Zs,pt:Qs,zh:Xs,sv:el,tr:nl,ru:rl,he:ol,ua:il,th:al},lr=e=>{var o;const t=(o=e==null?void 0:e.context.config)==null?void 0:o.loginMechanisms,[r]=t??["username"];return r},ll=e=>{const t={...e};for(const[r,o]of Object.entries(e)){const{label:i,placeholder:a}=o;t[r]={...o,label:i?P(i):void 0,placeholder:a?P(a):void 0}}return t},cl=e=>Object.entries(e).sort((t,r)=>{const o=t[1].order||Number.MAX_VALUE,i=r[1].order||Number.MAX_VALUE;return o-i}).filter(t=>t[1]!==void 0),ul="+1",Ce=e=>{let t=vt[e];const{type:r}=t;return r==="tel"&&(t={...t,dialCode:ul}),t},an=e=>{const t=lr(e);return{...Ce(t),autocomplete:"username"}},zt=e=>({confirmation_code:{...Ce("confirmation_code"),label:"Code *",placeholder:"Code"}}),dl=e=>({username:{...an(e)},password:{...Ce("password"),autocomplete:"current-password"}}),fl=e=>{const{loginMechanisms:t,signUpAttributes:r}=e.context.config,o=lr(e),i=Array.from(new Set([...t,"password","confirm_password",...r])),a={};for(const s of i)if(ai(s)){const l=s===o?an(e):Ce(s);a[s]={...l}}else console.debug(`Authenticator does not have a default implementation for ${s}. Customize SignUp FormFields to add your own.`);return a},pl=e=>({confirmation_code:{...Ce("confirmation_code"),placeholder:"Enter your code"}}),ml=e=>{const t=lr(e),{label:r}=vt[t];return{username:{...an(e),label:`Enter your ${r.toLowerCase()}`,placeholder:`Enter your ${r.toLowerCase()}`}}},gl=e=>({...zt(),password:{...Ce("password"),label:"New Password",placeholder:"New Password"},confirm_password:{...Ce("confirm_password"),label:"Confirm Password",placeholder:"Confirm Password"}}),hl=e=>{const t=ar(e),{missingAttributes:r}=t.context,o=Array.from(new Set(["password","confirm_password",...r??[]])),i={};for(const a of o)ai(a)?i[a]={...Ce(a)}:console.debug(`Authenticator does not have a default implementation for ${a}. Customize ForceNewPassword FormFields to add your own.`);return i},yl=e=>({email:Ce("email")}),vl={signIn:dl,signUp:fl,confirmSignUp:pl,confirmSignIn:zt,forceNewPassword:hl,forgotPassword:ml,confirmResetPassword:gl,confirmVerifyUser:zt,setupEmail:yl,setupTotp:zt},_l=(e,t)=>{const r=vl[e];return r(t)},Sl=(e,t)=>{var o,i;const r=(i=(o=sr(t))==null?void 0:o.formFields)==null?void 0:i[e];return!r||Object.keys(r).length===0?{}:Object.entries(r).reduce((a,[s,l])=>{if((e==="signIn"||e==="forgotPassword")&&s==="username"){const u={...an(t),...l};return{...a,[s]:u}}else if(ds(s)){const u={...vt[s],...l};return{...a,[s]:u}}else return{...a,[s]:l}},{})},wl=(e,t)=>{const r=_l(e,t),o=Sl(e,t),i={...r,...o};return delete i.QR,ll(i)},Cl=e=>e.map(t=>{const r=t[0],o={...t[1],order:void 0};return[r,o]}),bl=(e,t)=>{const r=wl(e,t);return Cl(cl(r))},Al=e=>{switch(e){case"EMAIL_OTP":return P(O.CONFIRM_EMAIL);case"SMS_MFA":return P(O.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return P(O.CONFIRM_TOTP);default:return P(O.CONFIRM_MFA_DEFAULT)}},El=e=>{const{DeliveryMedium:t,Destination:r}=e??{},o=t==="EMAIL",i=t==="SMS",a=P(O.CODE_ARRIVAL);return o||i?`${P(o?O.CODE_EMAILED:O.CODE_TEXTED)} ${r}. ${a}.`:`${P(O.CODE_SENT)}. ${a}.`},Tl=e=>{const{DeliveryMedium:t}=e??{},r=t==="EMAIL";return P(!r&&t==="SMS"?O.WE_SENT_CODE:r?O.WE_EMAILED:O.WE_TEXTED)},Il={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},Pl=(e,t)=>P(`Sign ${e==="signIn"?"In":"Up"} with ${Il[t]}`),kl=e=>P(e==="MFA_SETUP"?O.MFA_SETUP_SELECTION:O.MFA_SELECTION),Nl=e=>{switch(e){case"EMAIL":return P(Vt.EMAIL_OTP);case"SMS":return P(Vt.SMS_MFA);case"TOTP":return P(Vt.SOFTWARE_TOKEN_MFA);default:return P(e)}},ie={getBackToSignInText:()=>P(O.BACK_SIGN_IN),getChangePasswordText:()=>P(O.CHANGE_PASSWORD),getChangingText:()=>P(O.CHANGING_PASSWORD),getConfirmText:()=>P(O.CONFIRM),getCopyText:()=>P(O.UPPERCASE_COPY),getOrText:()=>P(O.OR),getResendCodeText:()=>P(O.RESEND_CODE),getSendCodeText:()=>P(O.SEND_CODE),getSubmitText:()=>P(O.SUBMIT),getSignInTabText:()=>P(O.SIGN_IN_TAB),getSignUpTabText:()=>P(O.CREATE_ACCOUNT),getForgotPasswordText:e=>P(e?O.FORGOT_PASSWORD:O.FORGOT_YOUR_PASSWORD),getSigningInText:()=>P(O.SIGNING_IN_BUTTON),getSignInText:()=>P(O.SIGN_IN_BUTTON),getCreateAccountText:()=>P(O.CREATE_ACCOUNT),getDeliveryMessageText:El,getDeliveryMethodText:Tl,getChallengeText:Al,getResetYourPasswordText:()=>P(O.RESET_PASSWORD),getSetupEmailText:()=>P(O.SETUP_EMAIL),getCopiedText:()=>P("COPIED"),getSignInWithFederationText:Pl,getMfaTypeLabelByValue:Nl,getSelectMfaTypeByChallengeName:kl,getSelectMfaTypeText:()=>P(O.SELECT_MFA_TYPE),getSkipText:()=>P(O.SKIP),getVerifyText:()=>P(O.VERIFY),getVerifyContactText:()=>P(O.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>P(O.VERIFY_HEADING)};/*! *****************************************************************************
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),ir=require("aws-amplify/utils"),K=require("aws-amplify/auth"),x=require("@aws-amplify/core/internals/utils"),$a=require("aws-amplify"),ce=n.defineComponent({__name:"base-footer",setup(e){const t=n.useSlots();return(r,o)=>n.renderSlot(r.$slots,"footert",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("footer",n.normalizeProps(n.guardReactiveProps(r.$attrs)),[n.renderSlot(r.$slots,"default")],16)])}}),ue=n.defineComponent({__name:"base-form",setup(e){const t=n.useSlots();return(r,o)=>n.renderSlot(r.$slots,"formt",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("form",n.mergeProps({"data-amplify-form":""},r.$attrs),[n.renderSlot(r.$slots,"default")],16)])}}),sn=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},Ba={};function Va(e,t){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default")])}const X=sn(Ba,[["render",Va]]),za=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],ne=n.defineComponent({__name:"amplify-button",props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null,loading:{type:[Boolean,String]},disabled:{type:[Boolean,String]}},setup(e){const t=e,{type:r,fullWidth:o,size:i,variation:a,fontWeight:s}=n.toRefs(t);return(l,c)=>n.renderSlot(l.$slots,"buttont",n.normalizeProps(n.guardReactiveProps(l.$attrs)),()=>[n.createElementVNode("button",n.mergeProps({class:["amplify-button amplify-field-group__control",{[`amplify-button--${n.unref(a)}`]:n.unref(a),[`amplify-button--${n.unref(i)}`]:n.unref(i),"amplify-button--fullwidth":n.unref(o),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:n.unref(r),style:{fontWeight:n.unref(s)},"data-fullwidth":n.unref(o),"data-size":n.unref(i),"data-fontWeight":n.unref(s),"data-variation":n.unref(a),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},l.$attrs,{"data-amplify-button":""}),[n.renderSlot(l.$slots,"default")],16,za)])}}),ar=e=>{var t;return(t=e.context.actorRef)==null?void 0:t.getSnapshot()},sr=e=>{var t;return(t=ar(e))==null?void 0:t.context},La={category:x.Category.AI,apis:[x.AiAction.CreateConversation,x.AiAction.DeleteConversation,x.AiAction.ListConversations,x.AiAction.UpdateConversation,x.AiAction.OnMessage,x.AiAction.SendMessage,x.AiAction.Generation]},Ga={apis:[x.AuthAction.DeleteUser,x.AuthAction.UpdatePassword],category:x.Category.Auth},ja={apis:[x.AuthAction.SignUp,x.AuthAction.ConfirmSignUp,x.AuthAction.ResendSignUpCode,x.AuthAction.SignIn,x.AuthAction.ConfirmSignIn,x.AuthAction.FetchUserAttributes,x.AuthAction.SignOut,x.AuthAction.ResetPassword,x.AuthAction.ConfirmResetPassword,x.AuthAction.SignInWithRedirect],category:x.Category.Auth},Wa={apis:[x.StorageAction.UploadData],category:x.Category.Storage},Ha={apis:[x.InAppMessagingAction.NotifyMessageInteraction],category:x.Category.InAppMessaging},Ka={category:x.Category.Geo,apis:[x.GeoAction.SearchByText,x.GeoAction.SearchForSuggestions,x.GeoAction.SearchByPlaceId]},Ya={category:x.Category.Geo,apis:[]},qa={apis:[x.StorageAction.UploadData],category:x.Category.Storage},Ja={apis:[x.StorageAction.UploadData,x.StorageAction.Copy,x.StorageAction.GetUrl,x.StorageAction.List,x.StorageAction.Remove,x.StorageAction.GetDataAccess,x.StorageAction.ListCallerAccessGrants],category:x.Category.Storage};function yt(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function ni(e){return typeof e=="string"||typeof e=="object"&&Object.prototype.toString.call(e)==="[object String]"}function Za(e){return yt(e)&&Object.prototype.toString.call(e)==="[object Map]"}function Qa(e){return yt(e)&&Object.prototype.toString.call(e)==="[object Set]"}function ri(e){if(e==null)return!0;if(yt(e)&&(Za(e)||Qa(e)))return!e.size;if(yt(e)&&(ni(e)||Array.isArray(e)))return!e.length;for(const t in e)if(es(e,t))return!1;return!0}function Xa(e){return yt(e)&&ri(e)}function es(e,t){return e!=null&&Object.prototype.hasOwnProperty.call(e,t)}function to(e){return typeof e=="function"}function ts(...e){}const oi=({payload:e},t,r)=>{var c;const{data:o,event:i}=e,{send:a}=t,{onSignIn:s,onSignOut:l}=r??{};switch(i){case"signedIn":{to(s)&&s(e);break}case"signInWithRedirect":{a("SIGN_IN_WITH_REDIRECT");break}case"signedOut":{to(l)&&l(),a("SIGN_OUT");break}case"tokenRefresh_failure":{if(((c=o==null?void 0:o.error)==null?void 0:c.name)===x.AmplifyErrorCode.NetworkError)return;a("SIGN_OUT");break}}},ns=(e,t=oi)=>{const r=o=>t(o,e);return ir.Hub.listen("auth",r,"authenticator-hub-handler")},rs=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],vt={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"text",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:rs,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},os=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],is=(e,t)=>{if(t!=null&&t.matches("federatedSignIn")){if(e.matches("signUpActor"))return"signUp";if(e.matches("signInActor"))return"signIn"}switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(t==null?void 0:t.matches("confirmSignUp")):case(t==null?void 0:t.matches("resendSignUpCode")):return"confirmSignUp";case(t==null?void 0:t.matches("confirmSignIn")):return"confirmSignIn";case(t==null?void 0:t.matches("setupTotp.edit")):case(t==null?void 0:t.matches("setupTotp.submit")):return"setupTotp";case(t==null?void 0:t.matches("signIn.submit")):return(t==null?void 0:t.context.selectedAuthMethod)!=null?"signInSelectAuthFactor":"signIn";case(t==null?void 0:t.matches("signIn.selectMethod")):return"signInSelectAuthFactor";case(t==null?void 0:t.matches("passkeyPrompt")):return"passkeyPrompt";case(t==null?void 0:t.matches("signIn")):return"signIn";case(t==null?void 0:t.matches("signUp")):case(t==null?void 0:t.matches("autoSignIn")):return"signUp";case(t==null?void 0:t.matches("forceChangePassword")):return"forceNewPassword";case(t==null?void 0:t.matches("forgotPassword")):return"forgotPassword";case(t==null?void 0:t.matches("confirmResetPassword")):return"confirmResetPassword";case(t==null?void 0:t.matches("selectUserAttributes")):return"verifyUser";case(t==null?void 0:t.matches("confirmVerifyUserAttribute")):return"confirmVerifyUser";case(t==null?void 0:t.matches("setupEmail")):return"setupEmail";case(t==null?void 0:t.matches("selectMfaType")):return"selectMfaType";case e.matches("getCurrentUser"):case(t==null?void 0:t.matches("fetchUserAttributes")):return"transition";default:return null}},as=e=>{const t=r=>o=>e({type:r,data:o});return{initializeMachine:t("INIT"),resendCode:t("RESEND"),selectAuthMethod:t("SELECT_METHOD"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),toShowAuthMethods:t("SHOW_AUTH_METHODS"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toForgotPassword:t("FORGOT_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},ss=e=>{var A,T;const t=sr(e)??{},{allowedMfaTypes:r,availableAuthMethods:o,challengeName:i,codeDeliveryDetails:a,preferredChallenge:s,remoteError:l,selectedAuthMethod:c,validationError:u,totpSecretCode:d=null,unverifiedUserAttributes:m,username:f}=t,{socialProviders:p=[],loginMechanisms:g}=((A=e.context)==null?void 0:A.config)??{},y=g==null?void 0:g[0],w=(t==null?void 0:t.user)??((T=e.context)==null?void 0:T.user),h=!!(u&&Object.keys(u).length>0),S=ar(e),v=e.hasTag("pending")||(S==null?void 0:S.hasTag("pending")),_=is(e,S),C=(P=>{switch(P){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(_);return{allowedMfaTypes:r,authStatus:C,availableAuthMethods:o,challengeName:i,codeDeliveryDetails:a,error:l,hasValidationErrors:h,isPending:v,loginMechanism:y,preferredChallenge:s,route:_,selectedAuthMethod:c,socialProviders:p,totpSecretCode:d,unverifiedUserAttributes:m,user:w,username:f,validationErrors:u}},ls=({send:e,state:t})=>{const r=as(e),o=ss(t);return{...r,...o}};var Ln;(function(e){e.Apple="Apple",e.Amazon="Amazon",e.Facebook="Facebook",e.Google="Google"})(Ln||(Ln={}));var no;(function(e){e.Email="email",e.PhoneNumber="phone_number"})(no||(no={}));const cs=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],us=["username","email","phone_number"],ii=[...us,...cs,"confirmation_code","password","confirm_password"],ds=e=>ii.includes(e),de=e=>{const t=new FormData(e.target);return Object.fromEntries(t)},ai=e=>ii.includes(e),fs=e=>Array.isArray(e),ps=e=>e?fs(e)?e:[e]:null,ms=e=>{const t=e.trim().split("");for(let r=0;r<t.length;r++)r>0&&r<t.length-1&&(t[r]="*");return t.join("")},gs=e=>{if(e.length<4)return e;const t=e.split("");for(let r=0;r<t.length-4;r++)t[r]="*";return t.join("")},hs=e=>{const t=e.split("@");return`${ms(t[0])}@${t[1]}`},ys=(e,t)=>e==="Phone Number"?gs(t):hs(t),vs=e=>os.some(t=>e.includes(t)),Ss=(e,t,r)=>encodeURI(`otpauth://totp/${e}:${t}?secret=${r}&issuer=${e}`);function _s(e,...t){return Object.entries(e).reduce((r,[o,i])=>({...r,[o]:t.includes(o)?i:i==null?void 0:i.trim()}),{})}const ws={"Account recovery requires verified contact information":"Zurücksetzen des Accounts benötigt einen verifizierten Account","Add your Profile":"Ihr Profil hinzufügen","Add your Website":"Ihre Website hinzufügen","Authenticator App (TOTP)":"Authentifikator-App (TOTP)","Back to Sign In":"Zurück zur Anmeldung","Change Password":"Passwort ändern",Changing:"Ändern von",Code:"Code","Confirm Email Code":"E-Mail-Code bestätigen","Confirm Password":"Passwort bestätigen","Please confirm your Password":"Bitte bestätigen Sie Ihr Passwort","Confirm Sign Up":"Registrierung bestätigen","Confirm SMS Code":"SMS-Code bestätigen","Confirm TOTP Code":"TOTP-Code bestätigen",Confirm:"Bestätigen","Confirmation Code":"Bestätigungs-Code",Confirming:"Wird bestätigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",Email:"E-Mail","Email Message":"E-Mail-Nachricht","Enter your Birthdate":"Geben Sie Ihr Geburtsdatum ein","Enter your code":"Geben Sie Ihren Code ein","Enter your Confirmation Code":"Geben Sie Ihren Bestätigungs-Code ein","Enter your Email":"Geben Sie Ihre E-Mail ein","Enter your Family Name":"Geben Sie Ihren Nachnamen ein","Enter your Given Name":"Geben Sie Ihren Vornamen ein","Enter your Middle Name":"Geben Sie Ihren zweiten Vornamen ein","Enter your Name":"Geben Sie Ihren Namen ein","Enter your Nickname":"Geben Sie Ihren Spitznamen ein","Enter your Password":"Geben Sie Ihr Passwort ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your email":"Geben Sie Ihre E-Mail ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your Preferred Username":"Geben Sie Ihren bevorzugten Benutzernamen ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot password?":"Passwort vergessen?","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen","It may take a minute to arrive":"Es kann eine Minute dauern, bis er ankommt",Loading:"Wird geladen","Multi-Factor Authentication":"Multifaktor-Authentifizierung","Multi-Factor Authentication Setup":"Einrichtung der Multifaktor-Authentifizierung","New password":"Neues Passwort",or:"oder",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zurücksetzen des Passworts","Reset your password":"Zurücksetzen des passworts","Select MFA Type":"MFA-Typ auswählen","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup Email":"E-Mail einrichten","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"Überspringen",Submit:"Abschicken",Submitting:"Wird gesendet","Text Message (SMS)":"Textnachricht (SMS)",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","We Emailed You":"E-Mail wurde versendet","We Sent A Code":"Wir haben einen Code gesendet","We Texted You":"Wir haben Ihnen eine SMS gesendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir per E-Mail verschickt haben","Your code is on the way. To log in, enter the code we sent you":"Ihr Code ist unterwegs. Um sich anzumelden, geben Sie den Code ein, den wir Ihnen gesendet haben","Your code is on the way. To log in, enter the code we texted to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir per SMS verschickt haben","An account with the given email already exists.":"Ein Account mit dieser E-Mail existiert bereits.","Confirm a Code":"Code bestätigen","Confirm Sign In":"Anmeldung bestätigen","Create account":"Hier registrieren","Sign Up with Facebook":"Mit Facebook registrieren","Sign Up with Google":"Mit Google registrieren","Forgot Password":"Passwort vergessen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Incorrect username or password.":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ungültiges Passwort-Format","Invalid phone number format":"Ungültiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","It may take a minute to arrive.":"Es könnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Reset password":"Passwort zurücksetzen","Reset Password":"Passwort Zurücksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein"},Cs={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Add your Profile":"Add your Profile","Add your Website":"Add your Website","Authenticator App (TOTP)":"Authenticator App (TOTP)","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code","Confirm Email Code":"Confirm Email Code","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm MFA Code":"Confirm MFA Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Email Message":"Email Message","Enter your Birthdate":"Enter your Birthdate","Enter your code":"Enter your code","Enter your Confirmation Code":"Enter your Confirmation Code","Enter your Email":"Enter your Email","Enter your Family Name":"Enter your Family Name","Enter your Given Name":"Enter your Given Name","Enter your Middle Name":"Enter your Middle Name","Enter your Name":"Enter your Name","Enter your Nickname":"Enter your Nickname","Enter your Password":"Enter your Password","Enter your phone number":"Enter your phone number","Enter your Preferred Username":"Enter your Preferred Username","Enter your username":"Enter your username","Forgot password?":"Forgot password?","Forgot your password?":"Forgot your password?","Hide password":"Hide password","It may take a minute to arrive":"It may take a minute to arrive",Loading:"Loading","Multi-Factor Authentication":"Multi-Factor Authentication","Multi-Factor Authentication Setup":"Multi-Factor Authentication Setup","New password":"New password",or:"or",Password:"Password","Phone Number":"Phone Number","Please confirm your Password":"Please confirm your Password","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Select MFA Type":"Select MFA Type","Send code":"Send code","Send Code":"Send Code",Sending:"Sending","Setup Email":"Setup Email","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in to your account":"Sign in to your account","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"Sign in","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting","Text Message (SMS)":"Text Message (SMS)",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify","We Emailed You":"We Emailed You","We Sent A Code":"We Sent A Code","We Texted You":"We Texted You","Your code is on the way. To log in, enter the code we emailed to":"Your code is on the way. To log in, enter the code we emailed to","Your code is on the way. To log in, enter the code we sent you":"Your code is on the way. To log in, enter the code we sent you","Your code is on the way. To log in, enter the code we texted to":"Your code is on the way. To log in, enter the code we texted to"},bs={"Account recovery requires verified contact information":"La recuperación de la cuenta requiere información de contacto verificada","Authenticator App (TOTP)":"Aplicación de autenticación (TOTP)","Back to Sign In":"Volver a inicio de sesión","Cannot reset password for the user as there is no registered/verified email or phone_number":"No se puede restablecer la contraseña para el usuario debido a que no hay Email registrado / verificado o número de teléfono","Change Password":"Cambiar contraseña",Changing:"Cambiando",Code:"Código","Code *":"Código *","Confirm Email Code":"Confirmar el código de correo electrónico","Confirm Password":"Confirmar contraseña","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el código de SMS","Confirm TOTP Code":"Confirmar código TOTP",Confirm:"Confirmar","Confirmation Code":"Código de confirmación",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Email Message":"Mensaje de correo electrónico","Enter your code":"Ingrese el código","Enter your Email":"Escriba su Email","Enter your email":"Escriba su email","Enter your Password":"Escriba su Contraseña","Enter your phone number":"Ingrese el número de teléfono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"¿Olvidó su contraseña?","Hide password":"Ocultar contraseña","It may take a minute to arrive":"Es posible que tarde un minuto en llegar",Loading:"Cargando","Multi-Factor Authentication":"Autenticación multifactor","Multi-Factor Authentication Setup":"Configuración de autenticación multifactor","New password":"Nueva contraseña",or:"o",Password:"Contraseña","Phone Number":"Número de teléfono","Resend Code":"Reenviar código","Reset your password":"Restablecer su contraseña","Reset your Password":"Restablecer su Contraseña","Select MFA Type":"Seleccionar el tipo de MFA","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup Email":"Configurar correo electrónico","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contraseña","Sign in to your account":"Iniciar sesión en tu cuenta","Sign In with Amazon":"Iniciar Sesión con Amazon","Sign In with Apple":"Iniciar Sesión con Apple","Sign In with Facebook":"Iniciar Sesión con Facebook","Sign In with Google":"Iniciar Sesión con Google","Sign in":"Iniciar sesión","Sign In":"Iniciar Sesión","Signing in":"Iniciando sesión",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando","Text Message (SMS)":"Mensaje de texto (SMS)",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","We Emailed You":"Le hemos enviado un correo electrónico","We Sent A Code":"Hemos enviado un código","We Texted You":"Le hemos enviado un mensaje de texto","Your code is on the way. To log in, enter the code we emailed to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por correo electrónico a","Your code is on the way. To log in, enter the code we sent you":"El código está en camino. Para iniciar sesión, escriba el código que le hemos enviado","Your code is on the way. To log in, enter the code we texted to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por mensaje de texto a","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un código","Confirm Sign In":"Confirmar inicio de sesión","Forgot Password":"Olvidé mi contraseña","Incorrect username or password.":"Nombre de usuario o contraseña incorrecta","Enter your Family Name":"Escriba su apellido","Enter your Given Name":"Escriba su nombre","Given Name":"Nombre","Family Name":"Apellido","Reset Password":"Restablecer contraseña","Please confirm your Password":"Confirme su contraseña","Invalid password format":"Formato de contraseña inválido","Invalid phone number format":"Formato de número de teléfono inválido","Loading...":"Cargando...","New Password":"Nueva contraseña","Resend a Code":"Reenviar un código","Sign Out":"Cerrar sesión","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist.":"El usuario no existe","Username/client id combination not found.":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vacío","Your passwords must match":"Las contraseñas deben coincidir","Password must have at least 8 characters":"La contraseña debe tener al menos 8 caracteres","Password must have upper case letters":"La contraseña debe tener al menos un carácter en mayúscula","Password must have numbers":"La contraseña debe tener al menos un carácter numérico","Password must have special characters":"La contraseña debe tener al menos un símbolo","Password must have lower case letters":"La contraseña debe tener al menos un carácter en minúsculas","Invalid verification code provided, please try again.":"Código de verificación no válido, inténtelo de nuevo.","Attempt limit exceeded, please try after some time.":"Número máximo de intentos excedido, por favor inténtelo de nuevo más tarde.","A network error has occurred.":"Se ha producido un error de red."},As={"Account recovery requires verified contact information":"La récupération du compte nécessite des informations de contact vérifiées","Authenticator App (TOTP)":"Application d’authentification (TOTP)","Back to Sign In":"Retour à la connexion","Cannot reset password for the user as there is no registered/verified email or phone_number":"Impossible de réinitialiser le mot de passe pour l'utilisateur car il n'a pas d'adresse e-mail ou de numéro de téléphone enregistré / vérifié","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Email Code":"Confirmer le code e-mail","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Créer un nouveau compte","Create Account":"Créer un compte","Creating Account":"Création d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Email Message":"Message de l’e-mail","Enter your code":"Saisissez cotre code de confirmation","Enter your Email":"Saisissez votre adresse e-mail","Enter your email":"Saisissez votre adresse e-mail","Enter your phone number":"Saisissez votre numéro de téléphone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oublié ? ","Hide password":"Masquer le mot de passe","It may take a minute to arrive":"Cela peut prendre une minute",Loading:"Chargement en cours","Multi-Factor Authentication":"Authentification multifactorielle","Multi-Factor Authentication Setup":"Configuration de l’authentification multifactorielle","New password":"Nouveau mot de passe",or:"ou",Password:"Mot de passe","Phone Number":"Numéro de téléphone","Resend Code":"Renvoyer le code","Reset your Password":"Réinitialiser votre mot de passe","Reset your password":"Réinitialisez votre mot de passe","Select MFA Type":"Sélectionner le type de MFA","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup Email":"E-mail de configuration","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion à votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours","Text Message (SMS)":"Message texte (SMS)",Username:"Nom d'utilisateur","Verify Contact":"Vérifier le contact",Verify:"Vérifier","We Sent A Code":"Nous avons envoyé un code","We Texted You":"Nous vous avons envoyé un SMS","Your code is on the way. To log in, enter the code we sent you":"Votre code est en cours d'envoi. Pour vous connecter, saisissez le code que nous vous avons envoyé","Add your Profile":"Ajoutez votre profil","Add your Website":"Ajoutez votre site web","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe déjà.",Birthdate:"Date de naissance",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Créer un compte","Enter your Birthdate":"Saisissez votre date de naissance","Enter your Confirmation Code":"Saisissez votre code de confirmation","Enter your Family Name":"Saisissez votre nom de famille","Enter your Given Name":"Saisissez votre prénom","Enter your Middle Name":"Saisissez votre deuxième prénom","Enter your Name":"Saisissez votre nom","Enter your Nickname":"Saisissez votre surnom","Enter your Password":"Saisissez votre mot de passe","Enter your Phone Number":"Saisissez votre numéro de téléphone","Enter your Preferred Username":"Saisissez votre nom d'utilisateur","Enter your password":"Saisissez votre mot de passe","Given Name":"Prénom","Family Name":"Nom de famille","Forgot Password":"Mot de passe oublié","Forgot Password?":"Mot de passe oublié ?","Incorrect username or password":"Identifiant ou mot de passe incorrect","Incorrect username or password.":"Identifiant ou mot de passe incorrect.","Have an account? ":"Déjà un compte ? ",Hello:"Bonjour","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de numéro de téléphone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur réseau","New Password":"Nouveau mot de passe",Name:"Nom","No account? ":"Pas de compte ? ","Please confirm your Password":"Confirmez votre mot de passe","Preferred Username":"Nom d'utilisateur préféré",Profile:"Profil","Resend a Code":"Renvoyer un code","Reset password":"Réinitialiser le mot de passe","Reset Password":"Réinitialiser le mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"Déconnexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe déjà","User does not exist.":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit être renseigné","Username/client id combination not found.":"L'utilisateur n'existe pas","We Emailed You":"Nous vous avons envoyé un code","Your code is on the way. To log in, enter the code we emailed to":"Votre code est en route. Pour vous connecter entrez le code reçu sur cette adresse email","Your code is on the way. To log in, enter the code we texted to":"Votre code est en route. Pour vous connecter entrez le code reçu sur ce numéro de téléphone","Your passwords must match":"Vos mots de passe doivent être identiques","It may take a minute to arrive.":"Cela peut prendre quelques minutes.",Website:"Site web","Password must have at least 8 characters":"Le mot de passe doit comporter au moins 8 caractères","Password must have upper case letters":"Le mot de passe doit comporter des caractères majuscules","Password must have numbers":"Le mot de passe doit comporter des caractères numériques","Password must have special characters":"Le mot de passe doit comporter des symboles","Password must have lower case letters":"Le mot de passe doit comporter des caractères minuscules","Invalid verification code provided, please try again.":"Code de vérification invalide, veuillez réessayer.","Attempt limit exceeded, please try after some time.":"Nombre maximum de tentatives dépassé, veuillez réessayer plus tard.","A network error has occurred.":"Une erreur de réseau s'est produite."},Es={"A network error has occurred.":"Hálózati hiba történt.","Account recovery requires verified contact information":"A fiók helyreállításához hitelesített kapcsolattartási adatok szükségesek","Add your Profile":"Profil hozzáadása","Add your Website":"Weboldal hozzáadása","An account with the given email already exists.":"Ezzel az e-mail címmel már létezik fiók.","Attempt limit exceeded, please try after some time.":"Próbálkozási limit túllépve, kérjük próbálja újra később.","Authenticator App (TOTP)":"Hitelesítő alkalmazás (TOTP)","Back to Sign In":"Vissza a bejelentkezéshez",Birthdate:"Születési dátum","Change Password":"Jelszó módosítása",Changing:"Módosítás",Code:"Kód",Confirm:"Megerősítés","Confirm a Code":"Kód megerősítése","Confirm Email Code":"E-mail kód megerősítése","Confirm MFA Code":"MFA kód megerősítése","Confirm Password":"Jelszó megerősítése","Confirm Sign In":"Bejelentkezés megerősítése","Confirm Sign Up":"Regisztráció megerősítése","Confirm SMS Code":"SMS kód megerősítése","Confirm TOTP Code":"TOTP kód megerősítése","Confirmation Code":"Megerősítő kód",Confirming:"Megerősítés","Create a new account":"Új fiók létrehozása","Create Account":"Fiók létrehozása","Create account":"Fiók létrehozása","Creating Account":"Fiók létrehozása","Dismiss alert":"Figyelmeztetés ignorálása",Email:"E-mail","Email Message":"E-mail üzenet","Enter your Birthdate":"Adja meg a születési dátumát","Enter your code":"Adja meg a kódot","Enter your Confirmation Code":"Adja meg a megerősítő kódot","Enter your email":"Adja meg az e-mail címét","Enter your Email":"Adja meg az e-mail címét","Enter your Family Name":"Adja meg a vezetéknevét","Enter your Given Name":"Adja meg a keresztnevét","Enter your Middle Name":"Adja meg második keresztnevét (ha van)","Enter your Name":"Adja meg a nevét","Enter your Nickname":"Adja meg a becenevét","Enter your password":"Adja meg a jelszavát","Enter your Password":"Adja meg a jelszavát","Enter your phone number":"Adja meg a telefonszámát","Enter your Phone Number":"Adja meg a telefonszámát","Enter your Preferred Username":"Adja meg a preferált felhasználónevét","Enter your username":"Adja meg a felhasználónevét","Enter your Username":"Adja meg a felhasználónevét","Family Name":"Vezetéknév","Forgot Password":"Elfelejtett jelszó","Forgot password?":"Elfelejtette a jelszavát?","Forgot your password?":"Elfelejtette a jelszavát?","Given Name":"Keresztnév","Have an account? ":"Van már fiókja? ",Hello:"Üdvözöljük","Hide password":"Jelszó elrejtése","Incorrect username or password":"Helytelen felhasználónév vagy jelszó","Incorrect username or password.":"Helytelen felhasználónév vagy jelszó.","Invalid password format":"Érvénytelen jelszó formátum","Invalid phone number format":"Érvénytelen telefonszám formátum","It may take a minute to arrive":"Egy percet igénybe vehet, amíg megérkezik","It may take a minute to arrive.":"Egy percet igénybe vehet, amíg megérkezik.",Loading:"Betöltés","Loading...":"Betöltés...","Lost your code? ":"Elvesztette a kódot? ","Middle Name":"Második keresztnév","Multi-Factor Authentication":"Többfaktoros hitelesítés","Multi-Factor Authentication Setup":"Többfaktoros hitelesítés felállítása",Name:"Név","Network error":"Hálózati hiba","New Password":"Új jelszó","New password":"Új jelszó",Nickname:"Becenév","No account? ":"Nincs még fiókja? ",or:"vagy",Password:"Jelszó","Password attempts exceeded":"Jelszó próbálkozási limit túllépve","Password did not conform with policy":"A jelszónak tartalmaznia kell kisbetűket","Password must have lower case letters":"A jelszónak tartalmaznia kell kisbetűket","Password must have numbers":"A jelszónak tartalmaznia kell számokat","Password must have special characters":"A jelszónak tartalmaznia kell szimbólumokat","Password must have upper case letters":"A jelszónak tartalmaznia kell nagybetűket","Password not long enough":"Jelszó nem elég hosszú","Password must have at least 8 characters":"A jelszónak legalább 8 karakterből kell állnia","Phone Number":"Telefonszám","Please confirm your Password":"Kérjük, erősítse meg a jelszavát","Preferred Username":"Preferált felhasználónév",Profile:"Profil","Resend a Code":"Kód újraküldése","Resend Code":"Kód újraküldése","Reset Password":"Új jelszó felállítása","Reset password":"Új jelszó felállítása","Reset your password":"Új jelszó felállítása","Reset your Password":"Új jelszó felállítása","Select MFA Type":"MFA típus kiválasztása",Send:"Küldés","Send code":"Kód küldése","Send Code":"Kód küldése",Sending:"Küldés","Setup Email":"E-mail cím beállítása","Setup TOTP":"TOTP beállítása","Show password":"Jelszó megjelenítése","Sign In":"Bejelentkezés","Sign in":"Bejelentkezés","Sign in to your account":"Jelentkezzen be a fiókjába","Sign In with Amazon":"Bejelentkezés Amazon-nal","Sign In with Apple":"Bejelentkezés Apple-lel","Sign In with AWS":"Bejelentkezés AWS-sel","Sign In with Facebook":"Bejelentkezés Facebook-kal","Sign In with Google":"Bejelentkezés Google-lal","Sign out":"Kijelentkezés","Sign Out":"Kijelentkezés","Sign up":"Regisztráció","Sign Up":"Regisztráció","Sign Up with Amazon":"Regisztráció Amazon-nal","Sign Up with Apple":"Regisztráció Apple-lel","Sign Up with Facebook":"Regisztráció Facebook-kal","Sign Up with Google":"Regisztráció Google-lal","Signing in":"Bejelentkezés",Skip:"Kihagyás",SMS:"SMS",Submit:"Küldés",Submitting:"Küldés","Text Message (SMS)":"SMS üzenet","User already exists":"A felhasználó már létezik","User does not exist":"Felhasználó nem található","User is disabled.":"A felhasználó le van tiltva.",Username:"Felhasználónév","Username cannot be empty":"A felhasználónév mező nem lehet üres","Username/client id combination not found.":"Felhasználónév/kliens azonosító kombináció nem található.",Verify:"Ellenőrzés","Verify Contact":"Kapcsolat ellenőrzése","We Emailed You":"Küldtünk Önnek egy e-mailt","We Sent A Code":"Küldtünk Önnek egy kódot","We Texted You":"Küldtünk Önnek egy SMS-t",Website:"Weboldal","Your code is on the way. To log in, enter the code we emailed to":"A bejelentkezéshez szükséges kód küldése folyamatban van, amelyet a következő e-mail címre küldtünk:","Your code is on the way. To log in, enter the code we sent you":"A bejelentkezéshez szükséges kód küldése folyamatban van","Your code is on the way. To log in, enter the code we texted to":"A bejelentkezéshez szükséges kód küldése folyamatban van, amelyet SMS-ben küldtünk a következő számra:","Your passwords must match":"A jelszavaknak meg kell egyezniük"},Ts={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Authenticator App (TOTP)":"App di autenticazione (TOTP)","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Email Code":"Conferma codice e-mail","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Ignora l'avviso",Email:"Email","Email Message":"Messaggio e-mail","Enter your code":"Inserisci il tuo codice","Enter your Email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password","It may take a minute to arrive":"L'arrivo potrebbe richiedere qualche minuto",Loading:"Caricamento in corso","Multi-Factor Authentication":"Autenticazione a più fattori","Multi-Factor Authentication Setup":"Configurazione dell'autenticazione a più fattori","New password":"Nuova password",or:"oppure",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Invia nuovamente il codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Select MFA Type":"Seleziona il tipo di MFA","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup Email":"Configura l'e-mail","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accedi","Sign In":"Accedi","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso","Text Message (SMS)":"Messaggio di testo (SMS)",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","We Emailed You":"Ti abbiamo inviato un'e-mail","We Sent A Code":"Ti abbiamo inviato un codice","We Texted You":"Ti abbiamo inviato un SMS","Your code is on the way. To log in, enter the code we emailed to":"Il codice è in arrivo. Per effettuare l'accesso, immetti il codice che ti abbiamo inviato via e-mail","Your code is on the way. To log in, enter the code we sent you":"Il codice è in arrivo. Per accedere, immetti il codice che ti abbiamo inviato","Your code is on the way. To log in, enter the code we texted to":"Il codice è in arrivo. Per accedere, immetti il codice che abbiamo inviato tramite SMS","An account with the given email already exists.":"Questa email è già utilizzata da un altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot Password?":"Password dimenticata?","Have an account? ":"Già registrato?","Incorrect username or password":"Nome utente o password errati","Incorrect username or password.":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your code?":"Codice smarrito?","New Password":"Nuova password","No account? ":"Non hai un account?","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti è stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente già esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non può essere vuoto"},Is={"Account recovery requires verified contact information":"アカウントの復旧には確認済みの連絡先が必要です","Authenticator App (TOTP)":"認証アプリ (TOTP)","Back to Sign In":"サインインに戻る","Change Password":"パスワードを変える ",Changing:"変更中",Code:"コード","Confirm Email Code":"E メールコードを確認","Confirm Password":"パスワードの確認","Confirm Sign Up":"登録する","Confirm SMS Code":"SMS コードを確認","Confirm TOTP Code":"TOTP コードを確認",Confirm:"確定","Confirmation Code":"確認コード",Confirming:"確認中","Create a new account":"新しいアカウントを作る","Create Account":"アカウントを作る","Creating Account":"アカウントの作成中","Dismiss alert":"アラートを閉じる",Email:"メールアドレス","Email Message":"E メールメッセージ","Enter your code":"コードを入力","Enter your Email":"メールアドレスを入力","Enter your phone number":"電話番号を入力","Enter your username":"ユーザー名を入力 ","Enter your Username":"ユーザー名を入力 ","Forgot your password?":"パスワードを忘れましたか? ","Hide password":"パスワードを非表示","It may take a minute to arrive":"到着するまでに 1 分かかることがあります",Loading:"ロード中","Multi-Factor Authentication":"多要素認証","Multi-Factor Authentication Setup":"多要素認証のセットアップ","New password":"新しいパスワード",or:"又は",Password:"パスワード ","Phone Number":"電話番号","Resend Code":"コードを再送信","Reset your Password":"パスワードをリセット","Reset your password":"パスワードをリセットする","Select MFA Type":"MFA タイプを選択","Send code":"コードを送信","Send Code":"コードを送信",Sending:"送信中","Setup Email":"E メールをセットアップ","Setup TOTP":"TOTP をセットアップ","Show password":"パスワードを表示","Sign in to your account":"アカウントにサインイン ","Sign In with Amazon":"Amazonでサインイン","Sign In with Apple":"Apple でサインイン","Sign In with Facebook":"Facebookでサインイン","Sign In with Google":"Googleでサインイン","Sign In":"サインイン ","Sign in":"サインイン","Signing in":"サインイン中",Skip:"スキップ",Submit:"送信",Submitting:"送信中","Text Message (SMS)":"テキストメッセージ (SMS)",Username:"ユーザー名 ","Verify Contact":"連絡先を確認",Verify:"確認","We Sent A Code":"コードが送信されました","We Texted You":"テキストが送信されました","Your code is on the way. To log in, enter the code we sent you":"コードが途中です。ログインするには、送信したコードを入力してください","An account with the given email already exists.":"入力されたメールアドレスのアカウントが既に存在します","Confirm a Code":"コードを確認","Confirm Sign In":"サインインする","Create account":"アカウントを作る ","Enter your password":"パスワードを入力 ","Enter your Password":"パスワードを入力","Please confirm your Password":"パスワードを入力","Forgot Password":"パスワードを忘れた ","Have an account? ":"アカウントを持っていますか?","Incorrect username or password":"ユーザー名かパスワードが異なります ","Incorrect username or password.":"ユーザー名かパスワードが異なります ","Invalid password format":"パスワードの形式が無効です ","Invalid phone number format":`不正な電話番号の形式です。
2
+ +12345678900 の形式で入力してください`,"It may take a minute to arrive.":"コードを受信するまで数分かかる場合があります。","Lost your code? ":"コードを失くしましたか?","New Password":"新しいパスワード","No account? ":"アカウントが無いとき ","Password attempts exceeded":"サインインの試行回数が上限に達しました","Reset password":"パスワードをリセット ","Reset Password":"パスワードをリセット","Sign Out":"サインアウト ","Sign Up":"登録 ","User already exists":"既にユーザーが存在しています ","User does not exist":"ユーザーが存在しません ","Username cannot be empty":"ユーザー名は入力必須です","We Emailed You":"コードを送信しました","Your code is on the way. To log in, enter the code we emailed to":"ログインするには、メールに記載されたコードを入力してください。送信先:","Your code is on the way. To log in, enter the code we texted to":"ログインするには、テキストメッセージに記載されたコードを入力してください。送信先:"},Ps={"Account recovery requires verified contact information":"계정 복구를 위해 연락처 확인이 필요합니다","Authenticator App (TOTP)":"인증 앱(TOTP)","Back to Sign In":"로그인으로 돌아가기","Change Password":"비밀번호 변경하기",Changing:"변경중",Code:"코드","Confirm Email Code":"이메일 코드 확인","Confirm Password":"비밀번호 재확인","Confirm Sign Up":"회원가입 확인","Confirm SMS Code":"휴대폰 본인 확인","Confirm TOTP Code":"TOTP 인증번호 확인",Confirm:"확인","Confirmation Code":"인증번호",Confirming:"확인중","Create a new account":"회원가입","Create Account":"회원가입","Creating Account":"회원가입중","Dismiss alert":"알림 무시",Email:"이메일","Email Message":"이메일 메시지","Enter your Birthdate":"생년월일 입력","Enter your code":"인증번호를 입력해주세요","Enter your Confirmation Code":"확인 코드 입력","Enter your Email":"이메일 입력","Enter your Family Name":"성 입력","Enter your Given Name":"사용장 이름 입력","Enter your Name":"이름 입력","Enter your Nickname":"닉네임 입력","Enter your Password":"비밀번호 입력","Enter your phone number":"전화번호 입력","Enter your Preferred Username":"선호하는 아이디 입력","Enter your username":"아이디를 입력해주세요","Forgot password?":"비밀번호를 잊으셨나요?","Hide password":"비밀번호 숨기기","It may take a minute to arrive":"도착하는 데 1분 정도 걸릴 수 있습니다",Loading:"로딩중","Multi-Factor Authentication":"다중 인증","Multi-Factor Authentication Setup":"다중 인증 설정","New password":"새 비밀번호",or:"또는",Password:"비밀번호","Phone Number":"전화번호","Please confirm your Password":"비밀번호를 확인해 주세요.","Resend Code":"인증번호 재전송","Reset your password":"비밀번호 재설정","Reset your Password":"비밀번호 재설정","Select MFA Type":"MFA 유형 선택","Send code":"인증코드 보내기","Send Code":"코드 전송",Sending:"전송중","Setup Email":"이메일 설정","Setup TOTP":"TOTP 설정하기","Show password":"비밀번호 보이기","Sign in to your account":"로그인","Sign In with Amazon":"Amazon 로그인","Sign In with Apple":"Apple 로그인","Sign In with Facebook":"Facebook 로그인","Sign In with Google":"Google 로그인","Sign in":"로그인","Sign In":"로그인","Signing in":"로그인중",Skip:"다음에 하기",Submit:"확인",Submitting:"확인중","Text Message (SMS)":"문자 메시지(SMS)",Username:"아이디","Verify Contact":"연락처 확인",Verify:"인증","We Emailed You":"이메일을 보냄","We Sent A Code":"코드를 보냄","We Texted You":"문자 메시지를 보냄","Your code is on the way. To log in, enter the code we emailed to":"코드가 전송 중입니다. 로그인하려면 이메일로 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we sent you":"코드가 전송 중입니다. 로그인하려면 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we texted to":"코드가 전송 중입니다. 로그인하려면 문자 메시지로 전송한 코드를 입력하세요",Birthdate:"생년월일","Family Name":"성","Forgot your password?":"비밀번호를 잊으셨나요?","Given Name":"이름",Name:"성함",Nickname:"닉네임","Preferred Username":"닉네임",Profile:"프로필","Reset Password":"비밀번호 재설정",Website:"웹사이트"},ks={"Account recovery requires verified contact information":"Gjenoppretting av konto krever verifisert kontaktinformajson","Add your Profile":"Legg til profilen din","Add your Website":"Legg til nettsiden din","Authenticator App (TOTP)":"Autentiseringsapp (TOTP)","Back to Sign In":"Tilbake til innlogging","Change Password":"Bytt passord",Changing:"Endre",Code:"Kode","Confirm Email Code":"Bekreft e-postkode","Confirm Password":"Bekreft passordet","Confirm Sign Up":"Bekreft registrering","Confirm SMS Code":"Bekreft SMS-kode","Confirm TOTP Code":"Bekreft TOTP-kode",Confirm:"Bekreft","Confirmation Code":"Bekreftelseskode",Confirming:"Bekrefter","Create a new account":"Opprett en ny konto","Create Account":"Opprett konto","Creating Account":"Oppretter konto","Dismiss alert":"Avvis varsel",Email:"E-post","Email Message":"E-postmelding","Enter your Birthdate":"Skriv inn fødselsdatoen din","Enter your code":"Skriv inn koden din","Enter your Confirmation Code":"Skriv inn bekreftelseskoden din","Enter your Email":"Skriv inn e-postadressen din","Enter your Family Name":"Skriv inn etternavnet ditt","Enter your Given Name":"Skriv inn fornavnet ditt","Enter your Middle Name":"Skriv inn mellomnavnet ditt","Enter your Name":"Skriv inn navnet ditt","Enter your Nickname":"Skriv inn kallenavnet ditt","Enter your Password":"Skriv inn passordet ditt","Enter your phone number":"Skriv inn telefonnummeret ditt","Enter your Preferred Username":"Skriv inn det foretrukne brukernavnet ditt","Enter your username":"Skriv inn brukernavnet ditt","Forgot password?":"Glemt passord?","Forgot your password?":"Glemt passordet ditt?","Hide password":"Skjul passordet","It may take a minute to arrive":"Det kan ta et minutt for å komme frem",Loading:"Laster inn","Multi-Factor Authentication":"Flerfaktorautentisering","Multi-Factor Authentication Setup":"Oppsett av flerfaktorautentisering","New password":"Nytt passord",or:"eller",Password:"Passord","Phone Number":"Telefonnummer","Please confirm your Password":"Vennligst bekreft passordet ditt","Resend Code":"Send koden på nytt","Reset your password":"Nullstill passordet ditt","Reset your Password":"Nullstill passordet ditt","Select MFA Type":"Velg MFA-type","Send code":"Send kode","Send Code":"Send kode",Sending:"Sender","Setup Email":"Konfigurer e-post","Setup TOTP":"Konfigurer TOTP","Show password":"Vis passordet","Sign in to your account":"Logg inn på kontoen din","Sign In with Amazon":"Logg inn med Amazon","Sign In with Apple":"Logg inn med Apple","Sign In with Facebook":"Logg inn med Facebook","Sign In with Google":"Logg inn med Google","Sign in":"Logg inn","Sign In":"Logg inn","Signing in":"Logger inn",Skip:"Hopp over",Submit:"Send inn",Submitting:"Sender inn","Text Message (SMS)":"Tekstmelding (SMS)",Username:"Brukernavn","Verify Contact":"Bekreft kontakt",Verify:"Bekreft","We Emailed You":"Vi sendte deg en e-post","We Sent A Code":"Vi sendte en kode","We Texted You":"Vi sendte deg en tekstmelding","Your code is on the way. To log in, enter the code we emailed to":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte e-post til","Your code is on the way. To log in, enter the code we sent you":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte deg","Your code is on the way. To log in, enter the code we texted to":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte tekstmelding til","An account with the given email already exists.":"Det finnes allerede en konto med denne e-postadressen","Confirm a Code":"Bekreft koden","Confirm Sign In":"Bekreft innlogging","Create account":"Opprett konto","Enter your password":"Skriv inn passordet ditt","Forgot Password":"Glemt passordet","Have an account? ":"Har en konto allerede? ","Incorrect username or password":"Feil brukernavn eller passord","Incorrect username or password.":"Feil brukernavn eller passord","Invalid password format":"Ugyldig passordformat","Invalid phone number format":"Ugyldig telefonnummerformat","Lost your code? ":"Mistet koden? ","New Password":"Nytt passord","No account? ":"Ingen konto? ","Password attempts exceeded":"For mange mislykkede passordforsøk","Reset password":"Nullstill passord","Sign Out":"Logg ut","Sign Up":"Registrering","User already exists":"Brukeren finnes allerede","User does not exist":"Brukeren finnes ikke","Username cannot be empty":"Brukernavnet kan ikke være tomt"},Ns={"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Authenticator App (TOTP)":"Authenticator-app (TOTP)","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Email Code":"E-mailcode bevestigen","Confirm Password":"Bevestig Wachtwoord","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Email Message":"E-mailbericht","Enter your code":"Vul je code in","Enter your Email":"Vul je e-mail in","Enter your Password":"Vul je wachtwoord in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Enter your Username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord","It may take a minute to arrive":"Het kan even duren voordat deze aankomt",Loading:"Laden","Multi-Factor Authentication":"Multi-Factor Authentication","Multi-Factor Authentication Setup":"Multi-Factor Authentication instellen","New password":"Nieuw wachtwoord","New Password":"Nieuw Wachtwoord",or:"of",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Please confirm your Password":"Bevestig je wachtwoord","Resend Code":"Verstuur code nogmaals","Reset Password":"Wachtwoord resetten","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Select MFA Type":"MFA-type kiezen","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup Email":"E-mailadres instellen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd","Text Message (SMS)":"Tekstbericht (sms)",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer","We Emailed You":"We hebben u een e-mail gestuurd","We Sent A Code":"We hebben een code gestuurd","We Texted You":"We hebben u een sms gestuurd","Your code is on the way. To log in, enter the code we emailed to":"Uw code is onderweg. Om in te loggen, voer de code in die we gemaild hebben naar","Your code is on the way. To log in, enter the code we sent you":"Uw code is onderweg. Om in te loggen, voer de code in die we u hebben gestuurd","Your code is on the way. To log in, enter the code we texted to":"Uw code is onderweg. Om in te loggen, voer de code in die we hebben gestuurd naar","Your passwords must match":"Je wachtwoorden moeten overeenkomen"},Ms={"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Authenticator App (TOTP)":"Aplikacja uwierzytelniania (TOTP)","Back to Sign In":"Powrót do logowania","Change Password":"Zmień hasło",Changing:"Zmienianie",Code:"Kod","Confirm Email Code":"Potwierdź kod e-mail","Confirm Password":"Potwierdź Hasło","Confirm Sign Up":"Potwierdź rejestrację","Confirm SMS Code":"Potwierdź kod SMS","Confirm TOTP Code":"Potwierdź hasło jednorazowe",Confirm:"Potwierdź","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create a new account":"Utwórz nowe konto","Create Account":"Utwórz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzuć alert",Email:"E-mail","Email Message":"Wiadomość e-mail","Enter your code":"Wprowadź swój kod","Enter your Email":"Wpisz swój adres e-mail","Enter your phone number":"Wpisz swój numer telefonu","Enter your username":"Wprowadź swoją nazwę użytkownika","Forgot your password?":"Zapomniałeś hasła? ","Hide password":"Ukryj hasło","It may take a minute to arrive":"Może to chwilę potrwać",Loading:"Ładowanie","Multi-Factor Authentication":"Uwierzytelnianie wieloskładnikowe","Multi-Factor Authentication Setup":"Konfigurowanie uwierzytelniania wieloskładnikowego","New password":"Nowe hasło",or:"albo",Password:"Hasło","Phone Number":"Numer telefonu","Resend Code":"Wyślij kod ponownie","Reset your password":"Zresetuj swoje hasło","Reset your Password":"Zresetuj swoje hasło","Select MFA Type":"Wybierz typ MFA","Send code":"Wyślij kod","Send Code":"Zresetuj hasło",Sending:"Wysyłanie","Setup Email":"Konfiguracja poczty e-mail","Setup TOTP":"Konfiguruj TOTP","Show password":"Pokaż hasło","Sign in to your account":"Zaloguj się na swoje konto","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign In":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomiń",Submit:"Wyślij",Submitting:"Wysyłanie","Text Message (SMS)":"Wiadomość tekstowa (SMS)",Username:"Nazwa użytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imię","Middle Name":"Drugie imię",Name:"Imię i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa użytkownika",Profile:"Profil",Website:"Strona internetowa","We Emailed You":"Wysłaliśmy Ci wiadomość e-mail","We Sent A Code":"Wysłaliśmy kod","We Texted You":"Wysłaliśmy Ci wiadomość SMS","Your code is on the way. To log in, enter the code we emailed to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany na adres e-mail","Your code is on the way. To log in, enter the code we sent you":"Twój kod został wysłany. Aby się zalogować, wprowadź wysłany do Ciebie kod","Your code is on the way. To log in, enter the code we texted to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany do Ciebie w wiadomości SMS pod numer"},xs={"Account recovery requires verified contact information":"A recuperação da conta requer informações de contato verificadas","Authenticator App (TOTP)":"Aplicativo autenticador (TOTP)","Add your Profile":"Adicione seu Perfil","Add your Website":"Adicione seu Website","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"Código","Confirm Email Code":"Confirmar código de e-mail","Confirm Password":"Confirme a Senha","Confirm Sign Up":"Confirmar inscrição","Confirm SMS Code":"Confirme o código SMS","Confirm MFA Code":"Confirme o código MFA","Confirm TOTP Code":"Confirme o código TOTP",Confirm:"confirme","Confirmation Code":"Código de confirmação",Confirming:"Confirmando","Create a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Email Message":"Mensagem de e-mail","Enter your Birthdate":"Digite sua Data de Nascimento","Enter your code":"Insira seu código","Enter your Confirmation Code":"Digite seu código de confirmação","Enter your Email":"Digite seu e-mail","Enter your Family Name":"Digite seu Sobrenome","Enter your Given Name":"Digite seu Primeiro Nome","Enter your Middle Name":"Digite seu Nome do Meio","Enter your Name":"Digite seu Nome","Enter your Nickname":"Digite seu Apelido","Enter your Password":"Digite sua senha","Enter your phone number":"Digite seu número de telefone","Enter your Preferred Username":"Digite seu nome de usuário preferido","Enter your username":"Digite seu nome de usuário","Forgot password?":"Esqueceu a senha?","Forgot your password?":"Esqueceu sua senha?","Hide password":"Esconder a senha","It may take a minute to arrive":"Pode levar um minuto para chegar",Loading:"Carregando","Multi-Factor Authentication":"Autenticação multifator","Multi-Factor Authentication Setup":"Configuração da autenticação multifator","New password":"Nova Senha",or:"ou",Password:"Senha","Phone Number":"Número de telefone","Please confirm your Password":"Por favor confirme sua Senha","Resend Code":"Reenviar código","Reset your password":"Redefina sua senha","Reset your Password":"Redefina sua senha","Select MFA Type":"Selecionar tipo de MFA","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup Email":"Configurar e-mail","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign in to your account":"Faça login em sua conta","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Faça login no Google","Sign in":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando","Text Message (SMS)":"Mensagem de texto (SMS)",Username:"Nome do usuário","Verify Contact":"Verificar contato",Verify:"Verificar","We Emailed You":"Enviamos um e-mail para você","We Sent A Code":"Enviamos um código","We Texted You":"Enviamos um SMS para você","Your code is on the way. To log in, enter the code we emailed to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos um e-mail","Your code is on the way. To log in, enter the code we sent you":"Seu código está a caminho. Para fazer login, insira o código que enviamos para você","Your code is on the way. To log in, enter the code we texted to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos uma mensagem de texto","An account with the given email already exists.":"Já existe uma conta com o email utilizado.","Confirm a Code":"Confirmar um Código","Confirm Sign In":"Confirmar Início de Sessão","Forgot Password":"Esqueci Minha Senha","Incorrect username or password.":"Nome de usuário ou senha incorreta","Invalid password format":"Formato de senha inválido","Invalid phone number format":"Formato de número de telefone inválido","Loading...":"Carregando...","New Password":"Nova Senha","Resend a Code":"Reenviar um Código","Sign Out":"Sair","Sign Up with Amazon":"Criar Conta com a Amazon","Sign Up with Apple":"Criar Conta com a Apple","Sign Up with Facebook":"Criar Conta com o Facebook","Sign Up with Google":"Criar Conta com o Google","Sign Up":"Criar Conta","User already exists":"Usuário já existe","User does not exist":"Usuário não existe","Username cannot be empty":"Nome de usuário não pode estar vazio","Your passwords must match":"Suas senhas devem ser iguais"},Us={"Account recovery requires verified contact information":"账户恢复需要验证过的联系方式","Authenticator App (TOTP)":"Authenticator 应用程序(TOTP)","Back to Sign In":"回到登录","Change Password":"更改密码",Changing:"正在修改",Code:"确认码","Confirm Email Code":"确认电子邮件代码","Confirm Password":"确认密码","Confirm Sign Up":"确认注册","Confirm SMS Code":"确认短信验证码","Confirm TOTP Code":"确认 TOTP 代码",Confirm:"确认","Confirmation Code":"确认码",Confirming:"正在确认","Create a new account":"创建新账户","Create Account":"创建账户","Creating Account":"正在创建账户","Dismiss alert":"关闭警报",Email:"邮箱","Email Message":"电子邮件消息","Enter your code":"输入验证码","Enter your Email":"输入电子邮件","Enter your Password":"输入密码","Enter your phone number":"输入电话号码","Enter your username":"输入用户名","Forgot your password?":"忘记密码了?","Hide password":"隐藏密码","It may take a minute to arrive":"可能需要一分钟才能到达",Loading:"正在加载","Multi-Factor Authentication":"多重身份验证","Multi-Factor Authentication Setup":"多重身份验证设置","New password":"新密码",or:"或者",Password:"密码","Phone Number":"电话","Please confirm your Password":"请再次输入密码","Resend Code":"重发验证码","Reset your password":"重置密码","Reset your Password":"重置密码","Select MFA Type":"选择 MFA 类型","Send Code":"发送确认码","Send code":"发送验证码",Sending:"正在发送","Setup Email":"设置电子邮件","Setup TOTP":"设置 TOTP","Show password":"显示密码","Sign in to your account":"登录账户","Sign In with Amazon":"通过 Amazon 登录","Sign In with Apple":"通过 Apple 登录","Sign In with Facebook":"通过 Facebook 登录","Sign In with Google":"通过 Google 登录","Sign in":"登录","Sign In":"登录","Signing in":"正在登录",Skip:"跳过",Submit:"提交",Submitting:"正在提交","Text Message (SMS)":"短信(SMS)",Username:"用户名","Verify Contact":"验证联系方式",Verify:"验证","We Emailed You":"我们给您发送了电子邮件","We Sent A Code":"我们发送了代码","We Texted You":"我们给您发送了短信","Your code is on the way. To log in, enter the code we emailed to":"您的代码正在发送中。要登录,请输入我们通过电子邮件发送给以下人员的代码:","Your code is on the way. To log in, enter the code we sent you":"您的代码正在发送中。要登录,请输入我们发送给您的代码","Your code is on the way. To log in, enter the code we texted to":"您的代码正在发送中。要登录,请输入我们通过短信发送给以下人员的代码:","Confirm a Code":"确认码","Confirm Sign In":"确认登录","Forgot Password":"忘记密码","Incorrect username or password":"用户名或密码错误","Incorrect username or password.":"用户名或密码错误","Invalid password format":"密码格式错误","Invalid phone number format":"电话格式错误,请使用格式 +12345678900","New Password":"新密码","Resend a Code":"重发确认码","Sign Out":"退出","Sign Up":"注册","User already exists":"用户已经存在","User does not exist":"用户不存在"},Fs={"Account recovery requires verified contact information":"För att återställa kontot behöver du ett verifierat konto","Authenticator App (TOTP)":"Autentiseringsapp (TOTP)","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt lösenord",Changing:"Ändra",Code:"Kod","Confirm Email Code":"Bekräfta e-postkod","Confirm Password":"Bekräfta lösenord","Confirm Sign Up":"Bekräfta registrering","Confirm SMS Code":"Bekräfta SMS-kod","Confirm TOTP Code":"Bekräfta TOTP-kod",Confirm:"Bekräfta","Confirmation Code":"Verifikationskod",Confirming:"Bekräftar","Create a new account":"Skapa ett nytt konto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Email Message":"E-postmeddelande","Enter your code":"Skriv din kod","Enter your Email":"Ange din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt användarnamn","Forgot your password?":"Glömt ditt lösenord? ","Hide password":"Dölj lösenord","It may take a minute to arrive":"Det kan ta en minut att komma fram",Loading:"Laddar","Multi-Factor Authentication":"Multifaktorautentisering","Multi-Factor Authentication Setup":"Konfigurering av multifaktorautentisering","New password":"Nytt lösenord",or:"eller",Password:"Lösenord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"Återställ ditt lösenord","Reset your Password":"Återställ ditt lösenord","Select MFA Type":"Välj MFA-typ","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup Email":"Konfigurera e-post","Setup TOTP":"Konfigurera TOTP","Show password":"Visa lösenord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa över",Submit:"Skicka",Submitting:"Skickar in","Text Message (SMS)":"Textmeddelande (SMS)",Username:"Användarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","We Sent A Code":"Vi skickade en kod","We Texted You":"Vi sms:ade dig","Your code is on the way. To log in, enter the code we emailed to":"Din kod är på väg. För att logga in, ange koden vi mejlade till","Your code is on the way. To log in, enter the code we sent you":"Din kod är på väg. För att logga in, ange koden vi skickade till dig","Your code is on the way. To log in, enter the code we texted to":"Din kod är på väg. För att logga in, ange koden vi sms:ade till","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekräfta koden","Confirm Sign In":"Bekräfta inloggning","Create account":"Skapa konto","Enter your Password":"Ange ditt lösenord","Forgot Password?":"Glömt lösenord?","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt användarnamn eller lösenord","Incorrect username or password.":"Felaktigt användarnamn eller lösenord","Invalid password format":"Ogiltigt lösenordsformat","Invalid phone number format":"Ogiltigt format för telefonnummer","Lost your code? ":"Förlorat koden? ","New Password":"Nytt lösenord","No account? ":"Inget konto? ","Password attempts exceeded":"Maximalt antal felaktiga inloggningsförsök har uppnåtts","Reset Password":"Återställ lösenord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Användaren finns redan","User does not exist":"Användaren finns inte","Username cannot be empty":"Användarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig","Please confirm your Password":"Bekräfta ditt lösenord"},Os={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Authenticator App (TOTP)":"Aplikasi Pengauntentikasi (TOTP)","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Email Code":"Konfirmasi Kode Email","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Email Message":"Pesan Email","Enter your code":"Masukkan kode anda","Enter your Email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi","It may take a minute to arrive":"Mungkin perlu waktu satu menit untuk tiba",Loading:"Memuat","Multi-Factor Authentication":"Autentikasi Multifaktor","Multi-Factor Authentication Setup":"Pengaturan Autentikasi Multifaktor","New password":"Kata sandi baru",or:"atau",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Select MFA Type":"Pilih tipe MFA","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup Email":"Atur Email","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan","Text Message (SMS)":"Pesan Teks (SMS)",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","We Sent A Code":"Kami Mengirim Kode","We Texted You":"Kami mengirim SMS kepada Anda","Your code is on the way. To log in, enter the code we sent you":"Kode Anda segera hadir. Untuk masuk, masukkan kode yang kami kirimkan kepada Anda","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot Password":"Lupa kata sandi","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","No account? ":"Tidak ada akun?","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},Rs={"Account recovery requires verified contact information":"Hesap kurtarma, doğrulanmış iletişim bilgilerini gerektirir","Authenticator App (TOTP)":"Kimlik Doğrulayıcı Uygulaması (TOTP)","Add your Profile":"Profilinizi ekleyin","Add your Website":"Web sitenizi ekleyin","Back to Sign In":"Oturum Açmaya Geri Dön","Change Password":"Şifreyi Değiştir",Changing:"Değiştiriliyor",Code:"Kod","Confirm Email Code":"E-posta Kodunu Onayla","Confirm Password":"Şifreyi Doğrula","Confirm Sign Up":"Kayıt İşlemini Doğrula","Confirm SMS Code":"SMS Kodunu Doğrula","Confirm MFA Code":"Çoklu Faktörlü Doğrulama Kodunu Doğrula","Confirm TOTP Code":"Tek Kullanımlık Şifreyi Doğrula",Confirm:"Doğrula","Confirmation Code":"Doğrulama Kodu",Confirming:"Doğrulanıyor","Create a new account":"Yeni bir hesap oluştur","Create Account":"Hesap Oluştur","Creating Account":"Hesap Oluşturuluyor","Dismiss alert":"Uyarıyı reddet",Email:"E-posta","Email Message":"E-posta Mesajı","Enter your Birthdate":"Doğum gününüzü girin","Enter your code":"Kodu girin","Enter your Confirmation Code":"Doğrulama Kodunuzu Girin","Enter your Email":"E-posta adresinizi girin","Enter your email":"E-posta adresinizi girin","Enter your Family Name":"Ad Soyadınızı girin","Enter your Given Name":"Adınızı girin","Enter your Middle Name":"Soyadınızı girin","Enter your Name":"Adınızı girin","Enter your Nickname":"Takma adınızı girin","Enter your Password":"Şifrenizi girin","Enter your phone number":"Telefon numaranızı girin","Enter your Preferred Username":"Tercih ettiğiniz kullanıcı adınızı girin","Enter your username":"Kullanıcı adınızı girin","Forgot Password?":"Şifrenizi Mi Unuttunuz?","Forgot password?":"Şifrenizi mi unuttunuz?","Forgot your password?":"Şifrenizi mi unuttunuz?","Hide password":"Şifreyi gizle","It may take a minute to arrive":"Kodun gelmesi bir dakika sürebilir",Loading:"Yükleniyor","Multi-Factor Authentication":"Çok Faktörlü Kimlik Doğrulama","Multi-Factor Authentication Setup":"Çok Faktörlü Kimlik Doğrulama Kurulumu","New password":"Yeni şifre",or:"veya",Password:"Şifre","Phone Number":"Telefon Numarası","Please confirm your Password":"Lütfen şifrenizi doğrulayın","Resend Code":"Kodu Yeniden Gönder","Reset your password":"Şifrenizi sıfırlayın","Reset your Password":"Şifrenizi Sıfırlayın","Reset Password":"Şifreyi Sıfırla","Select MFA Type":"MFA türünü seçin","Send code":"Kod gönder","Send Code":"Kod Gönder",Sending:"Gönderiliyor","Setup Email":"E-postayı ayarla","Setup TOTP":"Tek kullanımlık şifre kurulumu yap","Show password":"Şifreyi göster","Sign in to your account":"Hesabınızda oturum açın","Sign In with Amazon":"Amazon ile Oturum Aç","Sign In with Apple":"Apple ile Oturum Aç","Sign In with Facebook":"Facebook ile Oturum Aç","Sign In with Google":"Google ile Oturum Aç","Sign in":"Oturum aç","Sign In":"Oturum Aç","Sign Up with Facebook":"Facebook ile Kayıt Ol","Sign Up with Google":"Google ile Kayıt Ol","Signing in":"Oturum açılıyor",Skip:"Atla",Submit:"Gönder",Submitting:"Gönderiliyor","Text Message (SMS)":"Kısa Mesaj (SMS)",Username:"Kullanıcı adı","Verify Contact":"Kişiyi Doğrula",Verify:"Doğrula","We Emailed You":"Size E-posta Gönderdik","We Sent A Code":"Bir Kod Gönderdik","We Texted You":"Size Mesaj Gönderdik","Your code is on the way. To log in, enter the code we emailed to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz e-postadaki kodu girin","Your code is on the way. To log in, enter the code we sent you":"Kodunuz yolda. Oturum açmak için, size gönderdiğimiz kodu girin","Your code is on the way. To log in, enter the code we texted to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz mesajdaki kodu girin","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum Açmayı Doğrula","Have an account? ":"Hesabınız var mı? ","Incorrect username or password":"Yanlış kullanıcı adı ya da şifre","Incorrect username or password.":"Yanlış kullanıcı adı ya da şifre","Invalid password format":"Geçersiz parola formatı","Invalid phone number format":"Geçersiz telefon numarası formatı","Lost your code? ":"Kodu mu kaybettiniz? ","No account? ":"Hesabınız yok mu? ","Password attempts exceeded":"Maksimum oturum açma girişimi aşıldı","Sign Out":"Çıkış yap","Sign Up":"Kayıt Ol","User already exists":"Bu kullanıcı zaten var","User does not exist":"Böyle bir kullanıcı mevcut değil","Username cannot be empty":"Kullanıcı adı boş olamaz"},Ds={"Account recovery requires verified contact information":"Восстановление учетной записи требует проверки контактной информации","Authenticator App (TOTP)":"Приложение для аутентификации (TOTP)","Back to Sign In":"Назад, чтобы войти","Change Password":"изменять пароль",Changing:"Изменение",Code:"Код","Confirm Email Code":"Подтвердите код электронной почты","Confirm Password":"Подтверждение пароля","Confirm Sign Up":"Подтверждение зарегистрироваться","Confirm SMS Code":"Подтверждение CMC-Код","Confirm TOTP Code":"Подтверждение TOTP-Код",Confirm:"Подтверждать","Confirmation Code":"код подтверждения",Confirming:"подтверждение","Create a new account":"Создавать новую учетную запись","Create Account":"Создать учетную запись","Creating Account":"создание учетная запись","Dismiss alert":"Закрыть оповещение",Email:"электронная почта","Email Message":"Сообщение по электронной почте","Enter your code":"ввести ваш Код","Enter your Email":"ввести ваш электронная почта","Enter your phone number":"ввести ваш номер телефона","Enter your username":"ввести ваш имя пользователя","Forgot your password?":"Забыли ваш пароль?","Hide password":"Скрывать пароль","It may take a minute to arrive":"Доставка может занять некоторое время",Loading:"Загрузка","Multi-Factor Authentication":"Многофакторная аутентификация","Multi-Factor Authentication Setup":"Настройка многофакторной аутентификации","New password":"Новый пароль",or:"или",Password:"Пароль","Phone Number":"Номер телефона","Resend Code":"Отправь еще раз Код","Reset your password":"сброс ваш пароль","Reset your Password":"сброс ваш Пароль","Select MFA Type":"Выберите тип МФА","Send code":"Отправлять Код","Send Code":"Отправлять Код",Sending:"отправка","Setup Email":"Настроить электронную почту","Setup TOTP":"Настраивать TOTP","Show password":"Показывать пароль","Sign in to your account":"знак в свой аккаунт","Sign In with Amazon":"знак в с Amazon","Sign In with Apple":"знак в с Apple","Sign In with Facebook":"знак в с Facebook","Sign In with Google":"знак в с Google","Sign in":"знак в","Sign In":"знак в","Signing in":"подписание в",Skip:"Пропускать",Submit:"Представлять на рассмотрение",Submitting:"Представив","Text Message (SMS)":"Текстовое сообщение (SMS)",Username:"Имя пользователя","Verify Contact":"Проверить контакт",Verify:"Проверить","We Emailed You":"Мы отправили вам электронное письмо","We Sent A Code":"Мы отправили код","We Texted You":"Мы отправили вам текстовое сообщение","Your code is on the way. To log in, enter the code we emailed to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили по электронной почте","Your code is on the way. To log in, enter the code we sent you":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы послали вам","Your code is on the way. To log in, enter the code we texted to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили текстовым сообщением"},$s={"Account recovery requires verified contact information":"שחזור לקוח דורש עוד מידע","Authenticator App (TOTP)":"אפליקציית אימות (TOTP)","Back to Sign In":"חזור להרשמה","Change Password":"עדכון סיסמא",Changing:"מעדכן",Code:"קוד","Confirm Email Code":"אמת קוד אימייל","Confirm Password":"אשר סיסמא","Confirm Sign Up":"אשר הרשמה","Confirm SMS Code":"אשר sms קוד","Confirm TOTP Code":"אשר totp קוד",Confirm:"אישור","Confirmation Code":"אישור קוד",Confirming:"מאשר","Create a new account":"צור משתמש חדש","Create Account":"צור משתמש","Creating Account":"יצירת משתמש","Dismiss alert":"הסר התראה",Email:"אימייל","Email Message":"הודעת אימייל","Enter your code":"הכנס את הקוד","Enter your Email":"הכנס את המייל שלך","Enter your phone number":"הכנס את מספר הטלפון שלך","Enter your username":"הכנס את שם המתמש שלך","Forgot your password?":"שכחת סיסמא ?","Hide password":"הסתר סיסמא",Loading:"טוען","Multi-Factor Authentication":"אימות רב-גורמי","Multi-Factor Authentication Setup":"הגדרת אימות רב-גורמי","New password":"סיסמא חדשה",or:"אוֹ",Password:"סיסמא","Phone Number":"מספר טלפון","Resend Code":"שלח קוד שוב","Reset your password":"אפס סיסמא","Reset your Password":"אפס סיסמא","Select MFA Type":"בחר סוג אימות רב-גורמי","Send code":"שלח קוד","Send Code":"שלח קוד",Sending:"שולח","Setup Email":"הגדר אימייל","Setup TOTP":"Setup TOTP","Show password":"הצג סיסמא","Sign in to your account":"התחבר לחשבון שלך","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"התחבר","Sign In":"התחבר","Signing in":"מתחבר",Skip:"דלג",Submit:"שלח",Submitting:"שולח","Text Message (SMS)":"הודעת טקסט (SMS)",Username:"שם משתמש","Verify Contact":"אמת איש קשר",Verify:"אמת"},Bs={"Account recovery requires verified contact information":"Відновлення облікового запису потребує контактної інформації","Authenticator App (TOTP)":"Додаток автентифікації (TOTP)","Back to Sign In":"Назад на сторінку входу","Change Password":"Змінити пароль",Changing:"Змінюємо",Code:"Код","Confirm Email Code":"Підтвердити код електронної пошти","Confirm Password":"Підтвердіть пароль","Confirm Sign Up":"Підтвердіть реєстрацію","Confirm SMS Code":"Підтвердіть SMS код","Confirm TOTP Code":"Підтвердіть TOTP код",Confirm:"Підтвердити","Confirmation Code":"Код підтвердження",Confirming:"Підтверджуємо","Create a new account":"Зареєструватися","Create Account":"Зареєструватися","Creating Account":"Реєструємо","Dismiss alert":"Відхилити сповіщення",Email:"Email","Email Message":"Повідомлення електронної пошти","Enter your code":"Введіть код","Enter your Email":"Введіть ваш email","Enter your phone number":"Введіть ваш номер телефону","Enter your username":"Введіть ваше імʼя користувача","Forgot password?":"Забули пароль?","Forgot your password?":"Забули ваш пароль?","Hide password":"Сховати пароль","It may take a minute to arrive":"Доставка може тривати хвилину",Loading:"Загружаємо","Multi-Factor Authentication":"Багатофакторна автентифікація","Multi-Factor Authentication Setup":"Налаштування багатофакторної автентифікації","New password":"Новий пароль",or:"або",Password:"Пароль","Phone Number":"Номер Телефону","Resend Code":"Відправити код повторно","Reset your password":"Скинути пароль","Reset your Password":"Скинути пароль","Select MFA Type":"Виберіть тип MFA","Send code":"Відправити код","Send Code":"Відправити код",Sending:"Відправляємо","Setup Email":"Налаштувати електронну пошту","Setup TOTP":"Налаштувати TOTP","Show password":"Показати пароль","Sign in to your account":"Увійти у ваш обліковий запис","Sign In with Amazon":"Увійти з Amazon","Sign In with Apple":"Увійти з Apple","Sign In with Facebook":"Увійти з Facebook","Sign In with Google":"Увійти з Google","Sign in":"Увійти","Sign In":"Увійти","Signing in":"Входимо",Skip:"Пропустити",Submit:"Відправити",Submitting:"Відправляємо","Text Message (SMS)":"Текстове повідомлення (SMS)",Username:"Імʼя користувача","Verify Contact":"Підтвердити Контакт",Verify:"Підтвердити","We Emailed You":"Ми відправили вам Email","We Sent A Code":"Ми відправили код","We Texted You":"Ми відправили вам текстове повідомлення","Your code is on the way. To log in, enter the code we emailed to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам на Email","Your code is on the way. To log in, enter the code we sent you":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми вам відправили","Your code is on the way. To log in, enter the code we texted to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам текстовим повідомленням","An account with the given email already exists.":"Обліковий запис з цим Email вже існує.","Confirm a Code":"Підтвердіть код","Confirm Sign In":"Підтвердіть вхід","Forgot Password":"Забули пароль","Incorrect username or password.":"Невірне імʼя користувача або пароль","Invalid password format":"Невірний формат паролю","Invalid phone number format":"Невірний формат номеру телефону","Loading...":"Загружаємо...","New Password":"Новий пароль","Resend a Code":"Відправити код повторно","Reset Password":"Скинути пароль","Sign Out":"Вийти","Sign Up with Amazon":"Зареєструватися з Amazon","Sign Up with Apple":"Зареєструватися з Apple","Sign Up with Facebook":"Зареєструватися з Facebook","Sign Up with Google":"Зареєструватися з Google","Sign Up":"Зареєструватися","User already exists":"Користувач вже існує","User does not exist":"Такий користувач не існує","Username cannot be empty":"Імʼя користувача не може бути пустим","Your passwords must match":"Паролі мають збігатися"},Vs={"Account recovery requires verified contact information":"การกู้คืนบัญชีต้องมีข้อมูลติดต่อที่ได้รับการยืนยันแล้ว","Add your Profile":"เพิ่มโปรไฟล์ของคุณ","Add your Website":"เพิ่มเว็บไซต์ของคุณ","Authenticator App (TOTP)":"แอปพลิเคชันยืนยันตัวตน (TOTP)","Back to Sign In":"กลับไปที่การเข้าสู่ระบบ","Change Password":"เปลี่ยนรหัสผ่าน",Changing:"กำลังเปลี่ยน",Code:"รหัส","Confirm Email Code":"ยืนยันรหัสอีเมล","Confirm Password":"ยืนยันรหัสผ่าน","Please confirm your Password":"กรุณายืนยันรหัสผ่านของคุณ","Confirm Sign Up":"ยืนยันการลงทะเบียน","Confirm SMS Code":"ยืนยันรหัส SMS","Confirm MFA Code":"ยืนยันรหัส MFA","Confirm TOTP Code":"ยืนยันรหัส TOTP",Confirm:"ยืนยัน","Confirmation Code":"รหัสยืนยัน",Confirming:"กำลังยืนยัน","Create a new account":"สร้างบัญชีใหม่","Create Account":"สร้างบัญชี","Creating Account":"กำลังสร้างบัญชี","Dismiss alert":"ปิดการแจ้งเตือน",Email:"อีเมล","Email Message":"ข้อความอีเมล","Enter your Birthdate":"กรอกวันเกิดของคุณ","Enter your code":"กรอกรหัสของคุณ","Enter your Confirmation Code":"กรอกรหัสยืนยันของคุณ","Enter your Email":"กรอกอีเมลของคุณ","Enter your Family Name":"กรอกนามสกุลของคุณ","Enter your Given Name":"กรอกชื่อของคุณ","Enter your Middle Name":"กรอกชื่อกลางของคุณ","Enter your Name":"กรอกชื่อของคุณ","Enter your Nickname":"กรอกชื่อเล่นของคุณ","Enter your Password":"กรอกรหัสผ่านของคุณ","Enter your email":"กรอกอีเมลของคุณ","Enter your phone number":"กรอกหมายเลขโทรศัพท์ของคุณ","Enter your Preferred Username":"กรอกชื่อผู้ใช้ที่ต้องการ","Enter your username":"กรอกชื่อผู้ใช้ของคุณ","Forgot password?":"ลืมรหัสผ่าน?","Forgot your password?":"ลืมรหัสผ่านใช่หรือไม่?","Hide password":"ซ่อนรหัสผ่าน","It may take a minute to arrive":"อาจใช้เวลาสักครู่",Loading:"กำลังโหลด","Multi-Factor Authentication":"การยืนยันตัวตนหลายขั้นตอน","Multi-Factor Authentication Setup":"ตั้งค่าการยืนยันตัวตนแบบหลายขั้นตอน","New password":"รหัสผ่านใหม่",or:"หรือ",Password:"รหัสผ่าน","Phone Number":"หมายเลขโทรศัพท์","Resend Code":"ส่งรหัสอีกครั้ง","Reset your Password":"รีเซ็ตรหัสผ่านของคุณ","Reset your password":"รีเซ็ตรหัสผ่านของคุณ","Select MFA Type":"เลือกประเภท MFA","Send code":"ส่งรหัส","Send Code":"ส่งรหัส",Sending:"กำลังส่ง","Setup Email":"ตั้งค่าอีเมล","Setup TOTP":"ตั้งค่า TOTP","Show password":"แสดงรหัสผ่าน","Sign in to your account":"เข้าสู่ระบบบัญชีของคุณ","Sign In with Amazon":"เข้าสู่ระบบด้วย Amazon","Sign In with Apple":"เข้าสู่ระบบด้วย Apple","Sign In with Facebook":"เข้าสู่ระบบด้วย Facebook","Sign In with Google":"เข้าสู่ระบบด้วย Google","Sign in":"เข้าสู่ระบบ","Sign In":"เข้าสู่ระบบ","Signing in":"กำลังเข้าสู่ระบบ",Skip:"ข้าม",Submit:"ส่ง",Submitting:"กำลังส่ง","Text Message (SMS)":"ข้อความตัวอักษร (SMS)",Username:"ชื่อผู้ใช้","Verify Contact":"ยืนยันการติดต่อ",Verify:"ยืนยัน","We Emailed You":"เราได้ส่งอีเมลถึงคุณแล้ว","We Sent A Code":"เราได้ส่งรหัสแล้ว","We Texted You":"เราได้ส่ง SMS ถึงคุณแล้ว","Your code is on the way. To log in, enter the code we emailed to":"รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยังอีเมล","Your code is on the way. To log in, enter the code we sent you":"รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งให้คุณ","Your code is on the way. To log in, enter the code we texted to":"รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยัง SMS","An account with the given email already exists.":"บัญชีที่ใช้อีเมลนี้มีอยู่แล้ว","Confirm a Code":"ยืนยันรหัส","Confirm Sign In":"ยืนยันการเข้าสู่ระบบ","Create account":"สร้างบัญชี","Sign Up with Facebook":"ลงทะเบียนด้วย Facebook","Sign Up with Google":"ลงทะเบียนด้วย Google","Sign Up with Apple":"ลงทะเบียนด้วย Apple","Sign Up with Line":"ลงทะเบียนด้วย Line","Forgot Password":"ลืมรหัสผ่าน","Have an account? ":"มีบัญชีอยู่แล้ว? ","Incorrect username or password":"ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง","Incorrect username or password.":"ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง","Invalid password format":"รูปแบบรหัสผ่านไม่ถูกต้อง","It may take a minute to arrive.":"อาจใช้เวลาสักครู่ในการมาถึง","Lost your code? ":"หารหัสไม่เจอ? ","New Password":"รหัสผ่านใหม่","No account? ":"ไม่มีบัญชี? ","Password attempts exceeded":"เกินจำนวนครั้งที่อนุญาตให้ใส่รหัสผ่าน","Reset password":"รีเซ็ตรหัสผ่าน","Reset Password":"รีเซ็ตรหัสผ่าน","Sign Out":"ออกจากระบบ","Sign Up":"ลงทะเบียน","User already exists":"ผู้ใช้นี้มีอยู่แล้ว","User does not exist":"ไม่มีผู้ใช้นี้","Username cannot be empty":"ต้องใส่ชื่อผู้ใช้งาน"},zs={ADD_PROFILE:"Add your Profile",ADD_WEBSITE:"Add your Website",BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Please confirm your Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_EMAIL:"Confirm Email Code",CONFIRM_MFA_DEFAULT:"Confirm MFA Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CONTINUE:"Continue",CONTINUE_WITHOUT_PASSKEY:"Continue without a Passkey",CREATE_ACCOUNT:"Create Account",CREATE_ACCOUNT_WITH_EMAIL_OTP:"Create account with Email OTP",CREATE_ACCOUNT_WITH_PASSWORD:"Create account with Password",CREATE_ACCOUNT_WITH_SMS_OTP:"Create account with SMS OTP",CREATE_PASSKEY:"Create a Passkey",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",EMAIL_OTP:"Email Message",ENTER_BIRTHDATE:"Enter your Birthdate",ENTER_CODE:"Enter your code",ENTER_CONFIRMATION_CODE:"Enter your Confirmation Code",ENTER_EMAIL:"Enter your Email",ENTER_FAMILY_NAME:"Enter your Family Name",ENTER_GIVEN_NAME:"Enter your Given Name",ENTER_MIDDLE_NAME:"Enter your Middle Name",ENTER_NAME:"Enter your Name",ENTER_NICK_NAME:"Enter your Nickname",ENTER_PASSWORD:"Enter your Password",ENTER_PHONE_NUMBER:"Enter your Phone Number",ENTER_PREFERRED_USERNAME:"Enter your Preferred Username",ENTER_USERNAME:"Enter your username",ENTER_USERNAME_FIRST:"Please enter your username first",EXISTING_PASSKEYS:"Existing Passkeys",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",MFA_SETUP_SELECTION:"Multi-Factor Authentication Setup",MFA_SELECTION:"Multi-Factor Authentication",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",OTHER_SIGN_IN_OPTIONS:"Other sign-in options",PASSKEY_AUTHENTICATION_CANCELED:"Passkey authentication was canceled. Please try again or use a different sign-in method.",PASSKEY_CREATED_SUCCESS:"Passkey created successfully!",PASSKEY_LABEL:"Passkey",PASSKEY_PROMPT_DESCRIPTION:"Passkeys are WebAuthn credentials that validate your identity using biometric data like touch or facial recognition or device authentication like passwords or PINs, serving as a secure password replacement.",PASSKEY_PROMPT_HEADING:"Sign in faster with Passkey",PASSKEY_REGISTERED:"Your passkey has been successfully registered.",PASSKEY_REGISTRATION_FAILED:"Failed to create passkey. Please try again.",PASSWORD:"Password",PASSWORDLESS_NOT_ENABLED:"Passwordless authentication is not enabled for this account. Please contact your administrator or use password sign-in.",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",REGISTERING:"Registering",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",CODE_DELIVERY_FAILED:"Unable to send verification code. Please try again.",VERIFICATION_CODE_EXPIRED:"Your verification code has expired. Please request a new code.",VERIFICATION_CODE_INVALID:"The verification code you entered is incorrect. Please try again.",SENDING:"Sending",SELECT_MFA_TYPE:"Select MFA Type",SETUP_ANOTHER_PASSKEY:"Setup another Passkey",SETUP_EMAIL:"Setup Email",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_EMAIL:"Sign In with Email",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN_WITH_PASSKEY:"Sign In with Passkey",SIGN_IN_WITH_PASSWORD:"Sign In with Password",SIGN_IN_WITH_SMS:"Sign In with SMS",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SMS_MFA:"Text Message (SMS)",SUBMIT:"Submit",SUBMITTING:"Submitting",SOFTWARE_TOKEN_MFA:"Authenticator App (TOTP)",UPPERCASE_COPY:"COPY",USERNAME:"Username",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"},Ls={...ws},Gs={...Cs},js={...bs},Ws={...As},Hs={...Es},Ks={...Ts},Ys={...Is},ro={...Ps},qs={...ks},Js={...Ns},Zs={...Ms},Qs={...xs},Xs={...Us},el={...Fs},tl={...Os},nl={...Rs},rl={...Ds},ol={...$s},il={...Bs},al={...Vs},zt={...zs},O={...zt};function I(e){return ir.I18n.get(e)}const sl={de:Ls,en:Gs,es:js,fr:Ws,hu:Hs,id:tl,it:Ks,ja:Ys,kr:ro,ko:ro,nb:qs,nl:Js,pl:Zs,pt:Qs,zh:Xs,sv:el,tr:nl,ru:rl,he:ol,ua:il,th:al},lr=e=>{var o;const t=(o=e==null?void 0:e.context.config)==null?void 0:o.loginMechanisms,[r]=t??["username"];return r},ll=e=>{const t={...e};for(const[r,o]of Object.entries(e)){const{label:i,placeholder:a}=o;t[r]={...o,label:i?I(i):void 0,placeholder:a?I(a):void 0}}return t},cl=e=>Object.entries(e).sort((t,r)=>{const o=t[1].order||Number.MAX_VALUE,i=r[1].order||Number.MAX_VALUE;return o-i}).filter(t=>t[1]!==void 0),ul="+1",Ce=e=>{let t=vt[e];const{type:r}=t;return r==="tel"&&(t={...t,dialCode:ul}),t},ln=e=>{const t=lr(e);return{...Ce(t),autocomplete:"username"}},Lt=e=>({confirmation_code:{...Ce("confirmation_code"),label:"Code *",placeholder:"Code"}}),dl=e=>{var s,l;const t=(l=(s=e.context.actorRef)==null?void 0:s.getSnapshot())==null?void 0:l.context,r=t==null?void 0:t.availableAuthMethods,o=t==null?void 0:t.preferredChallenge,i=!(r!=null&&r.length)||r.length===1&&r[0]==="PASSWORD"||r.length>1&&(!o||o==="PASSWORD"),a={username:{...ln(e)}};return i&&(a.password={...Ce("password"),autocomplete:"current-password"}),a},fl=e=>{var u,d;const{loginMechanisms:t,signUpAttributes:r}=e.context.config,o=lr(e),i=(d=(u=e.context.actorRef)==null?void 0:u.getSnapshot())==null?void 0:d.context,a=i==null?void 0:i.availableAuthMethods,s=a&&a.length>1,l=Array.from(new Set([...t,"password","confirm_password",...r])),c={};for(const m of l)if(ai(m)){const f=m===o?ln(e):Ce(m),p=s&&(m==="email"||m==="phone_number"||m==="password"||m==="confirm_password");c[m]={...f,...p&&{isRequired:!1}}}else console.debug(`Authenticator does not have a default implementation for ${m}. Customize SignUp FormFields to add your own.`);return c},pl=e=>({confirmation_code:{...Ce("confirmation_code"),placeholder:"Enter your code"}}),ml=e=>{const t=lr(e),{label:r}=vt[t];return{username:{...ln(e),label:`Enter your ${r.toLowerCase()}`,placeholder:`Enter your ${r.toLowerCase()}`}}},gl=e=>({...Lt(),password:{...Ce("password"),label:"New Password",placeholder:"New Password"},confirm_password:{...Ce("confirm_password"),label:"Confirm Password",placeholder:"Confirm Password"}}),hl=e=>{const t=ar(e),{missingAttributes:r}=t.context,o=Array.from(new Set(["password","confirm_password",...r??[]])),i={};for(const a of o)ai(a)?i[a]={...Ce(a)}:console.debug(`Authenticator does not have a default implementation for ${a}. Customize ForceNewPassword FormFields to add your own.`);return i},yl=e=>({email:Ce("email")}),vl={signIn:dl,signUp:fl,confirmSignUp:pl,confirmSignIn:Lt,forceNewPassword:hl,forgotPassword:ml,confirmResetPassword:gl,confirmVerifyUser:Lt,setupEmail:yl,setupTotp:Lt},Sl=(e,t)=>{const r=vl[e];return r(t)},_l=(e,t)=>{var o,i;const r=(i=(o=sr(t))==null?void 0:o.formFields)==null?void 0:i[e];return!r||Object.keys(r).length===0?{}:Object.entries(r).reduce((a,[s,l])=>{if((e==="signIn"||e==="forgotPassword")&&s==="username"){const u={...ln(t),...l};return{...a,[s]:u}}else if(ds(s)){const u={...vt[s],...l};return{...a,[s]:u}}else return{...a,[s]:l}},{})},wl=(e,t)=>{const r=Sl(e,t),o=_l(e,t),i={...r,...o};return delete i.QR,ll(i)},Cl=e=>e.map(t=>{const r=t[0],o={...t[1],order:void 0};return[r,o]}),bl=(e,t)=>{const r=wl(e,t);return Cl(cl(r))},Al=e=>{switch(e){case"EMAIL_OTP":return I(O.CONFIRM_EMAIL);case"SMS_MFA":return I(O.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return I(O.CONFIRM_TOTP);default:return I(O.CONFIRM_MFA_DEFAULT)}},El=e=>{const{DeliveryMedium:t,Destination:r}=e??{},o=t==="EMAIL",i=t==="SMS",a=I(O.CODE_ARRIVAL);return o||i?`${I(o?O.CODE_EMAILED:O.CODE_TEXTED)} ${r}. ${a}.`:`${I(O.CODE_SENT)}. ${a}.`},Tl=e=>{const{DeliveryMedium:t}=e??{},r=t==="EMAIL";return I(!r&&t==="SMS"?O.WE_SENT_CODE:r?O.WE_EMAILED:O.WE_TEXTED)},Il={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},Pl=(e,t)=>I(`Sign ${e==="signIn"?"In":"Up"} with ${Il[t]}`),kl=e=>I(e==="MFA_SETUP"?O.MFA_SETUP_SELECTION:O.MFA_SELECTION),Nl=e=>{switch(e){case"EMAIL":return I(zt.EMAIL_OTP);case"SMS":return I(zt.SMS_MFA);case"TOTP":return I(zt.SOFTWARE_TOKEN_MFA);default:return I(e)}},ie={getBackToSignInText:()=>I(O.BACK_SIGN_IN),getChangePasswordText:()=>I(O.CHANGE_PASSWORD),getChangingText:()=>I(O.CHANGING_PASSWORD),getConfirmText:()=>I(O.CONFIRM),getCopyText:()=>I(O.UPPERCASE_COPY),getOrText:()=>I(O.OR),getResendCodeText:()=>I(O.RESEND_CODE),getSendCodeText:()=>I(O.SEND_CODE),getSubmitText:()=>I(O.SUBMIT),getSignInTabText:()=>I(O.SIGN_IN_TAB),getSignUpTabText:()=>I(O.CREATE_ACCOUNT),getForgotPasswordText:e=>I(e?O.FORGOT_PASSWORD:O.FORGOT_YOUR_PASSWORD),getSigningInText:()=>I(O.SIGNING_IN_BUTTON),getSignInText:()=>I(O.SIGN_IN_BUTTON),getCreateAccountText:()=>I(O.CREATE_ACCOUNT),getDeliveryMessageText:El,getDeliveryMethodText:Tl,getChallengeText:Al,getResetYourPasswordText:()=>I(O.RESET_PASSWORD),getSetupEmailText:()=>I(O.SETUP_EMAIL),getCopiedText:()=>I("COPIED"),getSignInWithFederationText:Pl,getMfaTypeLabelByValue:Nl,getSelectMfaTypeByChallengeName:kl,getSelectMfaTypeText:()=>I(O.SELECT_MFA_TYPE),getSkipText:()=>I(O.SKIP),getVerifyText:()=>I(O.VERIFY),getVerifyContactText:()=>I(O.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>I(O.VERIFY_HEADING)};/*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
@@ -12,16 +12,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var b=function(){return b=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},b.apply(this,arguments)};function cr(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r}function R(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return a}function L(e,t,r){if(arguments.length===2)for(var o=0,i=t.length,a;o<i;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var z;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(z||(z={}));var Pe;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(Pe||(Pe={}));var Wt=z.Start,sn=z.Stop,Ye=z.Raise,Ct=z.Send,ur=z.Cancel,si=z.NullEvent,ln=z.Assign,Ml=z.After,xl=z.DoneState,cn=z.Log,li=z.Init,Ht=z.Invoke,Ul=z.ErrorExecution,Ln=z.ErrorPlatform,dr=z.ErrorCustom,un=z.Update,ci=z.Choose,ui=z.Pure;const Fl=Object.freeze(Object.defineProperty({__proto__:null,after:Ml,assign:ln,cancel:ur,choose:ci,doneState:xl,error:dr,errorExecution:Ul,errorPlatform:Ln,init:li,invoke:Ht,log:cn,nullEvent:si,pure:ui,raise:Ye,send:Ct,start:Wt,stop:sn,update:un},Symbol.toStringTag,{value:"Module"}));var di=".",oo={},Gn="xstate.guard",Ol="",W=process.env.NODE_ENV==="production",Nt;function fr(e,t,r){r===void 0&&(r=di);var o=mt(e,r),i=mt(t,r);return D(i)?D(o)?i===o:!1:D(o)?o in i:Object.keys(o).every(function(a){return a in i?fr(o[a],i[a]):!1})}function fi(e){try{return D(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function jn(e,t){try{return qe(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function Rl(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function mt(e,t){if(Rl(e))return e.value;if(qe(e))return Kt(e);if(typeof e!="string")return e;var r=jn(e,t);return Kt(r)}function Kt(e){if(e.length===1)return e[0];for(var t={},r=t,o=0;o<e.length-1;o++)o===e.length-2?r[e[o]]=e[o+1]:(r[e[o]]={},r=r[e[o]]);return t}function ut(e,t){for(var r={},o=Object.keys(e),i=0;i<o.length;i++){var a=o[i];r[a]=t(e[a],a,e,i)}return r}function io(e,t,r){var o,i,a={};try{for(var s=R(Object.keys(e)),l=s.next();!l.done;l=s.next()){var c=l.value,u=e[c];r(u)&&(a[c]=t(u,c,e))}}catch(d){o={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}var $l=function(e){return function(t){var r,o,i=t;try{for(var a=R(e),s=a.next();!s.done;s=a.next()){var l=s.value;i=i[l]}}catch(c){r={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}};function Dl(e,t){return function(r){var o,i,a=r;try{for(var s=R(e),l=s.next();!l.done;l=s.next()){var c=l.value;a=a[t][c]}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}}function Lt(e){if(!e)return[[]];if(D(e))return[[e]];var t=j(Object.keys(e).map(function(r){var o=e[r];return typeof o!="string"&&(!o||!Object.keys(o).length)?[[r]]:Lt(e[r]).map(function(i){return[r].concat(i)})}));return t}function j(e){var t;return(t=[]).concat.apply(t,L([],$(e),!1))}function pi(e){return qe(e)?e:[e]}function me(e){return e===void 0?[]:pi(e)}function Yt(e,t,r){var o,i;if(B(e))return e(t,r.data);var a={};try{for(var s=R(Object.keys(e)),l=s.next();!l.done;l=s.next()){var c=l.value,u=e[c];B(u)?a[c]=u(t,r.data):a[c]=u}}catch(d){o={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}function Bl(e){return/^(done|error)\./.test(e)}function ao(e){return!!(e instanceof Promise||e!==null&&(B(e)||typeof e=="object")&&B(e.then))}function Vl(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function zl(e,t){var r,o,i=$([[],[]],2),a=i[0],s=i[1];try{for(var l=R(e),c=l.next();!c.done;c=l.next()){var u=c.value;t(u)?a.push(u):s.push(u)}}catch(d){r={error:d}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return[a,s]}function mi(e,t){return ut(e.states,function(r,o){if(r){var i=(D(t)?void 0:t[o])||(r?r.current:void 0);if(i)return{current:i,states:mi(r,i)}}})}function Ll(e,t){return{current:t,states:mi(e,t)}}function so(e,t,r,o){W||q(!!e,"Attempting to update undefined context");var i=e&&r.reduce(function(a,s){var l,c,u=s.assignment,d={state:o,action:s,_event:t},m={};if(B(u))m=u(a,t.data,d);else try{for(var f=R(Object.keys(u)),p=f.next();!p.done;p=f.next()){var h=p.value,v=u[h];m[h]=B(v)?v(a,t.data,d):v}}catch(w){l={error:w}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(l)throw l.error}}return Object.assign({},a,m)},e);return i}var q=function(){};W||(q=function(e,t){var r=e instanceof Error?e:void 0;if(!(!r&&e)&&console!==void 0){var o=["Warning: ".concat(t)];r&&o.push(r),console.warn.apply(console,o)}});function qe(e){return Array.isArray(e)}function B(e){return typeof e=="function"}function D(e){return typeof e=="string"}function gi(e,t){if(e)return D(e)?{type:Gn,name:e,predicate:t?t[e]:void 0}:B(e)?{type:Gn,name:e.name,predicate:e}:e}function Gl(e){try{return"subscribe"in e&&B(e.subscribe)}catch{return!1}}var Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();Nt={},Nt[Te]=function(){return this},Nt[Symbol.observable]=function(){return this};function be(e){return!!e&&"__xstatenode"in e}function jl(e){return!!e&&typeof e.send=="function"}var Wl=function(){var e=0;return function(){return e++,e.toString(16)}}();function dn(e,t){return D(e)||typeof e=="number"?b({type:e},t):e}function Q(e,t){if(!D(e)&&"$$type"in e&&e.$$type==="scxml")return e;var r=dn(e);return b({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function $e(e,t){var r=pi(t).map(function(o){return typeof o>"u"||typeof o=="string"||be(o)?{target:o,event:e}:b(b({},o),{event:e})});return r}function Hl(e){if(!(e===void 0||e===Ol))return me(e)}function Kl(e,t,r){if(!W){var o=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(r,"', error was '").concat(e,"'.").concat(o));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(r,"'. ")+"Original error: '".concat(e,"'. ").concat(o," Current error is '").concat(t,"'.").concat(i))}}}function hi(e,t,r,o,i){var a=e.options.guards,s={state:i,cond:t,_event:o};if(t.type===Gn)return((a==null?void 0:a[t.name])||t.predicate)(r,o.data,s);var l=a==null?void 0:a[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(r,o.data,s)}function yi(e){return typeof e=="string"?{type:e}:e}function Gt(e,t,r){var o=function(){},i=typeof e=="object",a=i?e:null;return{next:((i?e.next:e)||o).bind(a),error:((i?e.error:t)||o).bind(a),complete:((i?e.complete:r)||o).bind(a)}}function Mt(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Wn(e){return(e.type===Ye||e.type===Ct&&e.to===Pe.Internal)&&typeof e.delay!="number"}var Ue=Q({type:li});function qt(e,t){return t&&t[e]||void 0}function Ge(e,t){var r;if(D(e)||typeof e=="number"){var o=qt(e,t);B(o)?r={type:e,exec:o}:o?r=o:r={type:e,exec:void 0}}else if(B(e))r={type:e.name||e.toString(),exec:e};else{var o=qt(e.type,t);if(B(o))r=b(b({},e),{exec:o});else if(o){var i=o.type||e.type;r=b(b(b({},o),e),{type:i})}else r=e}return r}var we=function(e,t){if(!e)return[];var r=qe(e)?e:[e];return r.map(function(o){return Ge(o,t)})};function fn(e){var t=Ge(e);return b(b({id:D(e)?e:t.id},t),{type:t.type})}function vi(e,t){return{type:Ye,event:typeof e=="function"?e:dn(e),delay:t?t.delay:void 0,id:t==null?void 0:t.id}}function _i(e,t,r,o){var i={_event:r},a=Q(B(e.event)?e.event(t,r.data,i):e.event),s;if(D(e.delay)){var l=o&&o[e.delay];s=B(l)?l(t,r.data,i):l}else s=B(e.delay)?e.delay(t,r.data,i):e.delay;return b(b({},e),{type:Ye,_event:a,delay:s})}function Je(e,t){return{to:t?t.to:void 0,type:Ct,event:B(e)?e:dn(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:B(e)?e.name:fi(e)}}function Si(e,t,r,o){var i={_event:r},a=Q(B(e.event)?e.event(t,r.data,i):e.event),s;if(D(e.delay)){var l=o&&o[e.delay];s=B(l)?l(t,r.data,i):l}else s=B(e.delay)?e.delay(t,r.data,i):e.delay;var c=B(e.to)?e.to(t,r.data,i):e.to;return b(b({},e),{to:c,_event:a,event:a.data,delay:s})}function pr(e,t){return Je(e,b(b({},t),{to:Pe.Parent}))}function Yl(e,t,r){return Je(t,b(b({},r),{to:e}))}function wi(){return pr(un)}function ql(e,t){return Je(e,b(b({},t),{to:function(r,o,i){var a=i._event;return a.origin}}))}var Jl=function(e,t){return{context:e,event:t}};function Zl(e,t){return e===void 0&&(e=Jl),{type:cn,label:t,expr:e}}var Ci=function(e,t,r){return b(b({},e),{value:D(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},bi=function(e){return{type:ur,sendId:e}};function Ai(e){var t=fn(e);return{type:z.Start,activity:t,exec:void 0}}function Ei(e){var t=B(e)?e:fn(e);return{type:z.Stop,activity:t,exec:void 0}}function Ti(e,t,r){var o=B(e.activity)?e.activity(t,r.data):e.activity,i=typeof o=="string"?{id:o}:o,a={type:z.Stop,activity:i};return a}var Ii=function(e){return{type:ln,assignment:e}};function Ql(e){return typeof e=="object"&&"type"in e}function Pi(e,t){var r=t?"#".concat(t):"";return"".concat(z.After,"(").concat(e,")").concat(r)}function dt(e,t){var r="".concat(z.DoneState,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function gt(e,t){var r="".concat(z.DoneInvoke,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function Le(e,t){var r="".concat(z.ErrorPlatform,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function Xl(e){return{type:z.Pure,get:e}}function ki(e,t){if(!W&&(!e||typeof e=="function")){var r=e;e=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=typeof r=="function"?r.apply(void 0,L([],$(o),!1)):r;if(!a)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return a}}return Je(function(o,i){return i},b(b({},t),{to:e}))}function ec(e,t){return pr(function(r,o,i){return{type:dr,data:B(e)?e(r,o,i):e}},b(b({},t),{to:Pe.Parent}))}function tc(e){return{type:z.Choose,conds:e}}var nc=function(e){var t,r,o=[];try{for(var i=R(e),a=i.next();!a.done;a=i.next())for(var s=a.value,l=0;l<s.actions.length;){if(s.actions[l].type===ln){o.push(s.actions[l]),s.actions.splice(l,1);continue}l++}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o};function _t(e,t,r,o,i,a,s){s===void 0&&(s=!1);var l=s?[]:nc(i),c=l.length?so(r,o,l,t):r,u=s?[r]:void 0,d=[];function m(h,v){var w;switch(v.type){case Ye:{var g=_i(v,c,o,e.options.delays);return a&&typeof g.delay=="number"&&a(g,c,o),g}case Ct:var _=Si(v,c,o,e.options.delays);if(!W){var y=v.delay;q(!D(y)||typeof _.delay=="number","No delay reference for delay expression '".concat(y,"' was found on machine '").concat(e.id,"'"))}return a&&_.to!==Pe.Internal&&(h==="entry"?d.push(_):a(_,c,o)),_;case cn:{var S=Ci(v,c,o);return a==null||a(S,c,o),S}case ci:{var C=v,A=(w=C.conds.find(function(J){var te=gi(J.cond,e.options.guards);return!te||hi(e,te,c,o,a?void 0:t)}))===null||w===void 0?void 0:w.actions;if(!A)return[];var E=$(_t(e,t,c,o,[{type:h,actions:we(me(A),e.options.actions)}],a,s),2),T=E[0],I=E[1];return c=I,u==null||u.push(c),T}case ui:{var A=v.get(c,o.data);if(!A)return[];var k=$(_t(e,t,c,o,[{type:h,actions:we(me(A),e.options.actions)}],a,s),2),N=k[0],U=k[1];return c=U,u==null||u.push(c),N}case sn:{var S=Ti(v,c,o);return a==null||a(S,r,o),S}case ln:{c=so(c,o,[v],a?void 0:t),u==null||u.push(c);break}default:var F=Ge(v,e.options.actions),H=F.exec;if(a)a(F,c,o);else if(H&&u){var re=u.length-1,ae=b(b({},F),{exec:function(J){for(var te=[],Z=1;Z<arguments.length;Z++)te[Z-1]=arguments[Z];H.apply(void 0,L([u[re]],$(te),!1))}});F=ae}return F}}function f(h){var v,w,g=[];try{for(var _=R(h.actions),y=_.next();!y.done;y=_.next()){var S=y.value,C=m(h.type,S);C&&(g=g.concat(C))}}catch(A){v={error:A}}finally{try{y&&!y.done&&(w=_.return)&&w.call(_)}finally{if(v)throw v.error}}return d.forEach(function(A){a(A,c,o)}),d.length=0,g}var p=j(i.map(f));return[p,c]}const Ni=Object.freeze(Object.defineProperty({__proto__:null,actionTypes:Fl,after:Pi,assign:Ii,cancel:bi,choose:tc,done:dt,doneInvoke:gt,error:Le,escalate:ec,forwardTo:ki,getActionFunction:qt,initEvent:Ue,isActionObject:Ql,log:Zl,pure:Xl,raise:vi,resolveActions:_t,resolveLog:Ci,resolveRaise:_i,resolveSend:Si,resolveStop:Ti,respond:ql,send:Je,sendParent:pr,sendTo:Yl,sendUpdate:wi,start:Ai,stop:Ei,toActionObject:Ge,toActionObjects:we,toActivityDefinition:fn},Symbol.toStringTag,{value:"Module"}));var Jt=[],Ve=function(e,t){Jt.push(e);var r=t(e);return Jt.pop(),r},rc=function(e){return e(Jt[Jt.length-1])};function Mi(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Te]=function(){return this},t}function oc(e,t,r,o){var i,a=yi(e.src),s=(i=t==null?void 0:t.options.services)===null||i===void 0?void 0:i[a.type],l=e.data?Yt(e.data,r,o):void 0,c=s?mr(s,e.id,l):Mi(e.id);return c.meta=e,c}function mr(e,t,r){var o=Mi(t);if(o.deferred=!0,be(e)){var i=o.state=Ve(void 0,function(){return(r?e.withContext(r):e).initialState});o.getSnapshot=function(){return i}}return o}function ic(e){try{return typeof e.send=="function"}catch{return!1}}function ac(e){return ic(e)&&"id"in e}function sc(e){var t;return b((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Te]=function(){return this},t),e)}var Zt=function(e){return e.type==="atomic"||e.type==="final"};function xi(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function St(e){return xi(e).filter(function(t){return t.type!=="history"})}function Ui(e){var t=[e];return Zt(e)?t:t.concat(j(St(e).map(Ui)))}function ft(e,t){var r,o,i,a,s,l,c,u,d=new Set(e),m=Hn(d),f=new Set(t);try{for(var p=R(f),h=p.next();!h.done;h=p.next())for(var v=h.value,w=v.parent;w&&!f.has(w);)f.add(w),w=w.parent}catch(I){r={error:I}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}var g=Hn(f);try{for(var _=R(f),y=_.next();!y.done;y=_.next()){var v=y.value;if(v.type==="compound"&&(!g.get(v)||!g.get(v).length))m.get(v)?m.get(v).forEach(function(k){return f.add(k)}):v.initialStateNodes.forEach(function(k){return f.add(k)});else if(v.type==="parallel")try{for(var S=(s=void 0,R(St(v))),C=S.next();!C.done;C=S.next()){var A=C.value;f.has(A)||(f.add(A),m.get(A)?m.get(A).forEach(function(k){return f.add(k)}):A.initialStateNodes.forEach(function(k){return f.add(k)}))}}catch(k){s={error:k}}finally{try{C&&!C.done&&(l=S.return)&&l.call(S)}finally{if(s)throw s.error}}}}catch(I){i={error:I}}finally{try{y&&!y.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}try{for(var E=R(f),T=E.next();!T.done;T=E.next())for(var v=T.value,w=v.parent;w&&!f.has(w);)f.add(w),w=w.parent}catch(I){c={error:I}}finally{try{T&&!T.done&&(u=E.return)&&u.call(E)}finally{if(c)throw c.error}}return f}function Fi(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var o=r[0];if(o){if(Zt(o))return o.key}else return{}}var i={};return r.forEach(function(a){i[a.key]=Fi(a,t)}),i}function Hn(e){var t,r,o=new Map;try{for(var i=R(e),a=i.next();!a.done;a=i.next()){var s=a.value;o.has(s)||o.set(s,[]),s.parent&&(o.has(s.parent)||o.set(s.parent,[]),o.get(s.parent).push(s))}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}function lc(e,t){var r=ft([e],t);return Fi(e,Hn(r))}function pt(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function cc(e){return L([],$(new Set(j(L([],$(e.map(function(t){return t.ownEvents})),!1)))),!1)}function jt(e,t){return t.type==="compound"?St(t).some(function(r){return r.type==="final"&&pt(e,r)}):t.type==="parallel"?St(t).every(function(r){return jt(e,r)}):!1}function uc(e){return e===void 0&&(e=[]),e.reduce(function(t,r){return r.meta!==void 0&&(t[r.id]=r.meta),t},{})}function lo(e){return new Set(j(e.map(function(t){return t.tags})))}function Oi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(D(e)||D(t))return e===t;var r=Object.keys(e),o=Object.keys(t);return r.length===o.length&&r.every(function(i){return Oi(e[i],t[i])})}function dc(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function fc(e,t){var r=e.exec,o=b(b({},e),{exec:r!==void 0?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return o}var he=function(){function e(t){var r=this,o;this.actions=[],this.activities=oo,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||oo,this.meta=uc(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(o=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&o!==void 0?o:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return cc(r.configuration)}})}return e.from=function(t,r){if(t instanceof e)return t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t;var o=Ue;return new e({value:t,context:r,_event:o,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,r){if(t instanceof e){if(!t.actions.length)return t;var o=Ue;return new e({value:t.value,context:r,_event:o,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,r)},e.prototype.toStrings=function(t,r){var o=this;if(t===void 0&&(t=this.value),r===void 0&&(r="."),D(t))return[t];var i=Object.keys(t);return i.concat.apply(i,L([],$(i.map(function(a){return o.toStrings(t[a],r).map(function(s){return a+r+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var r=t.tags;t.machine;var o=cr(t,["configuration","transitions","tags","machine"]);return b(b({},o),{tags:Array.from(r)})},e.prototype.matches=function(t){return fr(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var r;W&&q(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var o=(r=this.machine)===null||r===void 0?void 0:r.getTransitionData(this,t);return!!(o!=null&&o.transitions.length)&&o.transitions.some(function(i){return i.target!==void 0||i.actions.length})},e}(),pc={deferEvents:!1},co=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=b(b({},pc),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(r){throw this.clear(),r}finally{this.processingEvent=!1}},e}(),xn=new Map,mc=0,it={bookId:function(){return"x:".concat(mc++)},register:function(e,t){return xn.set(e,t),e},get:function(e){return xn.get(e)},free:function(e){xn.delete(e)}};function gr(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;W||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues")}function gc(){var e=gr();if(e&&"__xstate__"in e)return e.__xstate__}function hc(e){if(gr()){var t=gc();t&&t.register(e)}}function yc(e,t){t===void 0&&(t={});var r=e.initialState,o=new Set,i=[],a=!1,s=function(){if(!a){for(a=!0;i.length>0;){var u=i.shift();r=e.transition(r,u,c),o.forEach(function(d){return d.next(r)})}a=!1}},l=sc({id:t.id,send:function(u){i.push(u),s()},getSnapshot:function(){return r},subscribe:function(u,d,m){var f=Gt(u,d,m);return o.add(f),f.next(r),{unsubscribe:function(){o.delete(f)}}}}),c={parent:t.parent,self:l,id:t.id||"anonymous",observers:o};return r=e.start?e.start(c):r,l}var Kn={sync:!1,autoForward:!1},K;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(K||(K={}));var vc=function(){function e(t,r){r===void 0&&(r=e.defaultOptions);var o=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=K.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(d,m){if(qe(d))return o.batch(d),o.state;var f=Q(dn(d,m));if(o.status===K.Stopped)return W||q(!1,'Event "'.concat(f.name,'" was sent to stopped service "').concat(o.machine.id,`". This service has already reached its final state, and will not transition.
16
- Event: `).concat(JSON.stringify(f.data))),o.state;if(o.status!==K.Running&&!o.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(o.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
17
- Event: `).concat(JSON.stringify(f.data)));return o.scheduler.schedule(function(){o.forward(f);var p=o._nextState(f);o.update(p,f)}),o._state},this.sendTo=function(d,m,f){var p=o.parent&&(m===Pe.Parent||o.parent.id===m),h=p?o.parent:D(m)?m===Pe.Internal?o:o.children.get(m)||it.get(m):jl(m)?m:void 0;if(!h){if(!p)throw new Error("Unable to send event to child '".concat(m,"' from service '").concat(o.id,"'."));W||q(!1,"Service '".concat(o.id,"' has no parent: unable to send event ").concat(d.type));return}if("machine"in h){if(o.status!==K.Stopped||o.parent!==h||o.state.done){var v=b(b({},d),{name:d.name===dr?"".concat(Le(o.id)):d.name,origin:o.sessionId});!f&&o.machine.config.predictableActionArguments?o._outgoingQueue.push([h,v]):h.send(v)}}else!f&&o.machine.config.predictableActionArguments?o._outgoingQueue.push([h,d.data]):h.send(d.data)},this._exec=function(d,m,f,p){p===void 0&&(p=o.machine.options.actions);var h=d.exec||qt(d.type,p),v=B(h)?h:h?h.exec:d.exec;if(v)try{return v(m,f.data,o.machine.config.predictableActionArguments?{action:d,_event:f}:{action:d,state:o.state,_event:f})}catch(H){throw o.parent&&o.parent.send({type:"xstate.error",data:H}),H}switch(d.type){case Ye:{var w=d;o.defer(w);break}case Ct:var g=d;if(typeof g.delay=="number"){o.defer(g);return}else g.to?o.sendTo(g._event,g.to,f===Ue):o.send(g._event);break;case ur:o.cancel(d.sendId);break;case Wt:{if(o.status!==K.Running)return;var _=d.activity;if(!o.machine.config.predictableActionArguments&&!o.state.activities[_.id||_.type])break;if(_.type===z.Invoke){var y=yi(_.src),S=o.machine.options.services?o.machine.options.services[y.type]:void 0,C=_.id,A=_.data;W||q(!("forward"in _),"`forward` property is deprecated (found in invocation of '".concat(_.src,"' in in machine '").concat(o.machine.id,"'). ")+"Please use `autoForward` instead.");var E="autoForward"in _?_.autoForward:!!_.forward;if(!S){W||q(!1,"No service found for invocation '".concat(_.src,"' in machine '").concat(o.machine.id,"'."));return}var T=A?Yt(A,m,f):void 0;if(typeof S=="string")return;var I=B(S)?S(m,f.data,{data:T,src:y,meta:_.meta}):S;if(!I)return;var k=void 0;be(I)&&(I=T?I.withContext(T):I,k={autoForward:E}),o.spawn(I,C,k)}else o.spawnActivity(_);break}case sn:{o.stopChild(d.activity.id);break}case cn:var N=d,U=N.label,F=N.value;U?o.logger(U,F):o.logger(F);break;default:W||q(!1,"No implementation found for action type '".concat(d.type,"'"));break}};var i=b(b({},e.defaultOptions),r),a=i.clock,s=i.logger,l=i.parent,c=i.id,u=c!==void 0?c:t.id;this.id=u,this.logger=s,this.clock=a,this.parent=l,this.options=i,this.scheduler=new co({deferEvents:this.options.deferEvents}),this.sessionId=it.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ve(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return W||q(this.status!==K.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,r){var o,i;try{for(var a=R(t.actions),s=a.next();!s.done;s=a.next()){var l=s.value;this.exec(l,t,r)}}catch(c){o={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.update=function(t,r){var o,i,a,s,l,c,u,d,m=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||r===Ue)&&this.options.execute)this.execute(this.state);else for(var f=void 0;f=this._outgoingQueue.shift();)f[0].send(f[1]);if(this.children.forEach(function(I){m.state.children[I.id]=I}),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var p=R(this.eventListeners),h=p.next();!h.done;h=p.next()){var v=h.value;v(t.event)}}catch(I){o={error:I}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}try{for(var w=R(this.listeners),g=w.next();!g.done;g=w.next()){var v=g.value;v(t,t.event)}}catch(I){a={error:I}}finally{try{g&&!g.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}try{for(var _=R(this.contextListeners),y=_.next();!y.done;y=_.next()){var S=y.value;S(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(I){l={error:I}}finally{try{y&&!y.done&&(c=_.return)&&c.call(_)}finally{if(l)throw l.error}}if(this.state.done){var C=t.configuration.find(function(I){return I.type==="final"&&I.parent===m.machine}),A=C&&C.doneData?Yt(C.doneData,t.context,r):void 0;this._doneEvent=gt(this.id,A);try{for(var E=R(this.doneListeners),T=E.next();!T.done;T=E.next()){var v=T.value;v(this._doneEvent)}}catch(I){u={error:I}}finally{try{T&&!T.done&&(d=E.return)&&d.call(E)}finally{if(u)throw u.error}}this._stop(),this._stopChildren(),it.free(this.sessionId)}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===K.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,r,o){var i=this,a=Gt(t,r,o);this.listeners.add(a.next),this.status!==K.NotStarted&&a.next(this.state);var s=function(){i.doneListeners.delete(s),i.stopListeners.delete(s),a.complete()};return this.status===K.Stopped?a.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){i.listeners.delete(a.next),i.doneListeners.delete(s),i.stopListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.status===K.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var r=this;if(this.status===K.Running)return this;this.machine._init(),it.register(this.sessionId,this),this.initialized=!0,this.status=K.Running;var o=t===void 0?this.initialState:Ve(this,function(){return dc(t)?r.machine.resolveState(t):r.machine.resolveState(he.from(t,r.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){r.update(o,Ue)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){B(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,r,o,i,a,s,l,c,u,d;try{for(var m=R(this.listeners),f=m.next();!f.done;f=m.next()){var p=f.value;this.listeners.delete(p)}}catch(E){t={error:E}}finally{try{f&&!f.done&&(r=m.return)&&r.call(m)}finally{if(t)throw t.error}}try{for(var h=R(this.stopListeners),v=h.next();!v.done;v=h.next()){var p=v.value;p(),this.stopListeners.delete(p)}}catch(E){o={error:E}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}try{for(var w=R(this.contextListeners),g=w.next();!g.done;g=w.next()){var p=g.value;this.contextListeners.delete(p)}}catch(E){a={error:E}}finally{try{g&&!g.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}try{for(var _=R(this.doneListeners),y=_.next();!y.done;y=_.next()){var p=y.value;this.doneListeners.delete(p)}}catch(E){l={error:E}}finally{try{y&&!y.done&&(c=_.return)&&c.call(_)}finally{if(l)throw l.error}}if(!this.initialized)return this;this.initialized=!1,this.status=K.Stopped,this._initialState=void 0;try{for(var S=R(Object.keys(this.delayedEventsMap)),C=S.next();!C.done;C=S.next()){var A=C.value;this.clock.clearTimeout(this.delayedEventsMap[A])}}catch(E){u={error:E}}finally{try{C&&!C.done&&(d=S.return)&&d.call(S)}finally{if(u)throw u.error}}this.scheduler.clear(),this.scheduler=new co({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,r=this.scheduler;return this._stop(),r.schedule(function(){var o=Q({type:"xstate.stop"}),i=Ve(t,function(){var a=j(L([],$(t.state.configuration),!1).sort(function(d,m){return m.order-d.order}).map(function(d){return we(d.onExit,t.machine.options.actions)})),s=$(_t(t.machine,t.state,t.state.context,o,[{type:"exit",actions:a}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),l=s[0],c=s[1],u=new he({value:t.state.value,context:c,_event:o,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:l.filter(function(d){return!Wn(d)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return u.changed=!0,u});t.update(i,o),t._stopChildren(),it.free(t.sessionId)}),this},e.prototype.batch=function(t){var r=this;if(this.status===K.NotStarted&&this.options.deferEvents)W||q(!1,"".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,`" and are deferred. Make sure .start() is called for this service.
18
- Event: `).concat(JSON.stringify(event)));else if(this.status!==K.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(t.length){var o=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var i,a,s=r.state,l=!1,c=[],u=function(p){var h=Q(p);r.forward(h),s=Ve(r,function(){return r.machine.transition(s,h,void 0,o||void 0)}),c.push.apply(c,L([],$(r.machine.config.predictableActionArguments?s.actions:s.actions.map(function(v){return fc(v,s)})),!1)),l=l||!!s.changed};try{for(var d=R(t),m=d.next();!m.done;m=d.next()){var f=m.value;u(f)}}catch(p){i={error:p}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}s.changed=l,s.actions=c,r.update(s,Q(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,r){var o=this;r===void 0&&(r=!!this.machine.config.predictableActionArguments&&this._exec);var i=Q(t);if(i.name.indexOf(Ln)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(Ln)===0}))throw i.data.data;var a=Ve(this,function(){return o.machine.transition(o.state,i,void 0,r||void 0)});return a},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var r,o;try{for(var i=R(this.forwardTo),a=i.next();!a.done;a=i.next()){var s=a.value,l=this.children.get(s);if(!l)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));l.send(t)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.defer=function(t){var r=this,o=this.clock.setTimeout(function(){"to"in t&&t.to?r.sendTo(t._event,t.to,!0):r.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=o)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,r,o){o===void 0&&(o=this.machine.options.actions),this._exec(t,r.context,r._event,o)},e.prototype.removeChild=function(t){var r;this.children.delete(t),this.forwardTo.delete(t),(r=this.state)===null||r===void 0||delete r.children[t]},e.prototype.stopChild=function(t){var r=this.children.get(t);r&&(this.removeChild(t),B(r.stop)&&r.stop())},e.prototype.spawn=function(t,r,o){if(this.status!==K.Running)return mr(t,r);if(ao(t))return this.spawnPromise(Promise.resolve(t),r);if(B(t))return this.spawnCallback(t,r);if(ac(t))return this.spawnActor(t,r);if(Gl(t))return this.spawnObservable(t,r);if(be(t))return this.spawnMachine(t,b(b({},o),{id:r}));if(Vl(t))return this.spawnBehavior(t,r);throw new Error('Unable to spawn entity "'.concat(r,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,r){var o=this;r===void 0&&(r={});var i=new e(t,b(b({},this.options),{parent:this,id:r.id||t.id})),a=b(b({},Kn),r);a.sync&&i.onTransition(function(l){o.send(un,{state:l,id:i.id})});var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone(function(l){o.removeChild(i.id),o.send(Q(l,{origin:i.id}))}).start(),s},e.prototype.spawnBehavior=function(t,r){var o=yc(t,{id:r,parent:this});return this.children.set(r,o),o},e.prototype.spawnPromise=function(t,r){var o,i=this,a=!1,s;t.then(function(c){a||(s=c,i.removeChild(r),i.send(Q(gt(r,c),{origin:r})))},function(c){if(!a){i.removeChild(r);var u=Le(r,c);try{i.send(Q(u,{origin:r}))}catch(d){Kl(c,d,r),i.devTools&&i.devTools.send(u,i.state),i.machine.strict&&i.stop()}}});var l=(o={id:r,send:function(){},subscribe:function(c,u,d){var m=Gt(c,u,d),f=!1;return t.then(function(p){f||(m.next(p),!f&&m.complete())},function(p){f||m.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){a=!0},toJSON:function(){return{id:r}},getSnapshot:function(){return s}},o[Te]=function(){return this},o);return this.children.set(r,l),l},e.prototype.spawnCallback=function(t,r){var o,i=this,a=!1,s=new Set,l=new Set,c,u=function(f){c=f,l.forEach(function(p){return p(f)}),!a&&i.send(Q(f,{origin:r}))},d;try{d=t(u,function(f){s.add(f)})}catch(f){this.send(Le(r,f))}if(ao(d))return this.spawnPromise(d,r);var m=(o={id:r,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=Gt(f);return l.add(p.next),{unsubscribe:function(){l.delete(p.next)}}},stop:function(){a=!0,B(d)&&d()},toJSON:function(){return{id:r}},getSnapshot:function(){return c}},o[Te]=function(){return this},o);return this.children.set(r,m),m},e.prototype.spawnObservable=function(t,r){var o,i=this,a,s=t.subscribe(function(c){a=c,i.send(Q(c,{origin:r}))},function(c){i.removeChild(r),i.send(Q(Le(r,c),{origin:r}))},function(){i.removeChild(r),i.send(Q(gt(r),{origin:r}))}),l=(o={id:r,send:function(){},subscribe:function(c,u,d){return t.subscribe(c,u,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return a},toJSON:function(){return{id:r}}},o[Te]=function(){return this},o);return this.children.set(r,l),l},e.prototype.spawnActor=function(t,r){return this.children.set(r,t),t},e.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!r){W||q(!1,"No implementation found for activity '".concat(t.type,"'"));return}var o=r(this.state.context,t);this.spawnEffect(t.id,o)},e.prototype.spawnEffect=function(t,r){var o;this.children.set(t,(o={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},o[Te]=function(){return this},o))},e.prototype.attachDev=function(){var t=gr();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var r=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(b(b({name:this.id,autoPause:!0,stateSanitizer:function(o){return{value:o.value,context:o.context,actions:o.actions}}},r),{features:b({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}hc(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Te]=function(){return this},e.prototype.getSnapshot=function(){return this.status===K.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,r){return setTimeout(t,r)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Ri,e}(),_c=function(e){return D(e)?b(b({},Kn),{name:e}):b(b(b({},Kn),{name:Wl()}),e)};function at(e,t){var r=_c(t);return rc(function(o){if(!W){var i=be(e)||B(e);q(!!o||i,'Attempted to spawn an Actor (ID: "'.concat(be(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return o?o.spawn(e,r.name,r):mr(e,r.name)})}function Ri(e,t){var r=new vc(e,t);return r}function Sc(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function xt(e){return b(b({type:Ht},e),{toJSON:function(){e.onDone,e.onError;var t=cr(e,["onDone","onError"]);return b(b({},t),{type:Ht,src:Sc(e.src)})}})}var ze="",Yn="#",st="*",De={},Be=function(e){return e[0]===Yn},wc=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Cc=function(e,t,r){var o=r.slice(0,-1).some(function(a){return!("cond"in a)&&!("in"in a)&&(D(a.target)||be(a.target))}),i=t===ze?"the transient event":"event '".concat(t,"'");q(!o,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},bc=function(){function e(t,r,o,i){o===void 0&&(o="context"in t?t.context:void 0);var a=this,s;this.config=t,this._context=o,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(wc(),r),this.parent=i==null?void 0:i.parent,this.key=this.config.key||(i==null?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:di),this.id=this.config.id||L([this.machine.key],$(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,W||q(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?ut(this.config.states,function(u,d){var m,f=new e(u,{},void 0,{parent:a,key:d});return Object.assign(a.idMap,b((m={},m[f.id]=f,m),f.idMap)),f}):De;var l=0;function c(u){var d,m;u.order=l++;try{for(var f=R(xi(u)),p=f.next();!p.done;p=f.next()){var h=p.value;c(h)}}catch(v){d={error:v}}finally{try{p&&!p.done&&(m=f.return)&&m.call(f)}finally{if(d)throw d.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(u){var d=u.event;return d===ze}):ze in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=me(this.config.entry||this.config.onEntry).map(function(u){return Ge(u)}),this.onExit=me(this.config.exit||this.config.onExit).map(function(u){return Ge(u)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=me(this.config.invoke).map(function(u,d){var m,f;if(be(u)){var p=Mt(a.id,d);return a.machine.options.services=b((m={},m[p]=u,m),a.machine.options.services),xt({src:p,id:p})}else if(D(u.src)){var p=u.id||Mt(a.id,d);return xt(b(b({},u),{id:p,src:u.src}))}else if(be(u.src)||B(u.src)){var p=u.id||Mt(a.id,d);return a.machine.options.services=b((f={},f[p]=u.src,f),a.machine.options.services),xt(b(b({id:p},u),{src:p}))}else{var h=u.src;return xt(b(b({id:Mt(a.id,d)},u),{src:h}))}}),this.activities=me(this.config.activities).concat(this.invoke).map(function(u){return fn(u)}),this.transition=this.transition.bind(this),this.tags=me(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Ui(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,r){var o=this.options,i=o.actions,a=o.activities,s=o.guards,l=o.services,c=o.delays;return new e(this.config,{actions:b(b({},i),t.actions),activities:b(b({},a),t.activities),guards:b(b({},s),t.guards),services:b(b({},l),t.services),delays:b(b({},c),t.delays)},r??this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return B(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:ut(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(r,o){return r[o.eventType]=r[o.eventType]||[],r[o.eventType].push(o),r},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var r=t===ze,o=this.transitions.filter(function(i){var a=i.eventType===t;return r?a:a||i.eventType===st});return this.__cache.candidates[t]=o,o},e.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var o=function(a,s){var l=B(a)?"".concat(t.id,":delay[").concat(s,"]"):a,c=Pi(l,t.id);return t.onEntry.push(Je(c,{delay:a})),t.onExit.push(bi(c)),c},i=qe(r)?r.map(function(a,s){var l=o(a.delay,s);return b(b({},a),{event:l})}):j(Object.keys(r).map(function(a,s){var l=r[a],c=D(l)?{target:l}:l,u=isNaN(+a)?a:+a,d=o(u,s);return me(c).map(function(m){return b(b({},m),{event:d,delay:u})})}));return i.map(function(a){var s=a.delay;return b(b({},t.formatTransition(a)),{delay:s})})},e.prototype.getStateNodes=function(t){var r,o=this;if(!t)return[];var i=t instanceof he?t.value:mt(t,this.delimiter);if(D(i)){var a=this.getStateNode(i).initial;return a!==void 0?this.getStateNodes((r={},r[i]=a,r)):[this,this.states[i]]}var s=Object.keys(i),l=[this];return l.push.apply(l,L([],$(j(s.map(function(c){return o.getStateNode(c).getStateNodes(i[c])}))),!1)),l},e.prototype.handles=function(t){var r=fi(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=t instanceof he?t:he.create(t),o=Array.from(ft([],this.getStateNodes(r.value)));return new he(b(b({},r),{value:this.resolve(r.value),configuration:o,done:jt(o,this),tags:lo(o),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,r,o){var i=this.getStateNode(t),a=i.next(r,o);return!a||!a.transitions.length?this.next(r,o):a},e.prototype.transitionCompoundNode=function(t,r,o){var i=Object.keys(t),a=this.getStateNode(i[0]),s=a._transition(t[i[0]],r,o);return!s||!s.transitions.length?this.next(r,o):s},e.prototype.transitionParallelNode=function(t,r,o){var i,a,s={};try{for(var l=R(Object.keys(t)),c=l.next();!c.done;c=l.next()){var u=c.value,d=t[u];if(d){var m=this.getStateNode(u),f=m._transition(d,r,o);f&&(s[u]=f)}}}catch(g){i={error:g}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}var p=Object.keys(s).map(function(g){return s[g]}),h=j(p.map(function(g){return g.transitions})),v=p.some(function(g){return g.transitions.length>0});if(!v)return this.next(r,o);var w=j(Object.keys(s).map(function(g){return s[g].configuration}));return{transitions:h,exitSet:j(p.map(function(g){return g.exitSet})),configuration:w,source:r,actions:j(Object.keys(s).map(function(g){return s[g].actions}))}},e.prototype._transition=function(t,r,o){return D(t)?this.transitionLeafNode(t,r,o):Object.keys(t).length===1?this.transitionCompoundNode(t,r,o):this.transitionParallelNode(t,r,o)},e.prototype.getTransitionData=function(t,r){return this._transition(t.value,t,Q(r))},e.prototype.next=function(t,r){var o,i,a=this,s=r.name,l=[],c=[],u;try{for(var d=R(this.getCandidates(s)),m=d.next();!m.done;m=d.next()){var f=m.value,p=f.cond,h=f.in,v=t.context,w=h?D(h)&&Be(h)?t.matches(mt(this.getStateNodeById(h).path,this.delimiter)):fr(mt(h,this.delimiter),$l(this.path.slice(0,-2))(t.value)):!0,g=!1;try{g=!p||hi(this.machine,p,v,r,t)}catch(S){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
19
- `).concat(S.message))}if(g&&w){f.target!==void 0&&(c=f.target),l.push.apply(l,L([],$(f.actions),!1)),u=f;break}}}catch(S){o={error:S}}finally{try{m&&!m.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}if(u){if(!c.length)return{transitions:[u],exitSet:[],configuration:t.value?[this]:[],source:t,actions:l};var _=j(c.map(function(S){return a.getRelativeStateNodes(S,t.historyValue)})),y=!!u.internal;return{transitions:[u],exitSet:y?[]:j(c.map(function(S){return a.getPotentiallyReenteringNodes(S)})),configuration:_,source:t,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var r=[],o=this,i=t;o&&o!==i;)r.push(o),o=o.parent;return o!==i?[]:(r.push(i),r)},e.prototype.getActions=function(t,r,o,i,a,s,l){var c,u,d,m,f=this,p=s?ft([],this.getStateNodes(s.value)):[],h=new Set;try{for(var v=R(Array.from(t).sort(function(N,U){return N.order-U.order})),w=v.next();!w.done;w=v.next()){var g=w.value;(!pt(p,g)||pt(o.exitSet,g)||g.parent&&h.has(g.parent))&&h.add(g)}}catch(N){c={error:N}}finally{try{w&&!w.done&&(u=v.return)&&u.call(v)}finally{if(c)throw c.error}}try{for(var _=R(p),y=_.next();!y.done;y=_.next()){var g=y.value;(!pt(t,g)||pt(o.exitSet,g.parent))&&o.exitSet.push(g)}}catch(N){d={error:N}}finally{try{y&&!y.done&&(m=_.return)&&m.call(_)}finally{if(d)throw d.error}}o.exitSet.sort(function(N,U){return U.order-N.order});var S=Array.from(h).sort(function(N,U){return N.order-U.order}),C=new Set(o.exitSet),A=j(S.map(function(N){var U=[];if(N.type!=="final")return U;var F=N.parent;if(!F.parent)return U;U.push(dt(N.id,N.doneData),dt(F.id,N.doneData?Yt(N.doneData,i,a):void 0));var H=F.parent;return H.type==="parallel"&&St(H).every(function(re){return jt(o.configuration,re)})&&U.push(dt(H.id)),U})),E=S.map(function(N){var U=N.onEntry,F=N.activities.map(function(H){return Ai(H)});return{type:"entry",actions:we(l?L(L([],$(U),!1),$(F),!1):L(L([],$(F),!1),$(U),!1),f.machine.options.actions)}}).concat({type:"state_done",actions:A.map(function(N){return vi(N)})}),T=Array.from(C).map(function(N){return{type:"exit",actions:we(L(L([],$(N.onExit),!1),$(N.activities.map(function(U){return Ei(U)})),!1),f.machine.options.actions)}}),I=T.concat({type:"transition",actions:we(o.actions,this.machine.options.actions)}).concat(E);if(r){var k=we(j(L([],$(t),!1).sort(function(N,U){return U.order-N.order}).map(function(N){return N.onExit})),this.machine.options.actions).filter(function(N){return!Wn(N)});return I.concat({type:"stop",actions:k})}return I},e.prototype.transition=function(t,r,o,i){t===void 0&&(t=this.initialState);var a=Q(r),s;if(t instanceof he)s=o===void 0?t:this.resolveState(he.from(t,o));else{var l=D(t)?this.resolve(Kt(this.getResolvedPath(t))):this.resolve(t),c=o??this.machine.context;s=this.resolveState(he.from(l,c))}if(!W&&a.name===st)throw new Error("An event cannot have the wildcard type ('".concat(st,"')"));if(this.strict&&!this.events.includes(a.name)&&!Bl(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var u=this._transition(s.value,s,a)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]},d=ft([],this.getStateNodes(s.value)),m=u.configuration.length?ft(d,u.configuration):d;return u.configuration=L([],$(m),!1),this.resolveTransition(u,s,s.context,i,a)},e.prototype.resolveRaisedTransition=function(t,r,o,i){var a,s=t.actions;return t=this.transition(t,r,void 0,i),t._event=o,t.event=o.data,(a=t.actions).unshift.apply(a,L([],$(s),!1)),t},e.prototype.resolveTransition=function(t,r,o,i,a){var s,l,c,u,d=this;a===void 0&&(a=Ue);var m=t.configuration,f=!r||t.transitions.length>0,p=f?t.configuration:r?r.configuration:[],h=jt(p,this),v=f?lc(this.machine,m):void 0,w=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,g=this.getActions(new Set(p),h,t,o,a,r,i),_=r?b({},r.activities):{};try{for(var y=R(g),S=y.next();!S.done;S=y.next()){var C=S.value;try{for(var A=(c=void 0,R(C.actions)),E=A.next();!E.done;E=A.next()){var T=E.value;T.type===Wt?_[T.activity.id||T.activity.type]=T:T.type===sn&&(_[T.activity.id||T.activity.type]=!1)}}catch(M){c={error:M}}finally{try{E&&!E.done&&(u=A.return)&&u.call(A)}finally{if(c)throw c.error}}}}catch(M){s={error:M}}finally{try{S&&!S.done&&(l=y.return)&&l.call(y)}finally{if(s)throw s.error}}var I=$(_t(this,r,o,a,g,i,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),k=I[0],N=I[1],U=$(zl(k,Wn),2),F=U[0],H=U[1],re=k.filter(function(M){var Me;return M.type===Wt&&((Me=M.activity)===null||Me===void 0?void 0:Me.type)===Ht}),ae=re.reduce(function(M,Me){return M[Me.activity.id]=oc(Me.activity,d.machine,N,a),M},r?b({},r.children):{}),J=new he({value:v||r.value,context:N,_event:a,_sessionid:r?r._sessionid:null,historyValue:v?w?Ll(w,v):void 0:r?r.historyValue:void 0,history:!v||t.source?r:void 0,actions:v?H:[],activities:v?_:r?r.activities:{},events:[],configuration:p,transitions:t.transitions,children:ae,done:h,tags:lo(p),machine:this}),te=o!==N;J.changed=a.name===un||te;var Z=J.history;Z&&delete Z.history;var Re=!h&&(this._transient||m.some(function(M){return M._transient}));if(!f&&(!Re||a.name===ze))return J;var se=J;if(!h)for(Re&&(se=this.resolveRaisedTransition(se,{type:si},a,i));F.length;){var ot=F.shift();se=this.resolveRaisedTransition(se,ot._event,a,i)}var Nn=se.changed||(Z?!!se.actions.length||te||typeof Z.value!=typeof se.value||!Oi(se.value,Z.value):void 0);return se.changed=Nn,se.history=Z,se},e.prototype.getStateNode=function(t){if(Be(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var r=this.states[t];if(!r)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return r},e.prototype.getStateNodeById=function(t){var r=Be(t)?t.slice(Yn.length):t;if(r===this.id)return this;var o=this.machine.idMap[r];if(!o)throw new Error("Child state node '#".concat(r,"' does not exist on machine '").concat(this.id,"'"));return o},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&Be(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var r=jn(t,this.delimiter).slice(),o=this;r.length;){var i=r.shift();if(!i.length)break;o=o.getStateNode(i)}return o},e.prototype.resolve=function(t){var r,o=this;if(!t)return this.initialStateValue||De;switch(this.type){case"parallel":return ut(this.initialStateValue,function(a,s){return a?o.getStateNode(s).resolve(t[s]||a):De});case"compound":if(D(t)){var i=this.getStateNode(t);return i.type==="parallel"||i.type==="compound"?(r={},r[t]=i.initialStateValue,r):t}return Object.keys(t).length?ut(t,function(a,s){return a?o.getStateNode(s).resolve(a):De}):this.initialStateValue||{};default:return t||De}},e.prototype.getResolvedPath=function(t){if(Be(t)){var r=this.machine.idMap[t.slice(Yn.length)];if(!r)throw new Error("Unable to find state node '".concat(t,"'"));return r.path}return jn(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var r;if(this.type==="parallel")r=io(this.states,function(o){return o.initialStateValue||De},function(o){return o.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));r=Zt(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,r){this._init();var o=this.getStateNodes(t);return this.resolveTransition({configuration:o,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,r??this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var r=this.config;D(r.target)?t=Be(r.target)?Kt(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target:t=r.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,r,o){return o===void 0&&(o=!0),o?t.type==="history"?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(Zt(this))return[this];if(this.type==="compound"&&!this.initial)return W||q(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=Lt(this.initialStateValue);return j(r.map(function(o){return t.getFromRelativePath(o)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=$(t),o=r[0],i=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(o,"' from node with no states"));var a=this.getStateNode(o);if(a.type==="history")return a.resolveHistory();if(!this.states[o])throw new Error("Child state '".concat(o,"' does not exist on '").concat(this.id,"'"));return this.states[o].getFromRelativePath(i)},e.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:io(this.states,function(r,o){if(!t)return r.historyValue();var i=D(t)?void 0:t[o];return r.historyValue(i||r.initialStateValue)},function(r){return!r.history})}},e.prototype.resolveHistory=function(t){var r=this;if(this.type!=="history")return[this];var o=this.parent;if(!t){var i=this.target;return i?j(Lt(i).map(function(s){return o.getFromRelativePath(s)})):o.initialStateNodes}var a=Dl(o.path,"states")(t).current;return D(a)?[o.getStateNode(a)]:j(Lt(a).map(function(s){return r.history==="deep"?o.getFromRelativePath(s):[o.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,r=j(Object.keys(this.states).map(function(o){return t.states[o].stateIds}));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,r,o,i;if(this.__cache.events)return this.__cache.events;var a=this.states,s=new Set(this.ownEvents);if(a)try{for(var l=R(Object.keys(a)),c=l.next();!c.done;c=l.next()){var u=c.value,d=a[u];if(d.states)try{for(var m=(o=void 0,R(d.events)),f=m.next();!f.done;f=m.next()){var p=f.value;s.add("".concat(p))}}catch(h){o={error:h}}finally{try{f&&!f.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}}}catch(h){t={error:h}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(r){return!(!r.target&&!r.actions.length&&r.internal)}).map(function(r){return r.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var r=this;if(t!==void 0)return t.map(function(o){if(!D(o))return o;var i=o[0]===r.delimiter;if(i&&!r.parent)return r.getStateNodeByPath(o.slice(1));var a=i?r.key+o:o;if(r.parent)try{var s=r.parent.getStateNodeByPath(a);return s}catch(l){throw new Error("Invalid transition definition for state node '".concat(r.id,`':
20
- `).concat(l.message))}else return r.getStateNodeByPath(a)})},e.prototype.formatTransition=function(t){var r=this,o=Hl(t.target),i="internal"in t?t.internal:o?o.some(function(c){return D(c)&&c[0]===r.delimiter}):!0,a=this.machine.options.guards,s=this.resolveTarget(o),l=b(b({},t),{actions:we(me(t.actions)),cond:gi(t.cond,a),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return b(b({},l),{target:l.target?l.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(r.id)})}});return l},e.prototype.formatTransitions=function(){var t,r,o=this,i;if(!this.config.on)i=[];else if(Array.isArray(this.config.on))i=this.config.on;else{var a=this.config.on,s=st,l=a[s],c=l===void 0?[]:l,u=cr(a,[typeof s=="symbol"?s:s+""]);i=j(Object.keys(u).map(function(_){!W&&_===ze&&q(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var y=$e(_,u[_]);return W||Cc(o,_,y),y}).concat($e(st,c)))}var d=this.config.always?$e("",this.config.always):[],m=this.config.onDone?$e(String(dt(this.id)),this.config.onDone):[];W||q(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=j(this.invoke.map(function(_){var y=[];return _.onDone&&y.push.apply(y,L([],$($e(String(gt(_.id)),_.onDone)),!1)),_.onError&&y.push.apply(y,L([],$($e(String(Le(_.id)),_.onError)),!1)),y})),p=this.after,h=j(L(L(L(L([],$(m),!1),$(f),!1),$(i),!1),$(d),!1).map(function(_){return me(_).map(function(y){return o.formatTransition(y)})}));try{for(var v=R(p),w=v.next();!w.done;w=v.next()){var g=w.value;h.push(g)}}catch(_){t={error:_}}finally{try{w&&!w.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}return h},e}(),uo=!1;function Ze(e,t){return!W&&!("predictableActionArguments"in e)&&!uo&&(uo=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new bc(e,t)}var Se=Ii,pn=wi,Ac=ki,Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ec(e,t){for(var r=-1,o=e==null?0:e.length,i=Array(o);++r<o;)i[r]=t(e[r],r,e);return i}var Di=Ec;function Tc(){this.__data__=[],this.size=0}var Ic=Tc;function Pc(e,t){return e===t||e!==e&&t!==t}var bt=Pc,kc=bt;function Nc(e,t){for(var r=e.length;r--;)if(kc(e[r][0],t))return r;return-1}var mn=Nc,Mc=mn,xc=Array.prototype,Uc=xc.splice;function Fc(e){var t=this.__data__,r=Mc(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Uc.call(t,r,1),--this.size,!0}var Oc=Fc,Rc=mn;function $c(e){var t=this.__data__,r=Rc(t,e);return r<0?void 0:t[r][1]}var Dc=$c,Bc=mn;function Vc(e){return Bc(this.__data__,e)>-1}var zc=Vc,Lc=mn;function Gc(e,t){var r=this.__data__,o=Lc(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var jc=Gc,Wc=Ic,Hc=Oc,Kc=Dc,Yc=zc,qc=jc;function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Qe.prototype.clear=Wc;Qe.prototype.delete=Hc;Qe.prototype.get=Kc;Qe.prototype.has=Yc;Qe.prototype.set=qc;var gn=Qe,Jc=gn;function Zc(){this.__data__=new Jc,this.size=0}var Qc=Zc;function Xc(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var eu=Xc;function tu(e){return this.__data__.get(e)}var nu=tu;function ru(e){return this.__data__.has(e)}var ou=ru,iu=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,Bi=iu,au=Bi,su=typeof self=="object"&&self&&self.Object===Object&&self,lu=au||su||Function("return this")(),ye=lu,cu=ye,uu=cu.Symbol,hn=uu,fo=hn,Vi=Object.prototype,du=Vi.hasOwnProperty,fu=Vi.toString,lt=fo?fo.toStringTag:void 0;function pu(e){var t=du.call(e,lt),r=e[lt];try{e[lt]=void 0;var o=!0}catch{}var i=fu.call(e);return o&&(t?e[lt]=r:delete e[lt]),i}var mu=pu,gu=Object.prototype,hu=gu.toString;function yu(e){return hu.call(e)}var vu=yu,po=hn,_u=mu,Su=vu,wu="[object Null]",Cu="[object Undefined]",mo=po?po.toStringTag:void 0;function bu(e){return e==null?e===void 0?Cu:wu:mo&&mo in Object(e)?_u(e):Su(e)}var Xe=bu;function Au(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ae=Au,Eu=Xe,Tu=Ae,Iu="[object AsyncFunction]",Pu="[object Function]",ku="[object GeneratorFunction]",Nu="[object Proxy]";function Mu(e){if(!Tu(e))return!1;var t=Eu(e);return t==Pu||t==ku||t==Iu||t==Nu}var hr=Mu,xu=ye,Uu=xu["__core-js_shared__"],Fu=Uu,Un=Fu,go=function(){var e=/[^.]+$/.exec(Un&&Un.keys&&Un.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ou(e){return!!go&&go in e}var Ru=Ou,$u=Function.prototype,Du=$u.toString;function Bu(e){if(e!=null){try{return Du.call(e)}catch{}try{return e+""}catch{}}return""}var zi=Bu,Vu=hr,zu=Ru,Lu=Ae,Gu=zi,ju=/[\\^$.*+?()[\]{}|]/g,Wu=/^\[object .+?Constructor\]$/,Hu=Function.prototype,Ku=Object.prototype,Yu=Hu.toString,qu=Ku.hasOwnProperty,Ju=RegExp("^"+Yu.call(qu).replace(ju,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zu(e){if(!Lu(e)||zu(e))return!1;var t=Vu(e)?Ju:Wu;return t.test(Gu(e))}var Qu=Zu;function Xu(e,t){return e==null?void 0:e[t]}var ed=Xu,td=Qu,nd=ed;function rd(e,t){var r=nd(e,t);return td(r)?r:void 0}var Fe=rd,od=Fe,id=ye,ad=od(id,"Map"),yr=ad,sd=Fe,ld=sd(Object,"create"),yn=ld,ho=yn;function cd(){this.__data__=ho?ho(null):{},this.size=0}var ud=cd;function dd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fd=dd,pd=yn,md="__lodash_hash_undefined__",gd=Object.prototype,hd=gd.hasOwnProperty;function yd(e){var t=this.__data__;if(pd){var r=t[e];return r===md?void 0:r}return hd.call(t,e)?t[e]:void 0}var vd=yd,_d=yn,Sd=Object.prototype,wd=Sd.hasOwnProperty;function Cd(e){var t=this.__data__;return _d?t[e]!==void 0:wd.call(t,e)}var bd=Cd,Ad=yn,Ed="__lodash_hash_undefined__";function Td(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ad&&t===void 0?Ed:t,this}var Id=Td,Pd=ud,kd=fd,Nd=vd,Md=bd,xd=Id;function et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}et.prototype.clear=Pd;et.prototype.delete=kd;et.prototype.get=Nd;et.prototype.has=Md;et.prototype.set=xd;var Ud=et,yo=Ud,Fd=gn,Od=yr;function Rd(){this.size=0,this.__data__={hash:new yo,map:new(Od||Fd),string:new yo}}var $d=Rd;function Dd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Bd=Dd,Vd=Bd;function zd(e,t){var r=e.__data__;return Vd(t)?r[typeof t=="string"?"string":"hash"]:r.map}var vn=zd,Ld=vn;function Gd(e){var t=Ld(this,e).delete(e);return this.size-=t?1:0,t}var jd=Gd,Wd=vn;function Hd(e){return Wd(this,e).get(e)}var Kd=Hd,Yd=vn;function qd(e){return Yd(this,e).has(e)}var Jd=qd,Zd=vn;function Qd(e,t){var r=Zd(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var Xd=Qd,ef=$d,tf=jd,nf=Kd,rf=Jd,of=Xd;function tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}tt.prototype.clear=ef;tt.prototype.delete=tf;tt.prototype.get=nf;tt.prototype.has=rf;tt.prototype.set=of;var vr=tt,af=gn,sf=yr,lf=vr,cf=200;function uf(e,t){var r=this.__data__;if(r instanceof af){var o=r.__data__;if(!sf||o.length<cf-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new lf(o)}return r.set(e,t),this.size=r.size,this}var df=uf,ff=gn,pf=Qc,mf=eu,gf=nu,hf=ou,yf=df;function nt(e){var t=this.__data__=new ff(e);this.size=t.size}nt.prototype.clear=pf;nt.prototype.delete=mf;nt.prototype.get=gf;nt.prototype.has=hf;nt.prototype.set=yf;var _r=nt,vf="__lodash_hash_undefined__";function _f(e){return this.__data__.set(e,vf),this}var Sf=_f;function wf(e){return this.__data__.has(e)}var Cf=wf,bf=vr,Af=Sf,Ef=Cf;function Qt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new bf;++t<r;)this.add(e[t])}Qt.prototype.add=Qt.prototype.push=Af;Qt.prototype.has=Ef;var Tf=Qt;function If(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}var Pf=If;function kf(e,t){return e.has(t)}var Nf=kf,Mf=Tf,xf=Pf,Uf=Nf,Ff=1,Of=2;function Rf(e,t,r,o,i,a){var s=r&Ff,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var m=-1,f=!0,p=r&Of?new Mf:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var h=e[m],v=t[m];if(o)var w=s?o(v,h,m,t,e,a):o(h,v,m,e,t,a);if(w!==void 0){if(w)continue;f=!1;break}if(p){if(!xf(t,function(g,_){if(!Uf(p,_)&&(h===g||i(h,g,r,o,a)))return p.push(_)})){f=!1;break}}else if(!(h===v||i(h,v,r,o,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Li=Rf,$f=ye,Df=$f.Uint8Array,Gi=Df;function Bf(e){var t=-1,r=Array(e.size);return e.forEach(function(o,i){r[++t]=[i,o]}),r}var Vf=Bf;function zf(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var Lf=zf,vo=hn,_o=Gi,Gf=bt,jf=Li,Wf=Vf,Hf=Lf,Kf=1,Yf=2,qf="[object Boolean]",Jf="[object Date]",Zf="[object Error]",Qf="[object Map]",Xf="[object Number]",ep="[object RegExp]",tp="[object Set]",np="[object String]",rp="[object Symbol]",op="[object ArrayBuffer]",ip="[object DataView]",So=vo?vo.prototype:void 0,Fn=So?So.valueOf:void 0;function ap(e,t,r,o,i,a,s){switch(r){case ip:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case op:return!(e.byteLength!=t.byteLength||!a(new _o(e),new _o(t)));case qf:case Jf:case Xf:return Gf(+e,+t);case Zf:return e.name==t.name&&e.message==t.message;case ep:case np:return e==t+"";case Qf:var l=Wf;case tp:var c=o&Kf;if(l||(l=Hf),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;o|=Yf,s.set(e,t);var d=jf(l(e),l(t),o,i,a,s);return s.delete(e),d;case rp:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}var sp=ap;function lp(e,t){for(var r=-1,o=t.length,i=e.length;++r<o;)e[i+r]=t[r];return e}var ji=lp,cp=Array.isArray,Ee=cp,up=ji,dp=Ee;function fp(e,t,r){var o=t(e);return dp(e)?o:up(o,r(e))}var Wi=fp;function pp(e,t){for(var r=-1,o=e==null?0:e.length,i=0,a=[];++r<o;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}var mp=pp;function gp(){return[]}var Hi=gp,hp=mp,yp=Hi,vp=Object.prototype,_p=vp.propertyIsEnumerable,wo=Object.getOwnPropertySymbols,Sp=wo?function(e){return e==null?[]:(e=Object(e),hp(wo(e),function(t){return _p.call(e,t)}))}:yp,Ki=Sp;function wp(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Cp=wp;function bp(e){return e!=null&&typeof e=="object"}var Oe=bp,Ap=Xe,Ep=Oe,Tp="[object Arguments]";function Ip(e){return Ep(e)&&Ap(e)==Tp}var Pp=Ip,Co=Pp,kp=Oe,Yi=Object.prototype,Np=Yi.hasOwnProperty,Mp=Yi.propertyIsEnumerable,xp=Co(function(){return arguments}())?Co:function(e){return kp(e)&&Np.call(e,"callee")&&!Mp.call(e,"callee")},Sr=xp,Xt={exports:{}};function Up(){return!1}var Fp=Up;Xt.exports;(function(e,t){var r=ye,o=Fp,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||o;e.exports=u})(Xt,Xt.exports);var wr=Xt.exports,Op=9007199254740991,Rp=/^(?:0|[1-9]\d*)$/;function $p(e,t){var r=typeof e;return t=t??Op,!!t&&(r=="number"||r!="symbol"&&Rp.test(e))&&e>-1&&e%1==0&&e<t}var _n=$p,Dp=9007199254740991;function Bp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dp}var Cr=Bp,Vp=Xe,zp=Cr,Lp=Oe,Gp="[object Arguments]",jp="[object Array]",Wp="[object Boolean]",Hp="[object Date]",Kp="[object Error]",Yp="[object Function]",qp="[object Map]",Jp="[object Number]",Zp="[object Object]",Qp="[object RegExp]",Xp="[object Set]",em="[object String]",tm="[object WeakMap]",nm="[object ArrayBuffer]",rm="[object DataView]",om="[object Float32Array]",im="[object Float64Array]",am="[object Int8Array]",sm="[object Int16Array]",lm="[object Int32Array]",cm="[object Uint8Array]",um="[object Uint8ClampedArray]",dm="[object Uint16Array]",fm="[object Uint32Array]",G={};G[om]=G[im]=G[am]=G[sm]=G[lm]=G[cm]=G[um]=G[dm]=G[fm]=!0;G[Gp]=G[jp]=G[nm]=G[Wp]=G[rm]=G[Hp]=G[Kp]=G[Yp]=G[qp]=G[Jp]=G[Zp]=G[Qp]=G[Xp]=G[em]=G[tm]=!1;function pm(e){return Lp(e)&&zp(e.length)&&!!G[Vp(e)]}var mm=pm;function gm(e){return function(t){return e(t)}}var hm=gm,en={exports:{}};en.exports;(function(e,t){var r=Bi,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&r.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(en,en.exports);var ym=en.exports,vm=mm,_m=hm,bo=ym,Ao=bo&&bo.isTypedArray,Sm=Ao?_m(Ao):vm,br=Sm,wm=Cp,Cm=Sr,bm=Ee,Am=wr,Em=_n,Tm=br,Im=Object.prototype,Pm=Im.hasOwnProperty;function km(e,t){var r=bm(e),o=!r&&Cm(e),i=!r&&!o&&Am(e),a=!r&&!o&&!i&&Tm(e),s=r||o||i||a,l=s?wm(e.length,String):[],c=l.length;for(var u in e)(t||Pm.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Em(u,c)))&&l.push(u);return l}var qi=km,Nm=Object.prototype;function Mm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nm;return e===r}var Ar=Mm;function xm(e,t){return function(r){return e(t(r))}}var Ji=xm,Um=Ji,Fm=Um(Object.keys,Object),Om=Fm,Rm=Ar,$m=Om,Dm=Object.prototype,Bm=Dm.hasOwnProperty;function Vm(e){if(!Rm(e))return $m(e);var t=[];for(var r in Object(e))Bm.call(e,r)&&r!="constructor"&&t.push(r);return t}var zm=Vm,Lm=hr,Gm=Cr;function jm(e){return e!=null&&Gm(e.length)&&!Lm(e)}var Sn=jm,Wm=qi,Hm=zm,Km=Sn;function Ym(e){return Km(e)?Wm(e):Hm(e)}var Zi=Ym,qm=Wi,Jm=Ki,Zm=Zi;function Qm(e){return qm(e,Zm,Jm)}var Xm=Qm,Eo=Xm,eg=1,tg=Object.prototype,ng=tg.hasOwnProperty;function rg(e,t,r,o,i,a){var s=r&eg,l=Eo(e),c=l.length,u=Eo(t),d=u.length;if(c!=d&&!s)return!1;for(var m=c;m--;){var f=l[m];if(!(s?f in t:ng.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var w=s;++m<c;){f=l[m];var g=e[f],_=t[f];if(o)var y=s?o(_,g,f,t,e,a):o(g,_,f,e,t,a);if(!(y===void 0?g===_||i(g,_,r,o,a):y)){v=!1;break}w||(w=f=="constructor")}if(v&&!w){var S=e.constructor,C=t.constructor;S!=C&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(v=!1)}return a.delete(e),a.delete(t),v}var og=rg,ig=Fe,ag=ye,sg=ig(ag,"DataView"),lg=sg,cg=Fe,ug=ye,dg=cg(ug,"Promise"),fg=dg,pg=Fe,mg=ye,gg=pg(mg,"Set"),hg=gg,yg=Fe,vg=ye,_g=yg(vg,"WeakMap"),Sg=_g,qn=lg,Jn=yr,Zn=fg,Qn=hg,Xn=Sg,Qi=Xe,rt=zi,To="[object Map]",wg="[object Object]",Io="[object Promise]",Po="[object Set]",ko="[object WeakMap]",No="[object DataView]",Cg=rt(qn),bg=rt(Jn),Ag=rt(Zn),Eg=rt(Qn),Tg=rt(Xn),xe=Qi;(qn&&xe(new qn(new ArrayBuffer(1)))!=No||Jn&&xe(new Jn)!=To||Zn&&xe(Zn.resolve())!=Io||Qn&&xe(new Qn)!=Po||Xn&&xe(new Xn)!=ko)&&(xe=function(e){var t=Qi(e),r=t==wg?e.constructor:void 0,o=r?rt(r):"";if(o)switch(o){case Cg:return No;case bg:return To;case Ag:return Io;case Eg:return Po;case Tg:return ko}return t});var Ig=xe,On=_r,Pg=Li,kg=sp,Ng=og,Mo=Ig,xo=Ee,Uo=wr,Mg=br,xg=1,Fo="[object Arguments]",Oo="[object Array]",Ft="[object Object]",Ug=Object.prototype,Ro=Ug.hasOwnProperty;function Fg(e,t,r,o,i,a){var s=xo(e),l=xo(t),c=s?Oo:Mo(e),u=l?Oo:Mo(t);c=c==Fo?Ft:c,u=u==Fo?Ft:u;var d=c==Ft,m=u==Ft,f=c==u;if(f&&Uo(e)){if(!Uo(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new On),s||Mg(e)?Pg(e,t,r,o,i,a):kg(e,t,c,r,o,i,a);if(!(r&xg)){var p=d&&Ro.call(e,"__wrapped__"),h=m&&Ro.call(t,"__wrapped__");if(p||h){var v=p?e.value():e,w=h?t.value():t;return a||(a=new On),i(v,w,r,o,a)}}return f?(a||(a=new On),Ng(e,t,r,o,i,a)):!1}var Og=Fg,Rg=Og,$o=Oe;function Xi(e,t,r,o,i){return e===t?!0:e==null||t==null||!$o(e)&&!$o(t)?e!==e&&t!==t:Rg(e,t,r,o,Xi,i)}var ea=Xi,$g=_r,Dg=ea,Bg=1,Vg=2;function zg(e,t,r,o){var i=r.length,a=i,s=!o;if(e==null)return!a;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var m=new $g;if(o)var f=o(u,d,c,e,t,m);if(!(f===void 0?Dg(d,u,Bg|Vg,o,m):f))return!1}}return!0}var Lg=zg,Gg=Ae;function jg(e){return e===e&&!Gg(e)}var ta=jg,Wg=ta,Hg=Zi;function Kg(e){for(var t=Hg(e),r=t.length;r--;){var o=t[r],i=e[o];t[r]=[o,i,Wg(i)]}return t}var Yg=Kg;function qg(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var na=qg,Jg=Lg,Zg=Yg,Qg=na;function Xg(e){var t=Zg(e);return t.length==1&&t[0][2]?Qg(t[0][0],t[0][1]):function(r){return r===e||Jg(r,e,t)}}var eh=Xg,th=Xe,nh=Oe,rh="[object Symbol]";function oh(e){return typeof e=="symbol"||nh(e)&&th(e)==rh}var Er=oh,ih=Ee,ah=Er,sh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lh=/^\w*$/;function ch(e,t){if(ih(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ah(e)?!0:lh.test(e)||!sh.test(e)||t!=null&&e in Object(t)}var Tr=ch,ra=vr,uh="Expected a function";function Ir(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uh);var r=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,o);return r.cache=a.set(i,s)||a,s};return r.cache=new(Ir.Cache||ra),r}Ir.Cache=ra;var dh=Ir,fh=dh,ph=500;function mh(e){var t=fh(e,function(o){return r.size===ph&&r.clear(),o}),r=t.cache;return t}var gh=mh,hh=gh,yh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vh=/\\(\\)?/g,_h=hh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yh,function(r,o,i,a){t.push(i?a.replace(vh,"$1"):o||r)}),t}),Sh=_h,Do=hn,wh=Di,Ch=Ee,bh=Er,Bo=Do?Do.prototype:void 0,Vo=Bo?Bo.toString:void 0;function oa(e){if(typeof e=="string")return e;if(Ch(e))return wh(e,oa)+"";if(bh(e))return Vo?Vo.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ah=oa,Eh=Ah;function Th(e){return e==null?"":Eh(e)}var Ih=Th,Ph=Ee,kh=Tr,Nh=Sh,Mh=Ih;function xh(e,t){return Ph(e)?e:kh(e,t)?[e]:Nh(Mh(e))}var wn=xh,Uh=Er;function Fh(e){if(typeof e=="string"||Uh(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var At=Fh,Oh=wn,Rh=At;function $h(e,t){t=Oh(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Rh(t[r++])];return r&&r==o?e:void 0}var Pr=$h,Dh=Pr;function Bh(e,t,r){var o=e==null?void 0:Dh(e,t);return o===void 0?r:o}var Vh=Bh;function zh(e,t){return e!=null&&t in Object(e)}var Lh=zh,Gh=wn,jh=Sr,Wh=Ee,Hh=_n,Kh=Cr,Yh=At;function qh(e,t,r){t=Gh(t,e);for(var o=-1,i=t.length,a=!1;++o<i;){var s=Yh(t[o]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++o!=i?a:(i=e==null?0:e.length,!!i&&Kh(i)&&Hh(s,i)&&(Wh(e)||jh(e)))}var Jh=qh,Zh=Lh,Qh=Jh;function Xh(e,t){return e!=null&&Qh(e,t,Zh)}var ey=Xh,ty=ea,ny=Vh,ry=ey,oy=Tr,iy=ta,ay=na,sy=At,ly=1,cy=2;function uy(e,t){return oy(e)&&iy(t)?ay(sy(e),t):function(r){var o=ny(r,e);return o===void 0&&o===t?ry(r,e):ty(t,o,ly|cy)}}var dy=uy;function fy(e){return e}var kr=fy;function py(e){return function(t){return t==null?void 0:t[e]}}var my=py,gy=Pr;function hy(e){return function(t){return gy(t,e)}}var yy=hy,vy=my,_y=yy,Sy=Tr,wy=At;function Cy(e){return Sy(e)?vy(wy(e)):_y(e)}var by=Cy,Ay=eh,Ey=dy,Ty=kr,Iy=Ee,Py=by;function ky(e){return typeof e=="function"?e:e==null?Ty:typeof e=="object"?Iy(e)?Ey(e[0],e[1]):Ay(e):Py(e)}var Ny=ky,My=Fe,xy=function(){try{var e=My(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ia=xy,zo=ia;function Uy(e,t,r){t=="__proto__"&&zo?zo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Nr=Uy,Fy=Nr,Oy=bt,Ry=Object.prototype,$y=Ry.hasOwnProperty;function Dy(e,t,r){var o=e[t];(!($y.call(e,t)&&Oy(o,r))||r===void 0&&!(t in e))&&Fy(e,t,r)}var aa=Dy,By=aa,Vy=wn,zy=_n,Lo=Ae,Ly=At;function Gy(e,t,r,o){if(!Lo(e))return e;t=Vy(t,e);for(var i=-1,a=t.length,s=a-1,l=e;l!=null&&++i<a;){var c=Ly(t[i]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var d=l[c];u=o?o(d,c,l):void 0,u===void 0&&(u=Lo(d)?d:zy(t[i+1])?[]:{})}By(l,c,u),l=l[c]}return e}var jy=Gy,Wy=Pr,Hy=jy,Ky=wn;function Yy(e,t,r){for(var o=-1,i=t.length,a={};++o<i;){var s=t[o],l=Wy(e,s);r(l,s)&&Hy(a,Ky(s,e),l)}return a}var qy=Yy,Jy=Ji,Zy=Jy(Object.getPrototypeOf,Object),Mr=Zy,Qy=ji,Xy=Mr,ev=Ki,tv=Hi,nv=Object.getOwnPropertySymbols,rv=nv?function(e){for(var t=[];e;)Qy(t,ev(e)),e=Xy(e);return t}:tv,ov=rv;function iv(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var av=iv,sv=Ae,lv=Ar,cv=av,uv=Object.prototype,dv=uv.hasOwnProperty;function fv(e){if(!sv(e))return cv(e);var t=lv(e),r=[];for(var o in e)o=="constructor"&&(t||!dv.call(e,o))||r.push(o);return r}var pv=fv,mv=qi,gv=pv,hv=Sn;function yv(e){return hv(e)?mv(e,!0):gv(e)}var xr=yv,vv=Wi,_v=ov,Sv=xr;function wv(e){return vv(e,Sv,_v)}var Cv=wv,bv=Di,Av=Ny,Ev=qy,Tv=Cv;function Iv(e,t){if(e==null)return{};var r=bv(Tv(e),function(o){return[o]});return t=Av(t),Ev(e,r,function(o,i){return t(o,i[0])})}var Pv=Iv;const kv=$i(Pv),Nv=!0,Mv="",Cn=(e,t)=>`${e}${t}`.replace(/[^A-Z0-9+]/gi,""),xv=(e,t)=>{switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}},Uv=e=>{const{phone_number:t,...r}=kv(e,xv);if(ni(t)&&t!==Mv){const{country_code:o}=e;return{...r,phone_number:Cn(o,t)}}return r},Fv=(e,t,r)=>{const{password:o,...i}=t,a=Uv(i),s={autoSignIn:Nv,userAttributes:{...r==="phone_number"?{...a,phone_number:e}:a}};return{username:e,password:o,options:s}},Ov=({formValues:e,loginMechanisms:t})=>{if(t.includes("username"))return e.username;const r=t[0];if(r==="phone_number"){const{country_code:o,phone_number:i}=e;return Cn(o,i)}return e[r]},{assign:V}=Ni,Rv=V({actorDoneData:void 0}),$v=V({challengeName:void 0}),Dv=V({missingAttributes:void 0}),Bv=V({remoteError:void 0}),Vv=V({formValues:{}}),zv=V({touched:{}}),Lv=V({user:void 0}),Gv=V({validationError:{}}),jv=V({totpSecretCode:(e,{data:t})=>{var o;const{sharedSecret:r}=((o=t.nextStep)==null?void 0:o.totpSetupDetails)??{};return r}}),Wv=V({allowedMfaTypes:(e,{data:t})=>{var r;return(r=t.nextStep)==null?void 0:r.allowedMFATypes}}),Hv=V({step:"SIGN_IN"}),Kv=V({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),Yv=V({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),qv=V({challengeName:(e,{data:t})=>{const{signInStep:r}=t.nextStep;switch(r){case"CONFIRM_SIGN_IN_WITH_SMS_CODE":return"SMS_MFA";case"CONFIRM_SIGN_IN_WITH_TOTP_CODE":return"SOFTWARE_TOKEN_MFA";case"CONFIRM_SIGN_IN_WITH_EMAIL_CODE":return"EMAIL_OTP";case"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION":case"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP":case"CONTINUE_SIGN_IN_WITH_TOTP_SETUP":return"MFA_SETUP";case"CONTINUE_SIGN_IN_WITH_MFA_SELECTION":return"SELECT_MFA_TYPE";default:return}}}),Jv=V({username:({formValues:e,loginMechanisms:t})=>{const r=t[0],{username:o,country_code:i}=e;return r==="phone_number"?Cn(i,o):o}}),Zv=V({username:Ov}),Qv=V({username:({formValues:e,loginMechanisms:t})=>{const r=t[0],{username:o,country_code:i}=e;return r==="phone_number"?Cn(i,o):o}}),Xv=V({step:(e,{data:t})=>t.nextStep.signInStep==="DONE"?"SIGN_IN_COMPLETE":t.nextStep.signInStep}),e_=V({step:(e,{data:t})=>t.nextStep.signUpStep==="DONE"?"SIGN_UP_COMPLETE":t.nextStep.signUpStep}),t_=V({step:(e,{data:t})=>t.nextStep.resetPasswordStep==="DONE"?"RESET_PASSWORD_COMPLETE":t.nextStep.resetPasswordStep}),n_=V({missingAttributes:(e,{data:t})=>{var r;return(r=t.nextStep)==null?void 0:r.missingAttributes}}),r_=V({validationError:(e,{data:t})=>t}),o_=V({remoteError:(e,{data:t})=>t.name==="NoUserPoolError"?"Configuration error (see console) – please contact the administrator":(t==null?void 0:t.message)||t}),i_=V({user:(e,{data:t})=>t}),Go=e=>({Destination:e.destination,DeliveryMedium:e.deliveryMedium,AttributeName:e.attributName}),a_=V({codeDeliveryDetails:(e,{data:t})=>{var r;return(r=t==null?void 0:t.nextStep)!=null&&r.codeDeliveryDetails?Go(t.nextStep.codeDeliveryDetails):Go(t)}}),s_=V({formValues:(e,{data:t})=>{const{name:r,value:o}=t;return{...e.formValues,[r]:o}}}),l_=V({formValues:(e,{data:t})=>Ss({...e.formValues,...t},"password")}),c_=V({touched:(e,{data:t})=>({...e.touched,[t.name]:!0})}),u_=V({unverifiedUserAttributes:(e,{data:t})=>{const{email:r,phone_number:o}=t;return{...r&&{email:r},...o&&{phone_number:o}}}}),d_=V({selectedUserAttribute:void 0}),f_=V({selectedUserAttribute:e=>{var t;return(t=e.formValues)==null?void 0:t.unverifiedAttr}}),p_=V({step:"CONFIRM_SIGN_UP"}),Et={clearActorDoneData:Rv,clearChallengeName:$v,clearError:Bv,clearFormValues:Vv,clearMissingAttributes:Dv,clearSelectedUserAttribute:d_,clearTouched:zv,clearUser:Lv,clearValidationError:Gv,handleBlur:c_,handleInput:s_,handleSubmit:l_,setAllowedMfaTypes:Wv,setChallengeName:qv,setCodeDeliveryDetails:a_,setFieldErrors:r_,setMissingAttributes:n_,setNextResetPasswordStep:t_,setNextSignInStep:Xv,setNextSignUpStep:e_,setRemoteError:o_,setConfirmAttributeCompleteStep:Yv,setConfirmSignUpSignUpStep:p_,setShouldVerifyUserAttributeStep:Kv,setSelectedUserAttribute:f_,setSignInStep:Hv,setTotpSecretCode:jv,setUser:i_,setUnverifiedUserAttributes:u_,setUsernameForgotPassword:Jv,setUsernameSignIn:Qv,setUsernameSignUp:Zv},m_=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE","CONFIRM_SIGN_IN_WITH_EMAIL_CODE"],g_=(e,{data:t})=>(t==null?void 0:t.nextStep.signInStep)==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",h_=(e,{data:t})=>{var r;return((r=t==null?void 0:t.nextStep)==null?void 0:r.signInStep)==="RESET_PASSWORD"},y_=(e,{data:t})=>(t==null?void 0:t.nextStep.signInStep)==="CONFIRM_SIGN_UP",v_=(e,{data:t})=>(t==null?void 0:t.nextStep.signUpStep)==="COMPLETE_AUTO_SIGN_IN",__=(e,{data:t})=>(t==null?void 0:t.nextStep.signInStep)==="DONE",S_=(e,{data:t})=>(t==null?void 0:t.nextStep.signUpStep)==="DONE",w_=(e,{data:t})=>(t==null?void 0:t.nextStep.resetPasswordStep)==="DONE",C_=(e,{data:t})=>(t==null?void 0:t.step)==="CONFIRM_ATTRIBUTE_COMPLETE",b_=(e,{data:t})=>(t==null?void 0:t.step)==="CONFIRM_ATTRIBUTE_WITH_CODE",A_=(e,{data:t})=>(t==null?void 0:t.step)==="SHOULD_CONFIRM_USER_ATTRIBUTE",E_=(e,{data:t})=>(t==null?void 0:t.step)==="RESET_PASSWORD",T_=(e,{data:t})=>(t==null?void 0:t.step)==="CONFIRM_SIGN_UP",I_=({step:e})=>m_.includes(e),P_=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_TOTP_SETUP",k_=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP",N_=({step:e})=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e),M_=({step:e})=>e==="RESET_PASSWORD",x_=({step:e})=>e==="CONFIRM_RESET_PASSWORD_WITH_CODE",U_=({step:e})=>e==="CONFIRM_SIGN_UP",F_=(e,{data:t})=>{const{email:r,phone_number:o,phone_number_verified:i,email_verified:a}=t;return!r&&!o?!1:(a===void 0||a==="false")&&(i===void 0||i==="false")},O_=(e,{data:t})=>t.message==="User is already confirmed.",bn={hasCompletedAttributeConfirmation:C_,hasCompletedResetPassword:w_,hasCompletedSignIn:__,hasCompletedSignUp:S_,isConfirmSignUpStep:T_,isConfirmUserAttributeStep:b_,isResetPasswordStep:E_,isShouldConfirmUserAttributeStep:A_,isUserAlreadyConfirmed:O_,shouldAutoSignIn:v_,shouldConfirmResetPassword:x_,shouldConfirmSignIn:I_,shouldConfirmSignInWithNewPassword:g_,shouldConfirmSignUp:U_,shouldConfirmSignUpFromSignIn:y_,shouldResetPassword:M_,shouldResetPasswordFromSignIn:h_,shouldSetupTotp:P_,shouldSetupEmail:k_,shouldSelectMfaType:N_,shouldVerifyAttribute:F_};var R_=Nr,$_=bt;function D_(e,t,r){(r!==void 0&&!$_(e[t],r)||r===void 0&&!(t in e))&&R_(e,t,r)}var sa=D_;function B_(e){return function(t,r,o){for(var i=-1,a=Object(t),s=o(t),l=s.length;l--;){var c=s[e?l:++i];if(r(a[c],c,a)===!1)break}return t}}var V_=B_,z_=V_,L_=z_(),G_=L_,tn={exports:{}};tn.exports;(function(e,t){var r=ye,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var m=u.length,f=l?l(m):new u.constructor(m);return u.copy(f),f}e.exports=c})(tn,tn.exports);var j_=tn.exports,jo=Gi;function W_(e){var t=new e.constructor(e.byteLength);return new jo(t).set(new jo(e)),t}var H_=W_,K_=H_;function Y_(e,t){var r=t?K_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var q_=Y_;function J_(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}var Z_=J_,Q_=Ae,Wo=Object.create,X_=function(){function e(){}return function(t){if(!Q_(t))return{};if(Wo)return Wo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),eS=X_,tS=eS,nS=Mr,rS=Ar;function oS(e){return typeof e.constructor=="function"&&!rS(e)?tS(nS(e)):{}}var iS=oS,aS=Sn,sS=Oe;function lS(e){return sS(e)&&aS(e)}var cS=lS,uS=Xe,dS=Mr,fS=Oe,pS="[object Object]",mS=Function.prototype,gS=Object.prototype,la=mS.toString,hS=gS.hasOwnProperty,yS=la.call(Object);function vS(e){if(!fS(e)||uS(e)!=pS)return!1;var t=dS(e);if(t===null)return!0;var r=hS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&la.call(r)==yS}var _S=vS;function SS(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ca=SS,wS=aa,CS=Nr;function bS(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=o?o(r[l],e[l],l,r,e):void 0;c===void 0&&(c=e[l]),i?CS(r,l,c):wS(r,l,c)}return r}var AS=bS,ES=AS,TS=xr;function IS(e){return ES(e,TS(e))}var PS=IS,Ho=sa,kS=j_,NS=q_,MS=Z_,xS=iS,Ko=Sr,Yo=Ee,US=cS,FS=wr,OS=hr,RS=Ae,$S=_S,DS=br,qo=ca,BS=PS;function VS(e,t,r,o,i,a,s){var l=qo(e,r),c=qo(t,r),u=s.get(c);if(u){Ho(e,r,u);return}var d=a?a(l,c,r+"",e,t,s):void 0,m=d===void 0;if(m){var f=Yo(c),p=!f&&FS(c),h=!f&&!p&&DS(c);d=c,f||p||h?Yo(l)?d=l:US(l)?d=MS(l):p?(m=!1,d=kS(c,!0)):h?(m=!1,d=NS(c,!0)):d=[]:$S(c)||Ko(c)?(d=l,Ko(l)?d=BS(l):(!RS(l)||OS(l))&&(d=xS(c))):m=!1}m&&(s.set(c,d),i(d,c,o,a,s),s.delete(c)),Ho(e,r,d)}var zS=VS,LS=_r,GS=sa,jS=G_,WS=zS,HS=Ae,KS=xr,YS=ca;function ua(e,t,r,o,i){e!==t&&jS(t,function(a,s){if(i||(i=new LS),HS(a))WS(e,t,s,r,ua,o,i);else{var l=o?o(YS(e,s),a,s+"",e,t,i):void 0;l===void 0&&(l=a),GS(e,s,l)}},KS)}var qS=ua;function JS(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ZS=JS,QS=ZS,Jo=Math.max;function XS(e,t,r){return t=Jo(t===void 0?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Jo(o.length-t,0),s=Array(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=o[i];return l[t]=r(s),QS(e,this,l)}}var ew=XS;function tw(e){return function(){return e}}var nw=tw,rw=nw,Zo=ia,ow=kr,iw=Zo?function(e,t){return Zo(e,"toString",{configurable:!0,enumerable:!1,value:rw(t),writable:!0})}:ow,aw=iw,sw=800,lw=16,cw=Date.now;function uw(e){var t=0,r=0;return function(){var o=cw(),i=lw-(o-r);if(r=o,i>0){if(++t>=sw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dw=uw,fw=aw,pw=dw,mw=pw(fw),gw=mw,hw=kr,yw=ew,vw=gw;function _w(e,t){return vw(yw(e,t,hw),e+"")}var Sw=_w,ww=bt,Cw=Sn,bw=_n,Aw=Ae;function Ew(e,t,r){if(!Aw(r))return!1;var o=typeof t;return(o=="number"?Cw(r)&&bw(t,r.length):o=="string"&&t in r)?ww(r[t],e):!1}var Tw=Ew,Iw=Sw,Pw=Tw;function kw(e){return Iw(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&Pw(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++o<i;){var l=r[o];l&&e(t,l,o,a)}return t})}var Nw=kw,Mw=qS,xw=Nw,Uw=xw(function(e,t,r){Mw(e,t,r)}),Fw=Uw;const Ow=$i(Fw),An=async(e,t,r,o)=>{const i=await Promise.all(o.map(s=>s(e,t,r))),a=Ow({},...i);return ri(a)?Promise.resolve():Promise.reject(a)},Rw=8,$w=e=>Array.isArray(e),Dw=e=>{if(e)return $w(e)?Object.entries(e).map(([t,r])=>Object.keys(r)[0]):Object.keys(e)},ke={async getAmplifyConfig(){var l,c,u,d;const e=Da.Amplify.getConfig(),t=(l=e.Auth)==null?void 0:l.Cognito,{loginWith:r,userAttributes:o}=((c=e.Auth)==null?void 0:c.Cognito)??{},i=r?Object.entries(r).filter(([m,f])=>m!=="oauth").filter(([m,f])=>!!f).map(m=>m[0]==="phone"?"phone_number":m[0]):void 0,a=Dw(o),s=(u=r==null?void 0:r.oauth)!=null&&u.providers?(d=r.oauth.providers)==null?void 0:d.map(m=>m.toString().toLowerCase()):void 0;return{...t,loginMechanisms:i,signUpAttributes:a,socialProviders:s}},getCurrentUser:Y.getCurrentUser,handleSignIn:Y.signIn,handleSignUp:Y.signUp,handleConfirmSignIn:Y.confirmSignIn,handleConfirmSignUp:Y.confirmSignUp,handleForgotPasswordSubmit:Y.confirmResetPassword,handleForgotPassword:Y.resetPassword,handleResendSignUpCode:Y.resendSignUpCode,async validateCustomSignUp(e,t){},async validateFormPassword(e,t,r){const{password:o}=e,{password:i}=t;if(!i||!r)return null;const a=[],s=r.minLength??Rw;return o.length<s&&a.push(`Password must have at least ${s} characters`),r.requireLowercase&&!/[a-z]/.test(o)&&a.push("Password must have lower case letters"),r.requireUppercase&&!/[A-Z]/.test(o)&&a.push("Password must have upper case letters"),r.requireNumbers&&!/[0-9]/.test(o)&&a.push("Password must have numbers"),r.requireSpecialCharacters&&!vs(o)&&a.push("Password must have special characters"),a.length!==0?{password:a}:null},async validateConfirmPassword(e,t){const{password:r,confirm_password:o}=e,{confirm_password:i,password:a}=t;if(!r&&!o)return null;if((r||o)&&r!==o&&(i&&a||(r==null?void 0:r.length)>=6&&(o==null?void 0:o.length)>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){}};function Bw({services:e}){return Ze({id:"forgotPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldResetPassword",target:"confirmResetPassword"},{cond:"shouldConfirmResetPassword",target:"confirmResetPassword"},{target:"forgotPassword"}]},forgotPassword:{initial:"edit",entry:"sendUpdate",exit:["clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:"pending",entry:["sendUpdate","clearError","setUsernameForgotPassword"],invoke:{src:"handleResetPassword",onDone:{actions:["setCodeDeliveryDetails","setNextResetPasswordStep"],target:"#forgotPasswordActor.confirmResetPassword"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleResetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleConfirmResetPassword",onDone:[{cond:"hasCompletedResetPassword",actions:"setNextResetPasswordStep",target:"#forgotPasswordActor.resolved"},{actions:"setSignInStep",target:"#forgotPasswordActor.resolved"}],onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final",data:({step:t})=>({step:t})}}},{actions:{...Et,sendUpdate:pn()},guards:bn,services:{handleResetPassword({username:t}){return e.handleForgotPassword({username:t})},handleConfirmResetPassword({formValues:t,username:r}){const{confirmation_code:o,password:i}=t;return e.handleForgotPasswordSubmit({confirmationCode:o,newPassword:i,username:r})},validateFields(t){return An(t.formValues,t.touched,t.passwordSettings,[ke.validateFormPassword,ke.validateConfirmPassword])}}})}const da=e=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:e},onError:{actions:"setRemoteError",target:e}}}),Vw=e=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e)?"mfa_type":e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"?"email":"confirmation_code",er={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signInActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:["setMissingAttributes","setNextSignInStep"],target:"#signInActor.forceChangePassword"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resendSignUpCode"},{actions:["setChallengeName","setMissingAttributes","setNextSignInStep","setTotpSecretCode","setAllowedMfaTypes"],target:"#signInActor.init"}],onError:{actions:"setRemoteError",target:"edit"}},zw={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signInActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}},Ot=e=>({initial:"edit",exit:e,states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"confirmSignIn",...er}}}});function Lw({services:e}){return Ze({id:"signInActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignIn",target:"confirmSignIn"},{cond:"shouldSetupTotp",target:"setupTotp"},{cond:"shouldSetupEmail",target:"setupEmail"},{cond:"shouldSelectMfaType",target:"selectMfaType"},{cond:({step:t})=>t==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:da("signIn"),fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...zw}},resendSignUpCode:{invoke:{src:"handleResendSignUpCode",onDone:{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resetPassword:{invoke:{src:"resetPassword",onDone:[{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}}},signIn:{initial:"edit",exit:"clearTouched",states:{edit:{entry:"sendUpdate",on:{CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:{target:"#signInActor.federatedSignIn"},SUBMIT:{actions:"handleSubmit",target:"submit"}}},submit:{tags:"pending",entry:["clearError","sendUpdate","setUsernameSignIn"],exit:"clearFormValues",invoke:{src:"handleSignIn",...er}}}},confirmSignIn:Ot(["clearChallengeName","clearFormValues","clearError","clearTouched"]),forceChangePassword:{entry:"sendUpdate",type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:{actions:"setSignInStep",target:"#signInActor.resolved"},CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"edit",entry:"clearError",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{actions:"clearValidationError",target:"pending"},onError:{actions:"setFieldErrors",target:"edit"}}},pending:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"handleForceChangePassword",...er}}}}}},setupTotp:Ot(["clearFormValues","clearError","clearTouched"]),setupEmail:Ot(["clearFormValues","clearError","clearTouched"]),selectMfaType:Ot(["clearFormValues","clearError","clearTouched"]),resolved:{type:"final",data:t=>({codeDeliveryDetails:t.codeDeliveryDetails,remoteError:t.remoteError,step:t.step,unverifiedUserAttributes:t.unverifiedUserAttributes,username:t.username})}}},{actions:{...Et,sendUpdate:pn()},guards:bn,services:{async fetchUserAttributes(){return Y.fetchUserAttributes()},resetPassword({username:t}){return Y.resetPassword({username:t})},handleResendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},handleSignIn({formValues:t,username:r}){const{password:o}=t;return e.handleSignIn({username:r,password:o})},confirmSignIn({formValues:t,step:r}){const o=Vw(r),{[o]:i}=t;return e.handleConfirmSignIn({challengeResponse:i})},async handleForceChangePassword({formValues:t}){let{password:r,phone_number:o,country_code:i,confirm_password:a,...s}=t,l;o&&(l=`${i}${o}`.replace(/[^A-Z0-9+]/gi,""),s={...s,phone_number:l});const c={challengeResponse:r,options:{userAttributes:s}};return Y.confirmSignIn(c)},signInWithRedirect(t,{data:r}){return Y.signInWithRedirect(r)},async validateFields(t){return An(t.formValues,t.touched,t.passwordSettings,[ke.validateFormPassword,ke.validateConfirmPassword])}}})}const Gw={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},jw={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signUpActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:"setNextSignInStep",target:"#signUpActor.resolved"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resendSignUpCode"},{actions:["setNextSignInStep","setChallengeName","setMissingAttributes","setTotpSecretCode","setAllowedMfaTypes"],target:"#signUpActor.resolved"}],onError:{actions:"setRemoteError",target:"#signUpActor.resolved"}},Ww={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signUpActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}};function Hw({services:e}){return Ze({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]},autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...jw}},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...Ww}},federatedSignIn:da("signUp"),resetPassword:{invoke:{src:"resetPassword",...Gw}},resendSignUpCode:{tags:"pending",entry:"sendUpdate",exit:"sendUpdate",invoke:{src:"resendSignUpCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"#signUpActor.confirmSignUp"},onError:[{cond:"isUserAlreadyConfirmed",target:"#signUpActor.resolved"},{actions:["setRemoteError","sendUpdate"]}]}},signUp:{type:"parallel",exit:"clearTouched",on:{FEDERATED_SIGN_IN:{target:"federatedSignIn"}},states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{actions:"clearValidationError",target:"valid"},onError:{actions:"setFieldErrors",target:"invalid"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{BLUR:{actions:"handleBlur",target:".pending"},CHANGE:{actions:"handleInput",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:["sendUpdate"],on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"handleSignUp",actions:"clearValidationError"},onError:{actions:"setFieldErrors",target:"idle"}}},handleSignUp:{tags:"pending",entry:["setUsernameSignUp","clearError"],exit:"sendUpdate",invoke:{src:"handleSignUp",onDone:[{cond:"hasCompletedSignUp",actions:"setNextSignUpStep",target:"#signUpActor.resolved"},{cond:"shouldAutoSignIn",actions:"setNextSignUpStep",target:"#signUpActor.autoSignIn"},{actions:["setCodeDeliveryDetails","setNextSignUpStep"],target:"#signUpActor.init"}],onError:{actions:["sendUpdate","setRemoteError"],target:"idle"}}}}}}},confirmSignUp:{initial:"edit",entry:"sendUpdate",states:{edit:{on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"#signUpActor.resendSignUpCode"}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignUp",onDone:[{cond:"shouldAutoSignIn",actions:["setNextSignUpStep","clearFormValues"],target:"#signUpActor.autoSignIn"},{actions:"setNextSignUpStep",target:"#signUpActor.init"}],onError:{actions:["setRemoteError","sendUpdate"],target:"edit"}}}}},resolved:{type:"final",data:t=>({challengeName:t.challengeName,missingAttributes:t.missingAttributes,remoteError:t.remoteError,step:t.step,totpSecretCode:t.totpSecretCode,username:t.username,unverifiedUserAttributes:t.unverifiedUserAttributes,allowedMfaTypes:t.allowedMfaTypes})}}},{actions:{...Et,sendUpdate:pn()},guards:bn,services:{autoSignIn(){return Y.autoSignIn()},async fetchUserAttributes(){return Y.fetchUserAttributes()},confirmSignUp({formValues:t,username:r}){const{confirmation_code:o}=t,i={username:r,confirmationCode:o};return e.handleConfirmSignUp(i)},resendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},signInWithRedirect(t,{data:r}){return Y.signInWithRedirect(r)},handleSignUp(t){const{formValues:r,loginMechanisms:o,username:i}=t,a=o[0],s=Fv(i,r,a);return e.handleSignUp(s)},async validateSignUp(t){return An(t.formValues,t.touched,t.passwordSettings,[e.validateFormPassword,e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}}})}const Kw=()=>Ze({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:"pending",invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>Y.signOut()}});function Yw(){return Ze({id:"verifyUserAttributesActor",initial:"selectUserAttributes",predictableActionArguments:!0,states:{selectUserAttributes:{initial:"edit",exit:["clearError","clearTouched","sendUpdate"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:{target:"#verifyUserAttributesActor.resolved"},CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"sendUserAttributeVerificationCode",onDone:{actions:["setSelectedUserAttribute","setCodeDeliveryDetails"],target:"#verifyUserAttributesActor.confirmVerifyUserAttribute"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUserAttribute:{initial:"edit",exit:["clearError","clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#verifyUserAttributesActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmVerifyUserAttribute",onDone:{actions:["setConfirmAttributeCompleteStep","clearSelectedUserAttribute"],target:"#verifyUserAttributesActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...Et,sendUpdate:pn()},services:{sendUserAttributeVerificationCode({formValues:{unverifiedAttr:e}}){const t={userAttributeKey:e};return Y.sendUserAttributeVerificationCode(t)},async confirmVerifyUserAttribute({formValues:{confirmation_code:e},selectedUserAttribute:t}){const r={confirmationCode:e,userAttributeKey:t};return Y.confirmUserAttribute(r)},async validateFields(e){return An(e.formValues,e.touched,e.passwordSettings,[ke.validateFormPassword,ke.validateConfirmPassword])}}})}const Rt=(e,t)=>{var r,o,i,a,s,l;return{...e.actorDoneData,step:((r=e==null?void 0:e.actorDoneData)==null?void 0:r.step)??t,formValues:{},touched:{},validationError:{},formFields:(o=e.config)==null?void 0:o.formFields,loginMechanisms:(i=e.config)==null?void 0:i.loginMechanisms,passwordSettings:(a=e.config)==null?void 0:a.passwordSettings,signUpAttributes:(s=e.config)==null?void 0:s.signUpAttributes,socialProviders:(l=e.config)==null?void 0:l.socialProviders}},{choose:qw,stop:Jw}=Ni,ct=e=>Jw(e),Zw={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},Qw={always:{actions:"configure",target:"getConfig"}};function Xw(e){const{useNextWaitConfig:t,...r}={};return Ze({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:ke,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"setup"},onError:{target:"setup"}}},setup:{initial:"initConfig",states:{initConfig:t?Qw:Zw,getConfig:{invoke:{src:"getAmplifyConfig",onDone:[{actions:["applyAmplifyConfig","setHasSetup"],cond:"hasUser",target:"#authenticator.authenticated"},{actions:["applyAmplifyConfig","setHasSetup"],target:"goToInitialState"}]}},goToInitialState:{always:[{cond:"isInitialStateSignUp",target:"#authenticator.signUpActor"},{cond:"isInitialStateResetPassword",target:"#authenticator.forgotPasswordActor"},{target:"#authenticator.signInActor"}]}}},getCurrentUser:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"#authenticator.authenticated"},onError:{target:"#authenticator.setup"}}},signInActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("signInActor")}},on:{FORGOT_PASSWORD:"forgotPasswordActor",SIGN_IN:"signInActor",SIGN_UP:"signUpActor","done.invoke.signInActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isResetPasswordStep",actions:"setActorDoneData",target:"#authenticator.forgotPasswordActor"},{cond:"isConfirmSignUpStep",actions:"setActorDoneData",target:"#authenticator.signUpActor"}]}},signUpActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("signUpActor")}},on:{SIGN_IN:"signInActor","done.invoke.signUpActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isConfirmUserAttributeStep",target:"#authenticator.verifyUserAttributesActor"},{actions:"setActorDoneData",target:"#authenticator.signInActor"}]}},forgotPasswordActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnForgotPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("forgotPasswordActor")}},on:{SIGN_IN:"signInActor","done.invoke.forgotPasswordActor":[{target:"#authenticator.signInActor"}]}},verifyUserAttributesActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnVerifyUserAttributesActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("verifyUserAttributesActor")}},on:{"done.invoke.verifyUserAttributesActor":[{actions:"setActorDoneData",target:"#authenticator.getCurrentUser"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"#authenticator.getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("signOutActor")}},on:{"done.invoke.signOutActor":{actions:"clearUser",target:"setup.getConfig"}}}},on:{SIGN_IN_WITH_REDIRECT:{target:"#authenticator.getCurrentUser"},CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{...Et,forwardToActor:qw([{cond:"hasActor",actions:Ac(({actorRef:i})=>i)}]),setActorDoneData:Se({actorDoneData:(i,a)=>({challengeName:a.data.challengeName,codeDeliveryDetails:a.data.codeDeliveryDetails,missingAttributes:a.data.missingAttributes,remoteError:a.data.remoteError,username:a.data.username,step:a.data.step,totpSecretCode:a.data.totpSecretCode,unverifiedUserAttributes:a.data.unverifiedUserAttributes,allowedMfaTypes:a.data.allowedMfaTypes})}),applyAmplifyConfig:Se({config(i,{data:a}){const{loginMechanisms:s=a.loginMechanisms??[],signUpAttributes:l=a.signUpAttributes??[],socialProviders:c=a.socialProviders??[],initialState:u,formFields:d,passwordSettings:m=a.passwordFormat??{}}=i.config;return s.length===0&&s.push("username"),{formFields:eC(d)??{},initialState:u,loginMechanisms:s,passwordSettings:m,signUpAttributes:l,socialProviders:c}}}),spawnSignInActor:Se({actorRef:(i,a)=>{const{services:s}=i,l=Lw({services:s}).withContext(Rt(i,"SIGN_IN"));return at(l,{name:"signInActor"})}}),spawnSignUpActor:Se({actorRef:(i,a)=>{const{services:s}=i,l=Hw({services:s}).withContext(Rt(i,"SIGN_UP"));return at(l,{name:"signUpActor"})}}),spawnForgotPasswordActor:Se({actorRef:(i,a)=>{const{services:s}=i,l=Bw({services:s}).withContext(Rt(i,"FORGOT_PASSWORD"));return at(l,{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:Se({actorRef:i=>{const a=Yw().withContext(Rt(i));return at(a,{name:"verifyUserAttributesActor"})}}),spawnSignOutActor:Se({actorRef:i=>{const a=Kw().withContext({user:i==null?void 0:i.user});return at(a,{name:"signOutActor"})}}),configure:Se((i,a)=>{const{services:s,...l}=Xa(r)?a.data??{}:r;return{services:{...ke,...s},config:l}}),setHasSetup:Se({hasSetup:!0})},guards:{...bn,hasActor:({actorRef:i})=>!!i,isInitialStateSignUp:({config:i})=>i.initialState==="signUp",isInitialStateResetPassword:({config:i})=>i.initialState==="forgotPassword",shouldSetup:({hasSetup:i})=>!i,hasUser:({user:i})=>!!i},services:{getAmplifyConfig:({services:i})=>i.getAmplifyConfig(),handleGetCurrentUser:({services:i})=>i.getCurrentUser()}})}function eC(e){return e&&Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{let o=e[t][r];o.required=o.isRequired})}),e}const oe={Accordion:"amplify-accordion",AccordionItem:"amplify-accordion__item",AccordionItemTrigger:"amplify-accordion__item__trigger",AccordionItemContent:"amplify-accordion__item__content",AccordionItemIcon:"amplify-accordion__item__icon",Alert:"amplify-alert",AlertIcon:"amplify-alert__icon",AlertHeading:"amplify-alert__heading",AlertBody:"amplify-alert__body",AlertDismiss:"amplify-alert__dismiss",Autocomplete:"amplify-autocomplete",AutocompleteMenu:"amplify-autocomplete__menu",AutocompleteMenuEmpty:"amplify-autocomplete__menu--empty",AutocompleteMenuFooter:"amplify-autocomplete__menu__footer",AutocompleteMenuHeader:"amplify-autocomplete__menu__header",AutocompleteMenuLoading:"amplify-autocomplete__menu--loading",AutocompleteMenuOption:"amplify-autocomplete__menu__option",AutocompleteMenuOptions:"amplify-autocomplete__menu__options",Avatar:"amplify-avatar",AvatarIcon:"amplify-avatar__icon",AvatarImage:"amplify-avatar__image",AvatarLoader:"amplify-avatar__loader",AIConversation:"amplify-ai-conversation",AIConversationScrollView:"amplify-ai-conversation__scrollview",AIConversationAttachment:"amplify-ai-conversation__attachment",AIConversationAttachmentList:"amplify-ai-conversation__attachment__list",AIConversationAttachmentImage:"amplify-ai-conversation__attachment__image",AIConversationAttachmentName:"amplify-ai-conversation__attachment__name",AIConversationAttachmentSize:"amplify-ai-conversation__attachment__size",AIConversationAttachmentRemove:"amplify-ai-conversation__attachment__remove",AIConversationForm:"amplify-ai-conversation__form",AIConversationFormAttach:"amplify-ai-conversation__form__attach",AIConversationFormError:"amplify-ai-conversation__form__error",AIConversationFormSend:"amplify-ai-conversation__form__send",AIConversationFormField:"amplify-ai-conversation__form__field",AIConversationFormDropzone:"amplify-ai-conversation__form__dropzone",AIConversationMessage:"amplify-ai-conversation__message",AIConversationMessageAvatar:"amplify-ai-conversation__message__avatar",AIConversationMessageSender:"amplify-ai-conversation__message__sender",AIConversationMessageSenderUsername:"amplify-ai-conversation__message__sender__username",AIConversationMessageSenderTimestamp:"amplify-ai-conversation__message__sender__timestamp",AIConversationMessageBody:"amplify-ai-conversation__message__body",AIConversationMessageContent:"amplify-ai-conversation__message__content",AIConversationMessageActions:"amplify-ai-conversation__message__actions",AIConversationMessageList:"amplify-ai-conversation__message__list",AIConversationPrompt:"amplify-ai-conversation__prompt",Badge:"amplify-badge",Breadcrumbs:"amplify-breadcrumbs",BreadcrumbsList:"amplify-breadcrumbs__list",BreadcrumbsItem:"amplify-breadcrumbs__item",BreadcrumbsSeparator:"amplify-breadcrumbs__separator",BreadcrumbsLink:"amplify-breadcrumbs__link",Button:"amplify-button",ButtonGroup:"amplify-buttongroup",ButtonLoaderWrapper:"amplify-button__loader-wrapper",Card:"amplify-card",Checkbox:"amplify-checkbox",CheckboxButton:"amplify-checkbox__button",CheckboxIcon:"amplify-checkbox__icon",CheckboxInput:"amplify-checkbox__input",CheckboxLabel:"amplify-checkbox__label",CheckboxField:"amplify-checkboxfield",Collection:"amplify-collection",CollectionItems:"amplify-collection-items",CollectionSearch:"amplify-collection-search",CollectionPagination:"amplify-collection-pagination",CountryCodeSelect:"amplify-countrycodeselect",DialCodeSelect:"amplify-dialcodeselect",Divider:"amplify-divider",DividerLabel:"amplify-divider--label",DropZone:"amplify-dropzone",Field:"amplify-field",FieldDescription:"amplify-field__description",FieldErrorMessage:"amplify-field__error-message",FieldGroup:"amplify-field-group",FieldGroupControl:"amplify-field-group__control",FieldGroupOuterEnd:"amplify-field-group__outer-end",FieldGroupOuterStart:"amplify-field-group__outer-start",FieldGroupInnerEnd:"amplify-field-group__inner-end",FieldGroupInnerStart:"amplify-field-group__inner-start",FieldGroupIcon:"amplify-field-group__icon",FieldGroupIconButton:"amplify-field-group__icon-button",FieldGroupHasInnerEnd:"amplify-field-group--has-inner-end",FieldGroupHasInnerStart:"amplify-field-group--has-inner-start",FieldShowPassword:"amplify-field__show-password",FieldGroupFieldWrapper:"amplify-field-group__field-wrapper",Fieldset:"amplify-fieldset",FieldsetLegend:"amplify-fieldset__legend",FileUploader:"amplify-fileuploader",FileUploaderDropZone:"amplify-fileuploader__dropzone",FileUploaderDropZoneIcon:"amplify-fileuploader__dropzone__icon",FileUploaderDropZoneText:"amplify-fileuploader__dropzone__text",FileUploaderFilePicker:"amplify-fileuploader__file__picker",FileUploaderFile:"amplify-fileuploader__file",FileUploaderFileWrapper:"amplify-fileuploader__file__wrapper",FileUploaderFileList:"amplify-fileuploader__file__list",FileUploaderFileName:"amplify-fileuploader__file__name",FileUploaderFileSize:"amplify-fileuploader__file__size",FileUploaderFileInfo:"amplify-fileuploader__file__info",FileUploaderFileImage:"amplify-fileuploader__file__image",FileUploaderFileMain:"amplify-fileuploader__file__main",FileUploaderFileStatus:"amplify-fileuploader__file__status",FileUploaderLoader:"amplify-fileuploader__loader",FileUploaderPreviewer:"amplify-fileuploader__previewer",FileUploaderPreviewerText:"amplify-fileuploader__previewer__text",FileUploaderPreviewerActions:"amplify-fileuploader__previewer__actions",FileUploaderPreviewerFooter:"amplify-fileuploader__previewer__footer",Flex:"amplify-flex",Grid:"amplify-grid",Heading:"amplify-heading",HighlightMatch:"amplify-highlightmatch",HighlightMatchHighlighted:"amplify-highlightmatch__highlighted",Icon:"amplify-icon",Image:"amplify-image",Input:"amplify-input",Label:"amplify-label",Link:"amplify-link",Loader:"amplify-loader",LoaderLabel:"amplify-loader__label",MenuContent:"amplify-menu__content",MenuItem:"amplify-menu__content__item",MenuTrigger:"amplify-menu__trigger",MenuWrapper:"amplify-menu__wrapper",Message:"amplify-message",MessageIcon:"amplify-message__icon",MessageHeading:"amplify-message__heading",MessageBody:"amplify-message__body",MessageContent:"amplify-message__content",MessageDismiss:"amplify-message__dismiss",Pagination:"amplify-pagination",PaginationItem:"amplify-pagination__item",PasswordField:"amplify-passwordfield",PhoneNumberField:"amplify-phonenumberfield",Placeholder:"amplify-placeholder",Radio:"amplify-radio",RadioButton:"amplify-radio__button",RadioInput:"amplify-radio__input",RadioLabel:"amplify-radio__label",RadioGroupField:"amplify-radiogroupfield",RadioGroup:"amplify-radiogroup",Rating:"amplify-rating",RatingItem:"amplify-rating__item",RatingIcon:"amplify-rating__icon",RatingLabel:"amplify-rating__label",ScrollView:"amplify-scrollview",SearchField:"amplify-searchfield",SearchFieldClear:"amplify-searchfield__clear",SearchFieldSearch:"amplify-searchfield__search",Select:"amplify-select",SelectField:"amplify-selectfield",SelectWrapper:"amplify-select__wrapper",SelectIcon:"amplify-select__icon",SliderField:"amplify-sliderfield",SliderFieldGroup:"amplify-sliderfield__group",SliderFieldLabel:"amplify-sliderfield__label",SliderFieldRange:"amplify-sliderfield__range",SliderFieldRoot:"amplify-sliderfield__root",SliderFieldThumb:"amplify-sliderfield__thumb",SliderFieldTrack:"amplify-sliderfield__track",StepperField:"amplify-stepperfield",StepperFieldButtonDecrease:"amplify-stepperfield__button--decrease",StepperFieldButtonIncrease:"amplify-stepperfield__button--increase",StepperFieldInput:"amplify-stepperfield__input",StorageImage:"amplify-storageimage",StorageManager:"amplify-storagemanager",StorageManagerDropZone:"amplify-storagemanager__dropzone",StorageManagerDropZoneIcon:"amplify-storagemanager__dropzone__icon",StorageManagerDropZoneText:"amplify-storagemanager__dropzone__text",StorageManagerFilePicker:"amplify-storagemanager__file__picker",StorageManagerFile:"amplify-storagemanager__file",StorageManagerFileWrapper:"amplify-storagemanager__file__wrapper",StorageManagerFileList:"amplify-storagemanager__file__list",StorageManagerFileName:"amplify-storagemanager__file__name",StorageManagerFileSize:"amplify-storagemanager__file__size",StorageManagerFileInfo:"amplify-storagemanager__file__info",StorageManagerFileImage:"amplify-storagemanager__file__image",StorageManagerFileMain:"amplify-storagemanager__file__main",StorageManagerFileStatus:"amplify-storagemanager__file__status",StorageManagerLoader:"amplify-storagemanager__loader",StorageManagerPreviewer:"amplify-storagemanager__previewer",StorageManagerPreviewerText:"amplify-storagemanager__previewer__text",StorageManagerPreviewerActions:"amplify-storagemanager__previewer__actions",StorageManagerPreviewerFooter:"amplify-storagemanager__previewer__footer",SwitchField:"amplify-switchfield",SwitchLabel:"amplify-switch__label",SwitchThumb:"amplify-switch__thumb",SwitchTrack:"amplify-switch__track",SwitchWrapper:"amplify-switch__wrapper",Table:"amplify-table",TableCaption:"amplify-table__caption",TableBody:"amplify-table__body",TableTd:"amplify-table__td",TableTh:"amplify-table__th",TableFoot:"amplify-table__foot",TableHead:"amplify-table__head",TableRow:"amplify-table__row",Tabs:"amplify-tabs",TabsList:"amplify-tabs__list",TabsItem:"amplify-tabs__item",TabsPanel:"amplify-tabs__panel",Text:"amplify-text",Textarea:"amplify-textarea",TextAreaField:"amplify-textareafield",TextField:"amplify-textfield",ToggleButton:"amplify-togglebutton",ToggleButtonGroup:"amplify-togglebuttongroup",VisuallyHidden:"amplify-visually-hidden"},tC=({componentName:e,packageName:t,version:r})=>{const o=[`ui-${t}`,r];switch(e){case"AIConversation":{x.setCustomUserAgent({...La,additionalDetails:[[e],o]});break}case"Authenticator":{x.setCustomUserAgent({...ja,additionalDetails:[[e],o]});break}case"ChangePassword":case"DeleteUser":{x.setCustomUserAgent({...Ga,additionalDetails:[["AccountSettings"],o]});break}case"FileUploader":{x.setCustomUserAgent({...Wa,additionalDetails:[[e],o]});break}case"InAppMessaging":{x.setCustomUserAgent({...Ha,additionalDetails:[[e],o]});break}case"LocationSearch":{x.setCustomUserAgent({...Ka,additionalDetails:[[e],o]});break}case"MapView":{x.setCustomUserAgent({...Ya,additionalDetails:[[e],o]});break}case"StorageManager":{x.setCustomUserAgent({...qa,additionalDetails:[[e],o]});break}case"StorageBrowser":{x.setCustomUserAgent({...Ja,additionalDetails:[[e],o]});break}}return ts},nC={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},rC={class:"amplify-flex amplify-authenticator__icon-wrapper"},oC=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),iC=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),fe=n.defineComponent({__name:"base-alert",setup(e){const t=n.ref(!0),r=P("Dismiss alert");function o(){t.value=!1}return(i,a)=>{const s=ne;return t.value?(n.openBlock(),n.createElementBlock("div",nC,[n.createElementVNode("div",rC,[oC,n.createElementVNode("div",null,[n.renderSlot(i.$slots,"default")])]),n.createVNode(s,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":n.unref(r),fullwidth:!1,variation:"link",type:"button",onClick:o},{default:n.withCtx(()=>[iC]),_:1},8,["aria-label"])])):n.createCommentVNode("",!0)}}}),pe=n.defineComponent({__name:"base-field-set",setup(e){const t=n.useSlots();return(r,o)=>n.renderSlot(r.$slots,"fieldSetI",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("fieldset",n.mergeProps(r.$attrs,{"data-amplify-fieldset":""}),[n.renderSlot(r.$slots,"default")],16)])}});function aC(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function fa(e){let t=0,r,o;const i=()=>{t-=1,o&&t<=0&&(o.stop(),r=void 0,o=void 0)};return(...a)=>(t+=1,r||(o=n.effectScope(!0),r=o.run(()=>e(...a))),aC(i),r)}function sC(e){return"state"in e}var Qo=function(){};function lC(e){return"getSnapshot"in e?e.getSnapshot():sC(e)?e.state:void 0}function cC(e,t){t===void 0&&(t=lC);var r=n.isRef(e)?e:n.shallowRef(e),o=n.shallowRef(t(r.value)),i=function(a){r.value.send(a)};return n.watch(r,function(a,s,l){o.value=t(a);var c=a.subscribe({next:function(u){return o.value=u},error:Qo,complete:Qo}).unsubscribe;l(function(){return c()})},{immediate:!0}),{state:o,send:i}}const uC=e=>{var t,r,o;return{...(o=(r=(t=sr(e))==null?void 0:t.formFields)==null?void 0:r.setupTotp)==null?void 0:o.QR}},Ur=fa(()=>{const e=Xw(),t=Ri(e).start(),r=n.ref("configuring"),{state:o,send:i}=cC(t),a=()=>{r.value="authenticated"},s=()=>{r.value="unauthenticated"},l=ns(t,(c,u)=>oi(c,u,{onSignIn:a,onSignOut:s}));return Y.getCurrentUser().then(()=>{r.value="authenticated"}).catch(()=>{r.value="unauthenticated"}),n.onScopeDispose(()=>{l()}),{authStatus:r,service:t,send:i,state:o}}),ee=fa(()=>{const{authStatus:e,state:t,send:r}=Ur(),o=n.reactive({});return n.watchEffect(()=>{const i=ls({send:r,state:t.value});for(const s of Object.keys(i))o[s]=i[s];const a=i.route==="setupTotp"?uC(t.value):null;o.QRFields=a,o.authStatus=e.value,o.send=r,o.state=t}),o});let dC=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");const Tt=n.defineComponent({__name:"base-input",emits:["update:modelValue"],setup(e,{emit:t}){const r=o=>{t("update:modelValue",o.target.value)};return(o,i)=>(n.openBlock(),n.createElementBlock("input",{onChange:i[0]||(i[0]=a=>r(a)),"data-amplify-input":""},null,32))}}),fC={},pC={"data-amplify-label":""};function mC(e,t){return n.openBlock(),n.createElementBlock("label",pC,[n.renderSlot(e.$slots,"default")])}const It=on(fC,[["render",mC]]),gC=["aria-label","aria-checked"],hC=n.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),yC=[hC],vC=n.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),_C=n.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),SC=[vC,_C],wC={inheritAttrs:!1},Fr=n.defineComponent({...wC,__name:"password-control",props:{name:null,label:null,autocomplete:{default:"new-password"},hasError:{type:Boolean,default:!1},labelHidden:{type:Boolean},placeholder:null,required:{type:Boolean,default:!0},describedBy:null},setup(e){const t=e,r=P("Show password"),o=P("Hide password"),i=n.ref("password"),a=n.ref(r),s=Math.floor(Math.random()*999999),{name:l,label:c,autocomplete:u,hasError:d,labelHidden:m,placeholder:f,required:p}=n.toRefs(t),h=n.ref("");function v(){a.value=a.value===r?o:r,i.value=i.value==="password"?"text":"password"}const w=P((f==null?void 0:f.value)??c.value),g=P(c.value);return(_,y)=>{const S=It,C=Tt,A=X;return n.openBlock(),n.createBlock(A,{class:n.normalizeClass([n.unref(oe).Flex,n.unref(oe).Field,n.unref(oe).TextField,n.unref(oe).PasswordField])},{default:n.withCtx(()=>[n.createVNode(S,{class:n.normalizeClass(["amplify-label",{"amplify-visually-hidden":n.unref(m)}]),for:"amplify-field-"+n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(g)),1)]),_:1},8,["class","for"]),n.createVNode(A,{class:n.normalizeClass([n.unref(oe).Flex,n.unref(oe).FieldGroup])},{default:n.withCtx(()=>[n.createVNode(A,{class:n.normalizeClass(n.unref(oe).FieldGroupFieldWrapper)},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps(_.$attrs,{modelValue:h.value,"onUpdate:modelValue":y[0]||(y[0]=E=>h.value=E),class:[n.unref(oe).Input,n.unref(oe).FieldGroupControl],id:"amplify-field-"+n.unref(s),"data-amplify-password":"true",name:n.unref(l),autocomplete:n.unref(u),required:n.unref(p)??!0,placeholder:n.unref(w),type:i.value,"aria-invalid":n.unref(d),"aria-describedBy":e.describedBy,autocapitalize:"off"}),null,16,["modelValue","class","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"])]),_:1},8,["class"]),n.createVNode(A,{class:n.normalizeClass(n.unref(oe).FieldGroupOuterEnd)},{default:n.withCtx(()=>[n.createElementVNode("button",{"aria-label":a.value,"aria-checked":i.value!=="password",class:n.normalizeClass([n.unref(oe).Button,n.unref(oe).FieldGroupControl,n.unref(oe).FieldShowPassword]),"data-fullwidth":"false",type:"button",role:"switch",onClick:v},[i.value==="password"?(n.openBlock(),n.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:n.normalizeClass(n.unref(oe).Icon)},yC,2)):(n.openBlock(),n.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:n.normalizeClass(n.unref(oe).Icon)},SC,2))],10,gC)]),_:1},8,["class"])]),_:1},8,["class"])]),_:1},8,["class"])}}}),CC=["value","selected"],bC=n.defineComponent({__name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const r=e,{options:o,selectValue:i}=n.toRefs(r),a=s=>{t("update:selectValue",s.target.value)};return(s,l)=>(n.openBlock(),n.createElementBlock("select",{onChange:l[0]||(l[0]=c=>a(c))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o),(c,u)=>(n.openBlock(),n.createElementBlock("option",{key:u,value:c,selected:c==n.unref(i)?!0:void 0},n.toDisplayString(c),9,CC))),128))],32))}}),AC=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),EC=n.defineComponent({__name:"alias-control",props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"},hasError:{type:Boolean},describedBy:null},setup(e){const t=e,{label:r,name:o,placeholder:i,autocomplete:a,labelHidden:s,required:l,dialCode:c,dialCodeList:u}=n.toRefs(t),d=Math.floor(Math.random()*999999),m=Math.floor(Math.random()*999999);return(f,p)=>{const h=It,v=bC,w=X,g=Tt;return n.openBlock(),n.createBlock(w,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield"},{default:n.withCtx(()=>[n.createVNode(h,n.mergeProps({for:"amplify-field-"+n.unref(d),class:["amplify-label",{"amplify-visually-hidden":n.unref(s)}]},f.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},16,["for","class"]),n.createVNode(w,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[e.type==="tel"?(n.openBlock(),n.createBlock(w,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(h,n.mergeProps({for:"amplify-field-"+n.unref(m),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString("Country Code"))]),_:1},16,["for"]),n.createVNode(w,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(v,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+n.unref(m),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:n.unref(u),"select-value":n.unref(c)},null,8,["id","options","select-value"]),n.createVNode(w,{class:"amplify-flex amplify-select__icon"},{default:n.withCtx(()=>[AC]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(w,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(g,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+n.unref(d),autocomplete:n.unref(a),name:n.unref(o),required:n.unref(l)??!0,type:e.type,placeholder:n.unref(i),"aria-invalid":e.hasError,"aria-describedBy":e.describedBy,autocapitalize:"off"},null,8,["id","autocomplete","name","required","type","placeholder","aria-invalid","aria-describedBy"])]),_:1})]),_:1})]),_:1})}}}),TC=["id"],pa=n.defineComponent({__name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:r,formField:o}=n.toRefs(t),{validationErrors:i}=n.toRefs(ee()),{type:a}=o.value,s=a==="password",l=dC(12),c=n.computed(()=>ps(i.value[r.value])),u=n.computed(()=>{var m;return((m=c.value)==null?void 0:m.length)>0}),d=n.computed(()=>u.value?l:void 0);return(m,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[s?(n.openBlock(),n.createBlock(Fr,{key:0,name:n.unref(r),label:n.unref(o).label,placeholder:n.unref(o).placeholder,required:n.unref(o).isRequired,"label-hidden":n.unref(o).labelHidden,autocomplete:n.unref(o).autocomplete,hasError:n.unref(u),describedBy:n.unref(d)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(n.openBlock(),n.createBlock(EC,{key:1,name:n.unref(r),label:n.unref(o).label,placeholder:n.unref(o).placeholder,required:n.unref(o).isRequired,"label-hidden":n.unref(o).labelHidden,autocomplete:n.unref(o).autocomplete,"dial-code":n.unref(o).dialCode,"dial-code-list":n.unref(o).dialCodeList,type:n.unref(o).type,hasError:n.unref(u),describedBy:n.unref(d)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),n.unref(u)?(n.openBlock(),n.createElementBlock("div",{key:2,id:n.unref(d)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(c),(p,h)=>(n.openBlock(),n.createElementBlock("p",{key:h,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},n.toDisplayString(n.unref(P)(p)),1))),128))],8,TC)):n.createCommentVNode("",!0)],64))}}),ge=n.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:r}=n.toRefs(t),{state:o}=Ur();let i=[];return n.onBeforeMount(()=>{i=bl(r.value,o.value)}),(a,s)=>(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),([l,c])=>(n.openBlock(),n.createBlock(pa,{name:l,key:l,formField:c},null,8,["name","formField"]))),128))}}),$t=n.defineComponent({__name:"federated-sign-in-button",props:{provider:null},setup(e){const t=e,{provider:r}=n.toRefs(t),{toFederatedSignIn:o}=ee(),i=()=>{o({provider:r.value})};return(a,s)=>{const l=ne;return n.openBlock(),n.createBlock(l,{class:"amplify-authenticator__federated-button",type:"button",onClick:i},{default:n.withCtx(()=>[n.renderSlot(a.$slots,"default")]),_:3})}}}),IC=n.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon",viewBox:"0 0 248 268"},[n.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),PC={class:"amplify-text"},kC=n.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),NC={class:"amplify-text"},MC=n.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon",viewBox:"0 0 279 538"},[n.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),xC={class:"amplify-text"},UC=n.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[n.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),n.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),n.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),n.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),FC={class:"amplify-text"},OC=["data-label"],En=n.defineComponent({__name:"federated-sign-in",setup(e){const t=ee(),{route:r,socialProviders:o}=t,i=o==null?void 0:o.includes("amazon"),a=o==null?void 0:o.includes("apple"),s=o==null?void 0:o.includes("facebook"),l=o==null?void 0:o.includes("google"),c=s||l||i||a,{getSignInWithFederationText:u,getOrText:d}=ie,m=n.computed(()=>zn),f=n.computed(()=>u(r,"amazon")),p=n.computed(()=>u(r,"apple")),h=n.computed(()=>u(r,"facebook")),v=n.computed(()=>u(r,"google")),w=n.computed(()=>d());return(g,_)=>{const y=X;return n.unref(c)?(n.openBlock(),n.createBlock(y,{key:0,class:"amplify-flex amplify-authenticator__federated-buttons"},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock($t,{key:0,provider:n.unref(m).Amazon},{default:n.withCtx(()=>[IC,n.createElementVNode("span",PC,n.toDisplayString(n.unref(f)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(a)?(n.openBlock(),n.createBlock($t,{key:1,provider:n.unref(m).Apple},{default:n.withCtx(()=>[kC,n.createElementVNode("span",NC,n.toDisplayString(n.unref(p)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(s)?(n.openBlock(),n.createBlock($t,{key:2,provider:n.unref(m).Facebook},{default:n.withCtx(()=>[MC,n.createElementVNode("span",xC,n.toDisplayString(n.unref(h)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(l)?(n.openBlock(),n.createBlock($t,{key:3,provider:n.unref(m).Google},{default:n.withCtx(()=>[UC,n.createElementVNode("span",FC,n.toDisplayString(n.unref(v)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.createElementVNode("hr",{class:"amplify-divider amplify-divider--horizontal amplify-divider--small","aria-orientation":"horizontal","data-label":n.unref(w)},null,8,OC)]),_:1})):n.createCommentVNode("",!0)}}}),RC=n.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),$C={"data-amplify-footer":""},Or=n.defineComponent({__name:"sign-in",setup(e){const t=ee(),{submitForm:r,updateForm:o,toForgotPassword:i}=t,{error:a,isPending:s}=n.toRefs(t),{getForgotPasswordText:l,getSignInText:c,getSigningInText:u}=ie,d=n.computed(()=>l()),m=n.computed(()=>c()),f=n.computed(()=>u()),p=w=>{const{name:g,value:_}=w.target;o({name:g,value:_})},h=w=>{r(de(w))},v=()=>{i()};return(w,g)=>{const _=pe,y=fe,S=ne,C=X,A=ue,E=ce;return n.renderSlot(w.$slots,"signInSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.renderSlot(w.$slots,"header"),n.createVNode(C,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(A,{"data-amplify-authenticator-signin":"",onInput:p,onSubmit:n.withModifiers(h,["prevent"]),method:"post"},{formt:n.withCtx(({slotData:T})=>[n.renderSlot(w.$slots,"form",{info:T,onSignInSubmit:h,onInput:p,onForgotPasswordClicked:v})]),default:n.withCtx(()=>[n.createVNode(En),n.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(_,{disabled:n.unref(s),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:n.withCtx(({slotData:T})=>[n.renderSlot(w.$slots,"signin-fields",{info:T})]),default:n.withCtx(()=>[RC,n.createVNode(ge,{route:"signIn"})]),_:3},8,["disabled"]),n.unref(a)?(n.openBlock(),n.createBlock(y,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(S,{disabled:n.unref(s),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)?n.unref(f):n.unref(m)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(E,null,{default:n.withCtx(()=>[n.renderSlot(w.$slots,"footer",{},()=>[n.createElementVNode("div",$C,[n.createVNode(S,{onClick:v,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})])])]),_:3})])}}}),Rr=n.defineComponent({__name:"authenticator-sign-up-form-fields",setup(e){return(t,r)=>(n.openBlock(),n.createBlock(ge,{route:"signUp"}))}}),$r=n.defineComponent({__name:"sign-up",setup(e){const t=ee(),{submitForm:r,updateBlur:o,updateForm:i}=t,{error:a,hasValidationErrors:s,isPending:l}=n.toRefs(t),{getCreateAccountText:c}=ie,u=n.computed(()=>c()),d=p=>{const{checked:h,name:v,type:w,value:g}=p.target;i({name:v,value:w==="checkbox"&&!h?void 0:g})};function m(p){const{name:h}=p.target;o({name:h})}const f=p=>{r(de(p))};return(p,h)=>{const v=pe,w=fe,g=ne,_=X,y=ue,S=ce;return n.renderSlot(p.$slots,"signUpSlotI",n.normalizeProps(n.guardReactiveProps(p.$attrs)),()=>[n.renderSlot(p.$slots,"header"),n.createVNode(_,n.normalizeProps(n.guardReactiveProps(p.$attrs)),{default:n.withCtx(()=>[n.createVNode(y,{onInput:d,onBlurCapture:m,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(En),n.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(v,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{fieldSetI:n.withCtx(({slotData:C})=>[n.renderSlot(p.$slots,"signup-fields",{info:C})]),default:n.withCtx(()=>[n.createVNode(Rr)]),_:3},8,["disabled"]),n.unref(a)?(n.openBlock(),n.createBlock(w,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(g,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:n.unref(l)||n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(S,null,{default:n.withCtx(()=>[n.renderSlot(p.$slots,"footer")]),_:3})])}}}),DC={};function BC(e,t){const r=X;return n.openBlock(),n.createBlock(r,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs amplify-tabs"},{default:n.withCtx(()=>[n.createVNode(r,{class:"amplify-tabs__list amplify-tabs__list--top amplify-tabs__list--equal amplify-authenticator__tabs-wrapper",role:"tablist"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3})}const VC=on(DC,[["render",BC]]),zC=["tabindex","aria-selected","id","aria-controls"],LC=n.defineComponent({__name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:r,id:o,label:i}=n.toRefs(t);return(a,s)=>(n.openBlock(),n.createElementBlock("button",{tabindex:n.unref(r)?0:-1,"aria-selected":n.unref(r)?"true":"false",class:n.normalizeClass([{"amplify-tabs__item--active":n.unref(r)},"amplify-tabs__item"]),id:`${n.unref(o)}-tab`,"aria-controls":`${n.unref(o)}-panel`,role:"tab"},n.toDisplayString(n.unref(i)),11,zC))}}),GC="4.3.7",jC={};function WC(e,t){return n.renderSlot(e.$slots,"textI",n.normalizeProps(n.guardReactiveProps(e.$attrs)),()=>[n.createElementVNode("span",n.mergeProps(e.$attrs,{"data-amplify-text":""}),[n.renderSlot(e.$slots,"default")],16)])}const Dr=on(jC,[["render",WC]]),ve=n.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r}){var s,l;const o=t.default?t.default():[],i=t.headingI?t.headingI():[],a=`${r.class||""} amplify-heading--${e.level}`;if(((l=(s=i[0])==null?void 0:s.children)==null?void 0:l.length)===0)i[0].children=[n.h(`h${e.level}`,{...r,class:a},[o])];else return()=>n.h(`h${e.level}`,{"data-amplify-heading":"",...r,class:a},[i[0]?n.h(i[0].children[0]):n.h(o[0])]);return()=>i}}),Br=n.defineComponent({__name:"confirm-sign-up",setup(e){const t=ee(),{codeDeliveryDetails:r,error:o,isPending:i}=n.toRefs(t),{resendCode:a,submitForm:s,updateForm:l}=t,{getDeliveryMethodText:c,getDeliveryMessageText:u,getResendCodeText:d,getConfirmText:m}=ie,f=n.computed(()=>c(r.value)),p=n.computed(()=>d()),h=n.computed(()=>m()),v=n.computed(()=>u(r.value)),w=S=>{const{name:C,value:A}=S.target;l({name:C,value:A})},g=S=>{_(S)},_=S=>{s(de(S))},y=()=>{a()};return(S,C)=>{const A=ve,E=Dr,T=pe,I=fe,k=ne,N=ce,U=X,F=ue;return n.renderSlot(S.$slots,"confirmSignUpSlotI",n.normalizeProps(n.guardReactiveProps(S.$attrs)),()=>[n.createVNode(U,n.normalizeProps(n.guardReactiveProps(S.$attrs)),{default:n.withCtx(()=>[n.createVNode(F,{onInput:w,onSubmit:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createVNode(U,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"header",{},()=>[n.createVNode(A,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(E,{class:"amplify-authenticator__subtitle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1}),n.createVNode(T,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(i)},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmSignUp"})]),_:1},8,["disabled"]),n.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(o)?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(o))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:n.unref(i)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1},8,["disabled"]),n.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(y,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(S.$slots,"footer")]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Vr=n.defineComponent({__name:"confirm-sign-in",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateForm:i}=t,{error:a,isPending:s,challengeName:l}=n.toRefs(t),c=n.computed(()=>l.value),{getBackToSignInText:u,getConfirmText:d,getChallengeText:m}=ie,f=n.computed(()=>m(c.value)),p=n.computed(()=>u()),h=n.computed(()=>d()),v=_=>{const{name:y,value:S}=_.target;i({name:y,value:S})},w=_=>{r(de(_))},g=()=>{o()};return(_,y)=>{const S=ve,C=X,A=fe,E=ne,T=ce,I=pe,k=ue;return n.renderSlot(_.$slots,"confirmSignInSlotI",n.normalizeProps(n.guardReactiveProps(_.$attrs)),()=>[n.createVNode(C,n.normalizeProps(n.guardReactiveProps(_.$attrs)),{default:n.withCtx(()=>[n.createVNode(k,{"data-amplify-authenticator-confirmsignin":"",onInput:v,onSubmit:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createVNode(I,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(s)},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"header",{},()=>[n.createVNode(S,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmSignIn"})]),_:1}),n.createVNode(T,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(A,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1},8,["disabled"]),n.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(_.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Pt={},HC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ma={},le={};let zr;const KC=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];le.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};le.getSymbolTotalCodewords=function(t){return KC[t]};le.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};le.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');zr=t};le.isKanjiModeEnabled=function(){return typeof zr<"u"};le.toSJIS=function(t){return zr(t)};var Tn={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,i){if(e.isValid(o))return o;try{return t(o)}catch{return i}}})(Tn);function ga(){this.buffer=[],this.length=0}ga.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var YC=ga;function kt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}kt.prototype.set=function(e,t,r,o){const i=e*this.size+t;this.data[i]=r,o&&(this.reservedBit[i]=!0)};kt.prototype.get=function(e,t){return this.data[e*this.size+t]};kt.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};kt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var qC=kt,ha={};(function(e){const t=le.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const i=Math.floor(o/7)+2,a=t(o),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,l=[a-7];for(let c=1;c<i-1;c++)l[c]=l[c-1]-s;return l.push(6),l.reverse()},e.getPositions=function(o){const i=[],a=e.getRowColCoords(o),s=a.length;for(let l=0;l<s;l++)for(let c=0;c<s;c++)l===0&&c===0||l===0&&c===s-1||l===s-1&&c===0||i.push([a[l],a[c]]);return i}})(ha);var ya={};const JC=le.getSymbolSize,Xo=7;ya.getPositions=function(t){const r=JC(t);return[[0,0],[r-Xo,0],[0,r-Xo]]};var va={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,l=0,c=0,u=null,d=null;for(let m=0;m<a;m++){l=c=0,u=d=null;for(let f=0;f<a;f++){let p=i.get(m,f);p===u?l++:(l>=5&&(s+=t.N1+(l-5)),u=p,l=1),p=i.get(f,m),p===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=p,c=1)}l>=5&&(s+=t.N1+(l-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let l=0;l<a-1;l++)for(let c=0;c<a-1;c++){const u=i.get(l,c)+i.get(l,c+1)+i.get(l+1,c)+i.get(l+1,c+1);(u===4||u===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,l=0,c=0;for(let u=0;u<a;u++){l=c=0;for(let d=0;d<a;d++)l=l<<1&2047|i.get(u,d),d>=10&&(l===1488||l===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let c=0;c<s;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function r(o,i,a){switch(o){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(i,a){const s=a.size;for(let l=0;l<s;l++)for(let c=0;c<s;c++)a.isReserved(c,l)||a.xor(c,l,r(i,c,l))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let l=0,c=1/0;for(let u=0;u<s;u++){a(u),e.applyMask(u,i);const d=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(u,i),d<c&&(c=d,l=u)}return l}})(va);var In={};const Ie=Tn,Dt=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Bt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];In.getBlocksCount=function(t,r){switch(r){case Ie.L:return Dt[(t-1)*4+0];case Ie.M:return Dt[(t-1)*4+1];case Ie.Q:return Dt[(t-1)*4+2];case Ie.H:return Dt[(t-1)*4+3];default:return}};In.getTotalCodewordsCount=function(t,r){switch(r){case Ie.L:return Bt[(t-1)*4+0];case Ie.M:return Bt[(t-1)*4+1];case Ie.Q:return Bt[(t-1)*4+2];case Ie.H:return Bt[(t-1)*4+3];default:return}};var _a={},Pn={};const ht=new Uint8Array(512),nn=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)ht[r]=t,nn[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)ht[r]=ht[r-255]})();Pn.log=function(t){if(t<1)throw new Error("log("+t+")");return nn[t]};Pn.exp=function(t){return ht[t]};Pn.mul=function(t,r){return t===0||r===0?0:ht[nn[t]+nn[r]]};(function(e){const t=Pn;e.mul=function(o,i){const a=new Uint8Array(o.length+i.length-1);for(let s=0;s<o.length;s++)for(let l=0;l<i.length;l++)a[s+l]^=t.mul(o[s],i[l]);return a},e.mod=function(o,i){let a=new Uint8Array(o);for(;a.length-i.length>=0;){const s=a[0];for(let c=0;c<i.length;c++)a[c]^=t.mul(i[c],s);let l=0;for(;l<a.length&&a[l]===0;)l++;a=a.slice(l)}return a},e.generateECPolynomial=function(o){let i=new Uint8Array([1]);for(let a=0;a<o;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(_a);const Sa=_a;function Lr(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Lr.prototype.initialize=function(t){this.degree=t,this.genPoly=Sa.generateECPolynomial(this.degree)};Lr.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const o=Sa.mod(r,this.genPoly),i=this.degree-o.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(o,i),a}return o};var ZC=Lr,wa={},Ne={},Gr={};Gr.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _e={};const Ca="[0-9]+",QC="[A-Z $%*+\\-./:]+";let wt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";wt=wt.replace(/u/g,"\\u");const XC="(?:(?![A-Z0-9 $%*+\\-./:]|"+wt+`)(?:.|[\r
21
- ]))+`;_e.KANJI=new RegExp(wt,"g");_e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");_e.BYTE=new RegExp(XC,"g");_e.NUMERIC=new RegExp(Ca,"g");_e.ALPHANUMERIC=new RegExp(QC,"g");const eb=new RegExp("^"+wt+"$"),tb=new RegExp("^"+Ca+"$"),nb=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");_e.testKanji=function(t){return eb.test(t)};_e.testNumeric=function(t){return tb.test(t)};_e.testAlphanumeric=function(t){return nb.test(t)};(function(e){const t=Gr,r=_e;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return r.testNumeric(a)?e.NUMERIC:r.testAlphanumeric(a)?e.ALPHANUMERIC:r.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,s){if(e.isValid(a))return a;try{return o(a)}catch{return s}}})(Ne);(function(e){const t=le,r=In,o=Tn,i=Ne,a=Gr,s=7973,l=t.getBCHDigit(s);function c(f,p,h){for(let v=1;v<=40;v++)if(p<=e.getCapacity(v,h,f))return v}function u(f,p){return i.getCharCountIndicator(f,p)+4}function d(f,p){let h=0;return f.forEach(function(v){const w=u(v.mode,p);h+=w+v.getBitsLength()}),h}function m(f,p){for(let h=1;h<=40;h++)if(d(f,h)<=e.getCapacity(h,p,i.MIXED))return h}e.from=function(p,h){return a.isValid(p)?parseInt(p,10):h},e.getCapacity=function(p,h,v){if(!a.isValid(p))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=i.BYTE);const w=t.getSymbolTotalCodewords(p),g=r.getTotalCodewordsCount(p,h),_=(w-g)*8;if(v===i.MIXED)return _;const y=_-u(v,p);switch(v){case i.NUMERIC:return Math.floor(y/10*3);case i.ALPHANUMERIC:return Math.floor(y/11*2);case i.KANJI:return Math.floor(y/13);case i.BYTE:default:return Math.floor(y/8)}},e.getBestVersionForData=function(p,h){let v;const w=o.from(h,o.M);if(Array.isArray(p)){if(p.length>1)return m(p,w);if(p.length===0)return 1;v=p[0]}else v=p;return c(v.mode,v.getLength(),w)},e.getEncodedBits=function(p){if(!a.isValid(p)||p<7)throw new Error("Invalid QR Code version");let h=p<<12;for(;t.getBCHDigit(h)-l>=0;)h^=s<<t.getBCHDigit(h)-l;return p<<12|h}})(wa);var ba={};const tr=le,Aa=1335,rb=21522,ei=tr.getBCHDigit(Aa);ba.getEncodedBits=function(t,r){const o=t.bit<<3|r;let i=o<<10;for(;tr.getBCHDigit(i)-ei>=0;)i^=Aa<<tr.getBCHDigit(i)-ei;return(o<<10|i)^rb};var Ea={};const ob=Ne;function je(e){this.mode=ob.NUMERIC,this.data=e.toString()}je.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};je.prototype.getLength=function(){return this.data.length};je.prototype.getBitsLength=function(){return je.getBitsLength(this.data.length)};je.prototype.write=function(t){let r,o,i;for(r=0;r+3<=this.data.length;r+=3)o=this.data.substr(r,3),i=parseInt(o,10),t.put(i,10);const a=this.data.length-r;a>0&&(o=this.data.substr(r),i=parseInt(o,10),t.put(i,a*3+1))};var ib=je;const ab=Ne,Rn=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function We(e){this.mode=ab.ALPHANUMERIC,this.data=e}We.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};We.prototype.getLength=function(){return this.data.length};We.prototype.getBitsLength=function(){return We.getBitsLength(this.data.length)};We.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let o=Rn.indexOf(this.data[r])*45;o+=Rn.indexOf(this.data[r+1]),t.put(o,11)}this.data.length%2&&t.put(Rn.indexOf(this.data[r]),6)};var sb=We,lb=function(t){for(var r=[],o=t.length,i=0;i<o;i++){var a=t.charCodeAt(i);if(a>=55296&&a<=56319&&o>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(a-55296)*1024+s-56320+65536,i+=1)}if(a<128){r.push(a);continue}if(a<2048){r.push(a>>6|192),r.push(a&63|128);continue}if(a<55296||a>=57344&&a<65536){r.push(a>>12|224),r.push(a>>6&63|128),r.push(a&63|128);continue}if(a>=65536&&a<=1114111){r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const cb=lb,ub=Ne;function He(e){this.mode=ub.BYTE,this.data=new Uint8Array(cb(e))}He.getBitsLength=function(t){return t*8};He.prototype.getLength=function(){return this.data.length};He.prototype.getBitsLength=function(){return He.getBitsLength(this.data.length)};He.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var db=He;const fb=Ne,pb=le;function Ke(e){this.mode=fb.KANJI,this.data=e}Ke.getBitsLength=function(t){return t*13};Ke.prototype.getLength=function(){return this.data.length};Ke.prototype.getBitsLength=function(){return Ke.getBitsLength(this.data.length)};Ke.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=pb.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
22
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var mb=Ke,Ta={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,o,i){var a={},s={};s[o]=0;var l=t.PriorityQueue.make();l.push(o,0);for(var c,u,d,m,f,p,h,v,w;!l.empty();){c=l.pop(),u=c.value,m=c.cost,f=r[u]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],h=m+p,v=s[d],w=typeof s[d]>"u",(w||v>h)&&(s[d]=h,l.push(d,h),a[d]=u))}if(typeof i<"u"&&typeof s[i]>"u"){var g=["Could not find a path from ",o," to ",i,"."].join("");throw new Error(g)}return a},extract_shortest_path_from_predecessor_list:function(r,o){for(var i=[],a=o;a;)i.push(a),r[a],a=r[a];return i.reverse(),i},find_path:function(r,o,i){var a=t.single_source_shortest_paths(r,o,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(r){var o=t.PriorityQueue,i={},a;r=r||{};for(a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);return i.queue=[],i.sorter=r.sorter||o.default_sorter,i},default_sorter:function(r,o){return r.cost-o.cost},push:function(r,o){var i={value:r,cost:o};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Ta);var gb=Ta.exports;(function(e){const t=Ne,r=ib,o=sb,i=db,a=mb,s=_e,l=le,c=gb;function u(g){return unescape(encodeURIComponent(g)).length}function d(g,_,y){const S=[];let C;for(;(C=g.exec(y))!==null;)S.push({data:C[0],index:C.index,mode:_,length:C[0].length});return S}function m(g){const _=d(s.NUMERIC,t.NUMERIC,g),y=d(s.ALPHANUMERIC,t.ALPHANUMERIC,g);let S,C;return l.isKanjiModeEnabled()?(S=d(s.BYTE,t.BYTE,g),C=d(s.KANJI,t.KANJI,g)):(S=d(s.BYTE_KANJI,t.BYTE,g),C=[]),_.concat(y,S,C).sort(function(E,T){return E.index-T.index}).map(function(E){return{data:E.data,mode:E.mode,length:E.length}})}function f(g,_){switch(_){case t.NUMERIC:return r.getBitsLength(g);case t.ALPHANUMERIC:return o.getBitsLength(g);case t.KANJI:return a.getBitsLength(g);case t.BYTE:return i.getBitsLength(g)}}function p(g){return g.reduce(function(_,y){const S=_.length-1>=0?_[_.length-1]:null;return S&&S.mode===y.mode?(_[_.length-1].data+=y.data,_):(_.push(y),_)},[])}function h(g){const _=[];for(let y=0;y<g.length;y++){const S=g[y];switch(S.mode){case t.NUMERIC:_.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:_.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:_.push([S,{data:S.data,mode:t.BYTE,length:u(S.data)}]);break;case t.BYTE:_.push([{data:S.data,mode:t.BYTE,length:u(S.data)}])}}return _}function v(g,_){const y={},S={start:{}};let C=["start"];for(let A=0;A<g.length;A++){const E=g[A],T=[];for(let I=0;I<E.length;I++){const k=E[I],N=""+A+I;T.push(N),y[N]={node:k,lastCount:0},S[N]={};for(let U=0;U<C.length;U++){const F=C[U];y[F]&&y[F].node.mode===k.mode?(S[F][N]=f(y[F].lastCount+k.length,k.mode)-f(y[F].lastCount,k.mode),y[F].lastCount+=k.length):(y[F]&&(y[F].lastCount=k.length),S[F][N]=f(k.length,k.mode)+4+t.getCharCountIndicator(k.mode,_))}}C=T}for(let A=0;A<C.length;A++)S[C[A]].end=0;return{map:S,table:y}}function w(g,_){let y;const S=t.getBestModeForData(g);if(y=t.from(_,S),y!==t.BYTE&&y.bit<S.bit)throw new Error('"'+g+'" cannot be encoded with mode '+t.toString(y)+`.
23
- Suggested mode is: `+t.toString(S));switch(y===t.KANJI&&!l.isKanjiModeEnabled()&&(y=t.BYTE),y){case t.NUMERIC:return new r(g);case t.ALPHANUMERIC:return new o(g);case t.KANJI:return new a(g);case t.BYTE:return new i(g)}}e.fromArray=function(_){return _.reduce(function(y,S){return typeof S=="string"?y.push(w(S,null)):S.data&&y.push(w(S.data,S.mode)),y},[])},e.fromString=function(_,y){const S=m(_,l.isKanjiModeEnabled()),C=h(S),A=v(C,y),E=c.find_path(A.map,"start","end"),T=[];for(let I=1;I<E.length-1;I++)T.push(A.table[E[I]].node);return e.fromArray(p(T))},e.rawSplit=function(_){return e.fromArray(m(_,l.isKanjiModeEnabled()))}})(Ea);const kn=le,$n=Tn,hb=YC,yb=qC,vb=ha,_b=ya,nr=va,rr=In,Sb=ZC,rn=wa,wb=ba,Cb=Ne,Dn=Ea;function bb(e,t){const r=e.size,o=_b.getPositions(t);for(let i=0;i<o.length;i++){const a=o[i][0],s=o[i][1];for(let l=-1;l<=7;l++)if(!(a+l<=-1||r<=a+l))for(let c=-1;c<=7;c++)s+c<=-1||r<=s+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?e.set(a+l,s+c,!0,!0):e.set(a+l,s+c,!1,!0))}}function Ab(e){const t=e.size;for(let r=8;r<t-8;r++){const o=r%2===0;e.set(r,6,o,!0),e.set(6,r,o,!0)}}function Eb(e,t){const r=vb.getPositions(t);for(let o=0;o<r.length;o++){const i=r[o][0],a=r[o][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?e.set(i+s,a+l,!0,!0):e.set(i+s,a+l,!1,!0)}}function Tb(e,t){const r=e.size,o=rn.getEncodedBits(t);let i,a,s;for(let l=0;l<18;l++)i=Math.floor(l/3),a=l%3+r-8-3,s=(o>>l&1)===1,e.set(i,a,s,!0),e.set(a,i,s,!0)}function Bn(e,t,r){const o=e.size,i=wb.getEncodedBits(t,r);let a,s;for(a=0;a<15;a++)s=(i>>a&1)===1,a<6?e.set(a,8,s,!0):a<8?e.set(a+1,8,s,!0):e.set(o-15+a,8,s,!0),a<8?e.set(8,o-a-1,s,!0):a<9?e.set(8,15-a-1+1,s,!0):e.set(8,15-a-1,s,!0);e.set(o-8,8,1,!0)}function Ib(e,t){const r=e.size;let o=-1,i=r-1,a=7,s=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!e.isReserved(i,l-c)){let u=!1;s<t.length&&(u=(t[s]>>>a&1)===1),e.set(i,l-c,u),a--,a===-1&&(s++,a=7)}if(i+=o,i<0||r<=i){i-=o,o=-o;break}}}function Pb(e,t,r){const o=new hb;r.forEach(function(c){o.put(c.mode.bit,4),o.put(c.getLength(),Cb.getCharCountIndicator(c.mode,e)),c.write(o)});const i=kn.getSymbolTotalCodewords(e),a=rr.getTotalCodewordsCount(e,t),s=(i-a)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const l=(s-o.getLengthInBits())/8;for(let c=0;c<l;c++)o.put(c%2?17:236,8);return kb(o,e,t)}function kb(e,t,r){const o=kn.getSymbolTotalCodewords(t),i=rr.getTotalCodewordsCount(t,r),a=o-i,s=rr.getBlocksCount(t,r),l=o%s,c=s-l,u=Math.floor(o/s),d=Math.floor(a/s),m=d+1,f=u-d,p=new Sb(f);let h=0;const v=new Array(s),w=new Array(s);let g=0;const _=new Uint8Array(e.buffer);for(let E=0;E<s;E++){const T=E<c?d:m;v[E]=_.slice(h,h+T),w[E]=p.encode(v[E]),h+=T,g=Math.max(g,T)}const y=new Uint8Array(o);let S=0,C,A;for(C=0;C<g;C++)for(A=0;A<s;A++)C<v[A].length&&(y[S++]=v[A][C]);for(C=0;C<f;C++)for(A=0;A<s;A++)y[S++]=w[A][C];return y}function Nb(e,t,r,o){let i;if(Array.isArray(e))i=Dn.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){const d=Dn.rawSplit(e);u=rn.getBestVersionForData(d,r)}i=Dn.fromString(e,u||40)}else throw new Error("Invalid data");const a=rn.getBestVersionForData(i,r);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=a;else if(t<a)throw new Error(`
15
+ ***************************************************************************** */var b=function(){return b=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},b.apply(this,arguments)};function cr(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r}function D(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return a}function L(e,t,r){if(arguments.length===2)for(var o=0,i=t.length,a;o<i;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var z;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(z||(z={}));var Pe;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(Pe||(Pe={}));var Kt=z.Start,cn=z.Stop,Ye=z.Raise,bt=z.Send,ur=z.Cancel,si=z.NullEvent,un=z.Assign,Ml=z.After,xl=z.DoneState,dn=z.Log,li=z.Init,Yt=z.Invoke,Ul=z.ErrorExecution,Gn=z.ErrorPlatform,dr=z.ErrorCustom,fn=z.Update,ci=z.Choose,ui=z.Pure;const Fl=Object.freeze(Object.defineProperty({__proto__:null,after:Ml,assign:un,cancel:ur,choose:ci,doneState:xl,error:dr,errorExecution:Ul,errorPlatform:Gn,init:li,invoke:Yt,log:dn,nullEvent:si,pure:ui,raise:Ye,send:bt,start:Kt,stop:cn,update:fn},Symbol.toStringTag,{value:"Module"}));var di=".",oo={},jn="xstate.guard",Ol="",W=process.env.NODE_ENV==="production",Mt;function fr(e,t,r){r===void 0&&(r=di);var o=mt(e,r),i=mt(t,r);return B(i)?B(o)?i===o:!1:B(o)?o in i:Object.keys(o).every(function(a){return a in i?fr(o[a],i[a]):!1})}function fi(e){try{return B(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function Wn(e,t){try{return qe(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function Rl(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function mt(e,t){if(Rl(e))return e.value;if(qe(e))return qt(e);if(typeof e!="string")return e;var r=Wn(e,t);return qt(r)}function qt(e){if(e.length===1)return e[0];for(var t={},r=t,o=0;o<e.length-1;o++)o===e.length-2?r[e[o]]=e[o+1]:(r[e[o]]={},r=r[e[o]]);return t}function ut(e,t){for(var r={},o=Object.keys(e),i=0;i<o.length;i++){var a=o[i];r[a]=t(e[a],a,e,i)}return r}function io(e,t,r){var o,i,a={};try{for(var s=D(Object.keys(e)),l=s.next();!l.done;l=s.next()){var c=l.value,u=e[c];r(u)&&(a[c]=t(u,c,e))}}catch(d){o={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}var Dl=function(e){return function(t){var r,o,i=t;try{for(var a=D(e),s=a.next();!s.done;s=a.next()){var l=s.value;i=i[l]}}catch(c){r={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}};function $l(e,t){return function(r){var o,i,a=r;try{for(var s=D(e),l=s.next();!l.done;l=s.next()){var c=l.value;a=a[t][c]}}catch(u){o={error:u}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}}function Gt(e){if(!e)return[[]];if(B(e))return[[e]];var t=j(Object.keys(e).map(function(r){var o=e[r];return typeof o!="string"&&(!o||!Object.keys(o).length)?[[r]]:Gt(e[r]).map(function(i){return[r].concat(i)})}));return t}function j(e){var t;return(t=[]).concat.apply(t,L([],$(e),!1))}function pi(e){return qe(e)?e:[e]}function me(e){return e===void 0?[]:pi(e)}function Jt(e,t,r){var o,i;if(V(e))return e(t,r.data);var a={};try{for(var s=D(Object.keys(e)),l=s.next();!l.done;l=s.next()){var c=l.value,u=e[c];V(u)?a[c]=u(t,r.data):a[c]=u}}catch(d){o={error:d}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}function Bl(e){return/^(done|error)\./.test(e)}function ao(e){return!!(e instanceof Promise||e!==null&&(V(e)||typeof e=="object")&&V(e.then))}function Vl(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function zl(e,t){var r,o,i=$([[],[]],2),a=i[0],s=i[1];try{for(var l=D(e),c=l.next();!c.done;c=l.next()){var u=c.value;t(u)?a.push(u):s.push(u)}}catch(d){r={error:d}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return[a,s]}function mi(e,t){return ut(e.states,function(r,o){if(r){var i=(B(t)?void 0:t[o])||(r?r.current:void 0);if(i)return{current:i,states:mi(r,i)}}})}function Ll(e,t){return{current:t,states:mi(e,t)}}function so(e,t,r,o){W||q(!!e,"Attempting to update undefined context");var i=e&&r.reduce(function(a,s){var l,c,u=s.assignment,d={state:o,action:s,_event:t},m={};if(V(u))m=u(a,t.data,d);else try{for(var f=D(Object.keys(u)),p=f.next();!p.done;p=f.next()){var g=p.value,y=u[g];m[g]=V(y)?y(a,t.data,d):y}}catch(w){l={error:w}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(l)throw l.error}}return Object.assign({},a,m)},e);return i}var q=function(){};W||(q=function(e,t){var r=e instanceof Error?e:void 0;if(!(!r&&e)&&console!==void 0){var o=["Warning: ".concat(t)];r&&o.push(r),console.warn.apply(console,o)}});function qe(e){return Array.isArray(e)}function V(e){return typeof e=="function"}function B(e){return typeof e=="string"}function gi(e,t){if(e)return B(e)?{type:jn,name:e,predicate:t?t[e]:void 0}:V(e)?{type:jn,name:e.name,predicate:e}:e}function Gl(e){try{return"subscribe"in e&&V(e.subscribe)}catch{return!1}}var Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();Mt={},Mt[Te]=function(){return this},Mt[Symbol.observable]=function(){return this};function be(e){return!!e&&"__xstatenode"in e}function jl(e){return!!e&&typeof e.send=="function"}var Wl=function(){var e=0;return function(){return e++,e.toString(16)}}();function pn(e,t){return B(e)||typeof e=="number"?b({type:e},t):e}function Q(e,t){if(!B(e)&&"$$type"in e&&e.$$type==="scxml")return e;var r=pn(e);return b({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function De(e,t){var r=pi(t).map(function(o){return typeof o>"u"||typeof o=="string"||be(o)?{target:o,event:e}:b(b({},o),{event:e})});return r}function Hl(e){if(!(e===void 0||e===Ol))return me(e)}function Kl(e,t,r){if(!W){var o=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(r,"', error was '").concat(e,"'.").concat(o));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(r,"'. ")+"Original error: '".concat(e,"'. ").concat(o," Current error is '").concat(t,"'.").concat(i))}}}function hi(e,t,r,o,i){var a=e.options.guards,s={state:i,cond:t,_event:o};if(t.type===jn)return((a==null?void 0:a[t.name])||t.predicate)(r,o.data,s);var l=a==null?void 0:a[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(r,o.data,s)}function yi(e){return typeof e=="string"?{type:e}:e}function jt(e,t,r){var o=function(){},i=typeof e=="object",a=i?e:null;return{next:((i?e.next:e)||o).bind(a),error:((i?e.error:t)||o).bind(a),complete:((i?e.complete:r)||o).bind(a)}}function xt(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Hn(e){return(e.type===Ye||e.type===bt&&e.to===Pe.Internal)&&typeof e.delay!="number"}var Ue=Q({type:li});function Zt(e,t){return t&&t[e]||void 0}function Ge(e,t){var r;if(B(e)||typeof e=="number"){var o=Zt(e,t);V(o)?r={type:e,exec:o}:o?r=o:r={type:e,exec:void 0}}else if(V(e))r={type:e.name||e.toString(),exec:e};else{var o=Zt(e.type,t);if(V(o))r=b(b({},e),{exec:o});else if(o){var i=o.type||e.type;r=b(b(b({},o),e),{type:i})}else r=e}return r}var we=function(e,t){if(!e)return[];var r=qe(e)?e:[e];return r.map(function(o){return Ge(o,t)})};function mn(e){var t=Ge(e);return b(b({id:B(e)?e:t.id},t),{type:t.type})}function vi(e,t){return{type:Ye,event:typeof e=="function"?e:pn(e),delay:t?t.delay:void 0,id:t==null?void 0:t.id}}function Si(e,t,r,o){var i={_event:r},a=Q(V(e.event)?e.event(t,r.data,i):e.event),s;if(B(e.delay)){var l=o&&o[e.delay];s=V(l)?l(t,r.data,i):l}else s=V(e.delay)?e.delay(t,r.data,i):e.delay;return b(b({},e),{type:Ye,_event:a,delay:s})}function Je(e,t){return{to:t?t.to:void 0,type:bt,event:V(e)?e:pn(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:V(e)?e.name:fi(e)}}function _i(e,t,r,o){var i={_event:r},a=Q(V(e.event)?e.event(t,r.data,i):e.event),s;if(B(e.delay)){var l=o&&o[e.delay];s=V(l)?l(t,r.data,i):l}else s=V(e.delay)?e.delay(t,r.data,i):e.delay;var c=V(e.to)?e.to(t,r.data,i):e.to;return b(b({},e),{to:c,_event:a,event:a.data,delay:s})}function pr(e,t){return Je(e,b(b({},t),{to:Pe.Parent}))}function Yl(e,t,r){return Je(t,b(b({},r),{to:e}))}function wi(){return pr(fn)}function ql(e,t){return Je(e,b(b({},t),{to:function(r,o,i){var a=i._event;return a.origin}}))}var Jl=function(e,t){return{context:e,event:t}};function Zl(e,t){return e===void 0&&(e=Jl),{type:dn,label:t,expr:e}}var Ci=function(e,t,r){return b(b({},e),{value:B(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},bi=function(e){return{type:ur,sendId:e}};function Ai(e){var t=mn(e);return{type:z.Start,activity:t,exec:void 0}}function Ei(e){var t=V(e)?e:mn(e);return{type:z.Stop,activity:t,exec:void 0}}function Ti(e,t,r){var o=V(e.activity)?e.activity(t,r.data):e.activity,i=typeof o=="string"?{id:o}:o,a={type:z.Stop,activity:i};return a}var Ii=function(e){return{type:un,assignment:e}};function Ql(e){return typeof e=="object"&&"type"in e}function Pi(e,t){var r=t?"#".concat(t):"";return"".concat(z.After,"(").concat(e,")").concat(r)}function dt(e,t){var r="".concat(z.DoneState,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function gt(e,t){var r="".concat(z.DoneInvoke,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function Le(e,t){var r="".concat(z.ErrorPlatform,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function Xl(e){return{type:z.Pure,get:e}}function ki(e,t){if(!W&&(!e||typeof e=="function")){var r=e;e=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=typeof r=="function"?r.apply(void 0,L([],$(o),!1)):r;if(!a)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return a}}return Je(function(o,i){return i},b(b({},t),{to:e}))}function ec(e,t){return pr(function(r,o,i){return{type:dr,data:V(e)?e(r,o,i):e}},b(b({},t),{to:Pe.Parent}))}function tc(e){return{type:z.Choose,conds:e}}var nc=function(e){var t,r,o=[];try{for(var i=D(e),a=i.next();!a.done;a=i.next())for(var s=a.value,l=0;l<s.actions.length;){if(s.actions[l].type===un){o.push(s.actions[l]),s.actions.splice(l,1);continue}l++}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o};function St(e,t,r,o,i,a,s){s===void 0&&(s=!1);var l=s?[]:nc(i),c=l.length?so(r,o,l,t):r,u=s?[r]:void 0,d=[];function m(g,y){var w;switch(y.type){case Ye:{var h=Si(y,c,o,e.options.delays);return a&&typeof h.delay=="number"&&a(h,c,o),h}case bt:var S=_i(y,c,o,e.options.delays);if(!W){var v=y.delay;q(!B(v)||typeof S.delay=="number","No delay reference for delay expression '".concat(v,"' was found on machine '").concat(e.id,"'"))}return a&&S.to!==Pe.Internal&&(g==="entry"?d.push(S):a(S,c,o)),S;case dn:{var _=Ci(y,c,o);return a==null||a(_,c,o),_}case ci:{var C=y,E=(w=C.conds.find(function(J){var te=gi(J.cond,e.options.guards);return!te||hi(e,te,c,o,a?void 0:t)}))===null||w===void 0?void 0:w.actions;if(!E)return[];var A=$(St(e,t,c,o,[{type:g,actions:we(me(E),e.options.actions)}],a,s),2),T=A[0],P=A[1];return c=P,u==null||u.push(c),T}case ui:{var E=y.get(c,o.data);if(!E)return[];var k=$(St(e,t,c,o,[{type:g,actions:we(me(E),e.options.actions)}],a,s),2),N=k[0],U=k[1];return c=U,u==null||u.push(c),N}case cn:{var _=Ti(y,c,o);return a==null||a(_,r,o),_}case un:{c=so(c,o,[y],a?void 0:t),u==null||u.push(c);break}default:var F=Ge(y,e.options.actions),H=F.exec;if(a)a(F,c,o);else if(H&&u){var re=u.length-1,ae=b(b({},F),{exec:function(J){for(var te=[],Z=1;Z<arguments.length;Z++)te[Z-1]=arguments[Z];H.apply(void 0,L([u[re]],$(te),!1))}});F=ae}return F}}function f(g){var y,w,h=[];try{for(var S=D(g.actions),v=S.next();!v.done;v=S.next()){var _=v.value,C=m(g.type,_);C&&(h=h.concat(C))}}catch(E){y={error:E}}finally{try{v&&!v.done&&(w=S.return)&&w.call(S)}finally{if(y)throw y.error}}return d.forEach(function(E){a(E,c,o)}),d.length=0,h}var p=j(i.map(f));return[p,c]}const Ni=Object.freeze(Object.defineProperty({__proto__:null,actionTypes:Fl,after:Pi,assign:Ii,cancel:bi,choose:tc,done:dt,doneInvoke:gt,error:Le,escalate:ec,forwardTo:ki,getActionFunction:Zt,initEvent:Ue,isActionObject:Ql,log:Zl,pure:Xl,raise:vi,resolveActions:St,resolveLog:Ci,resolveRaise:Si,resolveSend:_i,resolveStop:Ti,respond:ql,send:Je,sendParent:pr,sendTo:Yl,sendUpdate:wi,start:Ai,stop:Ei,toActionObject:Ge,toActionObjects:we,toActivityDefinition:mn},Symbol.toStringTag,{value:"Module"}));var Qt=[],Ve=function(e,t){Qt.push(e);var r=t(e);return Qt.pop(),r},rc=function(e){return e(Qt[Qt.length-1])};function Mi(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Te]=function(){return this},t}function oc(e,t,r,o){var i,a=yi(e.src),s=(i=t==null?void 0:t.options.services)===null||i===void 0?void 0:i[a.type],l=e.data?Jt(e.data,r,o):void 0,c=s?mr(s,e.id,l):Mi(e.id);return c.meta=e,c}function mr(e,t,r){var o=Mi(t);if(o.deferred=!0,be(e)){var i=o.state=Ve(void 0,function(){return(r?e.withContext(r):e).initialState});o.getSnapshot=function(){return i}}return o}function ic(e){try{return typeof e.send=="function"}catch{return!1}}function ac(e){return ic(e)&&"id"in e}function sc(e){var t;return b((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Te]=function(){return this},t),e)}var Xt=function(e){return e.type==="atomic"||e.type==="final"};function xi(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function _t(e){return xi(e).filter(function(t){return t.type!=="history"})}function Ui(e){var t=[e];return Xt(e)?t:t.concat(j(_t(e).map(Ui)))}function ft(e,t){var r,o,i,a,s,l,c,u,d=new Set(e),m=Kn(d),f=new Set(t);try{for(var p=D(f),g=p.next();!g.done;g=p.next())for(var y=g.value,w=y.parent;w&&!f.has(w);)f.add(w),w=w.parent}catch(P){r={error:P}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}var h=Kn(f);try{for(var S=D(f),v=S.next();!v.done;v=S.next()){var y=v.value;if(y.type==="compound"&&(!h.get(y)||!h.get(y).length))m.get(y)?m.get(y).forEach(function(k){return f.add(k)}):y.initialStateNodes.forEach(function(k){return f.add(k)});else if(y.type==="parallel")try{for(var _=(s=void 0,D(_t(y))),C=_.next();!C.done;C=_.next()){var E=C.value;f.has(E)||(f.add(E),m.get(E)?m.get(E).forEach(function(k){return f.add(k)}):E.initialStateNodes.forEach(function(k){return f.add(k)}))}}catch(k){s={error:k}}finally{try{C&&!C.done&&(l=_.return)&&l.call(_)}finally{if(s)throw s.error}}}}catch(P){i={error:P}}finally{try{v&&!v.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}try{for(var A=D(f),T=A.next();!T.done;T=A.next())for(var y=T.value,w=y.parent;w&&!f.has(w);)f.add(w),w=w.parent}catch(P){c={error:P}}finally{try{T&&!T.done&&(u=A.return)&&u.call(A)}finally{if(c)throw c.error}}return f}function Fi(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var o=r[0];if(o){if(Xt(o))return o.key}else return{}}var i={};return r.forEach(function(a){i[a.key]=Fi(a,t)}),i}function Kn(e){var t,r,o=new Map;try{for(var i=D(e),a=i.next();!a.done;a=i.next()){var s=a.value;o.has(s)||o.set(s,[]),s.parent&&(o.has(s.parent)||o.set(s.parent,[]),o.get(s.parent).push(s))}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}function lc(e,t){var r=ft([e],t);return Fi(e,Kn(r))}function pt(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function cc(e){return L([],$(new Set(j(L([],$(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Wt(e,t){return t.type==="compound"?_t(t).some(function(r){return r.type==="final"&&pt(e,r)}):t.type==="parallel"?_t(t).every(function(r){return Wt(e,r)}):!1}function uc(e){return e===void 0&&(e=[]),e.reduce(function(t,r){return r.meta!==void 0&&(t[r.id]=r.meta),t},{})}function lo(e){return new Set(j(e.map(function(t){return t.tags})))}function Oi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(B(e)||B(t))return e===t;var r=Object.keys(e),o=Object.keys(t);return r.length===o.length&&r.every(function(i){return Oi(e[i],t[i])})}function dc(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function fc(e,t){var r=e.exec,o=b(b({},e),{exec:r!==void 0?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return o}var he=function(){function e(t){var r=this,o;this.actions=[],this.activities=oo,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||oo,this.meta=uc(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(o=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&o!==void 0?o:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return cc(r.configuration)}})}return e.from=function(t,r){if(t instanceof e)return t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t;var o=Ue;return new e({value:t,context:r,_event:o,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,r){if(t instanceof e){if(!t.actions.length)return t;var o=Ue;return new e({value:t.value,context:r,_event:o,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,r)},e.prototype.toStrings=function(t,r){var o=this;if(t===void 0&&(t=this.value),r===void 0&&(r="."),B(t))return[t];var i=Object.keys(t);return i.concat.apply(i,L([],$(i.map(function(a){return o.toStrings(t[a],r).map(function(s){return a+r+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var r=t.tags;t.machine;var o=cr(t,["configuration","transitions","tags","machine"]);return b(b({},o),{tags:Array.from(r)})},e.prototype.matches=function(t){return fr(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var r;W&&q(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var o=(r=this.machine)===null||r===void 0?void 0:r.getTransitionData(this,t);return!!(o!=null&&o.transitions.length)&&o.transitions.some(function(i){return i.target!==void 0||i.actions.length})},e}(),pc={deferEvents:!1},co=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=b(b({},pc),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(r){throw this.clear(),r}finally{this.processingEvent=!1}},e}(),Un=new Map,mc=0,it={bookId:function(){return"x:".concat(mc++)},register:function(e,t){return Un.set(e,t),e},get:function(e){return Un.get(e)},free:function(e){Un.delete(e)}};function gr(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;W||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues")}function gc(){var e=gr();if(e&&"__xstate__"in e)return e.__xstate__}function hc(e){if(gr()){var t=gc();t&&t.register(e)}}function yc(e,t){t===void 0&&(t={});var r=e.initialState,o=new Set,i=[],a=!1,s=function(){if(!a){for(a=!0;i.length>0;){var u=i.shift();r=e.transition(r,u,c),o.forEach(function(d){return d.next(r)})}a=!1}},l=sc({id:t.id,send:function(u){i.push(u),s()},getSnapshot:function(){return r},subscribe:function(u,d,m){var f=jt(u,d,m);return o.add(f),f.next(r),{unsubscribe:function(){o.delete(f)}}}}),c={parent:t.parent,self:l,id:t.id||"anonymous",observers:o};return r=e.start?e.start(c):r,l}var Yn={sync:!1,autoForward:!1},Y;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Y||(Y={}));var vc=function(){function e(t,r){r===void 0&&(r=e.defaultOptions);var o=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Y.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(d,m){if(qe(d))return o.batch(d),o.state;var f=Q(pn(d,m));if(o.status===Y.Stopped)return W||q(!1,'Event "'.concat(f.name,'" was sent to stopped service "').concat(o.machine.id,`". This service has already reached its final state, and will not transition.
16
+ Event: `).concat(JSON.stringify(f.data))),o.state;if(o.status!==Y.Running&&!o.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(o.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
17
+ Event: `).concat(JSON.stringify(f.data)));return o.scheduler.schedule(function(){o.forward(f);var p=o._nextState(f);o.update(p,f)}),o._state},this.sendTo=function(d,m,f){var p=o.parent&&(m===Pe.Parent||o.parent.id===m),g=p?o.parent:B(m)?m===Pe.Internal?o:o.children.get(m)||it.get(m):jl(m)?m:void 0;if(!g){if(!p)throw new Error("Unable to send event to child '".concat(m,"' from service '").concat(o.id,"'."));W||q(!1,"Service '".concat(o.id,"' has no parent: unable to send event ").concat(d.type));return}if("machine"in g){if(o.status!==Y.Stopped||o.parent!==g||o.state.done){var y=b(b({},d),{name:d.name===dr?"".concat(Le(o.id)):d.name,origin:o.sessionId});!f&&o.machine.config.predictableActionArguments?o._outgoingQueue.push([g,y]):g.send(y)}}else!f&&o.machine.config.predictableActionArguments?o._outgoingQueue.push([g,d.data]):g.send(d.data)},this._exec=function(d,m,f,p){p===void 0&&(p=o.machine.options.actions);var g=d.exec||Zt(d.type,p),y=V(g)?g:g?g.exec:d.exec;if(y)try{return y(m,f.data,o.machine.config.predictableActionArguments?{action:d,_event:f}:{action:d,state:o.state,_event:f})}catch(H){throw o.parent&&o.parent.send({type:"xstate.error",data:H}),H}switch(d.type){case Ye:{var w=d;o.defer(w);break}case bt:var h=d;if(typeof h.delay=="number"){o.defer(h);return}else h.to?o.sendTo(h._event,h.to,f===Ue):o.send(h._event);break;case ur:o.cancel(d.sendId);break;case Kt:{if(o.status!==Y.Running)return;var S=d.activity;if(!o.machine.config.predictableActionArguments&&!o.state.activities[S.id||S.type])break;if(S.type===z.Invoke){var v=yi(S.src),_=o.machine.options.services?o.machine.options.services[v.type]:void 0,C=S.id,E=S.data;W||q(!("forward"in S),"`forward` property is deprecated (found in invocation of '".concat(S.src,"' in in machine '").concat(o.machine.id,"'). ")+"Please use `autoForward` instead.");var A="autoForward"in S?S.autoForward:!!S.forward;if(!_){W||q(!1,"No service found for invocation '".concat(S.src,"' in machine '").concat(o.machine.id,"'."));return}var T=E?Jt(E,m,f):void 0;if(typeof _=="string")return;var P=V(_)?_(m,f.data,{data:T,src:v,meta:S.meta}):_;if(!P)return;var k=void 0;be(P)&&(P=T?P.withContext(T):P,k={autoForward:A}),o.spawn(P,C,k)}else o.spawnActivity(S);break}case cn:{o.stopChild(d.activity.id);break}case dn:var N=d,U=N.label,F=N.value;U?o.logger(U,F):o.logger(F);break;default:W||q(!1,"No implementation found for action type '".concat(d.type,"'"));break}};var i=b(b({},e.defaultOptions),r),a=i.clock,s=i.logger,l=i.parent,c=i.id,u=c!==void 0?c:t.id;this.id=u,this.logger=s,this.clock=a,this.parent=l,this.options=i,this.scheduler=new co({deferEvents:this.options.deferEvents}),this.sessionId=it.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ve(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return W||q(this.status!==Y.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,r){var o,i;try{for(var a=D(t.actions),s=a.next();!s.done;s=a.next()){var l=s.value;this.exec(l,t,r)}}catch(c){o={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},e.prototype.update=function(t,r){var o,i,a,s,l,c,u,d,m=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||r===Ue)&&this.options.execute)this.execute(this.state);else for(var f=void 0;f=this._outgoingQueue.shift();)f[0].send(f[1]);if(this.children.forEach(function(P){m.state.children[P.id]=P}),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var p=D(this.eventListeners),g=p.next();!g.done;g=p.next()){var y=g.value;y(t.event)}}catch(P){o={error:P}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}try{for(var w=D(this.listeners),h=w.next();!h.done;h=w.next()){var y=h.value;y(t,t.event)}}catch(P){a={error:P}}finally{try{h&&!h.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}try{for(var S=D(this.contextListeners),v=S.next();!v.done;v=S.next()){var _=v.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(P){l={error:P}}finally{try{v&&!v.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}if(this.state.done){var C=t.configuration.find(function(P){return P.type==="final"&&P.parent===m.machine}),E=C&&C.doneData?Jt(C.doneData,t.context,r):void 0;this._doneEvent=gt(this.id,E);try{for(var A=D(this.doneListeners),T=A.next();!T.done;T=A.next()){var y=T.value;y(this._doneEvent)}}catch(P){u={error:P}}finally{try{T&&!T.done&&(d=A.return)&&d.call(A)}finally{if(u)throw u.error}}this._stop(),this._stopChildren(),it.free(this.sessionId)}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Y.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,r,o){var i=this,a=jt(t,r,o);this.listeners.add(a.next),this.status!==Y.NotStarted&&a.next(this.state);var s=function(){i.doneListeners.delete(s),i.stopListeners.delete(s),a.complete()};return this.status===Y.Stopped?a.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){i.listeners.delete(a.next),i.doneListeners.delete(s),i.stopListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.status===Y.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var r=this;if(this.status===Y.Running)return this;this.machine._init(),it.register(this.sessionId,this),this.initialized=!0,this.status=Y.Running;var o=t===void 0?this.initialState:Ve(this,function(){return dc(t)?r.machine.resolveState(t):r.machine.resolveState(he.from(t,r.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){r.update(o,Ue)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){V(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,r,o,i,a,s,l,c,u,d;try{for(var m=D(this.listeners),f=m.next();!f.done;f=m.next()){var p=f.value;this.listeners.delete(p)}}catch(A){t={error:A}}finally{try{f&&!f.done&&(r=m.return)&&r.call(m)}finally{if(t)throw t.error}}try{for(var g=D(this.stopListeners),y=g.next();!y.done;y=g.next()){var p=y.value;p(),this.stopListeners.delete(p)}}catch(A){o={error:A}}finally{try{y&&!y.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var w=D(this.contextListeners),h=w.next();!h.done;h=w.next()){var p=h.value;this.contextListeners.delete(p)}}catch(A){a={error:A}}finally{try{h&&!h.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}try{for(var S=D(this.doneListeners),v=S.next();!v.done;v=S.next()){var p=v.value;this.doneListeners.delete(p)}}catch(A){l={error:A}}finally{try{v&&!v.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Y.Stopped,this._initialState=void 0;try{for(var _=D(Object.keys(this.delayedEventsMap)),C=_.next();!C.done;C=_.next()){var E=C.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(A){u={error:A}}finally{try{C&&!C.done&&(d=_.return)&&d.call(_)}finally{if(u)throw u.error}}this.scheduler.clear(),this.scheduler=new co({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,r=this.scheduler;return this._stop(),r.schedule(function(){var o=Q({type:"xstate.stop"}),i=Ve(t,function(){var a=j(L([],$(t.state.configuration),!1).sort(function(d,m){return m.order-d.order}).map(function(d){return we(d.onExit,t.machine.options.actions)})),s=$(St(t.machine,t.state,t.state.context,o,[{type:"exit",actions:a}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),l=s[0],c=s[1],u=new he({value:t.state.value,context:c,_event:o,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:l.filter(function(d){return!Hn(d)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return u.changed=!0,u});t.update(i,o),t._stopChildren(),it.free(t.sessionId)}),this},e.prototype.batch=function(t){var r=this;if(this.status===Y.NotStarted&&this.options.deferEvents)W||q(!1,"".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,`" and are deferred. Make sure .start() is called for this service.
18
+ Event: `).concat(JSON.stringify(event)));else if(this.status!==Y.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(t.length){var o=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var i,a,s=r.state,l=!1,c=[],u=function(p){var g=Q(p);r.forward(g),s=Ve(r,function(){return r.machine.transition(s,g,void 0,o||void 0)}),c.push.apply(c,L([],$(r.machine.config.predictableActionArguments?s.actions:s.actions.map(function(y){return fc(y,s)})),!1)),l=l||!!s.changed};try{for(var d=D(t),m=d.next();!m.done;m=d.next()){var f=m.value;u(f)}}catch(p){i={error:p}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}s.changed=l,s.actions=c,r.update(s,Q(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,r){var o=this;r===void 0&&(r=!!this.machine.config.predictableActionArguments&&this._exec);var i=Q(t);if(i.name.indexOf(Gn)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(Gn)===0}))throw i.data.data;var a=Ve(this,function(){return o.machine.transition(o.state,i,void 0,r||void 0)});return a},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var r,o;try{for(var i=D(this.forwardTo),a=i.next();!a.done;a=i.next()){var s=a.value,l=this.children.get(s);if(!l)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));l.send(t)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.defer=function(t){var r=this,o=this.clock.setTimeout(function(){"to"in t&&t.to?r.sendTo(t._event,t.to,!0):r.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=o)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,r,o){o===void 0&&(o=this.machine.options.actions),this._exec(t,r.context,r._event,o)},e.prototype.removeChild=function(t){var r;this.children.delete(t),this.forwardTo.delete(t),(r=this.state)===null||r===void 0||delete r.children[t]},e.prototype.stopChild=function(t){var r=this.children.get(t);r&&(this.removeChild(t),V(r.stop)&&r.stop())},e.prototype.spawn=function(t,r,o){if(this.status!==Y.Running)return mr(t,r);if(ao(t))return this.spawnPromise(Promise.resolve(t),r);if(V(t))return this.spawnCallback(t,r);if(ac(t))return this.spawnActor(t,r);if(Gl(t))return this.spawnObservable(t,r);if(be(t))return this.spawnMachine(t,b(b({},o),{id:r}));if(Vl(t))return this.spawnBehavior(t,r);throw new Error('Unable to spawn entity "'.concat(r,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,r){var o=this;r===void 0&&(r={});var i=new e(t,b(b({},this.options),{parent:this,id:r.id||t.id})),a=b(b({},Yn),r);a.sync&&i.onTransition(function(l){o.send(fn,{state:l,id:i.id})});var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone(function(l){o.removeChild(i.id),o.send(Q(l,{origin:i.id}))}).start(),s},e.prototype.spawnBehavior=function(t,r){var o=yc(t,{id:r,parent:this});return this.children.set(r,o),o},e.prototype.spawnPromise=function(t,r){var o,i=this,a=!1,s;t.then(function(c){a||(s=c,i.removeChild(r),i.send(Q(gt(r,c),{origin:r})))},function(c){if(!a){i.removeChild(r);var u=Le(r,c);try{i.send(Q(u,{origin:r}))}catch(d){Kl(c,d,r),i.devTools&&i.devTools.send(u,i.state),i.machine.strict&&i.stop()}}});var l=(o={id:r,send:function(){},subscribe:function(c,u,d){var m=jt(c,u,d),f=!1;return t.then(function(p){f||(m.next(p),!f&&m.complete())},function(p){f||m.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){a=!0},toJSON:function(){return{id:r}},getSnapshot:function(){return s}},o[Te]=function(){return this},o);return this.children.set(r,l),l},e.prototype.spawnCallback=function(t,r){var o,i=this,a=!1,s=new Set,l=new Set,c,u=function(f){c=f,l.forEach(function(p){return p(f)}),!a&&i.send(Q(f,{origin:r}))},d;try{d=t(u,function(f){s.add(f)})}catch(f){this.send(Le(r,f))}if(ao(d))return this.spawnPromise(d,r);var m=(o={id:r,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=jt(f);return l.add(p.next),{unsubscribe:function(){l.delete(p.next)}}},stop:function(){a=!0,V(d)&&d()},toJSON:function(){return{id:r}},getSnapshot:function(){return c}},o[Te]=function(){return this},o);return this.children.set(r,m),m},e.prototype.spawnObservable=function(t,r){var o,i=this,a,s=t.subscribe(function(c){a=c,i.send(Q(c,{origin:r}))},function(c){i.removeChild(r),i.send(Q(Le(r,c),{origin:r}))},function(){i.removeChild(r),i.send(Q(gt(r),{origin:r}))}),l=(o={id:r,send:function(){},subscribe:function(c,u,d){return t.subscribe(c,u,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return a},toJSON:function(){return{id:r}}},o[Te]=function(){return this},o);return this.children.set(r,l),l},e.prototype.spawnActor=function(t,r){return this.children.set(r,t),t},e.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!r){W||q(!1,"No implementation found for activity '".concat(t.type,"'"));return}var o=r(this.state.context,t);this.spawnEffect(t.id,o)},e.prototype.spawnEffect=function(t,r){var o;this.children.set(t,(o={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},o[Te]=function(){return this},o))},e.prototype.attachDev=function(){var t=gr();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var r=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(b(b({name:this.id,autoPause:!0,stateSanitizer:function(o){return{value:o.value,context:o.context,actions:o.actions}}},r),{features:b({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}hc(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Te]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Y.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,r){return setTimeout(t,r)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Ri,e}(),Sc=function(e){return B(e)?b(b({},Yn),{name:e}):b(b(b({},Yn),{name:Wl()}),e)};function at(e,t){var r=Sc(t);return rc(function(o){if(!W){var i=be(e)||V(e);q(!!o||i,'Attempted to spawn an Actor (ID: "'.concat(be(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return o?o.spawn(e,r.name,r):mr(e,r.name)})}function Ri(e,t){var r=new vc(e,t);return r}function _c(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function Ut(e){return b(b({type:Yt},e),{toJSON:function(){e.onDone,e.onError;var t=cr(e,["onDone","onError"]);return b(b({},t),{type:Yt,src:_c(e.src)})}})}var ze="",qn="#",st="*",$e={},Be=function(e){return e[0]===qn},wc=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Cc=function(e,t,r){var o=r.slice(0,-1).some(function(a){return!("cond"in a)&&!("in"in a)&&(B(a.target)||be(a.target))}),i=t===ze?"the transient event":"event '".concat(t,"'");q(!o,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},bc=function(){function e(t,r,o,i){o===void 0&&(o="context"in t?t.context:void 0);var a=this,s;this.config=t,this._context=o,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(wc(),r),this.parent=i==null?void 0:i.parent,this.key=this.config.key||(i==null?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:di),this.id=this.config.id||L([this.machine.key],$(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,W||q(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?ut(this.config.states,function(u,d){var m,f=new e(u,{},void 0,{parent:a,key:d});return Object.assign(a.idMap,b((m={},m[f.id]=f,m),f.idMap)),f}):$e;var l=0;function c(u){var d,m;u.order=l++;try{for(var f=D(xi(u)),p=f.next();!p.done;p=f.next()){var g=p.value;c(g)}}catch(y){d={error:y}}finally{try{p&&!p.done&&(m=f.return)&&m.call(f)}finally{if(d)throw d.error}}}c(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(u){var d=u.event;return d===ze}):ze in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=me(this.config.entry||this.config.onEntry).map(function(u){return Ge(u)}),this.onExit=me(this.config.exit||this.config.onExit).map(function(u){return Ge(u)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=me(this.config.invoke).map(function(u,d){var m,f;if(be(u)){var p=xt(a.id,d);return a.machine.options.services=b((m={},m[p]=u,m),a.machine.options.services),Ut({src:p,id:p})}else if(B(u.src)){var p=u.id||xt(a.id,d);return Ut(b(b({},u),{id:p,src:u.src}))}else if(be(u.src)||V(u.src)){var p=u.id||xt(a.id,d);return a.machine.options.services=b((f={},f[p]=u.src,f),a.machine.options.services),Ut(b(b({id:p},u),{src:p}))}else{var g=u.src;return Ut(b(b({id:xt(a.id,d)},u),{src:g}))}}),this.activities=me(this.config.activities).concat(this.invoke).map(function(u){return mn(u)}),this.transition=this.transition.bind(this),this.tags=me(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Ui(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,r){var o=this.options,i=o.actions,a=o.activities,s=o.guards,l=o.services,c=o.delays;return new e(this.config,{actions:b(b({},i),t.actions),activities:b(b({},a),t.activities),guards:b(b({},s),t.guards),services:b(b({},l),t.services),delays:b(b({},c),t.delays)},r??this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return V(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:ut(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(r,o){return r[o.eventType]=r[o.eventType]||[],r[o.eventType].push(o),r},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var r=t===ze,o=this.transitions.filter(function(i){var a=i.eventType===t;return r?a:a||i.eventType===st});return this.__cache.candidates[t]=o,o},e.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var o=function(a,s){var l=V(a)?"".concat(t.id,":delay[").concat(s,"]"):a,c=Pi(l,t.id);return t.onEntry.push(Je(c,{delay:a})),t.onExit.push(bi(c)),c},i=qe(r)?r.map(function(a,s){var l=o(a.delay,s);return b(b({},a),{event:l})}):j(Object.keys(r).map(function(a,s){var l=r[a],c=B(l)?{target:l}:l,u=isNaN(+a)?a:+a,d=o(u,s);return me(c).map(function(m){return b(b({},m),{event:d,delay:u})})}));return i.map(function(a){var s=a.delay;return b(b({},t.formatTransition(a)),{delay:s})})},e.prototype.getStateNodes=function(t){var r,o=this;if(!t)return[];var i=t instanceof he?t.value:mt(t,this.delimiter);if(B(i)){var a=this.getStateNode(i).initial;return a!==void 0?this.getStateNodes((r={},r[i]=a,r)):[this,this.states[i]]}var s=Object.keys(i),l=[this];return l.push.apply(l,L([],$(j(s.map(function(c){return o.getStateNode(c).getStateNodes(i[c])}))),!1)),l},e.prototype.handles=function(t){var r=fi(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=t instanceof he?t:he.create(t),o=Array.from(ft([],this.getStateNodes(r.value)));return new he(b(b({},r),{value:this.resolve(r.value),configuration:o,done:Wt(o,this),tags:lo(o),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,r,o){var i=this.getStateNode(t),a=i.next(r,o);return!a||!a.transitions.length?this.next(r,o):a},e.prototype.transitionCompoundNode=function(t,r,o){var i=Object.keys(t),a=this.getStateNode(i[0]),s=a._transition(t[i[0]],r,o);return!s||!s.transitions.length?this.next(r,o):s},e.prototype.transitionParallelNode=function(t,r,o){var i,a,s={};try{for(var l=D(Object.keys(t)),c=l.next();!c.done;c=l.next()){var u=c.value,d=t[u];if(d){var m=this.getStateNode(u),f=m._transition(d,r,o);f&&(s[u]=f)}}}catch(h){i={error:h}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}var p=Object.keys(s).map(function(h){return s[h]}),g=j(p.map(function(h){return h.transitions})),y=p.some(function(h){return h.transitions.length>0});if(!y)return this.next(r,o);var w=j(Object.keys(s).map(function(h){return s[h].configuration}));return{transitions:g,exitSet:j(p.map(function(h){return h.exitSet})),configuration:w,source:r,actions:j(Object.keys(s).map(function(h){return s[h].actions}))}},e.prototype._transition=function(t,r,o){return B(t)?this.transitionLeafNode(t,r,o):Object.keys(t).length===1?this.transitionCompoundNode(t,r,o):this.transitionParallelNode(t,r,o)},e.prototype.getTransitionData=function(t,r){return this._transition(t.value,t,Q(r))},e.prototype.next=function(t,r){var o,i,a=this,s=r.name,l=[],c=[],u;try{for(var d=D(this.getCandidates(s)),m=d.next();!m.done;m=d.next()){var f=m.value,p=f.cond,g=f.in,y=t.context,w=g?B(g)&&Be(g)?t.matches(mt(this.getStateNodeById(g).path,this.delimiter)):fr(mt(g,this.delimiter),Dl(this.path.slice(0,-2))(t.value)):!0,h=!1;try{h=!p||hi(this.machine,p,y,r,t)}catch(_){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
19
+ `).concat(_.message))}if(h&&w){f.target!==void 0&&(c=f.target),l.push.apply(l,L([],$(f.actions),!1)),u=f;break}}}catch(_){o={error:_}}finally{try{m&&!m.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}if(u){if(!c.length)return{transitions:[u],exitSet:[],configuration:t.value?[this]:[],source:t,actions:l};var S=j(c.map(function(_){return a.getRelativeStateNodes(_,t.historyValue)})),v=!!u.internal;return{transitions:[u],exitSet:v?[]:j(c.map(function(_){return a.getPotentiallyReenteringNodes(_)})),configuration:S,source:t,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var r=[],o=this,i=t;o&&o!==i;)r.push(o),o=o.parent;return o!==i?[]:(r.push(i),r)},e.prototype.getActions=function(t,r,o,i,a,s,l){var c,u,d,m,f=this,p=s?ft([],this.getStateNodes(s.value)):[],g=new Set;try{for(var y=D(Array.from(t).sort(function(N,U){return N.order-U.order})),w=y.next();!w.done;w=y.next()){var h=w.value;(!pt(p,h)||pt(o.exitSet,h)||h.parent&&g.has(h.parent))&&g.add(h)}}catch(N){c={error:N}}finally{try{w&&!w.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}try{for(var S=D(p),v=S.next();!v.done;v=S.next()){var h=v.value;(!pt(t,h)||pt(o.exitSet,h.parent))&&o.exitSet.push(h)}}catch(N){d={error:N}}finally{try{v&&!v.done&&(m=S.return)&&m.call(S)}finally{if(d)throw d.error}}o.exitSet.sort(function(N,U){return U.order-N.order});var _=Array.from(g).sort(function(N,U){return N.order-U.order}),C=new Set(o.exitSet),E=j(_.map(function(N){var U=[];if(N.type!=="final")return U;var F=N.parent;if(!F.parent)return U;U.push(dt(N.id,N.doneData),dt(F.id,N.doneData?Jt(N.doneData,i,a):void 0));var H=F.parent;return H.type==="parallel"&&_t(H).every(function(re){return Wt(o.configuration,re)})&&U.push(dt(H.id)),U})),A=_.map(function(N){var U=N.onEntry,F=N.activities.map(function(H){return Ai(H)});return{type:"entry",actions:we(l?L(L([],$(U),!1),$(F),!1):L(L([],$(F),!1),$(U),!1),f.machine.options.actions)}}).concat({type:"state_done",actions:E.map(function(N){return vi(N)})}),T=Array.from(C).map(function(N){return{type:"exit",actions:we(L(L([],$(N.onExit),!1),$(N.activities.map(function(U){return Ei(U)})),!1),f.machine.options.actions)}}),P=T.concat({type:"transition",actions:we(o.actions,this.machine.options.actions)}).concat(A);if(r){var k=we(j(L([],$(t),!1).sort(function(N,U){return U.order-N.order}).map(function(N){return N.onExit})),this.machine.options.actions).filter(function(N){return!Hn(N)});return P.concat({type:"stop",actions:k})}return P},e.prototype.transition=function(t,r,o,i){t===void 0&&(t=this.initialState);var a=Q(r),s;if(t instanceof he)s=o===void 0?t:this.resolveState(he.from(t,o));else{var l=B(t)?this.resolve(qt(this.getResolvedPath(t))):this.resolve(t),c=o??this.machine.context;s=this.resolveState(he.from(l,c))}if(!W&&a.name===st)throw new Error("An event cannot have the wildcard type ('".concat(st,"')"));if(this.strict&&!this.events.includes(a.name)&&!Bl(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var u=this._transition(s.value,s,a)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]},d=ft([],this.getStateNodes(s.value)),m=u.configuration.length?ft(d,u.configuration):d;return u.configuration=L([],$(m),!1),this.resolveTransition(u,s,s.context,i,a)},e.prototype.resolveRaisedTransition=function(t,r,o,i){var a,s=t.actions;return t=this.transition(t,r,void 0,i),t._event=o,t.event=o.data,(a=t.actions).unshift.apply(a,L([],$(s),!1)),t},e.prototype.resolveTransition=function(t,r,o,i,a){var s,l,c,u,d=this;a===void 0&&(a=Ue);var m=t.configuration,f=!r||t.transitions.length>0,p=f?t.configuration:r?r.configuration:[],g=Wt(p,this),y=f?lc(this.machine,m):void 0,w=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,h=this.getActions(new Set(p),g,t,o,a,r,i),S=r?b({},r.activities):{};try{for(var v=D(h),_=v.next();!_.done;_=v.next()){var C=_.value;try{for(var E=(c=void 0,D(C.actions)),A=E.next();!A.done;A=E.next()){var T=A.value;T.type===Kt?S[T.activity.id||T.activity.type]=T:T.type===cn&&(S[T.activity.id||T.activity.type]=!1)}}catch(M){c={error:M}}finally{try{A&&!A.done&&(u=E.return)&&u.call(E)}finally{if(c)throw c.error}}}}catch(M){s={error:M}}finally{try{_&&!_.done&&(l=v.return)&&l.call(v)}finally{if(s)throw s.error}}var P=$(St(this,r,o,a,h,i,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),k=P[0],N=P[1],U=$(zl(k,Hn),2),F=U[0],H=U[1],re=k.filter(function(M){var Me;return M.type===Kt&&((Me=M.activity)===null||Me===void 0?void 0:Me.type)===Yt}),ae=re.reduce(function(M,Me){return M[Me.activity.id]=oc(Me.activity,d.machine,N,a),M},r?b({},r.children):{}),J=new he({value:y||r.value,context:N,_event:a,_sessionid:r?r._sessionid:null,historyValue:y?w?Ll(w,y):void 0:r?r.historyValue:void 0,history:!y||t.source?r:void 0,actions:y?H:[],activities:y?S:r?r.activities:{},events:[],configuration:p,transitions:t.transitions,children:ae,done:g,tags:lo(p),machine:this}),te=o!==N;J.changed=a.name===fn||te;var Z=J.history;Z&&delete Z.history;var Re=!g&&(this._transient||m.some(function(M){return M._transient}));if(!f&&(!Re||a.name===ze))return J;var se=J;if(!g)for(Re&&(se=this.resolveRaisedTransition(se,{type:si},a,i));F.length;){var ot=F.shift();se=this.resolveRaisedTransition(se,ot._event,a,i)}var Mn=se.changed||(Z?!!se.actions.length||te||typeof Z.value!=typeof se.value||!Oi(se.value,Z.value):void 0);return se.changed=Mn,se.history=Z,se},e.prototype.getStateNode=function(t){if(Be(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var r=this.states[t];if(!r)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return r},e.prototype.getStateNodeById=function(t){var r=Be(t)?t.slice(qn.length):t;if(r===this.id)return this;var o=this.machine.idMap[r];if(!o)throw new Error("Child state node '#".concat(r,"' does not exist on machine '").concat(this.id,"'"));return o},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&Be(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var r=Wn(t,this.delimiter).slice(),o=this;r.length;){var i=r.shift();if(!i.length)break;o=o.getStateNode(i)}return o},e.prototype.resolve=function(t){var r,o=this;if(!t)return this.initialStateValue||$e;switch(this.type){case"parallel":return ut(this.initialStateValue,function(a,s){return a?o.getStateNode(s).resolve(t[s]||a):$e});case"compound":if(B(t)){var i=this.getStateNode(t);return i.type==="parallel"||i.type==="compound"?(r={},r[t]=i.initialStateValue,r):t}return Object.keys(t).length?ut(t,function(a,s){return a?o.getStateNode(s).resolve(a):$e}):this.initialStateValue||{};default:return t||$e}},e.prototype.getResolvedPath=function(t){if(Be(t)){var r=this.machine.idMap[t.slice(qn.length)];if(!r)throw new Error("Unable to find state node '".concat(t,"'"));return r.path}return Wn(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var r;if(this.type==="parallel")r=io(this.states,function(o){return o.initialStateValue||$e},function(o){return o.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));r=Xt(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,r){this._init();var o=this.getStateNodes(t);return this.resolveTransition({configuration:o,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,r??this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var r=this.config;B(r.target)?t=Be(r.target)?qt(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target:t=r.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,r,o){return o===void 0&&(o=!0),o?t.type==="history"?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(Xt(this))return[this];if(this.type==="compound"&&!this.initial)return W||q(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=Gt(this.initialStateValue);return j(r.map(function(o){return t.getFromRelativePath(o)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=$(t),o=r[0],i=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(o,"' from node with no states"));var a=this.getStateNode(o);if(a.type==="history")return a.resolveHistory();if(!this.states[o])throw new Error("Child state '".concat(o,"' does not exist on '").concat(this.id,"'"));return this.states[o].getFromRelativePath(i)},e.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:io(this.states,function(r,o){if(!t)return r.historyValue();var i=B(t)?void 0:t[o];return r.historyValue(i||r.initialStateValue)},function(r){return!r.history})}},e.prototype.resolveHistory=function(t){var r=this;if(this.type!=="history")return[this];var o=this.parent;if(!t){var i=this.target;return i?j(Gt(i).map(function(s){return o.getFromRelativePath(s)})):o.initialStateNodes}var a=$l(o.path,"states")(t).current;return B(a)?[o.getStateNode(a)]:j(Gt(a).map(function(s){return r.history==="deep"?o.getFromRelativePath(s):[o.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,r=j(Object.keys(this.states).map(function(o){return t.states[o].stateIds}));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,r,o,i;if(this.__cache.events)return this.__cache.events;var a=this.states,s=new Set(this.ownEvents);if(a)try{for(var l=D(Object.keys(a)),c=l.next();!c.done;c=l.next()){var u=c.value,d=a[u];if(d.states)try{for(var m=(o=void 0,D(d.events)),f=m.next();!f.done;f=m.next()){var p=f.value;s.add("".concat(p))}}catch(g){o={error:g}}finally{try{f&&!f.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}}}catch(g){t={error:g}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(r){return!(!r.target&&!r.actions.length&&r.internal)}).map(function(r){return r.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var r=this;if(t!==void 0)return t.map(function(o){if(!B(o))return o;var i=o[0]===r.delimiter;if(i&&!r.parent)return r.getStateNodeByPath(o.slice(1));var a=i?r.key+o:o;if(r.parent)try{var s=r.parent.getStateNodeByPath(a);return s}catch(l){throw new Error("Invalid transition definition for state node '".concat(r.id,`':
20
+ `).concat(l.message))}else return r.getStateNodeByPath(a)})},e.prototype.formatTransition=function(t){var r=this,o=Hl(t.target),i="internal"in t?t.internal:o?o.some(function(c){return B(c)&&c[0]===r.delimiter}):!0,a=this.machine.options.guards,s=this.resolveTarget(o),l=b(b({},t),{actions:we(me(t.actions)),cond:gi(t.cond,a),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return b(b({},l),{target:l.target?l.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(r.id)})}});return l},e.prototype.formatTransitions=function(){var t,r,o=this,i;if(!this.config.on)i=[];else if(Array.isArray(this.config.on))i=this.config.on;else{var a=this.config.on,s=st,l=a[s],c=l===void 0?[]:l,u=cr(a,[typeof s=="symbol"?s:s+""]);i=j(Object.keys(u).map(function(S){!W&&S===ze&&q(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var v=De(S,u[S]);return W||Cc(o,S,v),v}).concat(De(st,c)))}var d=this.config.always?De("",this.config.always):[],m=this.config.onDone?De(String(dt(this.id)),this.config.onDone):[];W||q(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=j(this.invoke.map(function(S){var v=[];return S.onDone&&v.push.apply(v,L([],$(De(String(gt(S.id)),S.onDone)),!1)),S.onError&&v.push.apply(v,L([],$(De(String(Le(S.id)),S.onError)),!1)),v})),p=this.after,g=j(L(L(L(L([],$(m),!1),$(f),!1),$(i),!1),$(d),!1).map(function(S){return me(S).map(function(v){return o.formatTransition(v)})}));try{for(var y=D(p),w=y.next();!w.done;w=y.next()){var h=w.value;g.push(h)}}catch(S){t={error:S}}finally{try{w&&!w.done&&(r=y.return)&&r.call(y)}finally{if(t)throw t.error}}return g},e}(),uo=!1;function Ze(e,t){return!W&&!("predictableActionArguments"in e)&&!uo&&(uo=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new bc(e,t)}var _e=Ii,gn=wi,Ac=ki,Ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ec(e,t){for(var r=-1,o=e==null?0:e.length,i=Array(o);++r<o;)i[r]=t(e[r],r,e);return i}var $i=Ec;function Tc(){this.__data__=[],this.size=0}var Ic=Tc;function Pc(e,t){return e===t||e!==e&&t!==t}var At=Pc,kc=At;function Nc(e,t){for(var r=e.length;r--;)if(kc(e[r][0],t))return r;return-1}var hn=Nc,Mc=hn,xc=Array.prototype,Uc=xc.splice;function Fc(e){var t=this.__data__,r=Mc(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Uc.call(t,r,1),--this.size,!0}var Oc=Fc,Rc=hn;function Dc(e){var t=this.__data__,r=Rc(t,e);return r<0?void 0:t[r][1]}var $c=Dc,Bc=hn;function Vc(e){return Bc(this.__data__,e)>-1}var zc=Vc,Lc=hn;function Gc(e,t){var r=this.__data__,o=Lc(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var jc=Gc,Wc=Ic,Hc=Oc,Kc=$c,Yc=zc,qc=jc;function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Qe.prototype.clear=Wc;Qe.prototype.delete=Hc;Qe.prototype.get=Kc;Qe.prototype.has=Yc;Qe.prototype.set=qc;var yn=Qe,Jc=yn;function Zc(){this.__data__=new Jc,this.size=0}var Qc=Zc;function Xc(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var eu=Xc;function tu(e){return this.__data__.get(e)}var nu=tu;function ru(e){return this.__data__.has(e)}var ou=ru,iu=typeof Ft=="object"&&Ft&&Ft.Object===Object&&Ft,Bi=iu,au=Bi,su=typeof self=="object"&&self&&self.Object===Object&&self,lu=au||su||Function("return this")(),ye=lu,cu=ye,uu=cu.Symbol,vn=uu,fo=vn,Vi=Object.prototype,du=Vi.hasOwnProperty,fu=Vi.toString,lt=fo?fo.toStringTag:void 0;function pu(e){var t=du.call(e,lt),r=e[lt];try{e[lt]=void 0;var o=!0}catch{}var i=fu.call(e);return o&&(t?e[lt]=r:delete e[lt]),i}var mu=pu,gu=Object.prototype,hu=gu.toString;function yu(e){return hu.call(e)}var vu=yu,po=vn,Su=mu,_u=vu,wu="[object Null]",Cu="[object Undefined]",mo=po?po.toStringTag:void 0;function bu(e){return e==null?e===void 0?Cu:wu:mo&&mo in Object(e)?Su(e):_u(e)}var Xe=bu;function Au(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ae=Au,Eu=Xe,Tu=Ae,Iu="[object AsyncFunction]",Pu="[object Function]",ku="[object GeneratorFunction]",Nu="[object Proxy]";function Mu(e){if(!Tu(e))return!1;var t=Eu(e);return t==Pu||t==ku||t==Iu||t==Nu}var hr=Mu,xu=ye,Uu=xu["__core-js_shared__"],Fu=Uu,Fn=Fu,go=function(){var e=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ou(e){return!!go&&go in e}var Ru=Ou,Du=Function.prototype,$u=Du.toString;function Bu(e){if(e!=null){try{return $u.call(e)}catch{}try{return e+""}catch{}}return""}var zi=Bu,Vu=hr,zu=Ru,Lu=Ae,Gu=zi,ju=/[\\^$.*+?()[\]{}|]/g,Wu=/^\[object .+?Constructor\]$/,Hu=Function.prototype,Ku=Object.prototype,Yu=Hu.toString,qu=Ku.hasOwnProperty,Ju=RegExp("^"+Yu.call(qu).replace(ju,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zu(e){if(!Lu(e)||zu(e))return!1;var t=Vu(e)?Ju:Wu;return t.test(Gu(e))}var Qu=Zu;function Xu(e,t){return e==null?void 0:e[t]}var ed=Xu,td=Qu,nd=ed;function rd(e,t){var r=nd(e,t);return td(r)?r:void 0}var Fe=rd,od=Fe,id=ye,ad=od(id,"Map"),yr=ad,sd=Fe,ld=sd(Object,"create"),Sn=ld,ho=Sn;function cd(){this.__data__=ho?ho(null):{},this.size=0}var ud=cd;function dd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fd=dd,pd=Sn,md="__lodash_hash_undefined__",gd=Object.prototype,hd=gd.hasOwnProperty;function yd(e){var t=this.__data__;if(pd){var r=t[e];return r===md?void 0:r}return hd.call(t,e)?t[e]:void 0}var vd=yd,Sd=Sn,_d=Object.prototype,wd=_d.hasOwnProperty;function Cd(e){var t=this.__data__;return Sd?t[e]!==void 0:wd.call(t,e)}var bd=Cd,Ad=Sn,Ed="__lodash_hash_undefined__";function Td(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ad&&t===void 0?Ed:t,this}var Id=Td,Pd=ud,kd=fd,Nd=vd,Md=bd,xd=Id;function et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}et.prototype.clear=Pd;et.prototype.delete=kd;et.prototype.get=Nd;et.prototype.has=Md;et.prototype.set=xd;var Ud=et,yo=Ud,Fd=yn,Od=yr;function Rd(){this.size=0,this.__data__={hash:new yo,map:new(Od||Fd),string:new yo}}var Dd=Rd;function $d(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Bd=$d,Vd=Bd;function zd(e,t){var r=e.__data__;return Vd(t)?r[typeof t=="string"?"string":"hash"]:r.map}var _n=zd,Ld=_n;function Gd(e){var t=Ld(this,e).delete(e);return this.size-=t?1:0,t}var jd=Gd,Wd=_n;function Hd(e){return Wd(this,e).get(e)}var Kd=Hd,Yd=_n;function qd(e){return Yd(this,e).has(e)}var Jd=qd,Zd=_n;function Qd(e,t){var r=Zd(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var Xd=Qd,ef=Dd,tf=jd,nf=Kd,rf=Jd,of=Xd;function tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}tt.prototype.clear=ef;tt.prototype.delete=tf;tt.prototype.get=nf;tt.prototype.has=rf;tt.prototype.set=of;var vr=tt,af=yn,sf=yr,lf=vr,cf=200;function uf(e,t){var r=this.__data__;if(r instanceof af){var o=r.__data__;if(!sf||o.length<cf-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new lf(o)}return r.set(e,t),this.size=r.size,this}var df=uf,ff=yn,pf=Qc,mf=eu,gf=nu,hf=ou,yf=df;function nt(e){var t=this.__data__=new ff(e);this.size=t.size}nt.prototype.clear=pf;nt.prototype.delete=mf;nt.prototype.get=gf;nt.prototype.has=hf;nt.prototype.set=yf;var Sr=nt,vf="__lodash_hash_undefined__";function Sf(e){return this.__data__.set(e,vf),this}var _f=Sf;function wf(e){return this.__data__.has(e)}var Cf=wf,bf=vr,Af=_f,Ef=Cf;function en(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new bf;++t<r;)this.add(e[t])}en.prototype.add=en.prototype.push=Af;en.prototype.has=Ef;var Tf=en;function If(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}var Pf=If;function kf(e,t){return e.has(t)}var Nf=kf,Mf=Tf,xf=Pf,Uf=Nf,Ff=1,Of=2;function Rf(e,t,r,o,i,a){var s=r&Ff,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var m=-1,f=!0,p=r&Of?new Mf:void 0;for(a.set(e,t),a.set(t,e);++m<l;){var g=e[m],y=t[m];if(o)var w=s?o(y,g,m,t,e,a):o(g,y,m,e,t,a);if(w!==void 0){if(w)continue;f=!1;break}if(p){if(!xf(t,function(h,S){if(!Uf(p,S)&&(g===h||i(g,h,r,o,a)))return p.push(S)})){f=!1;break}}else if(!(g===y||i(g,y,r,o,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Li=Rf,Df=ye,$f=Df.Uint8Array,Gi=$f;function Bf(e){var t=-1,r=Array(e.size);return e.forEach(function(o,i){r[++t]=[i,o]}),r}var Vf=Bf;function zf(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var Lf=zf,vo=vn,So=Gi,Gf=At,jf=Li,Wf=Vf,Hf=Lf,Kf=1,Yf=2,qf="[object Boolean]",Jf="[object Date]",Zf="[object Error]",Qf="[object Map]",Xf="[object Number]",ep="[object RegExp]",tp="[object Set]",np="[object String]",rp="[object Symbol]",op="[object ArrayBuffer]",ip="[object DataView]",_o=vo?vo.prototype:void 0,On=_o?_o.valueOf:void 0;function ap(e,t,r,o,i,a,s){switch(r){case ip:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case op:return!(e.byteLength!=t.byteLength||!a(new So(e),new So(t)));case qf:case Jf:case Xf:return Gf(+e,+t);case Zf:return e.name==t.name&&e.message==t.message;case ep:case np:return e==t+"";case Qf:var l=Wf;case tp:var c=o&Kf;if(l||(l=Hf),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;o|=Yf,s.set(e,t);var d=jf(l(e),l(t),o,i,a,s);return s.delete(e),d;case rp:if(On)return On.call(e)==On.call(t)}return!1}var sp=ap;function lp(e,t){for(var r=-1,o=t.length,i=e.length;++r<o;)e[i+r]=t[r];return e}var ji=lp,cp=Array.isArray,Ee=cp,up=ji,dp=Ee;function fp(e,t,r){var o=t(e);return dp(e)?o:up(o,r(e))}var Wi=fp;function pp(e,t){for(var r=-1,o=e==null?0:e.length,i=0,a=[];++r<o;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}var mp=pp;function gp(){return[]}var Hi=gp,hp=mp,yp=Hi,vp=Object.prototype,Sp=vp.propertyIsEnumerable,wo=Object.getOwnPropertySymbols,_p=wo?function(e){return e==null?[]:(e=Object(e),hp(wo(e),function(t){return Sp.call(e,t)}))}:yp,Ki=_p;function wp(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Cp=wp;function bp(e){return e!=null&&typeof e=="object"}var Oe=bp,Ap=Xe,Ep=Oe,Tp="[object Arguments]";function Ip(e){return Ep(e)&&Ap(e)==Tp}var Pp=Ip,Co=Pp,kp=Oe,Yi=Object.prototype,Np=Yi.hasOwnProperty,Mp=Yi.propertyIsEnumerable,xp=Co(function(){return arguments}())?Co:function(e){return kp(e)&&Np.call(e,"callee")&&!Mp.call(e,"callee")},_r=xp,tn={exports:{}};function Up(){return!1}var Fp=Up;tn.exports;(function(e,t){var r=ye,o=Fp,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||o;e.exports=u})(tn,tn.exports);var wr=tn.exports,Op=9007199254740991,Rp=/^(?:0|[1-9]\d*)$/;function Dp(e,t){var r=typeof e;return t=t??Op,!!t&&(r=="number"||r!="symbol"&&Rp.test(e))&&e>-1&&e%1==0&&e<t}var wn=Dp,$p=9007199254740991;function Bp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$p}var Cr=Bp,Vp=Xe,zp=Cr,Lp=Oe,Gp="[object Arguments]",jp="[object Array]",Wp="[object Boolean]",Hp="[object Date]",Kp="[object Error]",Yp="[object Function]",qp="[object Map]",Jp="[object Number]",Zp="[object Object]",Qp="[object RegExp]",Xp="[object Set]",em="[object String]",tm="[object WeakMap]",nm="[object ArrayBuffer]",rm="[object DataView]",om="[object Float32Array]",im="[object Float64Array]",am="[object Int8Array]",sm="[object Int16Array]",lm="[object Int32Array]",cm="[object Uint8Array]",um="[object Uint8ClampedArray]",dm="[object Uint16Array]",fm="[object Uint32Array]",G={};G[om]=G[im]=G[am]=G[sm]=G[lm]=G[cm]=G[um]=G[dm]=G[fm]=!0;G[Gp]=G[jp]=G[nm]=G[Wp]=G[rm]=G[Hp]=G[Kp]=G[Yp]=G[qp]=G[Jp]=G[Zp]=G[Qp]=G[Xp]=G[em]=G[tm]=!1;function pm(e){return Lp(e)&&zp(e.length)&&!!G[Vp(e)]}var mm=pm;function gm(e){return function(t){return e(t)}}var hm=gm,nn={exports:{}};nn.exports;(function(e,t){var r=Bi,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&r.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(nn,nn.exports);var ym=nn.exports,vm=mm,Sm=hm,bo=ym,Ao=bo&&bo.isTypedArray,_m=Ao?Sm(Ao):vm,br=_m,wm=Cp,Cm=_r,bm=Ee,Am=wr,Em=wn,Tm=br,Im=Object.prototype,Pm=Im.hasOwnProperty;function km(e,t){var r=bm(e),o=!r&&Cm(e),i=!r&&!o&&Am(e),a=!r&&!o&&!i&&Tm(e),s=r||o||i||a,l=s?wm(e.length,String):[],c=l.length;for(var u in e)(t||Pm.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Em(u,c)))&&l.push(u);return l}var qi=km,Nm=Object.prototype;function Mm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nm;return e===r}var Ar=Mm;function xm(e,t){return function(r){return e(t(r))}}var Ji=xm,Um=Ji,Fm=Um(Object.keys,Object),Om=Fm,Rm=Ar,Dm=Om,$m=Object.prototype,Bm=$m.hasOwnProperty;function Vm(e){if(!Rm(e))return Dm(e);var t=[];for(var r in Object(e))Bm.call(e,r)&&r!="constructor"&&t.push(r);return t}var zm=Vm,Lm=hr,Gm=Cr;function jm(e){return e!=null&&Gm(e.length)&&!Lm(e)}var Cn=jm,Wm=qi,Hm=zm,Km=Cn;function Ym(e){return Km(e)?Wm(e):Hm(e)}var Zi=Ym,qm=Wi,Jm=Ki,Zm=Zi;function Qm(e){return qm(e,Zm,Jm)}var Xm=Qm,Eo=Xm,eg=1,tg=Object.prototype,ng=tg.hasOwnProperty;function rg(e,t,r,o,i,a){var s=r&eg,l=Eo(e),c=l.length,u=Eo(t),d=u.length;if(c!=d&&!s)return!1;for(var m=c;m--;){var f=l[m];if(!(s?f in t:ng.call(t,f)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var y=!0;a.set(e,t),a.set(t,e);for(var w=s;++m<c;){f=l[m];var h=e[f],S=t[f];if(o)var v=s?o(S,h,f,t,e,a):o(h,S,f,e,t,a);if(!(v===void 0?h===S||i(h,S,r,o,a):v)){y=!1;break}w||(w=f=="constructor")}if(y&&!w){var _=e.constructor,C=t.constructor;_!=C&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof C=="function"&&C instanceof C)&&(y=!1)}return a.delete(e),a.delete(t),y}var og=rg,ig=Fe,ag=ye,sg=ig(ag,"DataView"),lg=sg,cg=Fe,ug=ye,dg=cg(ug,"Promise"),fg=dg,pg=Fe,mg=ye,gg=pg(mg,"Set"),hg=gg,yg=Fe,vg=ye,Sg=yg(vg,"WeakMap"),_g=Sg,Jn=lg,Zn=yr,Qn=fg,Xn=hg,er=_g,Qi=Xe,rt=zi,To="[object Map]",wg="[object Object]",Io="[object Promise]",Po="[object Set]",ko="[object WeakMap]",No="[object DataView]",Cg=rt(Jn),bg=rt(Zn),Ag=rt(Qn),Eg=rt(Xn),Tg=rt(er),xe=Qi;(Jn&&xe(new Jn(new ArrayBuffer(1)))!=No||Zn&&xe(new Zn)!=To||Qn&&xe(Qn.resolve())!=Io||Xn&&xe(new Xn)!=Po||er&&xe(new er)!=ko)&&(xe=function(e){var t=Qi(e),r=t==wg?e.constructor:void 0,o=r?rt(r):"";if(o)switch(o){case Cg:return No;case bg:return To;case Ag:return Io;case Eg:return Po;case Tg:return ko}return t});var Ig=xe,Rn=Sr,Pg=Li,kg=sp,Ng=og,Mo=Ig,xo=Ee,Uo=wr,Mg=br,xg=1,Fo="[object Arguments]",Oo="[object Array]",Ot="[object Object]",Ug=Object.prototype,Ro=Ug.hasOwnProperty;function Fg(e,t,r,o,i,a){var s=xo(e),l=xo(t),c=s?Oo:Mo(e),u=l?Oo:Mo(t);c=c==Fo?Ot:c,u=u==Fo?Ot:u;var d=c==Ot,m=u==Ot,f=c==u;if(f&&Uo(e)){if(!Uo(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Rn),s||Mg(e)?Pg(e,t,r,o,i,a):kg(e,t,c,r,o,i,a);if(!(r&xg)){var p=d&&Ro.call(e,"__wrapped__"),g=m&&Ro.call(t,"__wrapped__");if(p||g){var y=p?e.value():e,w=g?t.value():t;return a||(a=new Rn),i(y,w,r,o,a)}}return f?(a||(a=new Rn),Ng(e,t,r,o,i,a)):!1}var Og=Fg,Rg=Og,Do=Oe;function Xi(e,t,r,o,i){return e===t?!0:e==null||t==null||!Do(e)&&!Do(t)?e!==e&&t!==t:Rg(e,t,r,o,Xi,i)}var ea=Xi,Dg=Sr,$g=ea,Bg=1,Vg=2;function zg(e,t,r,o){var i=r.length,a=i,s=!o;if(e==null)return!a;for(e=Object(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=r[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var m=new Dg;if(o)var f=o(u,d,c,e,t,m);if(!(f===void 0?$g(d,u,Bg|Vg,o,m):f))return!1}}return!0}var Lg=zg,Gg=Ae;function jg(e){return e===e&&!Gg(e)}var ta=jg,Wg=ta,Hg=Zi;function Kg(e){for(var t=Hg(e),r=t.length;r--;){var o=t[r],i=e[o];t[r]=[o,i,Wg(i)]}return t}var Yg=Kg;function qg(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var na=qg,Jg=Lg,Zg=Yg,Qg=na;function Xg(e){var t=Zg(e);return t.length==1&&t[0][2]?Qg(t[0][0],t[0][1]):function(r){return r===e||Jg(r,e,t)}}var eh=Xg,th=Xe,nh=Oe,rh="[object Symbol]";function oh(e){return typeof e=="symbol"||nh(e)&&th(e)==rh}var Er=oh,ih=Ee,ah=Er,sh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lh=/^\w*$/;function ch(e,t){if(ih(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ah(e)?!0:lh.test(e)||!sh.test(e)||t!=null&&e in Object(t)}var Tr=ch,ra=vr,uh="Expected a function";function Ir(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uh);var r=function(){var o=arguments,i=t?t.apply(this,o):o[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,o);return r.cache=a.set(i,s)||a,s};return r.cache=new(Ir.Cache||ra),r}Ir.Cache=ra;var dh=Ir,fh=dh,ph=500;function mh(e){var t=fh(e,function(o){return r.size===ph&&r.clear(),o}),r=t.cache;return t}var gh=mh,hh=gh,yh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vh=/\\(\\)?/g,Sh=hh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yh,function(r,o,i,a){t.push(i?a.replace(vh,"$1"):o||r)}),t}),_h=Sh,$o=vn,wh=$i,Ch=Ee,bh=Er,Bo=$o?$o.prototype:void 0,Vo=Bo?Bo.toString:void 0;function oa(e){if(typeof e=="string")return e;if(Ch(e))return wh(e,oa)+"";if(bh(e))return Vo?Vo.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Ah=oa,Eh=Ah;function Th(e){return e==null?"":Eh(e)}var Ih=Th,Ph=Ee,kh=Tr,Nh=_h,Mh=Ih;function xh(e,t){return Ph(e)?e:kh(e,t)?[e]:Nh(Mh(e))}var bn=xh,Uh=Er;function Fh(e){if(typeof e=="string"||Uh(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Et=Fh,Oh=bn,Rh=Et;function Dh(e,t){t=Oh(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Rh(t[r++])];return r&&r==o?e:void 0}var Pr=Dh,$h=Pr;function Bh(e,t,r){var o=e==null?void 0:$h(e,t);return o===void 0?r:o}var Vh=Bh;function zh(e,t){return e!=null&&t in Object(e)}var Lh=zh,Gh=bn,jh=_r,Wh=Ee,Hh=wn,Kh=Cr,Yh=Et;function qh(e,t,r){t=Gh(t,e);for(var o=-1,i=t.length,a=!1;++o<i;){var s=Yh(t[o]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++o!=i?a:(i=e==null?0:e.length,!!i&&Kh(i)&&Hh(s,i)&&(Wh(e)||jh(e)))}var Jh=qh,Zh=Lh,Qh=Jh;function Xh(e,t){return e!=null&&Qh(e,t,Zh)}var ey=Xh,ty=ea,ny=Vh,ry=ey,oy=Tr,iy=ta,ay=na,sy=Et,ly=1,cy=2;function uy(e,t){return oy(e)&&iy(t)?ay(sy(e),t):function(r){var o=ny(r,e);return o===void 0&&o===t?ry(r,e):ty(t,o,ly|cy)}}var dy=uy;function fy(e){return e}var kr=fy;function py(e){return function(t){return t==null?void 0:t[e]}}var my=py,gy=Pr;function hy(e){return function(t){return gy(t,e)}}var yy=hy,vy=my,Sy=yy,_y=Tr,wy=Et;function Cy(e){return _y(e)?vy(wy(e)):Sy(e)}var by=Cy,Ay=eh,Ey=dy,Ty=kr,Iy=Ee,Py=by;function ky(e){return typeof e=="function"?e:e==null?Ty:typeof e=="object"?Iy(e)?Ey(e[0],e[1]):Ay(e):Py(e)}var Ny=ky,My=Fe,xy=function(){try{var e=My(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ia=xy,zo=ia;function Uy(e,t,r){t=="__proto__"&&zo?zo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Nr=Uy,Fy=Nr,Oy=At,Ry=Object.prototype,Dy=Ry.hasOwnProperty;function $y(e,t,r){var o=e[t];(!(Dy.call(e,t)&&Oy(o,r))||r===void 0&&!(t in e))&&Fy(e,t,r)}var aa=$y,By=aa,Vy=bn,zy=wn,Lo=Ae,Ly=Et;function Gy(e,t,r,o){if(!Lo(e))return e;t=Vy(t,e);for(var i=-1,a=t.length,s=a-1,l=e;l!=null&&++i<a;){var c=Ly(t[i]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var d=l[c];u=o?o(d,c,l):void 0,u===void 0&&(u=Lo(d)?d:zy(t[i+1])?[]:{})}By(l,c,u),l=l[c]}return e}var jy=Gy,Wy=Pr,Hy=jy,Ky=bn;function Yy(e,t,r){for(var o=-1,i=t.length,a={};++o<i;){var s=t[o],l=Wy(e,s);r(l,s)&&Hy(a,Ky(s,e),l)}return a}var qy=Yy,Jy=Ji,Zy=Jy(Object.getPrototypeOf,Object),Mr=Zy,Qy=ji,Xy=Mr,ev=Ki,tv=Hi,nv=Object.getOwnPropertySymbols,rv=nv?function(e){for(var t=[];e;)Qy(t,ev(e)),e=Xy(e);return t}:tv,ov=rv;function iv(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var av=iv,sv=Ae,lv=Ar,cv=av,uv=Object.prototype,dv=uv.hasOwnProperty;function fv(e){if(!sv(e))return cv(e);var t=lv(e),r=[];for(var o in e)o=="constructor"&&(t||!dv.call(e,o))||r.push(o);return r}var pv=fv,mv=qi,gv=pv,hv=Cn;function yv(e){return hv(e)?mv(e,!0):gv(e)}var xr=yv,vv=Wi,Sv=ov,_v=xr;function wv(e){return vv(e,_v,Sv)}var Cv=wv,bv=$i,Av=Ny,Ev=qy,Tv=Cv;function Iv(e,t){if(e==null)return{};var r=bv(Tv(e),function(o){return[o]});return t=Av(t),Ev(e,r,function(o,i){return t(o,i[0])})}var Pv=Iv;const kv=Di(Pv),Nv=!0,Mv="",wt=(e,t)=>`${e}${t}`.replace(/[^A-Z0-9+]/gi,""),xv=(e,t)=>{switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}},Uv=e=>{const{phone_number:t,...r}=kv(e,xv);if(ni(t)&&t!==Mv){const{country_code:o}=e;return{...r,phone_number:wt(o,t)}}return r},Fv=(e,t,r,o)=>{const{password:i,...a}=t,s=Uv(a),l=o&&o!=="PASSWORD";let c=s;o==="SMS_OTP"&&s.email&&(c={...s,email:""});const u={autoSignIn:l?{enabled:!0,authFlowType:"USER_AUTH",preferredChallenge:o}:Nv,userAttributes:{...r==="phone_number"?{...c,phone_number:e}:c}};return{username:e,password:l?void 0:i,options:u}},Ov=({formValues:e,loginMechanisms:t})=>{const r=e.__authMethod;if(r==="SMS_OTP"){const{country_code:i,phone_number:a}=e;return wt(i,a)}if(r==="EMAIL_OTP")return e.email;if(t.includes("username"))return e.username;const o=t[0];if(o==="phone_number"){const{country_code:i,phone_number:a}=e;return wt(i,a)}return e[o]},Rv=(e,t)=>{const r=[],o=t!==void 0;r.push("PASSWORD"),(o||e!=null&&e.emailOtpEnabled)&&r.push("EMAIL_OTP"),(o||e!=null&&e.smsOtpEnabled)&&r.push("SMS_OTP"),(o||e!=null&&e.webAuthnEnabled)&&r.push("WEB_AUTHN");const i=t??[],a=r.filter(s=>!i.includes(s));if(a.length===0)throw new Error("InvalidPasswordlessSettings: All authentication methods are hidden");return a},{assign:R}=Ni,Dv=R({actorDoneData:void 0}),$v=R({challengeName:void 0}),Bv=R({missingAttributes:void 0}),Vv=R({remoteError:void 0}),zv=R({formValues:e=>{var t;return{username:(t=e.formValues)==null?void 0:t.username}}}),Lv=R({touched:{}}),Gv=R({user:void 0}),jv=R({validationError:{}}),Wv=R({totpSecretCode:(e,{data:t})=>{var o;const{sharedSecret:r}=((o=t.nextStep)==null?void 0:o.totpSetupDetails)??{};return r}}),Hv=R({allowedMfaTypes:(e,{data:t})=>{var r;return(r=t.nextStep)==null?void 0:r.allowedMFATypes}}),Kv=R({step:"SIGN_IN"}),Yv=R({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),qv=R({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),Jv=R({challengeName:(e,{data:t})=>{const{signInStep:r}=t.nextStep;switch(r){case"CONFIRM_SIGN_IN_WITH_SMS_CODE":return"SMS_MFA";case"CONFIRM_SIGN_IN_WITH_TOTP_CODE":return"SOFTWARE_TOKEN_MFA";case"CONFIRM_SIGN_IN_WITH_EMAIL_CODE":return"EMAIL_OTP";case"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION":case"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP":case"CONTINUE_SIGN_IN_WITH_TOTP_SETUP":return"MFA_SETUP";case"CONTINUE_SIGN_IN_WITH_MFA_SELECTION":return"SELECT_MFA_TYPE";default:return}}}),Zv=R({username:({formValues:e,loginMechanisms:t})=>{const r=t[0],{username:o,country_code:i}=e;return r==="phone_number"?wt(i,o):o}}),Qv=R({username:Ov}),Xv=R({username:({formValues:e,loginMechanisms:t})=>{const r=t[0],{username:o,country_code:i}=e;return r==="phone_number"?wt(i,o):o}}),eS=R({step:(e,{data:t})=>t.nextStep.signInStep==="DONE"?"SIGN_IN_COMPLETE":t.nextStep.signInStep}),tS=R({step:(e,{data:t})=>t.nextStep.signUpStep==="DONE"?"SIGN_UP_COMPLETE":t.nextStep.signUpStep}),nS=R({step:(e,{data:t})=>t.nextStep.resetPasswordStep==="DONE"?"RESET_PASSWORD_COMPLETE":t.nextStep.resetPasswordStep}),rS=R({missingAttributes:(e,{data:t})=>{var r;return(r=t.nextStep)==null?void 0:r.missingAttributes}}),oS=R({validationError:(e,{data:t})=>t}),iS=R({remoteError:(e,{data:t})=>{if(t.name==="NoUserPoolError")return"Configuration error (see console) – please contact the administrator";const r=(t==null?void 0:t.message)||"";return r.includes("USER_AUTH flow not enabled")?I(O.PASSWORDLESS_NOT_ENABLED):r.includes("Cannot send code to either")?I(O.CODE_DELIVERY_FAILED):r.includes("Invalid code or auth state")?I(O.VERIFICATION_CODE_INVALID):r.includes("session is expired")?I(O.VERIFICATION_CODE_EXPIRED):r.includes("ceremony has been canceled")?I(O.PASSKEY_AUTHENTICATION_CANCELED):r||t}}),aS=R({user:(e,{data:t})=>t}),Go=e=>({Destination:e.destination,DeliveryMedium:e.deliveryMedium,AttributeName:e.attributName}),sS=R({codeDeliveryDetails:(e,{data:t})=>{var r;return(r=t==null?void 0:t.nextStep)!=null&&r.codeDeliveryDetails?Go(t.nextStep.codeDeliveryDetails):Go(t)}}),lS=R({formValues:(e,{data:t})=>{const{name:r,value:o}=t;return{...e.formValues,[r]:o}}}),cS=R({formValues:(e,{data:t})=>_s({...e.formValues,...t},"password")}),uS=R({touched:(e,{data:t})=>({...e.touched,[t.name]:!0})}),dS=R({unverifiedUserAttributes:(e,{data:t})=>{const r=t||e.fetchedUserAttributes;if(!r)return{};const{email:o,phone_number:i}=r;return{...o&&{email:o},...i&&{phone_number:i}}}}),fS=R({selectedUserAttribute:void 0}),pS=R({selectedUserAttribute:e=>{var t;return(t=e.formValues)==null?void 0:t.unverifiedAttr}}),mS=R({step:"CONFIRM_SIGN_UP"}),gS=R({selectedAuthMethod:(e,{data:t})=>t.method}),hS=R({selectedAuthMethod:(e,{data:t})=>(t==null?void 0:t.__authMethod)||"PASSWORD"}),yS=R({step:"SELECT_AUTH_METHOD"}),vS=R({fetchedUserAttributes:(e,t)=>t.data}),SS=R({hasExistingPasskeys:(e,t)=>t.data}),_S=R({hasExistingPasskeys:!1}),Tt={clearActorDoneData:Dv,clearChallengeName:$v,clearError:Vv,clearFormValues:zv,clearHasExistingPasskeys:_S,clearMissingAttributes:Bv,clearSelectedUserAttribute:fS,clearTouched:Lv,clearUser:Gv,clearValidationError:jv,handleBlur:uS,handleInput:lS,handleSubmit:cS,setAllowedMfaTypes:Hv,setChallengeName:Jv,setCodeDeliveryDetails:sS,setFetchedUserAttributes:vS,setFieldErrors:oS,setHasExistingPasskeys:SS,setMissingAttributes:rS,setNextResetPasswordStep:nS,setNextSignInStep:eS,setNextSignUpStep:tS,setRemoteError:iS,setConfirmAttributeCompleteStep:qv,setConfirmSignUpSignUpStep:mS,setSelectAuthMethodStep:yS,setSelectedAuthMethod:gS,setSelectedAuthMethodFromForm:hS,setShouldVerifyUserAttributeStep:Yv,setSelectedUserAttribute:pS,setSignInStep:Kv,setTotpSecretCode:Wv,setUser:aS,setUnverifiedUserAttributes:dS,setUsernameForgotPassword:Zv,setUsernameSignIn:Xv,setUsernameSignUp:Qv},wS=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE","CONFIRM_SIGN_IN_WITH_EMAIL_CODE"],CS=(e,{data:t})=>(t==null?void 0:t.nextStep.signInStep)==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",bS=(e,{data:t})=>{var r;return((r=t==null?void 0:t.nextStep)==null?void 0:r.signInStep)==="RESET_PASSWORD"},AS=(e,{data:t})=>(t==null?void 0:t.nextStep.signInStep)==="CONFIRM_SIGN_UP",ES=(e,{data:t})=>(t==null?void 0:t.nextStep.signUpStep)==="COMPLETE_AUTO_SIGN_IN",TS=(e,{data:t})=>(t==null?void 0:t.nextStep.signInStep)==="DONE",IS=(e,{data:t})=>(t==null?void 0:t.nextStep.signUpStep)==="DONE",PS=(e,{data:t})=>(t==null?void 0:t.nextStep.resetPasswordStep)==="DONE",kS=(e,{data:t})=>(t==null?void 0:t.step)==="CONFIRM_ATTRIBUTE_COMPLETE",NS=(e,{data:t})=>(t==null?void 0:t.step)==="CONFIRM_ATTRIBUTE_WITH_CODE",MS=(e,{data:t})=>(t==null?void 0:t.step)==="SHOULD_CONFIRM_USER_ATTRIBUTE",xS=(e,{data:t})=>(t==null?void 0:t.step)==="RESET_PASSWORD",US=(e,{data:t})=>(t==null?void 0:t.step)==="CONFIRM_SIGN_UP",FS=({step:e})=>wS.includes(e),OS=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_TOTP_SETUP",RS=({step:e})=>e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP",DS=({step:e})=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e),$S=({step:e})=>e==="RESET_PASSWORD",BS=({step:e})=>e==="CONFIRM_RESET_PASSWORD_WITH_CODE",VS=({step:e})=>e==="CONFIRM_SIGN_UP",zS=(e,t)=>{const r=t.data||e.fetchedUserAttributes;if(!r)return!1;const{email:o,phone_number:i,phone_number_verified:a,email_verified:s}=r;return!o&&!i?!1:(s===void 0||s==="false")&&(a===void 0||a==="false")},LS=(e,{data:t})=>t.message==="User is already confirmed.",GS=({availableAuthMethods:e,preferredChallenge:t,selectedAuthMethod:r})=>e&&e.length>1&&(!t||r===null),jS=({passwordless:e,hasExistingPasskeys:t})=>{const{passkeyRegistrationPrompts:r}=e||{};return!r||t?!1:typeof r=="boolean"?r:r.afterSignin==="ALWAYS"},WS=({passwordless:e,hasExistingPasskeys:t})=>{const{passkeyRegistrationPrompts:r}=e||{};return!r||t?!1:typeof r=="boolean"?r:r.afterSignup==="ALWAYS"},HS=({passwordless:e})=>(e==null?void 0:e.passkeyRegistrationPrompts)!=null,KS=({selectedAuthMethod:e,step:t})=>e!=null&&t==="SELECT_AUTH_METHOD",An={hasCompletedAttributeConfirmation:kS,hasCompletedResetPassword:PS,hasCompletedSignIn:TS,hasCompletedSignUp:IS,hasPasskeyRegistrationPrompts:HS,isConfirmSignUpStep:US,isConfirmUserAttributeStep:NS,isResetPasswordStep:xS,isShouldConfirmUserAttributeStep:MS,isUserAlreadyConfirmed:LS,shouldAutoSignIn:ES,shouldConfirmResetPassword:BS,shouldConfirmSignIn:FS,shouldConfirmSignInWithNewPassword:CS,shouldConfirmSignUp:VS,shouldConfirmSignUpFromSignIn:AS,shouldResetPassword:$S,shouldResetPasswordFromSignIn:bS,shouldReturnToSelectMethod:KS,shouldSelectAuthMethod:GS,shouldSetupTotp:OS,shouldSetupEmail:RS,shouldSelectMfaType:DS,shouldVerifyAttribute:zS,shouldPromptPasskeyRegistration:jS,shouldPromptPasskeyRegistrationAfterSignup:WS};var YS=Nr,qS=At;function JS(e,t,r){(r!==void 0&&!qS(e[t],r)||r===void 0&&!(t in e))&&YS(e,t,r)}var sa=JS;function ZS(e){return function(t,r,o){for(var i=-1,a=Object(t),s=o(t),l=s.length;l--;){var c=s[e?l:++i];if(r(a[c],c,a)===!1)break}return t}}var QS=ZS,XS=QS,e_=XS(),t_=e_,rn={exports:{}};rn.exports;(function(e,t){var r=ye,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var m=u.length,f=l?l(m):new u.constructor(m);return u.copy(f),f}e.exports=c})(rn,rn.exports);var n_=rn.exports,jo=Gi;function r_(e){var t=new e.constructor(e.byteLength);return new jo(t).set(new jo(e)),t}var o_=r_,i_=o_;function a_(e,t){var r=t?i_(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var s_=a_;function l_(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}var c_=l_,u_=Ae,Wo=Object.create,d_=function(){function e(){}return function(t){if(!u_(t))return{};if(Wo)return Wo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),f_=d_,p_=f_,m_=Mr,g_=Ar;function h_(e){return typeof e.constructor=="function"&&!g_(e)?p_(m_(e)):{}}var y_=h_,v_=Cn,S_=Oe;function __(e){return S_(e)&&v_(e)}var w_=__,C_=Xe,b_=Mr,A_=Oe,E_="[object Object]",T_=Function.prototype,I_=Object.prototype,la=T_.toString,P_=I_.hasOwnProperty,k_=la.call(Object);function N_(e){if(!A_(e)||C_(e)!=E_)return!1;var t=b_(e);if(t===null)return!0;var r=P_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&la.call(r)==k_}var M_=N_;function x_(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ca=x_,U_=aa,F_=Nr;function O_(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=o?o(r[l],e[l],l,r,e):void 0;c===void 0&&(c=e[l]),i?F_(r,l,c):U_(r,l,c)}return r}var R_=O_,D_=R_,$_=xr;function B_(e){return D_(e,$_(e))}var V_=B_,Ho=sa,z_=n_,L_=s_,G_=c_,j_=y_,Ko=_r,Yo=Ee,W_=w_,H_=wr,K_=hr,Y_=Ae,q_=M_,J_=br,qo=ca,Z_=V_;function Q_(e,t,r,o,i,a,s){var l=qo(e,r),c=qo(t,r),u=s.get(c);if(u){Ho(e,r,u);return}var d=a?a(l,c,r+"",e,t,s):void 0,m=d===void 0;if(m){var f=Yo(c),p=!f&&H_(c),g=!f&&!p&&J_(c);d=c,f||p||g?Yo(l)?d=l:W_(l)?d=G_(l):p?(m=!1,d=z_(c,!0)):g?(m=!1,d=L_(c,!0)):d=[]:q_(c)||Ko(c)?(d=l,Ko(l)?d=Z_(l):(!Y_(l)||K_(l))&&(d=j_(c))):m=!1}m&&(s.set(c,d),i(d,c,o,a,s),s.delete(c)),Ho(e,r,d)}var X_=Q_,ew=Sr,tw=sa,nw=t_,rw=X_,ow=Ae,iw=xr,aw=ca;function ua(e,t,r,o,i){e!==t&&nw(t,function(a,s){if(i||(i=new ew),ow(a))rw(e,t,s,r,ua,o,i);else{var l=o?o(aw(e,s),a,s+"",e,t,i):void 0;l===void 0&&(l=a),tw(e,s,l)}},iw)}var sw=ua;function lw(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var cw=lw,uw=cw,Jo=Math.max;function dw(e,t,r){return t=Jo(t===void 0?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Jo(o.length-t,0),s=Array(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=o[i];return l[t]=r(s),uw(e,this,l)}}var fw=dw;function pw(e){return function(){return e}}var mw=pw,gw=mw,Zo=ia,hw=kr,yw=Zo?function(e,t){return Zo(e,"toString",{configurable:!0,enumerable:!1,value:gw(t),writable:!0})}:hw,vw=yw,Sw=800,_w=16,ww=Date.now;function Cw(e){var t=0,r=0;return function(){var o=ww(),i=_w-(o-r);if(r=o,i>0){if(++t>=Sw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var bw=Cw,Aw=vw,Ew=bw,Tw=Ew(Aw),Iw=Tw,Pw=kr,kw=fw,Nw=Iw;function Mw(e,t){return Nw(kw(e,t,Pw),e+"")}var xw=Mw,Uw=At,Fw=Cn,Ow=wn,Rw=Ae;function Dw(e,t,r){if(!Rw(r))return!1;var o=typeof t;return(o=="number"?Fw(r)&&Ow(t,r.length):o=="string"&&t in r)?Uw(r[t],e):!1}var $w=Dw,Bw=xw,Vw=$w;function zw(e){return Bw(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&Vw(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++o<i;){var l=r[o];l&&e(t,l,o,a)}return t})}var Lw=zw,Gw=sw,jw=Lw,Ww=jw(function(e,t,r){Gw(e,t,r)}),Hw=Ww;const Kw=Di(Hw),En=async(e,t,r,o)=>{const i=await Promise.all(o.map(s=>s(e,t,r))),a=Kw({},...i);return ri(a)?Promise.resolve():Promise.reject(a)},Yw=8,qw=e=>Array.isArray(e),Jw=e=>{if(e)return qw(e)?Object.entries(e).map(([t,r])=>Object.keys(r)[0]):Object.keys(e)},ke={async getAmplifyConfig(){var u,d,m,f,p,g;const e=$a.Amplify.getConfig(),t=(u=e.Auth)==null?void 0:u.Cognito,{loginWith:r,userAttributes:o}=((d=e.Auth)==null?void 0:d.Cognito)??{},i=r?Object.entries(r).filter(([y,w])=>y!=="oauth").filter(([y,w])=>!!w).map(y=>y[0]==="phone"?"phone_number":y[0]):void 0,a=Jw(o),s=(m=r==null?void 0:r.oauth)!=null&&m.providers?(f=r.oauth.providers)==null?void 0:f.map(y=>y.toString().toLowerCase()):void 0,l=(g=(p=e.Auth)==null?void 0:p.Cognito)==null?void 0:g.passwordless,c={emailOtpEnabled:(l==null?void 0:l.emailOtpEnabled)??(l==null?void 0:l.email_otp_enabled)===!0,smsOtpEnabled:(l==null?void 0:l.smsOtpEnabled)??(l==null?void 0:l.sms_otp_enabled)===!0,webAuthnEnabled:!!((l==null?void 0:l.webAuthn)??(l==null?void 0:l.web_authn)),preferredChallenge:(l==null?void 0:l.preferredChallenge)??(l==null?void 0:l.preferred_challenge)};return{...t,loginMechanisms:i,signUpAttributes:a,socialProviders:s,passwordlessCapabilities:c}},getCurrentUser:K.getCurrentUser,handleSignIn:K.signIn,handleSignUp:K.signUp,handleConfirmSignIn:K.confirmSignIn,handleConfirmSignUp:K.confirmSignUp,handleForgotPasswordSubmit:K.confirmResetPassword,handleForgotPassword:K.resetPassword,handleResendSignUpCode:K.resendSignUpCode,async validateCustomSignUp(e,t){},async validateFormPassword(e,t,r){const{password:o}=e,{password:i}=t;if(!i||!r)return null;const a=[],s=r.minLength??Yw;return o.length<s&&a.push(`Password must have at least ${s} characters`),r.requireLowercase&&!/[a-z]/.test(o)&&a.push("Password must have lower case letters"),r.requireUppercase&&!/[A-Z]/.test(o)&&a.push("Password must have upper case letters"),r.requireNumbers&&!/[0-9]/.test(o)&&a.push("Password must have numbers"),r.requireSpecialCharacters&&!vs(o)&&a.push("Password must have special characters"),a.length!==0?{password:a}:null},async validateConfirmPassword(e,t){const{password:r,confirm_password:o}=e,{confirm_password:i,password:a}=t;if(!r&&!o)return null;if((r||o)&&r!==o&&(i&&a||(r==null?void 0:r.length)>=6&&(o==null?void 0:o.length)>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){},async validateRequiredFieldsForAuthMethod(e){const t=e.__authMethod;if(!t)return null;if(t==="EMAIL_OTP"&&!e.email)return{email:"Email is required for Email OTP sign up"};if(t==="SMS_OTP"&&!e.phone_number)return{phone_number:"Phone number is required for SMS OTP sign up"};if(t==="PASSWORD"){const r={};return e.password||(r.password="Password is required"),e.confirm_password||(r.confirm_password="Confirm Password is required"),Object.keys(r).length>0?r:null}return null}};function Zw({services:e}){return Ze({id:"forgotPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldResetPassword",target:"confirmResetPassword"},{cond:"shouldConfirmResetPassword",target:"confirmResetPassword"},{target:"forgotPassword"}]},forgotPassword:{initial:"edit",entry:"sendUpdate",exit:["clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:"pending",entry:["sendUpdate","clearError","setUsernameForgotPassword"],invoke:{src:"handleResetPassword",onDone:{actions:["setCodeDeliveryDetails","setNextResetPasswordStep"],target:"#forgotPasswordActor.confirmResetPassword"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleResetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleConfirmResetPassword",onDone:[{cond:"hasCompletedResetPassword",actions:"setNextResetPasswordStep",target:"#forgotPasswordActor.resolved"},{actions:"setSignInStep",target:"#forgotPasswordActor.resolved"}],onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final",data:({step:t})=>({step:t})}}},{actions:{...Tt,sendUpdate:gn()},guards:An,services:{handleResetPassword({username:t}){return e.handleForgotPassword({username:t})},handleConfirmResetPassword({formValues:t,username:r}){const{confirmation_code:o,password:i}=t;return e.handleForgotPasswordSubmit({confirmationCode:o,newPassword:i,username:r})},validateFields(t){return En(t.formValues,t.touched,t.passwordSettings,[ke.validateFormPassword,ke.validateConfirmPassword])}}})}const da=e=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:e},onError:{actions:"setRemoteError",target:e}}}),Qw=e=>["CONTINUE_SIGN_IN_WITH_MFA_SELECTION","CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION"].includes(e)?"mfa_type":e==="CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"?"email":"confirmation_code",Ht={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signInActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:["setMissingAttributes","setNextSignInStep"],target:"#signInActor.forceChangePassword"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resendSignUpCode"},{actions:["setChallengeName","setMissingAttributes","setNextSignInStep","setTotpSecretCode","setAllowedMfaTypes","setCodeDeliveryDetails"],target:"#signInActor.init"}],onError:{actions:"setRemoteError",target:"edit"}},Rt=e=>({initial:"edit",exit:e,states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"},RESEND:{target:"resend"}}},submit:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"confirmSignIn",...Ht}},resend:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"resendSignInCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"edit"},onError:{actions:"setRemoteError",target:"edit"}}}}});function Xw({services:e}){return Ze({id:"signInActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignIn",target:"confirmSignIn"},{cond:"shouldSetupTotp",target:"setupTotp"},{cond:"shouldSetupEmail",target:"setupEmail"},{cond:"shouldSelectMfaType",target:"selectMfaType"},{cond:({step:t})=>t==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:{...da("signIn")},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",onDone:[{cond:"hasPasskeyRegistrationPrompts",actions:"setFetchedUserAttributes",target:"checkPasskeys"},{actions:"setFetchedUserAttributes",target:"evaluatePasskeyPrompt"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}}},checkPasskeys:{invoke:{src:async()=>{try{const t=await K.listWebAuthnCredentials();return t.credentials&&t.credentials.length>0}catch{return!1}},onDone:{actions:"setHasExistingPasskeys",target:"evaluatePasskeyPrompt"},onError:{actions:"clearHasExistingPasskeys",target:"evaluatePasskeyPrompt"}}},evaluatePasskeyPrompt:{always:[{cond:"shouldPromptPasskeyRegistration",target:"#signInActor.passkeyPrompt"},{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signInActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}]},resendSignUpCode:{invoke:{src:"handleResendSignUpCode",onDone:{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resetPassword:{invoke:{src:"resetPassword",onDone:[{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}}},signIn:{initial:"edit",exit:"clearTouched",states:{edit:{entry:"sendUpdate",on:{CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:{target:"#signInActor.federatedSignIn"},SHOW_AUTH_METHODS:{actions:"setUsernameSignIn",target:"selectMethod"},SUBMIT:[{cond:"shouldSelectAuthMethod",actions:"handleSubmit",target:"selectMethod"},{actions:"handleSubmit",target:"submit"}]}},selectMethod:{entry:["sendUpdate","setSelectAuthMethodStep","setUsernameSignIn"],on:{SELECT_METHOD:{actions:"setSelectedAuthMethod",target:"submit"},SUBMIT:{actions:["handleSubmit","setSelectedAuthMethodFromForm"],target:"submit"},SIGN_IN:{target:"edit"}}},submit:{tags:"pending",entry:["clearError","sendUpdate","setUsernameSignIn"],exit:"clearFormValues",invoke:{src:"handleSignIn",onDone:Ht.onDone,onError:[{cond:"shouldReturnToSelectMethod",actions:"setRemoteError",target:"selectMethod"},Ht.onError]}}}},confirmSignIn:{...Rt(["clearChallengeName","clearFormValues","clearError","clearTouched"])},forceChangePassword:{entry:"sendUpdate",type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:{actions:"setSignInStep",target:"#signInActor.resolved"},CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"edit",entry:"clearError",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{actions:"clearValidationError",target:"pending"},onError:{actions:"setFieldErrors",target:"edit"}}},pending:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"handleForceChangePassword",...Ht}}}}}},setupTotp:{...Rt(["clearFormValues","clearError","clearTouched"])},setupEmail:{...Rt(["clearFormValues","clearError","clearTouched"])},selectMfaType:{...Rt(["clearFormValues","clearError","clearTouched"])},passkeyPrompt:{entry:"sendUpdate",on:{SUBMIT:{actions:"setConfirmAttributeCompleteStep",target:"resolved"},SKIP:{actions:"setConfirmAttributeCompleteStep",target:"resolved"}}},resolved:{type:"final",data:t=>({codeDeliveryDetails:t.codeDeliveryDetails,remoteError:t.remoteError,step:t.step,unverifiedUserAttributes:t.unverifiedUserAttributes,username:t.username})}}},{actions:{...Tt,sendUpdate:gn()},guards:An,services:{async fetchUserAttributes(){return K.fetchUserAttributes()},resetPassword({username:t}){return K.resetPassword({username:t})},handleResendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},resendSignInCode({username:t,selectedAuthMethod:r,availableAuthMethods:o,preferredChallenge:i}){const a=r??i??(o==null?void 0:o[0])??"PASSWORD";return e.handleSignIn({username:t,options:{authFlowType:"USER_AUTH",preferredChallenge:a}})},handleSignIn({formValues:t,username:r,selectedAuthMethod:o,availableAuthMethods:i,preferredChallenge:a}){const s=o??a??(i==null?void 0:i[0])??"PASSWORD";if(s==="PASSWORD"){const{password:l}=t;return e.handleSignIn({username:r,password:l})}else return e.handleSignIn({username:r,options:{authFlowType:"USER_AUTH",preferredChallenge:s}})},confirmSignIn({formValues:t,step:r}){const o=Qw(r),{[o]:i}=t;return e.handleConfirmSignIn({challengeResponse:i})},async handleForceChangePassword({formValues:t}){let{password:r,phone_number:o,country_code:i,confirm_password:a,...s}=t,l;o&&(l=`${i}${o}`.replace(/[^A-Z0-9+]/gi,""),s={...s,phone_number:l});const c={challengeResponse:r,options:{userAttributes:s}};return K.confirmSignIn(c)},signInWithRedirect(t,{data:r}){return K.signInWithRedirect(r)},async validateFields(t){return En(t.formValues,t.touched,t.passwordSettings,[ke.validateFormPassword,ke.validateConfirmPassword])}}})}const eC={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},tC={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signUpActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:"setNextSignInStep",target:"#signUpActor.resolved"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resendSignUpCode"},{actions:["setNextSignInStep","setChallengeName","setMissingAttributes","setTotpSecretCode","setAllowedMfaTypes"],target:"#signUpActor.resolved"}],onError:{actions:"setRemoteError",target:"#signUpActor.resolved"}};function nC({services:e}){return Ze({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]},autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...tC}},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",onDone:[{cond:"hasPasskeyRegistrationPrompts",actions:"setFetchedUserAttributes",target:"checkPasskeys"},{actions:"setFetchedUserAttributes",target:"evaluatePasskeyPrompt"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}}},checkPasskeys:{invoke:{src:async()=>{try{const t=await K.listWebAuthnCredentials();return t.credentials&&t.credentials.length>0}catch{return!1}},onDone:{actions:"setHasExistingPasskeys",target:"evaluatePasskeyPrompt"},onError:{actions:"clearHasExistingPasskeys",target:"evaluatePasskeyPrompt"}}},evaluatePasskeyPrompt:{always:[{cond:"shouldPromptPasskeyRegistrationAfterSignup",target:"#signUpActor.passkeyPrompt"},{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signUpActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}]},federatedSignIn:{...da("signUp")},resetPassword:{invoke:{src:"resetPassword",...eC}},resendSignUpCode:{tags:"pending",entry:"sendUpdate",exit:"sendUpdate",invoke:{src:"resendSignUpCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"#signUpActor.confirmSignUp"},onError:[{cond:"isUserAlreadyConfirmed",target:"#signUpActor.resolved"},{actions:["setRemoteError","sendUpdate"],target:"#signUpActor.confirmSignUp"}]}},signUp:{type:"parallel",exit:"clearTouched",on:{FEDERATED_SIGN_IN:{target:"federatedSignIn"}},states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{actions:"clearValidationError",target:"valid"},onError:{actions:"setFieldErrors",target:"invalid"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{BLUR:{actions:"handleBlur",target:".pending"},CHANGE:{actions:"handleInput",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:["sendUpdate"],on:{SUBMIT:{actions:["setSelectedAuthMethodFromForm","handleSubmit"],target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"handleSignUp",actions:"clearValidationError"},onError:{actions:"setFieldErrors",target:"idle"}}},handleSignUp:{tags:"pending",entry:["setUsernameSignUp","clearError"],exit:"sendUpdate",invoke:{src:"handleSignUp",onDone:[{cond:"hasCompletedSignUp",actions:"setNextSignUpStep",target:"#signUpActor.resolved"},{cond:"shouldAutoSignIn",actions:"setNextSignUpStep",target:"#signUpActor.autoSignIn"},{actions:["setCodeDeliveryDetails","setNextSignUpStep"],target:"#signUpActor.init"}],onError:{actions:["sendUpdate","setRemoteError"],target:"idle"}}}}}}},confirmSignUp:{initial:"edit",entry:"sendUpdate",states:{edit:{on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"#signUpActor.resendSignUpCode"}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignUp",onDone:[{cond:"shouldAutoSignIn",actions:["setNextSignUpStep","clearFormValues"],target:"#signUpActor.autoSignIn"},{actions:"setNextSignUpStep",target:"#signUpActor.init"}],onError:{actions:["setRemoteError","sendUpdate"],target:"edit"}}}}},passkeyPrompt:{entry:"sendUpdate",on:{SKIP:{target:"resolved"},SUBMIT:{target:"resolved"}}},resolved:{type:"final",data:t=>({challengeName:t.challengeName,missingAttributes:t.missingAttributes,remoteError:t.remoteError,step:t.step,totpSecretCode:t.totpSecretCode,username:t.username,unverifiedUserAttributes:t.unverifiedUserAttributes,allowedMfaTypes:t.allowedMfaTypes})}}},{actions:{...Tt,sendUpdate:gn()},guards:An,services:{autoSignIn(){return K.autoSignIn()},async fetchUserAttributes(){return K.fetchUserAttributes()},confirmSignUp({formValues:t,username:r}){const{confirmation_code:o}=t,i={username:r,confirmationCode:o};return e.handleConfirmSignUp(i)},resendSignUpCode({username:t}){return e.handleResendSignUpCode({username:t})},signInWithRedirect(t,{data:r}){return K.signInWithRedirect(r)},handleSignUp(t){const{formValues:r,loginMechanisms:o,username:i,selectedAuthMethod:a,preferredChallenge:s}=t,l=o[0],u=Fv(i,r,l,a??s);return e.handleSignUp(u)},async validateSignUp(t){return En(t.formValues,t.touched,t.passwordSettings,[e.validateFormPassword,e.validateConfirmPassword,e.validatePreferredUsername,e.validateRequiredFieldsForAuthMethod,e.validateCustomSignUp])}}})}const rC=()=>Ze({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:"pending",invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>K.signOut()}});function oC(){return Ze({id:"verifyUserAttributesActor",initial:"selectUserAttributes",predictableActionArguments:!0,states:{selectUserAttributes:{initial:"edit",exit:["clearError","clearTouched","sendUpdate"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:{target:"#verifyUserAttributesActor.resolved"},CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"sendUserAttributeVerificationCode",onDone:{actions:["setSelectedUserAttribute","setCodeDeliveryDetails"],target:"#verifyUserAttributesActor.confirmVerifyUserAttribute"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUserAttribute:{initial:"edit",exit:["clearError","clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#verifyUserAttributesActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmVerifyUserAttribute",onDone:{actions:["setConfirmAttributeCompleteStep","clearSelectedUserAttribute"],target:"#verifyUserAttributesActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...Tt,sendUpdate:gn()},services:{sendUserAttributeVerificationCode({formValues:{unverifiedAttr:e}}){const t={userAttributeKey:e};return K.sendUserAttributeVerificationCode(t)},async confirmVerifyUserAttribute({formValues:{confirmation_code:e},selectedUserAttribute:t}){const r={confirmationCode:e,userAttributeKey:t};return K.confirmUserAttribute(r)},async validateFields(e){return En(e.formValues,e.touched,e.passwordSettings,[ke.validateFormPassword,ke.validateConfirmPassword])}}})}const Dt=(e,t)=>{var i,a,s,l,c,u,d,m,f,p,g,y;const r=Rv(e.passwordlessCapabilities,(a=(i=e.config)==null?void 0:i.passwordless)==null?void 0:a.hiddenAuthMethods),o=((l=(s=e.config)==null?void 0:s.passwordless)==null?void 0:l.preferredAuthMethod)??((c=e.passwordlessCapabilities)==null?void 0:c.preferredChallenge);return{...e.actorDoneData,step:((u=e==null?void 0:e.actorDoneData)==null?void 0:u.step)??t,formValues:{},touched:{},validationError:{},formFields:(d=e.config)==null?void 0:d.formFields,loginMechanisms:(m=e.config)==null?void 0:m.loginMechanisms,passwordSettings:(f=e.config)==null?void 0:f.passwordSettings,signUpAttributes:(p=e.config)==null?void 0:p.signUpAttributes,socialProviders:(g=e.config)==null?void 0:g.socialProviders,availableAuthMethods:r,preferredChallenge:o,passwordless:(y=e.config)==null?void 0:y.passwordless}},{choose:iC,stop:aC}=Ni,ct=e=>aC(e),sC={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},lC={always:{actions:"configure",target:"getConfig"}};function cC(e){const{useNextWaitConfig:t,...r}={};return Ze({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:ke,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"setup"},onError:{target:"setup"}}},setup:{initial:"initConfig",states:{initConfig:t?lC:sC,getConfig:{invoke:{src:"getAmplifyConfig",onDone:[{actions:["applyAmplifyConfig","setHasSetup"],cond:"hasUser",target:"#authenticator.authenticated"},{actions:["applyAmplifyConfig","setHasSetup"],target:"goToInitialState"}]}},goToInitialState:{always:[{cond:"isInitialStateSignUp",target:"#authenticator.signUpActor"},{cond:"isInitialStateResetPassword",target:"#authenticator.forgotPasswordActor"},{target:"#authenticator.signInActor"}]}}},getCurrentUser:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"#authenticator.authenticated"},onError:{target:"#authenticator.setup"}}},signInActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("signInActor")}},on:{FORGOT_PASSWORD:"forgotPasswordActor",SELECT_METHOD:{actions:"forwardToActor"},SHOW_AUTH_METHODS:{actions:"forwardToActor"},SIGN_IN:"signInActor",SIGN_UP:"signUpActor","done.invoke.signInActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isResetPasswordStep",actions:"setActorDoneData",target:"#authenticator.forgotPasswordActor"},{cond:"isConfirmSignUpStep",actions:"setActorDoneData",target:"#authenticator.signUpActor"}]}},signUpActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("signUpActor")}},on:{SIGN_IN:"signInActor","done.invoke.signUpActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isConfirmUserAttributeStep",target:"#authenticator.verifyUserAttributesActor"},{actions:"setActorDoneData",target:"#authenticator.signInActor"}]}},forgotPasswordActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnForgotPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("forgotPasswordActor")}},on:{SIGN_IN:"signInActor","done.invoke.forgotPasswordActor":[{target:"#authenticator.signInActor"}]}},verifyUserAttributesActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnVerifyUserAttributesActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("verifyUserAttributesActor")}},on:{"done.invoke.verifyUserAttributesActor":[{actions:"setActorDoneData",target:"#authenticator.getCurrentUser"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"#authenticator.getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:ct("signOutActor")}},on:{"done.invoke.signOutActor":{actions:"clearUser",target:"setup.getConfig"}}}},on:{SIGN_IN_WITH_REDIRECT:{target:"#authenticator.getCurrentUser"},CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{...Tt,forwardToActor:iC([{cond:"hasActor",actions:Ac(({actorRef:i})=>i)}]),setActorDoneData:_e({actorDoneData:(i,a)=>({challengeName:a.data.challengeName,codeDeliveryDetails:a.data.codeDeliveryDetails,missingAttributes:a.data.missingAttributes,remoteError:a.data.remoteError,username:a.data.username,step:a.data.step,totpSecretCode:a.data.totpSecretCode,unverifiedUserAttributes:a.data.unverifiedUserAttributes,allowedMfaTypes:a.data.allowedMfaTypes})}),applyAmplifyConfig:_e({passwordlessCapabilities:(i,{data:a})=>a.passwordlessCapabilities,config(i,{data:a}){const{loginMechanisms:s=a.loginMechanisms??[],signUpAttributes:l=a.signUpAttributes??[],socialProviders:c=a.socialProviders??[],initialState:u,formFields:d,passwordSettings:m=a.passwordFormat??{},passwordless:f}=i.config;return s.length===0&&s.push("username"),{formFields:uC(d)??{},initialState:u,loginMechanisms:s,passwordSettings:m,passwordless:f,signUpAttributes:l,socialProviders:c}}}),spawnSignInActor:_e({actorRef:(i,a)=>{const{services:s}=i,l=Xw({services:s}).withContext(Dt(i,"SIGN_IN"));return at(l,{name:"signInActor"})}}),spawnSignUpActor:_e({actorRef:(i,a)=>{const{services:s}=i,l=nC({services:s}).withContext(Dt(i,"SIGN_UP"));return at(l,{name:"signUpActor"})}}),spawnForgotPasswordActor:_e({actorRef:(i,a)=>{const{services:s}=i,l=Zw({services:s}).withContext(Dt(i,"FORGOT_PASSWORD"));return at(l,{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:_e({actorRef:i=>{const a=oC().withContext(Dt(i));return at(a,{name:"verifyUserAttributesActor"})}}),spawnSignOutActor:_e({actorRef:i=>{const a=rC().withContext({user:i==null?void 0:i.user});return at(a,{name:"signOutActor"})}}),configure:_e((i,a)=>{const{services:s,...l}=Xa(r)?a.data??{}:r;return{services:{...ke,...s},config:l}}),setHasSetup:_e({hasSetup:!0})},guards:{...An,hasActor:({actorRef:i})=>!!i,isInitialStateSignUp:({config:i})=>i.initialState==="signUp",isInitialStateResetPassword:({config:i})=>i.initialState==="forgotPassword",shouldSetup:({hasSetup:i})=>!i,hasUser:({user:i})=>!!i},services:{getAmplifyConfig:({services:i})=>i.getAmplifyConfig(),handleGetCurrentUser:({services:i})=>i.getCurrentUser()}})}function uC(e){return e&&Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{let o=e[t][r];o.required=o.isRequired})}),e}const oe={Accordion:"amplify-accordion",AccordionItem:"amplify-accordion__item",AccordionItemTrigger:"amplify-accordion__item__trigger",AccordionItemContent:"amplify-accordion__item__content",AccordionItemIcon:"amplify-accordion__item__icon",Alert:"amplify-alert",AlertIcon:"amplify-alert__icon",AlertHeading:"amplify-alert__heading",AlertBody:"amplify-alert__body",AlertDismiss:"amplify-alert__dismiss",Autocomplete:"amplify-autocomplete",AutocompleteMenu:"amplify-autocomplete__menu",AutocompleteMenuEmpty:"amplify-autocomplete__menu--empty",AutocompleteMenuFooter:"amplify-autocomplete__menu__footer",AutocompleteMenuHeader:"amplify-autocomplete__menu__header",AutocompleteMenuLoading:"amplify-autocomplete__menu--loading",AutocompleteMenuOption:"amplify-autocomplete__menu__option",AutocompleteMenuOptions:"amplify-autocomplete__menu__options",Avatar:"amplify-avatar",AvatarIcon:"amplify-avatar__icon",AvatarImage:"amplify-avatar__image",AvatarLoader:"amplify-avatar__loader",AIConversation:"amplify-ai-conversation",AIConversationScrollView:"amplify-ai-conversation__scrollview",AIConversationAttachment:"amplify-ai-conversation__attachment",AIConversationAttachmentList:"amplify-ai-conversation__attachment__list",AIConversationAttachmentImage:"amplify-ai-conversation__attachment__image",AIConversationAttachmentName:"amplify-ai-conversation__attachment__name",AIConversationAttachmentSize:"amplify-ai-conversation__attachment__size",AIConversationAttachmentRemove:"amplify-ai-conversation__attachment__remove",AIConversationForm:"amplify-ai-conversation__form",AIConversationFormAttach:"amplify-ai-conversation__form__attach",AIConversationFormError:"amplify-ai-conversation__form__error",AIConversationFormSend:"amplify-ai-conversation__form__send",AIConversationFormField:"amplify-ai-conversation__form__field",AIConversationFormDropzone:"amplify-ai-conversation__form__dropzone",AIConversationMessage:"amplify-ai-conversation__message",AIConversationMessageAvatar:"amplify-ai-conversation__message__avatar",AIConversationMessageSender:"amplify-ai-conversation__message__sender",AIConversationMessageSenderUsername:"amplify-ai-conversation__message__sender__username",AIConversationMessageSenderTimestamp:"amplify-ai-conversation__message__sender__timestamp",AIConversationMessageBody:"amplify-ai-conversation__message__body",AIConversationMessageContent:"amplify-ai-conversation__message__content",AIConversationMessageActions:"amplify-ai-conversation__message__actions",AIConversationMessageList:"amplify-ai-conversation__message__list",AIConversationPrompt:"amplify-ai-conversation__prompt",Badge:"amplify-badge",Breadcrumbs:"amplify-breadcrumbs",BreadcrumbsList:"amplify-breadcrumbs__list",BreadcrumbsItem:"amplify-breadcrumbs__item",BreadcrumbsSeparator:"amplify-breadcrumbs__separator",BreadcrumbsLink:"amplify-breadcrumbs__link",Button:"amplify-button",ButtonGroup:"amplify-buttongroup",ButtonLoaderWrapper:"amplify-button__loader-wrapper",Card:"amplify-card",Checkbox:"amplify-checkbox",CheckboxButton:"amplify-checkbox__button",CheckboxIcon:"amplify-checkbox__icon",CheckboxInput:"amplify-checkbox__input",CheckboxLabel:"amplify-checkbox__label",CheckboxField:"amplify-checkboxfield",Collection:"amplify-collection",CollectionItems:"amplify-collection-items",CollectionSearch:"amplify-collection-search",CollectionPagination:"amplify-collection-pagination",CountryCodeSelect:"amplify-countrycodeselect",DialCodeSelect:"amplify-dialcodeselect",Divider:"amplify-divider",DividerLabel:"amplify-divider--label",DropZone:"amplify-dropzone",Field:"amplify-field",FieldDescription:"amplify-field__description",FieldErrorMessage:"amplify-field__error-message",FieldGroup:"amplify-field-group",FieldGroupControl:"amplify-field-group__control",FieldGroupOuterEnd:"amplify-field-group__outer-end",FieldGroupOuterStart:"amplify-field-group__outer-start",FieldGroupInnerEnd:"amplify-field-group__inner-end",FieldGroupInnerStart:"amplify-field-group__inner-start",FieldGroupIcon:"amplify-field-group__icon",FieldGroupIconButton:"amplify-field-group__icon-button",FieldGroupHasInnerEnd:"amplify-field-group--has-inner-end",FieldGroupHasInnerStart:"amplify-field-group--has-inner-start",FieldShowPassword:"amplify-field__show-password",FieldGroupFieldWrapper:"amplify-field-group__field-wrapper",Fieldset:"amplify-fieldset",FieldsetLegend:"amplify-fieldset__legend",FileUploader:"amplify-fileuploader",FileUploaderDropZone:"amplify-fileuploader__dropzone",FileUploaderDropZoneIcon:"amplify-fileuploader__dropzone__icon",FileUploaderDropZoneText:"amplify-fileuploader__dropzone__text",FileUploaderFilePicker:"amplify-fileuploader__file__picker",FileUploaderFile:"amplify-fileuploader__file",FileUploaderFileWrapper:"amplify-fileuploader__file__wrapper",FileUploaderFileList:"amplify-fileuploader__file__list",FileUploaderFileName:"amplify-fileuploader__file__name",FileUploaderFileSize:"amplify-fileuploader__file__size",FileUploaderFileInfo:"amplify-fileuploader__file__info",FileUploaderFileImage:"amplify-fileuploader__file__image",FileUploaderFileMain:"amplify-fileuploader__file__main",FileUploaderFileStatus:"amplify-fileuploader__file__status",FileUploaderLoader:"amplify-fileuploader__loader",FileUploaderPreviewer:"amplify-fileuploader__previewer",FileUploaderPreviewerText:"amplify-fileuploader__previewer__text",FileUploaderPreviewerActions:"amplify-fileuploader__previewer__actions",FileUploaderPreviewerFooter:"amplify-fileuploader__previewer__footer",Flex:"amplify-flex",Grid:"amplify-grid",Heading:"amplify-heading",HighlightMatch:"amplify-highlightmatch",HighlightMatchHighlighted:"amplify-highlightmatch__highlighted",Icon:"amplify-icon",Image:"amplify-image",Input:"amplify-input",Label:"amplify-label",Link:"amplify-link",Loader:"amplify-loader",LoaderLabel:"amplify-loader__label",MenuContent:"amplify-menu__content",MenuItem:"amplify-menu__content__item",MenuTrigger:"amplify-menu__trigger",MenuWrapper:"amplify-menu__wrapper",Message:"amplify-message",MessageIcon:"amplify-message__icon",MessageHeading:"amplify-message__heading",MessageBody:"amplify-message__body",MessageContent:"amplify-message__content",MessageDismiss:"amplify-message__dismiss",Pagination:"amplify-pagination",PaginationItem:"amplify-pagination__item",PasswordField:"amplify-passwordfield",PhoneNumberField:"amplify-phonenumberfield",Placeholder:"amplify-placeholder",Radio:"amplify-radio",RadioButton:"amplify-radio__button",RadioInput:"amplify-radio__input",RadioLabel:"amplify-radio__label",RadioGroupField:"amplify-radiogroupfield",RadioGroup:"amplify-radiogroup",Rating:"amplify-rating",RatingItem:"amplify-rating__item",RatingIcon:"amplify-rating__icon",RatingLabel:"amplify-rating__label",ScrollView:"amplify-scrollview",SearchField:"amplify-searchfield",SearchFieldClear:"amplify-searchfield__clear",SearchFieldSearch:"amplify-searchfield__search",Select:"amplify-select",SelectField:"amplify-selectfield",SelectWrapper:"amplify-select__wrapper",SelectIcon:"amplify-select__icon",SliderField:"amplify-sliderfield",SliderFieldGroup:"amplify-sliderfield__group",SliderFieldLabel:"amplify-sliderfield__label",SliderFieldRange:"amplify-sliderfield__range",SliderFieldRoot:"amplify-sliderfield__root",SliderFieldThumb:"amplify-sliderfield__thumb",SliderFieldTrack:"amplify-sliderfield__track",StepperField:"amplify-stepperfield",StepperFieldButtonDecrease:"amplify-stepperfield__button--decrease",StepperFieldButtonIncrease:"amplify-stepperfield__button--increase",StepperFieldInput:"amplify-stepperfield__input",StorageImage:"amplify-storageimage",StorageManager:"amplify-storagemanager",StorageManagerDropZone:"amplify-storagemanager__dropzone",StorageManagerDropZoneIcon:"amplify-storagemanager__dropzone__icon",StorageManagerDropZoneText:"amplify-storagemanager__dropzone__text",StorageManagerFilePicker:"amplify-storagemanager__file__picker",StorageManagerFile:"amplify-storagemanager__file",StorageManagerFileWrapper:"amplify-storagemanager__file__wrapper",StorageManagerFileList:"amplify-storagemanager__file__list",StorageManagerFileName:"amplify-storagemanager__file__name",StorageManagerFileSize:"amplify-storagemanager__file__size",StorageManagerFileInfo:"amplify-storagemanager__file__info",StorageManagerFileImage:"amplify-storagemanager__file__image",StorageManagerFileMain:"amplify-storagemanager__file__main",StorageManagerFileStatus:"amplify-storagemanager__file__status",StorageManagerLoader:"amplify-storagemanager__loader",StorageManagerPreviewer:"amplify-storagemanager__previewer",StorageManagerPreviewerText:"amplify-storagemanager__previewer__text",StorageManagerPreviewerActions:"amplify-storagemanager__previewer__actions",StorageManagerPreviewerFooter:"amplify-storagemanager__previewer__footer",SwitchField:"amplify-switchfield",SwitchLabel:"amplify-switch__label",SwitchThumb:"amplify-switch__thumb",SwitchTrack:"amplify-switch__track",SwitchWrapper:"amplify-switch__wrapper",Table:"amplify-table",TableCaption:"amplify-table__caption",TableBody:"amplify-table__body",TableTd:"amplify-table__td",TableTh:"amplify-table__th",TableFoot:"amplify-table__foot",TableHead:"amplify-table__head",TableRow:"amplify-table__row",Tabs:"amplify-tabs",TabsList:"amplify-tabs__list",TabsItem:"amplify-tabs__item",TabsPanel:"amplify-tabs__panel",Text:"amplify-text",Textarea:"amplify-textarea",TextAreaField:"amplify-textareafield",TextField:"amplify-textfield",ToggleButton:"amplify-togglebutton",ToggleButtonGroup:"amplify-togglebuttongroup",VisuallyHidden:"amplify-visually-hidden"},dC=({componentName:e,packageName:t,version:r})=>{const o=[`ui-${t}`,r];switch(e){case"AIConversation":{x.setCustomUserAgent({...La,additionalDetails:[[e],o]});break}case"Authenticator":{x.setCustomUserAgent({...ja,additionalDetails:[[e],o]});break}case"ChangePassword":case"DeleteUser":{x.setCustomUserAgent({...Ga,additionalDetails:[["AccountSettings"],o]});break}case"FileUploader":{x.setCustomUserAgent({...Wa,additionalDetails:[[e],o]});break}case"InAppMessaging":{x.setCustomUserAgent({...Ha,additionalDetails:[[e],o]});break}case"LocationSearch":{x.setCustomUserAgent({...Ka,additionalDetails:[[e],o]});break}case"MapView":{x.setCustomUserAgent({...Ya,additionalDetails:[[e],o]});break}case"StorageManager":{x.setCustomUserAgent({...qa,additionalDetails:[[e],o]});break}case"StorageBrowser":{x.setCustomUserAgent({...Ja,additionalDetails:[[e],o]});break}}return ts},fC={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},pC={class:"amplify-flex amplify-authenticator__icon-wrapper"},mC=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),gC=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),fe=n.defineComponent({__name:"base-alert",setup(e){const t=n.ref(!0),r=I("Dismiss alert");function o(){t.value=!1}return(i,a)=>{const s=ne;return t.value?(n.openBlock(),n.createElementBlock("div",fC,[n.createElementVNode("div",pC,[mC,n.createElementVNode("div",null,[n.renderSlot(i.$slots,"default")])]),n.createVNode(s,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":n.unref(r),fullwidth:!1,variation:"link",type:"button",onClick:o},{default:n.withCtx(()=>[gC]),_:1},8,["aria-label"])])):n.createCommentVNode("",!0)}}}),pe=n.defineComponent({__name:"base-field-set",setup(e){const t=n.useSlots();return(r,o)=>n.renderSlot(r.$slots,"fieldSetI",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("fieldset",n.mergeProps(r.$attrs,{"data-amplify-fieldset":""}),[n.renderSlot(r.$slots,"default")],16)])}});function hC(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function fa(e){let t=0,r,o;const i=()=>{t-=1,o&&t<=0&&(o.stop(),r=void 0,o=void 0)};return(...a)=>(t+=1,r||(o=n.effectScope(!0),r=o.run(()=>e(...a))),hC(i),r)}function yC(e){return"state"in e}var Qo=function(){};function vC(e){return"getSnapshot"in e?e.getSnapshot():yC(e)?e.state:void 0}function SC(e,t){t===void 0&&(t=vC);var r=n.isRef(e)?e:n.shallowRef(e),o=n.shallowRef(t(r.value)),i=function(a){r.value.send(a)};return n.watch(r,function(a,s,l){o.value=t(a);var c=a.subscribe({next:function(u){return o.value=u},error:Qo,complete:Qo}).unsubscribe;l(function(){return c()})},{immediate:!0}),{state:o,send:i}}const _C=e=>{var t,r,o;return{...(o=(r=(t=sr(e))==null?void 0:t.formFields)==null?void 0:r.setupTotp)==null?void 0:o.QR}},Ur=fa(()=>{const e=cC(),t=Ri(e).start(),r=n.ref("configuring"),{state:o,send:i}=SC(t),a=()=>{r.value="authenticated"},s=()=>{r.value="unauthenticated"},l=ns(t,(c,u)=>oi(c,u,{onSignIn:a,onSignOut:s}));return K.getCurrentUser().then(()=>{r.value="authenticated"}).catch(()=>{r.value="unauthenticated"}),n.onScopeDispose(()=>{l()}),{authStatus:r,service:t,send:i,state:o}}),ee=fa(()=>{const{authStatus:e,state:t,send:r}=Ur(),o=n.reactive({});return n.watchEffect(()=>{const i=ls({send:r,state:t.value});for(const s of Object.keys(i))o[s]=i[s];const a=i.route==="setupTotp"?_C(t.value):null;o.QRFields=a,o.authStatus=e.value,o.send=r,o.state=t}),o});let wC=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");const It=n.defineComponent({__name:"base-input",emits:["update:modelValue"],setup(e,{emit:t}){const r=o=>{t("update:modelValue",o.target.value)};return(o,i)=>(n.openBlock(),n.createElementBlock("input",{onChange:i[0]||(i[0]=a=>r(a)),"data-amplify-input":""},null,32))}}),CC={},bC={"data-amplify-label":""};function AC(e,t){return n.openBlock(),n.createElementBlock("label",bC,[n.renderSlot(e.$slots,"default")])}const Pt=sn(CC,[["render",AC]]),EC=["aria-label","aria-checked"],TC=n.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),IC=[TC],PC=n.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),kC=n.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),NC=[PC,kC],MC={inheritAttrs:!1},Fr=n.defineComponent({...MC,__name:"password-control",props:{name:null,label:null,autocomplete:{default:"new-password"},hasError:{type:Boolean,default:!1},labelHidden:{type:Boolean},placeholder:null,required:{type:Boolean,default:!0},describedBy:null},setup(e){const t=e,r=I("Show password"),o=I("Hide password"),i=n.ref("password"),a=n.ref(r),s=Math.floor(Math.random()*999999),{name:l,label:c,autocomplete:u,hasError:d,labelHidden:m,placeholder:f,required:p}=n.toRefs(t),g=n.ref("");function y(){a.value=a.value===r?o:r,i.value=i.value==="password"?"text":"password"}const w=I((f==null?void 0:f.value)??c.value),h=I(c.value);return(S,v)=>{const _=Pt,C=It,E=X;return n.openBlock(),n.createBlock(E,{class:n.normalizeClass([n.unref(oe).Flex,n.unref(oe).Field,n.unref(oe).TextField,n.unref(oe).PasswordField])},{default:n.withCtx(()=>[n.createVNode(_,{class:n.normalizeClass(["amplify-label",{"amplify-visually-hidden":n.unref(m)}]),for:"amplify-field-"+n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1},8,["class","for"]),n.createVNode(E,{class:n.normalizeClass([n.unref(oe).Flex,n.unref(oe).FieldGroup])},{default:n.withCtx(()=>[n.createVNode(E,{class:n.normalizeClass(n.unref(oe).FieldGroupFieldWrapper)},{default:n.withCtx(()=>[n.createVNode(C,n.mergeProps(S.$attrs,{modelValue:g.value,"onUpdate:modelValue":v[0]||(v[0]=A=>g.value=A),class:[n.unref(oe).Input,n.unref(oe).FieldGroupControl],id:"amplify-field-"+n.unref(s),"data-amplify-password":"true",name:n.unref(l),autocomplete:n.unref(u),required:n.unref(p)??!0,placeholder:n.unref(w),type:i.value,"aria-invalid":n.unref(d),"aria-describedBy":e.describedBy,autocapitalize:"off"}),null,16,["modelValue","class","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"])]),_:1},8,["class"]),n.createVNode(E,{class:n.normalizeClass(n.unref(oe).FieldGroupOuterEnd)},{default:n.withCtx(()=>[n.createElementVNode("button",{"aria-label":a.value,"aria-checked":i.value!=="password",class:n.normalizeClass([n.unref(oe).Button,n.unref(oe).FieldGroupControl,n.unref(oe).FieldShowPassword]),"data-fullwidth":"false",type:"button",role:"switch",onClick:y},[i.value==="password"?(n.openBlock(),n.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:n.normalizeClass(n.unref(oe).Icon)},IC,2)):(n.openBlock(),n.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:n.normalizeClass(n.unref(oe).Icon)},NC,2))],10,EC)]),_:1},8,["class"])]),_:1},8,["class"])]),_:1},8,["class"])}}}),xC=["value","selected"],UC=n.defineComponent({__name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const r=e,{options:o,selectValue:i}=n.toRefs(r),a=s=>{t("update:selectValue",s.target.value)};return(s,l)=>(n.openBlock(),n.createElementBlock("select",{onChange:l[0]||(l[0]=c=>a(c))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o),(c,u)=>(n.openBlock(),n.createElementBlock("option",{key:u,value:c,selected:c==n.unref(i)?!0:void 0},n.toDisplayString(c),9,xC))),128))],32))}}),FC=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),OC=n.defineComponent({__name:"alias-control",props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"},hasError:{type:Boolean},describedBy:null},setup(e){const t=e,{label:r,name:o,placeholder:i,autocomplete:a,labelHidden:s,required:l,dialCode:c,dialCodeList:u}=n.toRefs(t),d=Math.floor(Math.random()*999999),m=Math.floor(Math.random()*999999);return(f,p)=>{const g=Pt,y=UC,w=X,h=It;return n.openBlock(),n.createBlock(w,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield"},{default:n.withCtx(()=>[n.createVNode(g,n.mergeProps({for:"amplify-field-"+n.unref(d),class:["amplify-label",{"amplify-visually-hidden":n.unref(s)}]},f.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},16,["for","class"]),n.createVNode(w,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[e.type==="tel"?(n.openBlock(),n.createBlock(w,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(g,n.mergeProps({for:"amplify-field-"+n.unref(m),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString("Country Code"))]),_:1},16,["for"]),n.createVNode(w,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(y,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+n.unref(m),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:n.unref(u),"select-value":n.unref(c)},null,8,["id","options","select-value"]),n.createVNode(w,{class:"amplify-flex amplify-select__icon"},{default:n.withCtx(()=>[FC]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(w,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(h,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+n.unref(d),autocomplete:n.unref(a),name:n.unref(o),required:n.unref(l)??!0,type:e.type,placeholder:n.unref(i),"aria-invalid":e.hasError,"aria-describedBy":e.describedBy,autocapitalize:"off"},null,8,["id","autocomplete","name","required","type","placeholder","aria-invalid","aria-describedBy"])]),_:1})]),_:1})]),_:1})}}}),RC=["id"],pa=n.defineComponent({__name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:r,formField:o}=n.toRefs(t),{validationErrors:i}=n.toRefs(ee()),{type:a}=o.value,s=a==="password",l=wC(12),c=n.computed(()=>ps(i.value[r.value])),u=n.computed(()=>{var m;return((m=c.value)==null?void 0:m.length)>0}),d=n.computed(()=>u.value?l:void 0);return(m,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[s?(n.openBlock(),n.createBlock(Fr,{key:0,name:n.unref(r),label:n.unref(o).label,placeholder:n.unref(o).placeholder,required:n.unref(o).isRequired,"label-hidden":n.unref(o).labelHidden,autocomplete:n.unref(o).autocomplete,hasError:n.unref(u),describedBy:n.unref(d)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(n.openBlock(),n.createBlock(OC,{key:1,name:n.unref(r),label:n.unref(o).label,placeholder:n.unref(o).placeholder,required:n.unref(o).isRequired,"label-hidden":n.unref(o).labelHidden,autocomplete:n.unref(o).autocomplete,"dial-code":n.unref(o).dialCode,"dial-code-list":n.unref(o).dialCodeList,type:n.unref(o).type,hasError:n.unref(u),describedBy:n.unref(d)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),n.unref(u)?(n.openBlock(),n.createElementBlock("div",{key:2,id:n.unref(d)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(c),(p,g)=>(n.openBlock(),n.createElementBlock("p",{key:g,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},n.toDisplayString(n.unref(I)(p)),1))),128))],8,RC)):n.createCommentVNode("",!0)],64))}}),ge=n.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:r}=n.toRefs(t),{state:o}=Ur();let i=[];return n.onBeforeMount(()=>{i=bl(r.value,o.value)}),(a,s)=>(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(i),([l,c])=>(n.openBlock(),n.createBlock(pa,{name:l,key:l,formField:c},null,8,["name","formField"]))),128))}}),$t=n.defineComponent({__name:"federated-sign-in-button",props:{provider:null},setup(e){const t=e,{provider:r}=n.toRefs(t),{toFederatedSignIn:o}=ee(),i=()=>{o({provider:r.value})};return(a,s)=>{const l=ne;return n.openBlock(),n.createBlock(l,{class:"amplify-authenticator__federated-button",type:"button",onClick:i},{default:n.withCtx(()=>[n.renderSlot(a.$slots,"default")]),_:3})}}}),DC=n.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon",viewBox:"0 0 248 268"},[n.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),$C={class:"amplify-text"},BC=n.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),VC={class:"amplify-text"},zC=n.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon",viewBox:"0 0 279 538"},[n.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),LC={class:"amplify-text"},GC=n.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[n.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),n.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),n.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),n.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),jC={class:"amplify-text"},WC=["data-label"],Tn=n.defineComponent({__name:"federated-sign-in",setup(e){const t=ee(),{route:r,socialProviders:o}=t,i=o==null?void 0:o.includes("amazon"),a=o==null?void 0:o.includes("apple"),s=o==null?void 0:o.includes("facebook"),l=o==null?void 0:o.includes("google"),c=s||l||i||a,{getSignInWithFederationText:u,getOrText:d}=ie,m=n.computed(()=>Ln),f=n.computed(()=>u(r,"amazon")),p=n.computed(()=>u(r,"apple")),g=n.computed(()=>u(r,"facebook")),y=n.computed(()=>u(r,"google")),w=n.computed(()=>d());return(h,S)=>{const v=X;return n.unref(c)?(n.openBlock(),n.createBlock(v,{key:0,class:"amplify-flex amplify-authenticator__federated-buttons"},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock($t,{key:0,provider:n.unref(m).Amazon},{default:n.withCtx(()=>[DC,n.createElementVNode("span",$C,n.toDisplayString(n.unref(f)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(a)?(n.openBlock(),n.createBlock($t,{key:1,provider:n.unref(m).Apple},{default:n.withCtx(()=>[BC,n.createElementVNode("span",VC,n.toDisplayString(n.unref(p)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(s)?(n.openBlock(),n.createBlock($t,{key:2,provider:n.unref(m).Facebook},{default:n.withCtx(()=>[zC,n.createElementVNode("span",LC,n.toDisplayString(n.unref(g)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(l)?(n.openBlock(),n.createBlock($t,{key:3,provider:n.unref(m).Google},{default:n.withCtx(()=>[GC,n.createElementVNode("span",jC,n.toDisplayString(n.unref(y)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.createElementVNode("hr",{class:"amplify-divider amplify-divider--horizontal amplify-divider--small","aria-orientation":"horizontal","data-label":n.unref(w)},null,8,WC)]),_:1})):n.createCommentVNode("",!0)}}}),HC=n.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),KC={"data-amplify-footer":""},Or=n.defineComponent({__name:"sign-in",setup(e){const t=ee(),{submitForm:r,updateForm:o,toForgotPassword:i}=t,{error:a,isPending:s}=n.toRefs(t),{getForgotPasswordText:l,getSignInText:c,getSigningInText:u}=ie,d=n.computed(()=>l()),m=n.computed(()=>c()),f=n.computed(()=>u()),p=w=>{const{name:h,value:S}=w.target;o({name:h,value:S})},g=w=>{r(de(w))},y=()=>{i()};return(w,h)=>{const S=pe,v=fe,_=ne,C=X,E=ue,A=ce;return n.renderSlot(w.$slots,"signInSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.renderSlot(w.$slots,"header"),n.createVNode(C,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(E,{"data-amplify-authenticator-signin":"",onInput:p,onSubmit:n.withModifiers(g,["prevent"]),method:"post"},{formt:n.withCtx(({slotData:T})=>[n.renderSlot(w.$slots,"form",{info:T,onSignInSubmit:g,onInput:p,onForgotPasswordClicked:y})]),default:n.withCtx(()=>[n.createVNode(Tn),n.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(S,{disabled:n.unref(s),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:n.withCtx(({slotData:T})=>[n.renderSlot(w.$slots,"signin-fields",{info:T})]),default:n.withCtx(()=>[HC,n.createVNode(ge,{route:"signIn"})]),_:3},8,["disabled"]),n.unref(a)?(n.openBlock(),n.createBlock(v,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(_,{disabled:n.unref(s),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)?n.unref(f):n.unref(m)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(A,null,{default:n.withCtx(()=>[n.renderSlot(w.$slots,"footer",{},()=>[n.createElementVNode("div",KC,[n.createVNode(_,{onClick:y,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})])])]),_:3})])}}}),Rr=n.defineComponent({__name:"authenticator-sign-up-form-fields",setup(e){return(t,r)=>(n.openBlock(),n.createBlock(ge,{route:"signUp"}))}}),Dr=n.defineComponent({__name:"sign-up",setup(e){const t=ee(),{submitForm:r,updateBlur:o,updateForm:i}=t,{error:a,hasValidationErrors:s,isPending:l}=n.toRefs(t),{getCreateAccountText:c}=ie,u=n.computed(()=>c()),d=p=>{const{checked:g,name:y,type:w,value:h}=p.target;i({name:y,value:w==="checkbox"&&!g?void 0:h})};function m(p){const{name:g}=p.target;o({name:g})}const f=p=>{r(de(p))};return(p,g)=>{const y=pe,w=fe,h=ne,S=X,v=ue,_=ce;return n.renderSlot(p.$slots,"signUpSlotI",n.normalizeProps(n.guardReactiveProps(p.$attrs)),()=>[n.renderSlot(p.$slots,"header"),n.createVNode(S,n.normalizeProps(n.guardReactiveProps(p.$attrs)),{default:n.withCtx(()=>[n.createVNode(v,{onInput:d,onBlurCapture:m,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Tn),n.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(y,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{fieldSetI:n.withCtx(({slotData:C})=>[n.renderSlot(p.$slots,"signup-fields",{info:C})]),default:n.withCtx(()=>[n.createVNode(Rr)]),_:3},8,["disabled"]),n.unref(a)?(n.openBlock(),n.createBlock(w,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(h,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:n.unref(l)||n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(_,null,{default:n.withCtx(()=>[n.renderSlot(p.$slots,"footer")]),_:3})])}}}),YC={};function qC(e,t){const r=X;return n.openBlock(),n.createBlock(r,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs amplify-tabs"},{default:n.withCtx(()=>[n.createVNode(r,{class:"amplify-tabs__list amplify-tabs__list--top amplify-tabs__list--equal amplify-authenticator__tabs-wrapper",role:"tablist"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3})}const JC=sn(YC,[["render",qC]]),ZC=["tabindex","aria-selected","id","aria-controls"],QC=n.defineComponent({__name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:r,id:o,label:i}=n.toRefs(t);return(a,s)=>(n.openBlock(),n.createElementBlock("button",{tabindex:n.unref(r)?0:-1,"aria-selected":n.unref(r)?"true":"false",class:n.normalizeClass([{"amplify-tabs__item--active":n.unref(r)},"amplify-tabs__item"]),id:`${n.unref(o)}-tab`,"aria-controls":`${n.unref(o)}-panel`,role:"tab"},n.toDisplayString(n.unref(i)),11,ZC))}}),XC="4.4.0",eb={};function tb(e,t){return n.renderSlot(e.$slots,"textI",n.normalizeProps(n.guardReactiveProps(e.$attrs)),()=>[n.createElementVNode("span",n.mergeProps(e.$attrs,{"data-amplify-text":""}),[n.renderSlot(e.$slots,"default")],16)])}const $r=sn(eb,[["render",tb]]),ve=n.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r}){var s,l;const o=t.default?t.default():[],i=t.headingI?t.headingI():[],a=`${r.class||""} amplify-heading--${e.level}`;if(((l=(s=i[0])==null?void 0:s.children)==null?void 0:l.length)===0)i[0].children=[n.h(`h${e.level}`,{...r,class:a},[o])];else return()=>n.h(`h${e.level}`,{"data-amplify-heading":"",...r,class:a},[i[0]?n.h(i[0].children[0]):n.h(o[0])]);return()=>i}}),Br=n.defineComponent({__name:"confirm-sign-up",setup(e){const t=ee(),{codeDeliveryDetails:r,error:o,isPending:i}=n.toRefs(t),{resendCode:a,submitForm:s,updateForm:l}=t,{getDeliveryMethodText:c,getDeliveryMessageText:u,getResendCodeText:d,getConfirmText:m}=ie,f=n.computed(()=>c(r.value)),p=n.computed(()=>d()),g=n.computed(()=>m()),y=n.computed(()=>u(r.value)),w=_=>{const{name:C,value:E}=_.target;l({name:C,value:E})},h=_=>{S(_)},S=_=>{s(de(_))},v=()=>{a()};return(_,C)=>{const E=ve,A=$r,T=pe,P=fe,k=ne,N=ce,U=X,F=ue;return n.renderSlot(_.$slots,"confirmSignUpSlotI",n.normalizeProps(n.guardReactiveProps(_.$attrs)),()=>[n.createVNode(U,n.normalizeProps(n.guardReactiveProps(_.$attrs)),{default:n.withCtx(()=>[n.createVNode(F,{onInput:w,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(U,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"header",{},()=>[n.createVNode(E,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(A,{class:"amplify-authenticator__subtitle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(y)),1)]),_:1}),n.createVNode(T,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(i)},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmSignUp"})]),_:1},8,["disabled"]),n.createVNode(N,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(o)?(n.openBlock(),n.createBlock(P,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(o))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:n.unref(i)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(g)),1)]),_:1},8,["disabled"]),n.createVNode(k,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(v,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(_.$slots,"footer")]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Vr=n.defineComponent({__name:"confirm-sign-in",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateForm:i}=t,{error:a,isPending:s,challengeName:l}=n.toRefs(t),c=n.computed(()=>l.value),{getBackToSignInText:u,getConfirmText:d,getChallengeText:m}=ie,f=n.computed(()=>m(c.value)),p=n.computed(()=>u()),g=n.computed(()=>d()),y=S=>{const{name:v,value:_}=S.target;i({name:v,value:_})},w=S=>{r(de(S))},h=()=>{o()};return(S,v)=>{const _=ve,C=X,E=fe,A=ne,T=ce,P=pe,k=ue;return n.renderSlot(S.$slots,"confirmSignInSlotI",n.normalizeProps(n.guardReactiveProps(S.$attrs)),()=>[n.createVNode(C,n.normalizeProps(n.guardReactiveProps(S.$attrs)),{default:n.withCtx(()=>[n.createVNode(k,{"data-amplify-authenticator-confirmsignin":"",onInput:y,onSubmit:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createVNode(P,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(s)},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"header",{},()=>[n.createVNode(_,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmSignIn"})]),_:1}),n.createVNode(T,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(E,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(g)),1)]),_:1},8,["disabled"]),n.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(S.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var kt={},nb=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ma={},le={};let zr;const rb=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];le.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};le.getSymbolTotalCodewords=function(t){return rb[t]};le.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};le.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');zr=t};le.isKanjiModeEnabled=function(){return typeof zr<"u"};le.toSJIS=function(t){return zr(t)};var In={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,i){if(e.isValid(o))return o;try{return t(o)}catch{return i}}})(In);function ga(){this.buffer=[],this.length=0}ga.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ob=ga;function Nt(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Nt.prototype.set=function(e,t,r,o){const i=e*this.size+t;this.data[i]=r,o&&(this.reservedBit[i]=!0)};Nt.prototype.get=function(e,t){return this.data[e*this.size+t]};Nt.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};Nt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var ib=Nt,ha={};(function(e){const t=le.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const i=Math.floor(o/7)+2,a=t(o),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,l=[a-7];for(let c=1;c<i-1;c++)l[c]=l[c-1]-s;return l.push(6),l.reverse()},e.getPositions=function(o){const i=[],a=e.getRowColCoords(o),s=a.length;for(let l=0;l<s;l++)for(let c=0;c<s;c++)l===0&&c===0||l===0&&c===s-1||l===s-1&&c===0||i.push([a[l],a[c]]);return i}})(ha);var ya={};const ab=le.getSymbolSize,Xo=7;ya.getPositions=function(t){const r=ab(t);return[[0,0],[r-Xo,0],[0,r-Xo]]};var va={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,l=0,c=0,u=null,d=null;for(let m=0;m<a;m++){l=c=0,u=d=null;for(let f=0;f<a;f++){let p=i.get(m,f);p===u?l++:(l>=5&&(s+=t.N1+(l-5)),u=p,l=1),p=i.get(f,m),p===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=p,c=1)}l>=5&&(s+=t.N1+(l-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let l=0;l<a-1;l++)for(let c=0;c<a-1;c++){const u=i.get(l,c)+i.get(l,c+1)+i.get(l+1,c)+i.get(l+1,c+1);(u===4||u===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,l=0,c=0;for(let u=0;u<a;u++){l=c=0;for(let d=0;d<a;d++)l=l<<1&2047|i.get(u,d),d>=10&&(l===1488||l===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let c=0;c<s;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function r(o,i,a){switch(o){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(i,a){const s=a.size;for(let l=0;l<s;l++)for(let c=0;c<s;c++)a.isReserved(c,l)||a.xor(c,l,r(i,c,l))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let l=0,c=1/0;for(let u=0;u<s;u++){a(u),e.applyMask(u,i);const d=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(u,i),d<c&&(c=d,l=u)}return l}})(va);var Pn={};const Ie=In,Bt=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Vt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Pn.getBlocksCount=function(t,r){switch(r){case Ie.L:return Bt[(t-1)*4+0];case Ie.M:return Bt[(t-1)*4+1];case Ie.Q:return Bt[(t-1)*4+2];case Ie.H:return Bt[(t-1)*4+3];default:return}};Pn.getTotalCodewordsCount=function(t,r){switch(r){case Ie.L:return Vt[(t-1)*4+0];case Ie.M:return Vt[(t-1)*4+1];case Ie.Q:return Vt[(t-1)*4+2];case Ie.H:return Vt[(t-1)*4+3];default:return}};var Sa={},kn={};const ht=new Uint8Array(512),on=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)ht[r]=t,on[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)ht[r]=ht[r-255]})();kn.log=function(t){if(t<1)throw new Error("log("+t+")");return on[t]};kn.exp=function(t){return ht[t]};kn.mul=function(t,r){return t===0||r===0?0:ht[on[t]+on[r]]};(function(e){const t=kn;e.mul=function(o,i){const a=new Uint8Array(o.length+i.length-1);for(let s=0;s<o.length;s++)for(let l=0;l<i.length;l++)a[s+l]^=t.mul(o[s],i[l]);return a},e.mod=function(o,i){let a=new Uint8Array(o);for(;a.length-i.length>=0;){const s=a[0];for(let c=0;c<i.length;c++)a[c]^=t.mul(i[c],s);let l=0;for(;l<a.length&&a[l]===0;)l++;a=a.slice(l)}return a},e.generateECPolynomial=function(o){let i=new Uint8Array([1]);for(let a=0;a<o;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(Sa);const _a=Sa;function Lr(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Lr.prototype.initialize=function(t){this.degree=t,this.genPoly=_a.generateECPolynomial(this.degree)};Lr.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const o=_a.mod(r,this.genPoly),i=this.degree-o.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(o,i),a}return o};var sb=Lr,wa={},Ne={},Gr={};Gr.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Se={};const Ca="[0-9]+",lb="[A-Z $%*+\\-./:]+";let Ct="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ct=Ct.replace(/u/g,"\\u");const cb="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ct+`)(?:.|[\r
21
+ ]))+`;Se.KANJI=new RegExp(Ct,"g");Se.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Se.BYTE=new RegExp(cb,"g");Se.NUMERIC=new RegExp(Ca,"g");Se.ALPHANUMERIC=new RegExp(lb,"g");const ub=new RegExp("^"+Ct+"$"),db=new RegExp("^"+Ca+"$"),fb=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Se.testKanji=function(t){return ub.test(t)};Se.testNumeric=function(t){return db.test(t)};Se.testAlphanumeric=function(t){return fb.test(t)};(function(e){const t=Gr,r=Se;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return r.testNumeric(a)?e.NUMERIC:r.testAlphanumeric(a)?e.ALPHANUMERIC:r.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,s){if(e.isValid(a))return a;try{return o(a)}catch{return s}}})(Ne);(function(e){const t=le,r=Pn,o=In,i=Ne,a=Gr,s=7973,l=t.getBCHDigit(s);function c(f,p,g){for(let y=1;y<=40;y++)if(p<=e.getCapacity(y,g,f))return y}function u(f,p){return i.getCharCountIndicator(f,p)+4}function d(f,p){let g=0;return f.forEach(function(y){const w=u(y.mode,p);g+=w+y.getBitsLength()}),g}function m(f,p){for(let g=1;g<=40;g++)if(d(f,g)<=e.getCapacity(g,p,i.MIXED))return g}e.from=function(p,g){return a.isValid(p)?parseInt(p,10):g},e.getCapacity=function(p,g,y){if(!a.isValid(p))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=i.BYTE);const w=t.getSymbolTotalCodewords(p),h=r.getTotalCodewordsCount(p,g),S=(w-h)*8;if(y===i.MIXED)return S;const v=S-u(y,p);switch(y){case i.NUMERIC:return Math.floor(v/10*3);case i.ALPHANUMERIC:return Math.floor(v/11*2);case i.KANJI:return Math.floor(v/13);case i.BYTE:default:return Math.floor(v/8)}},e.getBestVersionForData=function(p,g){let y;const w=o.from(g,o.M);if(Array.isArray(p)){if(p.length>1)return m(p,w);if(p.length===0)return 1;y=p[0]}else y=p;return c(y.mode,y.getLength(),w)},e.getEncodedBits=function(p){if(!a.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;t.getBCHDigit(g)-l>=0;)g^=s<<t.getBCHDigit(g)-l;return p<<12|g}})(wa);var ba={};const tr=le,Aa=1335,pb=21522,ei=tr.getBCHDigit(Aa);ba.getEncodedBits=function(t,r){const o=t.bit<<3|r;let i=o<<10;for(;tr.getBCHDigit(i)-ei>=0;)i^=Aa<<tr.getBCHDigit(i)-ei;return(o<<10|i)^pb};var Ea={};const mb=Ne;function je(e){this.mode=mb.NUMERIC,this.data=e.toString()}je.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};je.prototype.getLength=function(){return this.data.length};je.prototype.getBitsLength=function(){return je.getBitsLength(this.data.length)};je.prototype.write=function(t){let r,o,i;for(r=0;r+3<=this.data.length;r+=3)o=this.data.substr(r,3),i=parseInt(o,10),t.put(i,10);const a=this.data.length-r;a>0&&(o=this.data.substr(r),i=parseInt(o,10),t.put(i,a*3+1))};var gb=je;const hb=Ne,Dn=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function We(e){this.mode=hb.ALPHANUMERIC,this.data=e}We.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};We.prototype.getLength=function(){return this.data.length};We.prototype.getBitsLength=function(){return We.getBitsLength(this.data.length)};We.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let o=Dn.indexOf(this.data[r])*45;o+=Dn.indexOf(this.data[r+1]),t.put(o,11)}this.data.length%2&&t.put(Dn.indexOf(this.data[r]),6)};var yb=We,vb=function(t){for(var r=[],o=t.length,i=0;i<o;i++){var a=t.charCodeAt(i);if(a>=55296&&a<=56319&&o>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(a-55296)*1024+s-56320+65536,i+=1)}if(a<128){r.push(a);continue}if(a<2048){r.push(a>>6|192),r.push(a&63|128);continue}if(a<55296||a>=57344&&a<65536){r.push(a>>12|224),r.push(a>>6&63|128),r.push(a&63|128);continue}if(a>=65536&&a<=1114111){r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const Sb=vb,_b=Ne;function He(e){this.mode=_b.BYTE,this.data=new Uint8Array(Sb(e))}He.getBitsLength=function(t){return t*8};He.prototype.getLength=function(){return this.data.length};He.prototype.getBitsLength=function(){return He.getBitsLength(this.data.length)};He.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var wb=He;const Cb=Ne,bb=le;function Ke(e){this.mode=Cb.KANJI,this.data=e}Ke.getBitsLength=function(t){return t*13};Ke.prototype.getLength=function(){return this.data.length};Ke.prototype.getBitsLength=function(){return Ke.getBitsLength(this.data.length)};Ke.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=bb.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
22
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var Ab=Ke,Ta={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,o,i){var a={},s={};s[o]=0;var l=t.PriorityQueue.make();l.push(o,0);for(var c,u,d,m,f,p,g,y,w;!l.empty();){c=l.pop(),u=c.value,m=c.cost,f=r[u]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],g=m+p,y=s[d],w=typeof s[d]>"u",(w||y>g)&&(s[d]=g,l.push(d,g),a[d]=u))}if(typeof i<"u"&&typeof s[i]>"u"){var h=["Could not find a path from ",o," to ",i,"."].join("");throw new Error(h)}return a},extract_shortest_path_from_predecessor_list:function(r,o){for(var i=[],a=o;a;)i.push(a),r[a],a=r[a];return i.reverse(),i},find_path:function(r,o,i){var a=t.single_source_shortest_paths(r,o,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(r){var o=t.PriorityQueue,i={},a;r=r||{};for(a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);return i.queue=[],i.sorter=r.sorter||o.default_sorter,i},default_sorter:function(r,o){return r.cost-o.cost},push:function(r,o){var i={value:r,cost:o};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Ta);var Eb=Ta.exports;(function(e){const t=Ne,r=gb,o=yb,i=wb,a=Ab,s=Se,l=le,c=Eb;function u(h){return unescape(encodeURIComponent(h)).length}function d(h,S,v){const _=[];let C;for(;(C=h.exec(v))!==null;)_.push({data:C[0],index:C.index,mode:S,length:C[0].length});return _}function m(h){const S=d(s.NUMERIC,t.NUMERIC,h),v=d(s.ALPHANUMERIC,t.ALPHANUMERIC,h);let _,C;return l.isKanjiModeEnabled()?(_=d(s.BYTE,t.BYTE,h),C=d(s.KANJI,t.KANJI,h)):(_=d(s.BYTE_KANJI,t.BYTE,h),C=[]),S.concat(v,_,C).sort(function(A,T){return A.index-T.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(h,S){switch(S){case t.NUMERIC:return r.getBitsLength(h);case t.ALPHANUMERIC:return o.getBitsLength(h);case t.KANJI:return a.getBitsLength(h);case t.BYTE:return i.getBitsLength(h)}}function p(h){return h.reduce(function(S,v){const _=S.length-1>=0?S[S.length-1]:null;return _&&_.mode===v.mode?(S[S.length-1].data+=v.data,S):(S.push(v),S)},[])}function g(h){const S=[];for(let v=0;v<h.length;v++){const _=h[v];switch(_.mode){case t.NUMERIC:S.push([_,{data:_.data,mode:t.ALPHANUMERIC,length:_.length},{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.ALPHANUMERIC:S.push([_,{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.KANJI:S.push([_,{data:_.data,mode:t.BYTE,length:u(_.data)}]);break;case t.BYTE:S.push([{data:_.data,mode:t.BYTE,length:u(_.data)}])}}return S}function y(h,S){const v={},_={start:{}};let C=["start"];for(let E=0;E<h.length;E++){const A=h[E],T=[];for(let P=0;P<A.length;P++){const k=A[P],N=""+E+P;T.push(N),v[N]={node:k,lastCount:0},_[N]={};for(let U=0;U<C.length;U++){const F=C[U];v[F]&&v[F].node.mode===k.mode?(_[F][N]=f(v[F].lastCount+k.length,k.mode)-f(v[F].lastCount,k.mode),v[F].lastCount+=k.length):(v[F]&&(v[F].lastCount=k.length),_[F][N]=f(k.length,k.mode)+4+t.getCharCountIndicator(k.mode,S))}}C=T}for(let E=0;E<C.length;E++)_[C[E]].end=0;return{map:_,table:v}}function w(h,S){let v;const _=t.getBestModeForData(h);if(v=t.from(S,_),v!==t.BYTE&&v.bit<_.bit)throw new Error('"'+h+'" cannot be encoded with mode '+t.toString(v)+`.
23
+ Suggested mode is: `+t.toString(_));switch(v===t.KANJI&&!l.isKanjiModeEnabled()&&(v=t.BYTE),v){case t.NUMERIC:return new r(h);case t.ALPHANUMERIC:return new o(h);case t.KANJI:return new a(h);case t.BYTE:return new i(h)}}e.fromArray=function(S){return S.reduce(function(v,_){return typeof _=="string"?v.push(w(_,null)):_.data&&v.push(w(_.data,_.mode)),v},[])},e.fromString=function(S,v){const _=m(S,l.isKanjiModeEnabled()),C=g(_),E=y(C,v),A=c.find_path(E.map,"start","end"),T=[];for(let P=1;P<A.length-1;P++)T.push(E.table[A[P]].node);return e.fromArray(p(T))},e.rawSplit=function(S){return e.fromArray(m(S,l.isKanjiModeEnabled()))}})(Ea);const Nn=le,$n=In,Tb=ob,Ib=ib,Pb=ha,kb=ya,nr=va,rr=Pn,Nb=sb,an=wa,Mb=ba,xb=Ne,Bn=Ea;function Ub(e,t){const r=e.size,o=kb.getPositions(t);for(let i=0;i<o.length;i++){const a=o[i][0],s=o[i][1];for(let l=-1;l<=7;l++)if(!(a+l<=-1||r<=a+l))for(let c=-1;c<=7;c++)s+c<=-1||r<=s+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?e.set(a+l,s+c,!0,!0):e.set(a+l,s+c,!1,!0))}}function Fb(e){const t=e.size;for(let r=8;r<t-8;r++){const o=r%2===0;e.set(r,6,o,!0),e.set(6,r,o,!0)}}function Ob(e,t){const r=Pb.getPositions(t);for(let o=0;o<r.length;o++){const i=r[o][0],a=r[o][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?e.set(i+s,a+l,!0,!0):e.set(i+s,a+l,!1,!0)}}function Rb(e,t){const r=e.size,o=an.getEncodedBits(t);let i,a,s;for(let l=0;l<18;l++)i=Math.floor(l/3),a=l%3+r-8-3,s=(o>>l&1)===1,e.set(i,a,s,!0),e.set(a,i,s,!0)}function Vn(e,t,r){const o=e.size,i=Mb.getEncodedBits(t,r);let a,s;for(a=0;a<15;a++)s=(i>>a&1)===1,a<6?e.set(a,8,s,!0):a<8?e.set(a+1,8,s,!0):e.set(o-15+a,8,s,!0),a<8?e.set(8,o-a-1,s,!0):a<9?e.set(8,15-a-1+1,s,!0):e.set(8,15-a-1,s,!0);e.set(o-8,8,1,!0)}function Db(e,t){const r=e.size;let o=-1,i=r-1,a=7,s=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!e.isReserved(i,l-c)){let u=!1;s<t.length&&(u=(t[s]>>>a&1)===1),e.set(i,l-c,u),a--,a===-1&&(s++,a=7)}if(i+=o,i<0||r<=i){i-=o,o=-o;break}}}function $b(e,t,r){const o=new Tb;r.forEach(function(c){o.put(c.mode.bit,4),o.put(c.getLength(),xb.getCharCountIndicator(c.mode,e)),c.write(o)});const i=Nn.getSymbolTotalCodewords(e),a=rr.getTotalCodewordsCount(e,t),s=(i-a)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const l=(s-o.getLengthInBits())/8;for(let c=0;c<l;c++)o.put(c%2?17:236,8);return Bb(o,e,t)}function Bb(e,t,r){const o=Nn.getSymbolTotalCodewords(t),i=rr.getTotalCodewordsCount(t,r),a=o-i,s=rr.getBlocksCount(t,r),l=o%s,c=s-l,u=Math.floor(o/s),d=Math.floor(a/s),m=d+1,f=u-d,p=new Nb(f);let g=0;const y=new Array(s),w=new Array(s);let h=0;const S=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const T=A<c?d:m;y[A]=S.slice(g,g+T),w[A]=p.encode(y[A]),g+=T,h=Math.max(h,T)}const v=new Uint8Array(o);let _=0,C,E;for(C=0;C<h;C++)for(E=0;E<s;E++)C<y[E].length&&(v[_++]=y[E][C]);for(C=0;C<f;C++)for(E=0;E<s;E++)v[_++]=w[E][C];return v}function Vb(e,t,r,o){let i;if(Array.isArray(e))i=Bn.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){const d=Bn.rawSplit(e);u=an.getBestVersionForData(d,r)}i=Bn.fromString(e,u||40)}else throw new Error("Invalid data");const a=an.getBestVersionForData(i,r);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=a;else if(t<a)throw new Error(`
24
24
  The chosen QR Code version cannot contain this amount of data.
25
25
  Minimum version required to store current data is: `+a+`.
26
- `);const s=Pb(t,r,i),l=kn.getSymbolSize(t),c=new yb(l);return bb(c,t),Ab(c),Eb(c,t),Bn(c,r,0),t>=7&&Tb(c,t),Ib(c,s),isNaN(o)&&(o=nr.getBestMask(c,Bn.bind(null,c,r))),nr.applyMask(o,c),Bn(c,r,o),{modules:c,version:t,errorCorrectionLevel:r,maskPattern:o,segments:i}}ma.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let o=$n.M,i,a;return typeof r<"u"&&(o=$n.from(r.errorCorrectionLevel,$n.M),i=rn.from(r.version),a=nr.from(r.maskPattern),r.toSJISFunc&&kn.setToSJISFunction(r.toSJISFunc)),Nb(t,i,o,a)};var Ia={},jr={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let o=r.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+r);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(a){return[a,a]}))),o.length===6&&o.push("F","F");const i=parseInt(o.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const i=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,a=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:a,scale:a?4:s,margin:i,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,i){return i.width&&i.width>=o+i.margin*2?i.width/(o+i.margin*2):i.scale},e.getImageWidth=function(o,i){const a=e.getScale(o,i);return Math.floor((o+i.margin*2)*a)},e.qrToImageData=function(o,i,a){const s=i.modules.size,l=i.modules.data,c=e.getScale(s,a),u=Math.floor((s+a.margin*2)*c),d=a.margin*c,m=[a.color.light,a.color.dark];for(let f=0;f<u;f++)for(let p=0;p<u;p++){let h=(f*u+p)*4,v=a.color.light;if(f>=d&&p>=d&&f<u-d&&p<u-d){const w=Math.floor((f-d)/c),g=Math.floor((p-d)/c);v=m[l[w*s+g]?1:0]}o[h++]=v.r,o[h++]=v.g,o[h++]=v.b,o[h]=v.a}}})(jr);(function(e){const t=jr;function r(i,a,s){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,s,l){let c=l,u=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=o()),c=t.getOptions(c);const d=t.getImageWidth(a.modules.size,c),m=u.getContext("2d"),f=m.createImageData(d,d);return t.qrToImageData(f.data,a,c),r(m,u,d),m.putImageData(f,0,0),u},e.renderToDataURL=function(a,s,l){let c=l;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=e.render(a,s,c),d=c.type||"image/png",m=c.rendererOpts||{};return u.toDataURL(d,m.quality)}})(Ia);var Pa={};const Mb=jr;function ti(e,t){const r=e.a/255,o=t+'="'+e.hex+'"';return r<1?o+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':o}function Vn(e,t,r){let o=e+t;return typeof r<"u"&&(o+=" "+r),o}function xb(e,t,r){let o="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);!c&&!a&&(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(o+=a?Vn("M",c+r,.5+u+r):Vn("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(o+=Vn("h",s),s=0)):i++}return o}Pa.render=function(t,r,o){const i=Mb.getOptions(r),a=t.modules.size,s=t.modules.data,l=a+i.margin*2,c=i.color.light.a?"<path "+ti(i.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+ti(i.color.dark,"stroke")+' d="'+xb(s,a,i.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+d+' shape-rendering="crispEdges">'+c+u+`</svg>
27
- `;return typeof o=="function"&&o(null,f),f};const Ub=HC,or=ma,ka=Ia,Fb=Pa;function Wr(e,t,r,o,i){const a=[].slice.call(arguments,1),s=a.length,l=typeof a[s-1]=="function";if(!l&&!Ub())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=o=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=o,o=void 0):(i=o,o=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=o=void 0):s===2&&!t.getContext&&(o=r,r=t,t=void 0),new Promise(function(c,u){try{const d=or.create(r,o);c(e(d,t,o))}catch(d){u(d)}})}try{const c=or.create(r,o);i(null,e(c,t,o))}catch(c){i(c)}}Pt.create=or.create;Pt.toCanvas=Wr.bind(null,ka.render);Pt.toDataURL=Wr.bind(null,ka.renderToDataURL);Pt.toString=Wr.bind(null,function(e,t,r){return Fb.render(e,r)});const Ob={key:0},Rb=["src"],$b={"data-amplify-copy-tooltip":""},Db=n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})],-1),Bb=n.defineComponent({__name:"setup-totp",setup(e){const t=new ir.ConsoleLogger("SetupTotp-logger"),r=ee(),{updateForm:o,submitForm:i,toSignIn:a,totpSecretCode:s,username:l,QRFields:c}=r,{error:u,isPending:d}=n.toRefs(r),{totpIssuer:m="AWSCognito",totpUsername:f=l}=c??{},p=_s(m,f,s),h=n.reactive({qrCodeImageSource:"",isLoading:!0}),{getCopyText:v,getCopiedText:w,getBackToSignInText:g,getConfirmText:_}=ie,y=n.ref(v());function S(){s&&navigator.clipboard.writeText(s),y.value=w()}n.onMounted(async()=>{try{h.qrCodeImageSource=await Pt.toDataURL(p)}catch(k){t.error(k)}finally{h.isLoading=!1}});const C=n.computed(()=>g()),A=n.computed(()=>_()),E=k=>{const{name:N,value:U}=k.target;o({name:N,value:U})},T=k=>{i(de(k))},I=()=>{a()};return(k,N)=>{const U=ve,F=X,H=fe,re=ne,ae=ce,J=pe,te=ue;return n.renderSlot(k.$slots,"confirmSetupTotpI",n.normalizeProps(n.guardReactiveProps(k.$attrs)),()=>[n.createVNode(F,n.normalizeProps(n.guardReactiveProps(k.$attrs)),{default:n.withCtx(()=>[n.createVNode(te,{"data-amplify-authenticator-setup-totp":"",onInput:E,onSubmit:n.withModifiers(T,["prevent"])},{default:n.withCtx(()=>[n.createVNode(J,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(d)},{default:n.withCtx(()=>[n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(k.$slots,"header",{},()=>[n.createVNode(U,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(" Setup TOTP ")]),_:1})]),n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[h.isLoading?(n.openBlock(),n.createElementBlock("p",Ob,"Loading...")):(n.openBlock(),n.createElementBlock("img",{key:1,class:"amplify-image","data-amplify-qrcode":"",src:h.qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,Rb)),n.createVNode(F,{class:"amplify-flex","data-amplify-copy":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(n.unref(s)),1),n.createVNode(F,{"data-amplify-copy-svg":"",onClick:S},{default:n.withCtx(()=>[n.createElementVNode("div",$b,n.toDisplayString(y.value),1),Db]),_:1})]),_:1}),n.createVNode(ge,{route:"setupTotp"})]),_:1}),n.createVNode(ae,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(u)?(n.openBlock(),n.createBlock(H,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(u))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:n.unref(d)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(A)),1)]),_:1},8,["disabled"]),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(I,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(C)),1)]),_:1},8,["onClick"]),n.renderSlot(k.$slots,"footer")]),_:3})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Hr=n.defineComponent({__name:"authenticator-force-new-password-form-fields",setup(e){return(t,r)=>(n.openBlock(),n.createBlock(ge,{route:"forceNewPassword"}))}}),Kr=n.defineComponent({__name:"force-new-password",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateBlur:i,updateForm:a}=t,{error:s,isPending:l}=n.toRefs(t),{getChangePasswordText:c,getChangingText:u,getBackToSignInText:d}=ie,m=n.computed(()=>c()),f=n.computed(()=>u()),p=n.computed(()=>d()),h=()=>{o()},v=y=>{w(y)},w=y=>{r(de(y))},g=y=>{const{name:S,value:C}=y.target;a({name:S,value:C})};function _(y){const{name:S}=y.target;i({name:S})}return(y,S)=>{const C=ve,A=X,E=fe,T=ne,I=ce,k=pe,N=ue;return n.renderSlot(y.$slots,"forceNewPasswordI",n.normalizeProps(n.guardReactiveProps(y.$attrs)),()=>[n.createVNode(A,n.normalizeProps(n.guardReactiveProps(y.$attrs)),{default:n.withCtx(()=>[n.createVNode(N,{"data-amplify-authenticator-forcenewpassword":"",onInput:g,onBlurCapture:_,onSubmit:n.withModifiers(v,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"header",{},()=>[n.createVNode(C,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1})]),n.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"force-new-password-form-fields",{},()=>[n.createVNode(Hr)])]),_:3}),n.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(E,{key:0,"data-ui-error":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)?n.unref(f)+"…":n.unref(m)),1)]),_:1},8,["disabled"]),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(y.$slots,"footer",{onHaveAccountClicked:h,onForceNewPasswordSubmit:v})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Yr=n.defineComponent({__name:"forgot-password",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateForm:i}=t,{error:a,isPending:s}=n.toRefs(t),{getBackToSignInText:l,getResetYourPasswordText:c,getSendCodeText:u}=ie,d=n.computed(()=>l()),m=n.computed(()=>c()),f=n.computed(()=>u()),p=w=>{r(de(w))},h=w=>{const{name:g,value:_}=w.target;i({name:g,value:_})},v=()=>{o()};return(w,g)=>{const _=ve,y=pe,S=fe,C=ne,A=ce,E=X,T=ue;return n.renderSlot(w.$slots,"forgotPasswordSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode(T,n.mergeProps(w.$attrs,{"data-amplify-authenticator-forgotpassword":"",onInput:h,onSubmit:n.withModifiers(p,["prevent"])}),{default:n.withCtx(()=>[n.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(_,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1})]),n.createVNode(y,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(s)},{default:n.withCtx(()=>[n.createVNode(ge,{route:"forgotPassword"})]),_:1},8,["disabled"]),n.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(S,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(v,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer",{onBackToSignInClicked:v,onResetPasswordSubmit:p})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),qr=n.defineComponent({__name:"confirm-reset-password",setup(e){const t=ee(),{resendCode:r,submitForm:o,updateBlur:i,updateForm:a}=t,{error:s,isPending:l}=n.toRefs(t),{getResendCodeText:c,getResetYourPasswordText:u,getSubmitText:d}=ie,m=n.computed(()=>c()),f=n.computed(()=>u()),p=n.computed(()=>d()),h=y=>{v(y)},v=y=>{o(de(y))},w=()=>{r()},g=y=>{const{name:S,value:C}=y.target;a({name:S,value:C})};function _(y){const{name:S}=y.target;i({name:S})}return(y,S)=>{const C=ve,A=X,E=fe,T=ne,I=ce,k=pe,N=ue;return n.renderSlot(y.$slots,"confirmResetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(y.$attrs)),()=>[n.createVNode(A,n.normalizeProps(n.guardReactiveProps(y.$attrs)),{default:n.withCtx(()=>[n.createVNode(N,{"data-amplify-authenticator-confirmResetpassword":"",onInput:g,onBlurCapture:_,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"header",{},()=>[n.createVNode(C,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmResetPassword"})]),_:1}),n.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(E,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["disabled"]),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["onClick"]),n.renderSlot(y.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Jr=n.defineComponent({__name:"verify-user",setup(e){const t=ee(),{isPending:r,unverifiedUserAttributes:o,error:i}=n.toRefs(t),{skipVerification:a,submitForm:s,updateForm:l}=t,{getAccountRecoveryInfoText:c,getSkipText:u,getVerifyText:d,getVerifyContactText:m}=ie,f=n.computed(()=>c()),p=n.computed(()=>u()),h=n.computed(()=>d()),v=n.computed(()=>m()),w=S=>{const{name:C,value:A}=S.target;l({name:C,value:A})},g=S=>{_(S)},_=S=>{s(de(S))},y=()=>{a()};return(S,C)=>{const A=ve,E=It,T=Dr,I=Tt,k=X,N=fe,U=ne,F=ce,H=pe,re=ue;return n.renderSlot(S.$slots,"verifyUserSlotI",{},()=>[n.createVNode(k,null,{default:n.withCtx(()=>[n.createVNode(re,{onInput:w,onSubmit:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createVNode(H,{disabled:n.unref(r),class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"header",{},()=>[n.createVNode(A,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(k,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(E,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1}),n.createVNode(k,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o),(ae,J,te)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:ae},[ae?(n.openBlock(),n.createBlock(E,{key:0,class:"amplify-flex amplify-radio","data-amplify-verify-label":""},{default:n.withCtx(()=>[n.createVNode(T,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(vt)[J].label))+": "+n.toDisplayString(n.unref(ys)(n.unref(vt)[J].label,ae)),1)]),_:2},1024),n.createVNode(I,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",name:"unverifiedAttr",type:"radio",checked:te===0,value:J},null,8,["checked","value"]),n.createVNode(T,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"})]),_:2},1024)):n.createCommentVNode("",!0)],64))),128))]),_:1})]),_:1}),n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(N,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(i))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(U,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:n.unref(r)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1},8,["disabled"]),n.createVNode(U,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(y,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(S.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Zr=n.defineComponent({__name:"confirm-verify-user",setup(e){const t=ee(),{error:r,isPending:o}=n.toRefs(t),{skipVerification:i,submitForm:a,updateForm:s}=t,{getAccountRecoveryInfoText:l,getSkipText:c,getSubmitText:u}=ie,d=n.computed(()=>l()),m=n.computed(()=>c()),f=n.computed(()=>u()),p=g=>{const{name:_,value:y}=g.target;s({name:_,value:y})},h=g=>{v(g)},v=g=>{a(de(g))},w=()=>{i()};return(g,_)=>{const y=ve,S=X,C=fe,A=ne,E=ce,T=pe,I=ue;return n.renderSlot(g.$slots,"confirmVerifyUserSlotI",n.normalizeProps(n.guardReactiveProps(g.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(g.$attrs)),{default:n.withCtx(()=>[n.createVNode(I,{onInput:p,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(T,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(o)},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"header",{},()=>[n.createVNode(y,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(S,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmVerifyUser"})]),_:1}),n.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(r)?(n.openBlock(),n.createBlock(C,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(r))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["onClick"]),n.renderSlot(g.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Qr=n.defineComponent({__name:"select-mfa-type",setup(e){const t=Math.floor(Math.random()*999999),r=ee(),{submitForm:o,toSignIn:i,updateForm:a}=r,{error:s,isPending:l,challengeName:c,allowedMfaTypes:u}=n.toRefs(r),d=n.computed(()=>c.value),{getBackToSignInText:m,getConfirmText:f,getSelectMfaTypeByChallengeName:p,getMfaTypeLabelByValue:h,getSelectMfaTypeText:v}=ie,w=n.computed(()=>p(d.value)),g=n.computed(()=>m()),_=n.computed(()=>f()),y=n.computed(()=>v()),S=E=>{const{name:T,value:I}=E.target;a({name:T,value:I})},C=E=>{o(de(E))},A=()=>{i()};return(E,T)=>{const I=ve,k=It,N=Dr,U=Tt,F=X,H=fe,re=ne,ae=ce,J=pe,te=ue;return n.renderSlot(E.$slots,"selectMfaTypeSlotI",n.normalizeProps(n.guardReactiveProps(E.$attrs)),()=>[n.createVNode(F,n.normalizeProps(n.guardReactiveProps(E.$attrs)),{default:n.withCtx(()=>[n.createVNode(te,{"data-amplify-authenticator-selectmfatype":"",onInput:S,onSubmit:n.withModifiers(C,["prevent"])},{default:n.withCtx(()=>[n.createVNode(J,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{default:n.withCtx(()=>[n.renderSlot(E.$slots,"header",{},()=>[n.createVNode(I,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(w)),1)]),_:1})]),n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-visually-hidden amplify-label",id:`amplify-field-${n.unref(t)}`},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(y)),1)]),_:1},8,["id"]),n.createVNode(F,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":`amplify-field-${n.unref(t)}`},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(u),(Z,Re)=>(n.openBlock(),n.createBlock(k,{key:Z,class:"amplify-flex amplify-radio","data-amplify-selectmfatype-label":""},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)(Z)),1)]),_:2},1024),n.createVNode(U,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-selectmfatype-input":"",name:"mfa_type",type:"radio",value:Z,checked:Re===0},null,8,["value","checked"]),n.createVNode(N,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"})]),_:2},1024))),128))]),_:1},8,["aria-labelledby"])]),_:1}),n.createVNode(ae,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(H,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(_)),1)]),_:1},8,["disabled"]),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(A,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(g)),1)]),_:1},8,["onClick"]),n.renderSlot(E.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Xr=n.defineComponent({__name:"setup-email",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateForm:i}=t,{error:a,isPending:s}=n.toRefs(t),{getBackToSignInText:l,getConfirmText:c,getSetupEmailText:u}=ie,d=n.computed(()=>u()),m=n.computed(()=>l()),f=n.computed(()=>c()),p=w=>{const{name:g,value:_}=w.target;i({name:g,value:_})},h=w=>{r(de(w))},v=()=>{o()};return(w,g)=>{const _=ve,y=X,S=fe,C=ne,A=ce,E=pe,T=ue;return n.renderSlot(w.$slots,"setupEmailSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode(y,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(T,{"data-amplify-authenticator-setupemail":"",onInput:p,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(s)},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(_,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(y,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"setupEmail"})]),_:1}),n.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(S,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(v,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Vb=["data-variation"],zb={"data-amplify-container":""},Lb=["data-amplify-router-content"],Gb={key:1,"data-amplify-router-content":""},Na=n.defineComponent({__name:"authenticator",props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},setup(e){const t=e,{initialState:r,loginMechanisms:o,variation:i,services:a,signUpAttributes:s,socialProviders:l,hideSignUp:c,formFields:u}=n.toRefs(t);let d;const m=n.ref(!1),{service:f,send:p,state:h}=Ur(),v=f.subscribe(M=>{M.matches("setup")&&!m.value&&(p({type:"INIT",data:{initialState:r.value,loginMechanisms:o.value,socialProviders:l.value,signUpAttributes:s.value,services:a.value,formFields:u.value}}),m.value=!0)}).unsubscribe,w=ee(),{route:g,signOut:_,toSignIn:y,toSignUp:S,user:C}=n.toRefs(w);n.onMounted(()=>{d=tC({componentName:"Authenticator",packageName:"vue",version:GC})}),n.onUnmounted(()=>{d(),v()});const A=n.ref(),E=n.ref(),T=n.ref(),I=n.ref(),k=n.ref(),N=n.ref(),U=n.ref(),F=n.ref(),H=n.ref(),re=n.ref(),ae=n.ref(),J=n.ref(),{getSignInTabText:te,getSignUpTabText:Z}=ie,Re=n.computed(()=>te()),se=n.computed(()=>Z()),ot=n.computed(()=>g.value==="signIn"||g.value==="signUp"),Nn=n.computed(()=>["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","forgotPassword","selectMfaType","setupEmail","setupTotp","signIn","signUp","verifyUser"].includes(g.value));return(M,Me)=>{const eo=LC,Fa=VC;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(Nn)?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0},M.$attrs,{"data-amplify-authenticator":"","data-variation":n.unref(i)}),[n.createElementVNode("div",zb,[n.renderSlot(M.$slots,"header"),n.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":n.unref(ot)?void 0:""},[n.unref(ot)&&!n.unref(c)?(n.openBlock(),n.createBlock(Fa,{key:0},{default:n.withCtx(()=>[n.createVNode(eo,{active:n.unref(g)==="signIn",id:"signIn",label:n.unref(Re),onClick:n.unref(y)},null,8,["active","label","onClick"]),n.createVNode(eo,{active:n.unref(g)==="signUp",id:"signUp",label:n.unref(se),onClick:n.unref(S)},null,8,["active","label","onClick"])]),_:1})):n.createCommentVNode("",!0),n.unref(ot)?(n.openBlock(),n.createElementBlock("div",Gb,[n.unref(g)==="signIn"?(n.openBlock(),n.createBlock(Or,{key:0,id:"signIn-panel",role:"tabpanel",class:"amplify-tabs__panel amplify-tabs__panel--active","aria-labelledby":"signIn-tab",ref_key:"signInComponent",ref:A},{signInSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-in")]),form:n.withCtx(({info:Mn,onSignInSubmit:Oa,onForgotPasswordClicked:Ra,onInput:$a})=>[n.renderSlot(M.$slots,"sign-in-form",{info:Mn,onInput:$a,onSignInSubmit:Oa,onForgotPasswordClicked:Ra})]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="signUp"&&!n.unref(c)?(n.openBlock(),n.createBlock($r,{key:1,id:"signUp-panel",class:"amplify-tabs__panel amplify-tabs__panel--active",role:"tabpanel","aria-labelledby":"signUp-tab",ref_key:"signUpComponent",ref:E},{signUpSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-up")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-up-header")]),"signup-fields":n.withCtx(({info:Mn})=>[n.renderSlot(M.$slots,"sign-up-fields",{info:Mn})]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.unref(g)==="confirmSignUp"?(n.openBlock(),n.createBlock(Br,{key:2,ref_key:"confirmSignUpComponent",ref:T},{confirmSignUpSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-up")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-up-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="forgotPassword"?(n.openBlock(),n.createBlock(Yr,{key:3,ref_key:"ForgotPasswordComponent",ref:U},{forgotPasswordSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"forgot-password")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"forgot-password-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"forgot-password-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="confirmResetPassword"?(n.openBlock(),n.createBlock(qr,{key:4,ref_key:"confirmResetPasswordComponent",ref:F},{confirmResetPasswordSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-reset-password")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-reset-password-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-reset-password-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="confirmSignIn"?(n.openBlock(),n.createBlock(Vr,{key:5,ref_key:"confirmSignInComponent",ref:I},{confirmSignInSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-in")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="setupTotp"?(n.openBlock(),n.createBlock(Bb,{key:6,ref_key:"confirmSetupTotpComponent",ref:k},{confirmSetupTotpI:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-totp")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-totp-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-totp-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="forceNewPassword"?(n.openBlock(),n.createBlock(Kr,{key:7,ref_key:"forceNewPasswordComponent",ref:N},{forceNewPasswordI:n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password-header")]),"force-new-password-form-fields":n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password-form-fields")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="verifyUser"?(n.openBlock(),n.createBlock(Jr,{key:8,ref_key:"verifyUserComponent",ref:H},{verifyUserSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"verify-user")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"verify-user-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"verify-user-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="confirmVerifyUser"?(n.openBlock(),n.createBlock(Zr,{key:9,ref_key:"confirmVerifyUserComponent",ref:re},{confirmVerifyUserSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-verify-user")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-verify-user-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-verify-user-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="selectMfaType"?(n.openBlock(),n.createBlock(Qr,{key:10,ref_key:"selectMfaTypeComponent",ref:ae},{selectMfaTypeSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"select-mfa-type")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"select-mfa-type-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"select-mfa-type-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(g)==="setupEmail"?(n.openBlock(),n.createBlock(Xr,{key:11,ref_key:"setupEmailComponent",ref:J},{setupEmailSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-email")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-email-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-email-footer")]),_:3},512)):n.createCommentVNode("",!0)],8,Lb),n.renderSlot(M.$slots,"footer")])],16,Vb)):n.createCommentVNode("",!0),n.unref(g)==="authenticated"?n.renderSlot(M.$slots,"default",{key:1,user:n.unref(C),state:n.unref(h),signOut:n.unref(_),send:n.unref(p)}):n.createCommentVNode("",!0)],64)}}}),Ma=n.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),xa=n.defineComponent({__name:"amplify-text-field",props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:r,id:o,autocomplete:i,placeholder:a,required:s,name:l,type:c}=n.toRefs(t);return(u,d)=>{const m=It,f=Tt,p=X;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(m,{class:n.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},8,["class","for"]),n.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(f,{class:"amplify-input amplify-field-group__control",id:n.unref(o),"aria-invalid":"false",autocomplete:n.unref(i),placeholder:n.unref(a),required:n.unref(s),name:n.unref(l),disabled:e.disabled,type:n.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),jb={class:"amplify-flex amplify-field amplify-checkboxfield"},Wb={class:"amplify-flex amplify-checkbox"},Hb={class:"amplify-visually-hidden"},Kb=["data-error","data-checked"],Yb=["data-checked"],qb=n.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),Jb=[qb],Zb={class:"amplify-text amplify-checkbox__label"},Qb={key:0,class:"amplify-text amplify-field__error-message"},Ua=n.defineComponent({__name:"amplify-check-box",props:{errorMessage:{default:""}},setup(e){const t=e,r=n.ref(!1),o=n.ref(P("I agree with the Terms and Conditions")),{errorMessage:i}=n.toRefs(t);return(a,s)=>(n.openBlock(),n.createElementBlock("div",jb,[n.createElementVNode("label",Wb,[n.createElementVNode("span",Hb,[n.createElementVNode("input",{onClick:s[0]||(s[0]=l=>r.value=!r.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),n.createElementVNode("span",{class:n.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!r.value}]),"aria-hidden":"true","data-focus":"false","data-error":!r.value,"data-checked":r.value},[(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:n.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":r.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":r.value},Jb,10,Yb))],10,Kb),n.createElementVNode("span",Zb,n.toDisplayString(o.value),1)]),r.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("p",Qb,n.toDisplayString(n.unref(i)),1))]))}}),Xb={install:e=>{e.component("SignIn",Or),e.component("SignUp",$r),e.component("FederatedSignIn",En),e.component("Authenticator",Na),e.component("RenderInfo",Ma),e.component("PasswordControl",Fr),e.component("ForceNewPassword",Kr),e.component("ForgotPassword",Yr),e.component("ConfirmResetPassword",qr),e.component("ConfirmSignUp",Br),e.component("ConfirmSignIn",Vr),e.component("VerifyUser",Jr),e.component("ConfirmVerifyUser",Zr),e.component("SelectMfaType",Qr),e.component("SetupEmail",Xr),e.component("AmplifyTextField",xa),e.component("AmplifyCheckBox",Ua),e.component("AmplifyButton",ne),e.component("BaseFormField",pa),e.component("BaseFormFields",ge),e.component("AuthenticatorSignUpFormFields",Rr),e.component("AuthenticatorForceNewPasswordFormFields",Hr)}};exports.AmplifyButton=ne;exports.AmplifyCheckBox=Ua;exports.AmplifyTextField=xa;exports.Authenticator=Na;exports.AuthenticatorForceNewPasswordFormFields=Hr;exports.AuthenticatorSignUpFormFields=Rr;exports.ConfirmResetPassword=qr;exports.ConfirmSignIn=Vr;exports.ConfirmSignUp=Br;exports.ConfirmVerifyUser=Zr;exports.FederatedSignIn=En;exports.ForceNewPassword=Kr;exports.ForgotPassword=Yr;exports.PasswordControl=Fr;exports.RenderInfo=Ma;exports.SelectMfaType=Qr;exports.SetupEmail=Xr;exports.SignIn=Or;exports.SignUp=$r;exports.VerifyUser=Jr;exports.default=Xb;exports.translations=sl;exports.useAuthenticator=ee;
26
+ `);const s=$b(t,r,i),l=Nn.getSymbolSize(t),c=new Ib(l);return Ub(c,t),Fb(c),Ob(c,t),Vn(c,r,0),t>=7&&Rb(c,t),Db(c,s),isNaN(o)&&(o=nr.getBestMask(c,Vn.bind(null,c,r))),nr.applyMask(o,c),Vn(c,r,o),{modules:c,version:t,errorCorrectionLevel:r,maskPattern:o,segments:i}}ma.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let o=$n.M,i,a;return typeof r<"u"&&(o=$n.from(r.errorCorrectionLevel,$n.M),i=an.from(r.version),a=nr.from(r.maskPattern),r.toSJISFunc&&Nn.setToSJISFunction(r.toSJISFunc)),Vb(t,i,o,a)};var Ia={},jr={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let o=r.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+r);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(a){return[a,a]}))),o.length===6&&o.push("F","F");const i=parseInt(o.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const i=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,a=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;return{width:a,scale:a?4:s,margin:i,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,i){return i.width&&i.width>=o+i.margin*2?i.width/(o+i.margin*2):i.scale},e.getImageWidth=function(o,i){const a=e.getScale(o,i);return Math.floor((o+i.margin*2)*a)},e.qrToImageData=function(o,i,a){const s=i.modules.size,l=i.modules.data,c=e.getScale(s,a),u=Math.floor((s+a.margin*2)*c),d=a.margin*c,m=[a.color.light,a.color.dark];for(let f=0;f<u;f++)for(let p=0;p<u;p++){let g=(f*u+p)*4,y=a.color.light;if(f>=d&&p>=d&&f<u-d&&p<u-d){const w=Math.floor((f-d)/c),h=Math.floor((p-d)/c);y=m[l[w*s+h]?1:0]}o[g++]=y.r,o[g++]=y.g,o[g++]=y.b,o[g]=y.a}}})(jr);(function(e){const t=jr;function r(i,a,s){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,s,l){let c=l,u=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=o()),c=t.getOptions(c);const d=t.getImageWidth(a.modules.size,c),m=u.getContext("2d"),f=m.createImageData(d,d);return t.qrToImageData(f.data,a,c),r(m,u,d),m.putImageData(f,0,0),u},e.renderToDataURL=function(a,s,l){let c=l;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=e.render(a,s,c),d=c.type||"image/png",m=c.rendererOpts||{};return u.toDataURL(d,m.quality)}})(Ia);var Pa={};const zb=jr;function ti(e,t){const r=e.a/255,o=t+'="'+e.hex+'"';return r<1?o+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':o}function zn(e,t,r){let o=e+t;return typeof r<"u"&&(o+=" "+r),o}function Lb(e,t,r){let o="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);!c&&!a&&(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(o+=a?zn("M",c+r,.5+u+r):zn("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(o+=zn("h",s),s=0)):i++}return o}Pa.render=function(t,r,o){const i=zb.getOptions(r),a=t.modules.size,s=t.modules.data,l=a+i.margin*2,c=i.color.light.a?"<path "+ti(i.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+ti(i.color.dark,"stroke")+' d="'+Lb(s,a,i.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+d+' shape-rendering="crispEdges">'+c+u+`</svg>
27
+ `;return typeof o=="function"&&o(null,f),f};const Gb=nb,or=ma,ka=Ia,jb=Pa;function Wr(e,t,r,o,i){const a=[].slice.call(arguments,1),s=a.length,l=typeof a[s-1]=="function";if(!l&&!Gb())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=o=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=o,o=void 0):(i=o,o=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=o=void 0):s===2&&!t.getContext&&(o=r,r=t,t=void 0),new Promise(function(c,u){try{const d=or.create(r,o);c(e(d,t,o))}catch(d){u(d)}})}try{const c=or.create(r,o);i(null,e(c,t,o))}catch(c){i(c)}}kt.create=or.create;kt.toCanvas=Wr.bind(null,ka.render);kt.toDataURL=Wr.bind(null,ka.renderToDataURL);kt.toString=Wr.bind(null,function(e,t,r){return jb.render(e,r)});const Wb={key:0},Hb=["src"],Kb={"data-amplify-copy-tooltip":""},Yb=n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})],-1),qb=n.defineComponent({__name:"setup-totp",setup(e){const t=new ir.ConsoleLogger("SetupTotp-logger"),r=ee(),{updateForm:o,submitForm:i,toSignIn:a,totpSecretCode:s,username:l,QRFields:c}=r,{error:u,isPending:d}=n.toRefs(r),{totpIssuer:m="AWSCognito",totpUsername:f=l}=c??{},p=Ss(m,f,s),g=n.reactive({qrCodeImageSource:"",isLoading:!0}),{getCopyText:y,getCopiedText:w,getBackToSignInText:h,getConfirmText:S}=ie,v=n.ref(y());function _(){s&&navigator.clipboard.writeText(s),v.value=w()}n.onMounted(async()=>{try{g.qrCodeImageSource=await kt.toDataURL(p)}catch(k){t.error(k)}finally{g.isLoading=!1}});const C=n.computed(()=>h()),E=n.computed(()=>S()),A=k=>{const{name:N,value:U}=k.target;o({name:N,value:U})},T=k=>{i(de(k))},P=()=>{a()};return(k,N)=>{const U=ve,F=X,H=fe,re=ne,ae=ce,J=pe,te=ue;return n.renderSlot(k.$slots,"confirmSetupTotpI",n.normalizeProps(n.guardReactiveProps(k.$attrs)),()=>[n.createVNode(F,n.normalizeProps(n.guardReactiveProps(k.$attrs)),{default:n.withCtx(()=>[n.createVNode(te,{"data-amplify-authenticator-setup-totp":"",onInput:A,onSubmit:n.withModifiers(T,["prevent"])},{default:n.withCtx(()=>[n.createVNode(J,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(d)},{default:n.withCtx(()=>[n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(k.$slots,"header",{},()=>[n.createVNode(U,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(" Setup TOTP ")]),_:1})]),n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[g.isLoading?(n.openBlock(),n.createElementBlock("p",Wb,"Loading...")):(n.openBlock(),n.createElementBlock("img",{key:1,class:"amplify-image","data-amplify-qrcode":"",src:g.qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,Hb)),n.createVNode(F,{class:"amplify-flex","data-amplify-copy":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(n.unref(s)),1),n.createVNode(F,{"data-amplify-copy-svg":"",onClick:_},{default:n.withCtx(()=>[n.createElementVNode("div",Kb,n.toDisplayString(v.value),1),Yb]),_:1})]),_:1}),n.createVNode(ge,{route:"setupTotp"})]),_:1}),n.createVNode(ae,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(u)?(n.openBlock(),n.createBlock(H,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(u))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:n.unref(d)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(E)),1)]),_:1},8,["disabled"]),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(P,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(C)),1)]),_:1},8,["onClick"]),n.renderSlot(k.$slots,"footer")]),_:3})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Hr=n.defineComponent({__name:"authenticator-force-new-password-form-fields",setup(e){return(t,r)=>(n.openBlock(),n.createBlock(ge,{route:"forceNewPassword"}))}}),Kr=n.defineComponent({__name:"force-new-password",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateBlur:i,updateForm:a}=t,{error:s,isPending:l}=n.toRefs(t),{getChangePasswordText:c,getChangingText:u,getBackToSignInText:d}=ie,m=n.computed(()=>c()),f=n.computed(()=>u()),p=n.computed(()=>d()),g=()=>{o()},y=v=>{w(v)},w=v=>{r(de(v))},h=v=>{const{name:_,value:C}=v.target;a({name:_,value:C})};function S(v){const{name:_}=v.target;i({name:_})}return(v,_)=>{const C=ve,E=X,A=fe,T=ne,P=ce,k=pe,N=ue;return n.renderSlot(v.$slots,"forceNewPasswordI",n.normalizeProps(n.guardReactiveProps(v.$attrs)),()=>[n.createVNode(E,n.normalizeProps(n.guardReactiveProps(v.$attrs)),{default:n.withCtx(()=>[n.createVNode(N,{"data-amplify-authenticator-forcenewpassword":"",onInput:h,onBlurCapture:S,onSubmit:n.withModifiers(y,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"header",{},()=>[n.createVNode(C,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1})]),n.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"force-new-password-form-fields",{},()=>[n.createVNode(Hr)])]),_:3}),n.createVNode(P,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(A,{key:0,"data-ui-error":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)?n.unref(f)+"…":n.unref(m)),1)]),_:1},8,["disabled"]),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(v.$slots,"footer",{onHaveAccountClicked:g,onForceNewPasswordSubmit:y})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Yr=n.defineComponent({__name:"forgot-password",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateForm:i}=t,{error:a,isPending:s}=n.toRefs(t),{getBackToSignInText:l,getResetYourPasswordText:c,getSendCodeText:u}=ie,d=n.computed(()=>l()),m=n.computed(()=>c()),f=n.computed(()=>u()),p=w=>{r(de(w))},g=w=>{const{name:h,value:S}=w.target;i({name:h,value:S})},y=()=>{o()};return(w,h)=>{const S=ve,v=pe,_=fe,C=ne,E=ce,A=X,T=ue;return n.renderSlot(w.$slots,"forgotPasswordSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode(T,n.mergeProps(w.$attrs,{"data-amplify-authenticator-forgotpassword":"",onInput:g,onSubmit:n.withModifiers(p,["prevent"])}),{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(S,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1})]),n.createVNode(v,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(s)},{default:n.withCtx(()=>[n.createVNode(ge,{route:"forgotPassword"})]),_:1},8,["disabled"]),n.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(_,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(y,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer",{onBackToSignInClicked:y,onResetPasswordSubmit:p})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),qr=n.defineComponent({__name:"confirm-reset-password",setup(e){const t=ee(),{resendCode:r,submitForm:o,updateBlur:i,updateForm:a}=t,{error:s,isPending:l}=n.toRefs(t),{getResendCodeText:c,getResetYourPasswordText:u,getSubmitText:d}=ie,m=n.computed(()=>c()),f=n.computed(()=>u()),p=n.computed(()=>d()),g=v=>{y(v)},y=v=>{o(de(v))},w=()=>{r()},h=v=>{const{name:_,value:C}=v.target;a({name:_,value:C})};function S(v){const{name:_}=v.target;i({name:_})}return(v,_)=>{const C=ve,E=X,A=fe,T=ne,P=ce,k=pe,N=ue;return n.renderSlot(v.$slots,"confirmResetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(v.$attrs)),()=>[n.createVNode(E,n.normalizeProps(n.guardReactiveProps(v.$attrs)),{default:n.withCtx(()=>[n.createVNode(N,{"data-amplify-authenticator-confirmResetpassword":"",onInput:h,onBlurCapture:S,onSubmit:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"header",{},()=>[n.createVNode(C,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmResetPassword"})]),_:1}),n.createVNode(P,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(A,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["disabled"]),n.createVNode(T,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["onClick"]),n.renderSlot(v.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Jr=n.defineComponent({__name:"verify-user",setup(e){const t=ee(),{isPending:r,unverifiedUserAttributes:o,error:i}=n.toRefs(t),{skipVerification:a,submitForm:s,updateForm:l}=t,{getAccountRecoveryInfoText:c,getSkipText:u,getVerifyText:d,getVerifyContactText:m}=ie,f=n.computed(()=>c()),p=n.computed(()=>u()),g=n.computed(()=>d()),y=n.computed(()=>m()),w=_=>{const{name:C,value:E}=_.target;l({name:C,value:E})},h=_=>{S(_)},S=_=>{s(de(_))},v=()=>{a()};return(_,C)=>{const E=ve,A=Pt,T=$r,P=It,k=X,N=fe,U=ne,F=ce,H=pe,re=ue;return n.renderSlot(_.$slots,"verifyUserSlotI",{},()=>[n.createVNode(k,null,{default:n.withCtx(()=>[n.createVNode(re,{onInput:w,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(H,{disabled:n.unref(r),class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"header",{},()=>[n.createVNode(E,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1})]),n.createVNode(k,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(y)),1)]),_:1}),n.createVNode(k,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o),(ae,J,te)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:ae},[ae?(n.openBlock(),n.createBlock(A,{key:0,class:"amplify-flex amplify-radio","data-amplify-verify-label":""},{default:n.withCtx(()=>[n.createVNode(T,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(vt)[J].label))+": "+n.toDisplayString(n.unref(ys)(n.unref(vt)[J].label,ae)),1)]),_:2},1024),n.createVNode(P,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",name:"unverifiedAttr",type:"radio",checked:te===0,value:J},null,8,["checked","value"]),n.createVNode(T,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"})]),_:2},1024)):n.createCommentVNode("",!0)],64))),128))]),_:1})]),_:1}),n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(N,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(i))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(U,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:n.unref(r)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(g)),1)]),_:1},8,["disabled"]),n.createVNode(U,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(v,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["onClick"]),n.renderSlot(_.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Zr=n.defineComponent({__name:"confirm-verify-user",setup(e){const t=ee(),{error:r,isPending:o}=n.toRefs(t),{skipVerification:i,submitForm:a,updateForm:s}=t,{getAccountRecoveryInfoText:l,getSkipText:c,getSubmitText:u}=ie,d=n.computed(()=>l()),m=n.computed(()=>c()),f=n.computed(()=>u()),p=h=>{const{name:S,value:v}=h.target;s({name:S,value:v})},g=h=>{y(h)},y=h=>{a(de(h))},w=()=>{i()};return(h,S)=>{const v=ve,_=X,C=fe,E=ne,A=ce,T=pe,P=ue;return n.renderSlot(h.$slots,"confirmVerifyUserSlotI",n.normalizeProps(n.guardReactiveProps(h.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(h.$attrs)),{default:n.withCtx(()=>[n.createVNode(P,{onInput:p,onSubmit:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createVNode(T,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(o)},{default:n.withCtx(()=>[n.renderSlot(h.$slots,"header",{},()=>[n.createVNode(v,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"confirmVerifyUser"})]),_:1}),n.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(r)?(n.openBlock(),n.createBlock(C,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(r))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(E,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(w,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["onClick"]),n.renderSlot(h.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Qr=n.defineComponent({__name:"select-mfa-type",setup(e){const t=Math.floor(Math.random()*999999),r=ee(),{submitForm:o,toSignIn:i,updateForm:a}=r,{error:s,isPending:l,challengeName:c,allowedMfaTypes:u}=n.toRefs(r),d=n.computed(()=>c.value),{getBackToSignInText:m,getConfirmText:f,getSelectMfaTypeByChallengeName:p,getMfaTypeLabelByValue:g,getSelectMfaTypeText:y}=ie,w=n.computed(()=>p(d.value)),h=n.computed(()=>m()),S=n.computed(()=>f()),v=n.computed(()=>y()),_=A=>{const{name:T,value:P}=A.target;a({name:T,value:P})},C=A=>{o(de(A))},E=()=>{i()};return(A,T)=>{const P=ve,k=Pt,N=$r,U=It,F=X,H=fe,re=ne,ae=ce,J=pe,te=ue;return n.renderSlot(A.$slots,"selectMfaTypeSlotI",n.normalizeProps(n.guardReactiveProps(A.$attrs)),()=>[n.createVNode(F,n.normalizeProps(n.guardReactiveProps(A.$attrs)),{default:n.withCtx(()=>[n.createVNode(te,{"data-amplify-authenticator-selectmfatype":"",onInput:_,onSubmit:n.withModifiers(C,["prevent"])},{default:n.withCtx(()=>[n.createVNode(J,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(l)},{default:n.withCtx(()=>[n.renderSlot(A.$slots,"header",{},()=>[n.createVNode(P,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(w)),1)]),_:1})]),n.createVNode(F,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(k,{class:"amplify-visually-hidden amplify-label",id:`amplify-field-${n.unref(t)}`},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["id"]),n.createVNode(F,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":`amplify-field-${n.unref(t)}`},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(u),(Z,Re)=>(n.openBlock(),n.createBlock(k,{key:Z,class:"amplify-flex amplify-radio","data-amplify-selectmfatype-label":""},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(g)(Z)),1)]),_:2},1024),n.createVNode(U,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-selectmfatype-input":"",name:"mfa_type",type:"radio",value:Z,checked:Re===0},null,8,["value","checked"]),n.createVNode(N,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"})]),_:2},1024))),128))]),_:1},8,["aria-labelledby"])]),_:1}),n.createVNode(ae,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(H,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(l)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(S)),1)]),_:1},8,["disabled"]),n.createVNode(re,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(E,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1},8,["onClick"]),n.renderSlot(A.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Xr=n.defineComponent({__name:"setup-email",setup(e){const t=ee(),{submitForm:r,toSignIn:o,updateForm:i}=t,{error:a,isPending:s}=n.toRefs(t),{getBackToSignInText:l,getConfirmText:c,getSetupEmailText:u}=ie,d=n.computed(()=>u()),m=n.computed(()=>l()),f=n.computed(()=>c()),p=w=>{const{name:h,value:S}=w.target;i({name:h,value:S})},g=w=>{r(de(w))},y=()=>{o()};return(w,h)=>{const S=ve,v=X,_=fe,C=ne,E=ce,A=pe,T=ue;return n.renderSlot(w.$slots,"setupEmailSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode(v,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(T,{"data-amplify-authenticator-setupemail":"",onInput:p,onSubmit:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-flex amplify-authenticator__column",disabled:n.unref(s)},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(S,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(v,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.createVNode(ge,{route:"setupEmail"})]),_:1}),n.createVNode(E,{class:"amplify-flex amplify-authenticator__column"},{default:n.withCtx(()=>[n.unref(a)?(n.openBlock(),n.createBlock(_,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(I)(n.unref(a))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["disabled"]),n.createVNode(C,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(y,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer")]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Jb=["data-variation"],Zb={"data-amplify-container":""},Qb=["data-amplify-router-content"],Xb={key:1,"data-amplify-router-content":""},Na=n.defineComponent({__name:"authenticator",props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},setup(e){const t=e,{initialState:r,loginMechanisms:o,variation:i,services:a,signUpAttributes:s,socialProviders:l,hideSignUp:c,formFields:u}=n.toRefs(t);let d;const m=n.ref(!1),{service:f,send:p,state:g}=Ur(),y=f.subscribe(M=>{M.matches("setup")&&!m.value&&(p({type:"INIT",data:{initialState:r.value,loginMechanisms:o.value,socialProviders:l.value,signUpAttributes:s.value,services:a.value,formFields:u.value}}),m.value=!0)}).unsubscribe,w=ee(),{route:h,signOut:S,toSignIn:v,toSignUp:_,user:C}=n.toRefs(w);n.onMounted(()=>{d=dC({componentName:"Authenticator",packageName:"vue",version:XC})}),n.onUnmounted(()=>{d(),y()});const E=n.ref(),A=n.ref(),T=n.ref(),P=n.ref(),k=n.ref(),N=n.ref(),U=n.ref(),F=n.ref(),H=n.ref(),re=n.ref(),ae=n.ref(),J=n.ref(),{getSignInTabText:te,getSignUpTabText:Z}=ie,Re=n.computed(()=>te()),se=n.computed(()=>Z()),ot=n.computed(()=>h.value==="signIn"||h.value==="signUp"),Mn=n.computed(()=>["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","forgotPassword","selectMfaType","setupEmail","setupTotp","signIn","signUp","verifyUser"].includes(h.value));return(M,Me)=>{const eo=QC,Fa=JC;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.unref(Mn)?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0},M.$attrs,{"data-amplify-authenticator":"","data-variation":n.unref(i)}),[n.createElementVNode("div",Zb,[n.renderSlot(M.$slots,"header"),n.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":n.unref(ot)?void 0:""},[n.unref(ot)&&!n.unref(c)?(n.openBlock(),n.createBlock(Fa,{key:0},{default:n.withCtx(()=>[n.createVNode(eo,{active:n.unref(h)==="signIn",id:"signIn",label:n.unref(Re),onClick:n.unref(v)},null,8,["active","label","onClick"]),n.createVNode(eo,{active:n.unref(h)==="signUp",id:"signUp",label:n.unref(se),onClick:n.unref(_)},null,8,["active","label","onClick"])]),_:1})):n.createCommentVNode("",!0),n.unref(ot)?(n.openBlock(),n.createElementBlock("div",Xb,[n.unref(h)==="signIn"?(n.openBlock(),n.createBlock(Or,{key:0,id:"signIn-panel",role:"tabpanel",class:"amplify-tabs__panel amplify-tabs__panel--active","aria-labelledby":"signIn-tab",ref_key:"signInComponent",ref:E},{signInSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-in")]),form:n.withCtx(({info:xn,onSignInSubmit:Oa,onForgotPasswordClicked:Ra,onInput:Da})=>[n.renderSlot(M.$slots,"sign-in-form",{info:xn,onInput:Da,onSignInSubmit:Oa,onForgotPasswordClicked:Ra})]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="signUp"&&!n.unref(c)?(n.openBlock(),n.createBlock(Dr,{key:1,id:"signUp-panel",class:"amplify-tabs__panel amplify-tabs__panel--active",role:"tabpanel","aria-labelledby":"signUp-tab",ref_key:"signUpComponent",ref:A},{signUpSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-up")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-up-header")]),"signup-fields":n.withCtx(({info:xn})=>[n.renderSlot(M.$slots,"sign-up-fields",{info:xn})]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.unref(h)==="confirmSignUp"?(n.openBlock(),n.createBlock(Br,{key:2,ref_key:"confirmSignUpComponent",ref:T},{confirmSignUpSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-up")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-up-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="forgotPassword"?(n.openBlock(),n.createBlock(Yr,{key:3,ref_key:"ForgotPasswordComponent",ref:U},{forgotPasswordSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"forgot-password")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"forgot-password-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"forgot-password-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="confirmResetPassword"?(n.openBlock(),n.createBlock(qr,{key:4,ref_key:"confirmResetPasswordComponent",ref:F},{confirmResetPasswordSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-reset-password")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-reset-password-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-reset-password-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="confirmSignIn"?(n.openBlock(),n.createBlock(Vr,{key:5,ref_key:"confirmSignInComponent",ref:P},{confirmSignInSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-in")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="setupTotp"?(n.openBlock(),n.createBlock(qb,{key:6,ref_key:"confirmSetupTotpComponent",ref:k},{confirmSetupTotpI:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-totp")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-totp-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-totp-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="forceNewPassword"?(n.openBlock(),n.createBlock(Kr,{key:7,ref_key:"forceNewPasswordComponent",ref:N},{forceNewPasswordI:n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password-header")]),"force-new-password-form-fields":n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password-form-fields")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"force-new-password-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="verifyUser"?(n.openBlock(),n.createBlock(Jr,{key:8,ref_key:"verifyUserComponent",ref:H},{verifyUserSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"verify-user")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"verify-user-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"verify-user-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="confirmVerifyUser"?(n.openBlock(),n.createBlock(Zr,{key:9,ref_key:"confirmVerifyUserComponent",ref:re},{confirmVerifyUserSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-verify-user")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-verify-user-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"confirm-verify-user-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="selectMfaType"?(n.openBlock(),n.createBlock(Qr,{key:10,ref_key:"selectMfaTypeComponent",ref:ae},{selectMfaTypeSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"select-mfa-type")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"select-mfa-type-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"select-mfa-type-footer")]),_:3},512)):n.createCommentVNode("",!0),n.unref(h)==="setupEmail"?(n.openBlock(),n.createBlock(Xr,{key:11,ref_key:"setupEmailComponent",ref:J},{setupEmailSlotI:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-email")]),header:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-email-header")]),footer:n.withCtx(()=>[n.renderSlot(M.$slots,"setup-email-footer")]),_:3},512)):n.createCommentVNode("",!0)],8,Qb),n.renderSlot(M.$slots,"footer")])],16,Jb)):n.createCommentVNode("",!0),n.unref(h)==="authenticated"?n.renderSlot(M.$slots,"default",{key:1,user:n.unref(C),state:n.unref(g),signOut:n.unref(S),send:n.unref(p)}):n.createCommentVNode("",!0)],64)}}}),Ma=n.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),xa=n.defineComponent({__name:"amplify-text-field",props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"},hideLabel:{type:Boolean,default:!0}},setup(e){const t=e,{label:r,id:o,autocomplete:i,placeholder:a,required:s,name:l,type:c}=n.toRefs(t);return(u,d)=>{const m=Pt,f=It,p=X;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(m,{class:n.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},8,["class","for"]),n.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(f,{class:"amplify-input amplify-field-group__control",id:n.unref(o),"aria-invalid":"false",autocomplete:n.unref(i),placeholder:n.unref(a),required:n.unref(s),name:n.unref(l),disabled:e.disabled,type:n.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),eA={class:"amplify-flex amplify-field amplify-checkboxfield"},tA={class:"amplify-flex amplify-checkbox"},nA={class:"amplify-visually-hidden"},rA=["data-error","data-checked"],oA=["data-checked"],iA=n.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),aA=[iA],sA={class:"amplify-text amplify-checkbox__label"},lA={key:0,class:"amplify-text amplify-field__error-message"},Ua=n.defineComponent({__name:"amplify-check-box",props:{errorMessage:{default:""}},setup(e){const t=e,r=n.ref(!1),o=n.ref(I("I agree with the Terms and Conditions")),{errorMessage:i}=n.toRefs(t);return(a,s)=>(n.openBlock(),n.createElementBlock("div",eA,[n.createElementVNode("label",tA,[n.createElementVNode("span",nA,[n.createElementVNode("input",{onClick:s[0]||(s[0]=l=>r.value=!r.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),n.createElementVNode("span",{class:n.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!r.value}]),"aria-hidden":"true","data-focus":"false","data-error":!r.value,"data-checked":r.value},[(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:n.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":r.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":r.value},aA,10,oA))],10,rA),n.createElementVNode("span",sA,n.toDisplayString(o.value),1)]),r.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("p",lA,n.toDisplayString(n.unref(i)),1))]))}}),cA={install:e=>{e.component("SignIn",Or),e.component("SignUp",Dr),e.component("FederatedSignIn",Tn),e.component("Authenticator",Na),e.component("RenderInfo",Ma),e.component("PasswordControl",Fr),e.component("ForceNewPassword",Kr),e.component("ForgotPassword",Yr),e.component("ConfirmResetPassword",qr),e.component("ConfirmSignUp",Br),e.component("ConfirmSignIn",Vr),e.component("VerifyUser",Jr),e.component("ConfirmVerifyUser",Zr),e.component("SelectMfaType",Qr),e.component("SetupEmail",Xr),e.component("AmplifyTextField",xa),e.component("AmplifyCheckBox",Ua),e.component("AmplifyButton",ne),e.component("BaseFormField",pa),e.component("BaseFormFields",ge),e.component("AuthenticatorSignUpFormFields",Rr),e.component("AuthenticatorForceNewPasswordFormFields",Hr)}};exports.AmplifyButton=ne;exports.AmplifyCheckBox=Ua;exports.AmplifyTextField=xa;exports.Authenticator=Na;exports.AuthenticatorForceNewPasswordFormFields=Hr;exports.AuthenticatorSignUpFormFields=Rr;exports.ConfirmResetPassword=qr;exports.ConfirmSignIn=Vr;exports.ConfirmSignUp=Br;exports.ConfirmVerifyUser=Zr;exports.FederatedSignIn=Tn;exports.ForceNewPassword=Kr;exports.ForgotPassword=Yr;exports.PasswordControl=Fr;exports.RenderInfo=Ma;exports.SelectMfaType=Qr;exports.SetupEmail=Xr;exports.SignIn=Or;exports.SignUp=Dr;exports.VerifyUser=Jr;exports.default=cA;exports.translations=sl;exports.useAuthenticator=ee;