@aws-amplify/ui-vue 2.4.7 → 2.4.8

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.
Files changed (40) hide show
  1. package/dist/components/alias-control.vue.d.ts +1 -1
  2. package/dist/components/alias-control.vue.d.ts.map +1 -1
  3. package/dist/components/authenticator-force-new-password-form-fields.vue.d.ts.map +1 -1
  4. package/dist/components/authenticator-sign-up-form-fields.vue.d.ts.map +1 -1
  5. package/dist/components/authenticator.vue.d.ts.map +1 -1
  6. package/dist/components/confirm-reset-password.vue.d.ts.map +1 -1
  7. package/dist/components/confirm-sign-in.vue.d.ts.map +1 -1
  8. package/dist/components/confirm-sign-up.vue.d.ts.map +1 -1
  9. package/dist/components/confirm-verify-user.vue.d.ts.map +1 -1
  10. package/dist/components/federated-sign-in-button.vue.d.ts.map +1 -1
  11. package/dist/components/federated-sign-in.vue.d.ts.map +1 -1
  12. package/dist/components/force-new-password.vue.d.ts.map +1 -1
  13. package/dist/components/password-control.vue.d.ts.map +1 -1
  14. package/dist/components/primitives/amplify-button.vue.d.ts.map +1 -1
  15. package/dist/components/primitives/amplify-check-box.vue.d.ts.map +1 -1
  16. package/dist/components/primitives/amplify-text-field.vue.d.ts +1 -1
  17. package/dist/components/primitives/amplify-text-field.vue.d.ts.map +1 -1
  18. package/dist/components/primitives/base-alert.vue.d.ts +1 -0
  19. package/dist/components/primitives/base-alert.vue.d.ts.map +1 -1
  20. package/dist/components/primitives/base-field-set.vue.d.ts.map +1 -1
  21. package/dist/components/primitives/base-footer.vue.d.ts.map +1 -1
  22. package/dist/components/primitives/base-form-field.vue.d.ts.map +1 -1
  23. package/dist/components/primitives/base-form-fields.vue.d.ts.map +1 -1
  24. package/dist/components/primitives/base-form.vue.d.ts.map +1 -1
  25. package/dist/components/primitives/base-input.vue.d.ts.map +1 -1
  26. package/dist/components/primitives/base-select.vue.d.ts.map +1 -1
  27. package/dist/components/primitives/base-two-tab-item.vue.d.ts.map +1 -1
  28. package/dist/components/reset-password.vue.d.ts.map +1 -1
  29. package/dist/components/setup-totp.vue.d.ts.map +1 -1
  30. package/dist/components/sign-in.vue.d.ts.map +1 -1
  31. package/dist/components/sign-up.vue.d.ts.map +1 -1
  32. package/dist/components/verify-user.vue.d.ts.map +1 -1
  33. package/dist/composables/useAuth.d.ts +1 -1
  34. package/dist/composables/useAuth.d.ts.map +1 -1
  35. package/dist/composables/useUtils.d.ts +18 -18
  36. package/dist/composables/useUtils.d.ts.map +1 -1
  37. package/dist/index.cjs +12 -25
  38. package/dist/index.js +65 -26
  39. package/dist/style.css +1 -1
  40. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1,4 +1,5 @@
1
- "use strict";var xs=Object.defineProperty,Us=Object.defineProperties;var Os=Object.getOwnPropertyDescriptors;var Ho=Object.getOwnPropertySymbols;var Rs=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable;var Ko=(e,t,n)=>t in e?xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Et=(e,t)=>{for(var n in t||(t={}))Rs.call(t,n)&&Ko(e,n,t[n]);if(Ho)for(var n of Ho(t))Bs.call(t,n)&&Ko(e,n,t[n]);return e},It=(e,t)=>Us(e,Os(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),ue=require("aws-amplify");const Oe=o.defineComponent({setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"fieldSetI",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("fieldset",o.mergeProps(n.$attrs,{"data-amplify-fieldset":""}),[o.renderSlot(n.$slots,"default")],16)])}}),Vs=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],we=o.defineComponent({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:n,fullWidth:r,size:a,variation:i,fontWeight:s}=o.toRefs(t);return(u,c)=>o.renderSlot(u.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(u.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:["amplify-button",{[`amplify-button--${o.unref(i)}`]:o.unref(i),[`amplify-button--${o.unref(a)}`]:o.unref(a),"amplify-button--fullwidth":o.unref(r),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:o.unref(n),style:{fontWeight:o.unref(s)},"data-fullwidth":o.unref(r),"data-size":o.unref(a),"data-fontWeight":o.unref(s),"data-variation":o.unref(i),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},u.$attrs,{"data-amplify-button":""}),[o.renderSlot(u.$slots,"default")],16,Vs)])}}),Ds={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},Ms={class:"amplify-flex amplify-authenticator__icon-wrapper"},Fs=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[o.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),Ls=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[o.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),Re={setup(e){const t=o.ref(!0);function n(){t.value=!1}return(r,a)=>{const i=we;return t.value?(o.openBlock(),o.createElementBlock("div",Ds,[o.createElementVNode("div",Ms,[Fs,o.createElementVNode("div",null,[o.renderSlot(r.$slots,"default")])]),o.createVNode(i,{class:"amplify-field-group__control",fullwidth:!1,variation:"link",type:"button",onClick:n},{default:o.withCtx(()=>[Ls]),_:1})])):o.createCommentVNode("",!0)}}};var Nn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const js={};function zs(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ge=Nn(js,[["render",zs]]);const Be=o.defineComponent({setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"formt",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("form",o.mergeProps({"data-amplify-form":""},n.$attrs),[o.renderSlot(n.$slots,"default")],16)])}}),Ve=o.defineComponent({setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"footert",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("footer",o.normalizeProps(o.guardReactiveProps(n.$attrs)),[o.renderSlot(n.$slots,"default")],16)])}});function Gs(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function Ie(e){let t=0,n,r;const a=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...i))),Gs(a),n)}var be=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},Qa=function(e){var t;return(t=be(e))===null||t===void 0?void 0:t.context},Qt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Hs=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,Xa=Hs,Ks=Xa,qs=typeof self=="object"&&self&&self.Object===Object&&self,Ws=Ks||qs||Function("return this")(),De=Ws,Ys=De,Js=Ys.Symbol,Vt=Js,qo=Vt,ei=Object.prototype,Zs=ei.hasOwnProperty,Qs=ei.toString,$t=qo?qo.toStringTag:void 0;function Xs(e){var t=Zs.call(e,$t),n=e[$t];try{e[$t]=void 0;var r=!0}catch{}var a=Qs.call(e);return r&&(t?e[$t]=n:delete e[$t]),a}var eu=Xs,tu=Object.prototype,nu=tu.toString;function ru(e){return nu.call(e)}var ou=ru,Wo=Vt,au=eu,iu=ou,su="[object Null]",uu="[object Undefined]",Yo=Wo?Wo.toStringTag:void 0;function cu(e){return e==null?e===void 0?uu:su:Yo&&Yo in Object(e)?au(e):iu(e)}var pt=cu;function lu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Me=lu,du=pt,fu=Me,pu="[object AsyncFunction]",hu="[object Function]",mu="[object GeneratorFunction]",gu="[object Proxy]";function vu(e){if(!fu(e))return!1;var t=du(e);return t==hu||t==mu||t==pu||t==gu}var zr=vu,yu=9007199254740991;function Su(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yu}var Gr=Su,wu=zr,_u=Gr;function bu(e){return e!=null&&_u(e.length)&&!wu(e)}var Dt=bu,Cu=Array.isArray,ke=Cu;function Au(e){return e!=null&&typeof e=="object"}var Ge=Au,Eu=pt,Iu=Ge,$u="[object Symbol]";function Tu(e){return typeof e=="symbol"||Iu(e)&&Eu(e)==$u}var Hr=Tu;function Pu(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var ti=Pu;function Nu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ku=Nu,xu=pt,Uu=Ge,Ou="[object Arguments]";function Ru(e){return Uu(e)&&xu(e)==Ou}var Bu=Ru,Jo=Bu,Vu=Ge,ni=Object.prototype,Du=ni.hasOwnProperty,Mu=ni.propertyIsEnumerable,Fu=Jo(function(){return arguments}())?Jo:function(e){return Vu(e)&&Du.call(e,"callee")&&!Mu.call(e,"callee")},kn=Fu,Xe={exports:{}};function Lu(){return!1}var ju=Lu;(function(e,t){var n=De,r=ju,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||r;e.exports=l})(Xe,Xe.exports);var zu=9007199254740991,Gu=/^(?:0|[1-9]\d*)$/;function Hu(e,t){var n=typeof e;return t=t==null?zu:t,!!t&&(n=="number"||n!="symbol"&&Gu.test(e))&&e>-1&&e%1==0&&e<t}var xn=Hu,Ku=pt,qu=Gr,Wu=Ge,Yu="[object Arguments]",Ju="[object Array]",Zu="[object Boolean]",Qu="[object Date]",Xu="[object Error]",ec="[object Function]",tc="[object Map]",nc="[object Number]",rc="[object Object]",oc="[object RegExp]",ac="[object Set]",ic="[object String]",sc="[object WeakMap]",uc="[object ArrayBuffer]",cc="[object DataView]",lc="[object Float32Array]",dc="[object Float64Array]",fc="[object Int8Array]",pc="[object Int16Array]",hc="[object Int32Array]",mc="[object Uint8Array]",gc="[object Uint8ClampedArray]",vc="[object Uint16Array]",yc="[object Uint32Array]",ae={};ae[lc]=ae[dc]=ae[fc]=ae[pc]=ae[hc]=ae[mc]=ae[gc]=ae[vc]=ae[yc]=!0;ae[Yu]=ae[Ju]=ae[uc]=ae[Zu]=ae[cc]=ae[Qu]=ae[Xu]=ae[ec]=ae[tc]=ae[nc]=ae[rc]=ae[oc]=ae[ac]=ae[ic]=ae[sc]=!1;function Sc(e){return Wu(e)&&qu(e.length)&&!!ae[Ku(e)]}var wc=Sc;function _c(e){return function(t){return e(t)}}var Kr=_c,Ot={exports:{}};(function(e,t){var n=Xa,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(Ot,Ot.exports);var bc=wc,Cc=Kr,Zo=Ot.exports,Qo=Zo&&Zo.isTypedArray,Ac=Qo?Cc(Qo):bc,Un=Ac,Ec=ku,Ic=kn,$c=ke,Tc=Xe.exports,Pc=xn,Nc=Un,kc=Object.prototype,xc=kc.hasOwnProperty;function Uc(e,t){var n=$c(e),r=!n&&Ic(e),a=!n&&!r&&Tc(e),i=!n&&!r&&!a&&Nc(e),s=n||r||a||i,u=s?Ec(e.length,String):[],c=u.length;for(var l in e)(t||xc.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Pc(l,c)))&&u.push(l);return u}var ri=Uc,Oc=Object.prototype;function Rc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Oc;return e===n}var On=Rc;function Bc(e,t){return function(n){return e(t(n))}}var oi=Bc,Vc=oi,Dc=Vc(Object.keys,Object),Mc=Dc,Fc=On,Lc=Mc,jc=Object.prototype,zc=jc.hasOwnProperty;function Gc(e){if(!Fc(e))return Lc(e);var t=[];for(var n in Object(e))zc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ai=Gc,Hc=ri,Kc=ai,qc=Dt;function Wc(e){return qc(e)?Hc(e):Kc(e)}var Rn=Wc,ze,gr;(function(e){e.SMS_MFA="SMS_MFA",e.SOFTWARE_TOKEN_MFA="SOFTWARE_TOKEN_MFA",e.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",e.RESET_REQUIRED="RESET_REQUIRED",e.MFA_SETUP="MFA_SETUP"})(ze||(ze={})),function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(gr||(gr={}));/*! *****************************************************************************
1
+ "use strict";var Us=Object.defineProperty,Os=Object.defineProperties;var Rs=Object.getOwnPropertyDescriptors;var qo=Object.getOwnPropertySymbols;var Bs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var Wo=(e,t,n)=>t in e?Us(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,It=(e,t)=>{for(var n in t||(t={}))Bs.call(t,n)&&Wo(e,n,t[n]);if(qo)for(var n of qo(t))Vs.call(t,n)&&Wo(e,n,t[n]);return e},$t=(e,t)=>Os(e,Rs(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),ue=require("aws-amplify");const Oe=o.defineComponent({name:"base-field-set",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"fieldSetI",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("fieldset",o.mergeProps(n.$attrs,{"data-amplify-fieldset":""}),[o.renderSlot(n.$slots,"default")],16)])}}),Ds=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],we=o.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:n,fullWidth:r,size:a,variation:i,fontWeight:s}=o.toRefs(t);return(u,c)=>o.renderSlot(u.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(u.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:["amplify-button",{[`amplify-button--${o.unref(i)}`]:o.unref(i),[`amplify-button--${o.unref(a)}`]:o.unref(a),"amplify-button--fullwidth":o.unref(r),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:o.unref(n),style:{fontWeight:o.unref(s)},"data-fullwidth":o.unref(r),"data-size":o.unref(a),"data-fontWeight":o.unref(s),"data-variation":o.unref(i),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},u.$attrs,{"data-amplify-button":""}),[o.renderSlot(u.$slots,"default")],16,Ds)])}}),Ms={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},Fs={class:"amplify-flex amplify-authenticator__icon-wrapper"},Ls=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[o.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),js=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[o.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),Re={name:"base-alert",setup(e){const t=o.ref(!0);function n(){t.value=!1}return(r,a)=>{const i=we;return t.value?(o.openBlock(),o.createElementBlock("div",Ms,[o.createElementVNode("div",Fs,[Ls,o.createElementVNode("div",null,[o.renderSlot(r.$slots,"default")])]),o.createVNode(i,{class:"amplify-field-group__control",fullwidth:!1,variation:"link",type:"button",onClick:n},{default:o.withCtx(()=>[js]),_:1})])):o.createCommentVNode("",!0)}}};var Un=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const zs={};function Gs(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ge=Un(zs,[["render",Gs]]);const Be=o.defineComponent({name:"base-form",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"formt",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("form",o.mergeProps({"data-amplify-form":""},n.$attrs),[o.renderSlot(n.$slots,"default")],16)])}}),Ve=o.defineComponent({name:"base-footer",setup(e){let t=o.useSlots();return(n,r)=>o.renderSlot(n.$slots,"footert",o.mergeProps(n.$attrs,{slotData:o.unref(t).default&&o.unref(t).default()}),()=>[o.createElementVNode("footer",o.normalizeProps(o.guardReactiveProps(n.$attrs)),[o.renderSlot(n.$slots,"default")],16)])}});function Hs(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function Ie(e){let t=0,n,r;const a=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...i))),Hs(a),n)}var be=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},ei=function(e){var t;return(t=be(e))===null||t===void 0?void 0:t.context},nn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ks=typeof nn=="object"&&nn&&nn.Object===Object&&nn,ti=Ks,qs=ti,Ws=typeof self=="object"&&self&&self.Object===Object&&self,Ys=qs||Ws||Function("return this")(),De=Ys,Js=De,Zs=Js.Symbol,Lt=Zs,Yo=Lt,ni=Object.prototype,Qs=ni.hasOwnProperty,Xs=ni.toString,Tt=Yo?Yo.toStringTag:void 0;function eu(e){var t=Qs.call(e,Tt),n=e[Tt];try{e[Tt]=void 0;var r=!0}catch{}var a=Xs.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),a}var tu=eu,nu=Object.prototype,ru=nu.toString;function ou(e){return ru.call(e)}var au=ou,Jo=Lt,iu=tu,su=au,uu="[object Null]",cu="[object Undefined]",Zo=Jo?Jo.toStringTag:void 0;function lu(e){return e==null?e===void 0?cu:uu:Zo&&Zo in Object(e)?iu(e):su(e)}var ht=lu;function du(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Me=du,fu=ht,pu=Me,hu="[object AsyncFunction]",mu="[object Function]",gu="[object GeneratorFunction]",vu="[object Proxy]";function yu(e){if(!pu(e))return!1;var t=fu(e);return t==mu||t==gu||t==hu||t==vu}var Hr=yu,Su=9007199254740991;function wu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Su}var Kr=wu,_u=Hr,bu=Kr;function Cu(e){return e!=null&&bu(e.length)&&!_u(e)}var jt=Cu,Au=Array.isArray,ke=Au;function Eu(e){return e!=null&&typeof e=="object"}var Ge=Eu,Iu=ht,$u=Ge,Tu="[object Symbol]";function Pu(e){return typeof e=="symbol"||$u(e)&&Iu(e)==Tu}var qr=Pu;function Nu(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var ri=Nu;function ku(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var xu=ku,Uu=ht,Ou=Ge,Ru="[object Arguments]";function Bu(e){return Ou(e)&&Uu(e)==Ru}var Vu=Bu,Qo=Vu,Du=Ge,oi=Object.prototype,Mu=oi.hasOwnProperty,Fu=oi.propertyIsEnumerable,Lu=Qo(function(){return arguments}())?Qo:function(e){return Du(e)&&Mu.call(e,"callee")&&!Fu.call(e,"callee")},On=Lu,Qe={exports:{}};function ju(){return!1}var zu=ju;(function(e,t){var n=De,r=zu,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||r;e.exports=l})(Qe,Qe.exports);var Gu=9007199254740991,Hu=/^(?:0|[1-9]\d*)$/;function Ku(e,t){var n=typeof e;return t=t==null?Gu:t,!!t&&(n=="number"||n!="symbol"&&Hu.test(e))&&e>-1&&e%1==0&&e<t}var Rn=Ku,qu=ht,Wu=Kr,Yu=Ge,Ju="[object Arguments]",Zu="[object Array]",Qu="[object Boolean]",Xu="[object Date]",ec="[object Error]",tc="[object Function]",nc="[object Map]",rc="[object Number]",oc="[object Object]",ac="[object RegExp]",ic="[object Set]",sc="[object String]",uc="[object WeakMap]",cc="[object ArrayBuffer]",lc="[object DataView]",dc="[object Float32Array]",fc="[object Float64Array]",pc="[object Int8Array]",hc="[object Int16Array]",mc="[object Int32Array]",gc="[object Uint8Array]",vc="[object Uint8ClampedArray]",yc="[object Uint16Array]",Sc="[object Uint32Array]",ae={};ae[dc]=ae[fc]=ae[pc]=ae[hc]=ae[mc]=ae[gc]=ae[vc]=ae[yc]=ae[Sc]=!0;ae[Ju]=ae[Zu]=ae[cc]=ae[Qu]=ae[lc]=ae[Xu]=ae[ec]=ae[tc]=ae[nc]=ae[rc]=ae[oc]=ae[ac]=ae[ic]=ae[sc]=ae[uc]=!1;function wc(e){return Yu(e)&&Wu(e.length)&&!!ae[qu(e)]}var _c=wc;function bc(e){return function(t){return e(t)}}var Wr=bc,Dt={exports:{}};(function(e,t){var n=ti,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(Dt,Dt.exports);var Cc=_c,Ac=Wr,Xo=Dt.exports,ea=Xo&&Xo.isTypedArray,Ec=ea?Ac(ea):Cc,Bn=Ec,Ic=xu,$c=On,Tc=ke,Pc=Qe.exports,Nc=Rn,kc=Bn,xc=Object.prototype,Uc=xc.hasOwnProperty;function Oc(e,t){var n=Tc(e),r=!n&&$c(e),a=!n&&!r&&Pc(e),i=!n&&!r&&!a&&kc(e),s=n||r||a||i,u=s?Ic(e.length,String):[],c=u.length;for(var l in e)(t||Uc.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Nc(l,c)))&&u.push(l);return u}var ai=Oc,Rc=Object.prototype;function Bc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Rc;return e===n}var Vn=Bc;function Vc(e,t){return function(n){return e(t(n))}}var ii=Vc,Dc=ii,Mc=Dc(Object.keys,Object),Fc=Mc,Lc=Vn,jc=Fc,zc=Object.prototype,Gc=zc.hasOwnProperty;function Hc(e){if(!Lc(e))return jc(e);var t=[];for(var n in Object(e))Gc.call(e,n)&&n!="constructor"&&t.push(n);return t}var si=Hc,Kc=ai,qc=si,Wc=jt;function Yc(e){return Wc(e)?Kc(e):qc(e)}var Dn=Yc,ze,yr;(function(e){e.SMS_MFA="SMS_MFA",e.SOFTWARE_TOKEN_MFA="SOFTWARE_TOKEN_MFA",e.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",e.RESET_REQUIRED="RESET_REQUIRED",e.MFA_SETUP="MFA_SETUP"})(ze||(ze={})),function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(yr||(yr={}));var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},O.apply(this,arguments)};function ui(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function Y(e,t,n,r){return new(n||(n=Promise))(function(a,i){function s(l){try{c(r.next(l))}catch(d){i(d)}}function u(l){try{c(r.throw(l))}catch(d){i(d)}}function c(l){var d;l.done?a(l.value):(d=l.value,d instanceof n?d:new n(function(h){h(d)})).then(s,u)}c((r=r.apply(e,t||[])).next())})}function J(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(l){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&d[0]?r.return:d[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,d[1])).done)return a;switch(r=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,r=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!((a=a.length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=t.call(e,s)}catch(h){d=[6,h],r=0}finally{n=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([c,l])}}}function Ue(e,t,n){if(n||arguments.length===2)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var Jc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Zc=["username","email","phone_number"],Qc=Ue(Ue(Ue([],Zc,!0),Jc,!0),["confirmation_code","password","confirm_password"],!1),Sr=function(e){var t,n=(t=e==null?void 0:e.context.config)===null||t===void 0?void 0:t.loginMechanisms;return(n!=null?n:["username"])[0]},Xc=function(e){var t=function(n){return function(r){return e({type:n,data:r})}};return{resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toResetPassword:t("RESET_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},el=function(e){var t,n,r=(t=e.context)===null||t===void 0?void 0:t.user,a=be(e),i=ei(e),s=i==null?void 0:i.remoteError,u=O({},i==null?void 0:i.validationError),c=i==null?void 0:i.codeDeliveryDetails,l=Object.keys(u).length>0,d=e.hasTag("pending")||((n=be(e))===null||n===void 0?void 0:n.hasTag("pending")),h=function(){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(a==null?void 0:a.matches("autoSignIn")):return"autoSignIn";case(a==null?void 0:a.matches("confirmSignUp")):return"confirmSignUp";case(a==null?void 0:a.matches("confirmSignIn")):return"confirmSignIn";case(a==null?void 0:a.matches("setupTOTP")):return"setupTOTP";case(a==null?void 0:a.matches("signIn")):return"signIn";case(a==null?void 0:a.matches("signUp")):return"signUp";case(a==null?void 0:a.matches("forceNewPassword")):return"forceNewPassword";case(a==null?void 0:a.matches("resetPassword")):return"resetPassword";case(a==null?void 0:a.matches("confirmResetPassword")):return"confirmResetPassword";case(a==null?void 0:a.matches("verifyUser")):return"verifyUser";case(a==null?void 0:a.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),f=function(p){switch(p){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(h);return{error:s,hasValidationErrors:l,isPending:d,route:h,authStatus:f,user:r,validationErrors:u,codeDeliveryDetails:c}},ci=function(e){var t=e.send,n=e.state,r=Xc(t),a=el(n);return O(O({},r),a)},tl=["+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"],nl={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Code:"Code",Confirm:"Best\xE4tigen","Confirm Password":"Passwort best\xE4tigen","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code","Create a new account":"Einen neuen Account erstellen","Create account":"Hier registrieren","Create Account":"Account erstellen","Creating Account":"Account wird erstellt",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your email":"Geben Sie ihre Email ein","Forgot your password?":"Passwort vergessen? ","Forgot Password":"Passwort vergessen","Hide password":"Passwort verbergen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder",Password:"Passwort","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset password":"Passwort zur\xFCcksetzen","Reset your password":"Zur\xFCcksetzen des Passworts","Send Code":"Code senden","Sign in":"Anmelden","Sign In":"Anmelden","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign Out":"Abmelden","Sign Up":"Registrieren",Skip:"\xDCberspringen",Submit:"Abschicken","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht",Username:"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein",Verify:"Verifizieren","Verify Contact":"Kontakt verifizieren"},rl={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code",Confirm:"Confirm","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create Account":"Create Account","Creating Account":"Creating Account",Email:"Email","Enter your code":"Enter your code","Enter your username":"Enter your username","Enter your phone number":"Enter your phone number","Enter your email":"Enter your email","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading",Username:"Username","New password":"New password",Password:"Password","Phone Number":"Phone Number","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send Code":"Send Code","Send code":"Send code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in":"Sign in","Sign In":"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 to your account":"Sign in to your account","Create a new account":"Create a new account","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting","Verify Contact":"Verify Contact",Verify:"Verify"},ol={"Account recovery requires verified contact information":"La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada","Back to Sign In":"Volver a inicio de sesi\xF3n","Change Password":"Cambiar contrase\xF1a",Changing:"Cambiando",Code:"C\xF3digo",Confirm:"Confirmar","Confirm a Code":"Confirmar un c\xF3digo","Confirm Password":"Confirmar contrase\xF1a","Confirm Sign In":"Confirmar inicio de sesi\xF3n","Confirm Sign Up":"Confirmar registro","Confirm TOTP Code":"Confirmar c\xF3digo TOTP","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Creating Account":"Creando cuenta",Email:"Email","Forgot Password":"Olvid\xE9 mi contrase\xF1a","Incorrect username or password":"Nombre de usuario o contrase\xF1a incorrecta","Invalid password format":"Formato de contrase\xF1a inv\xE1lido","Invalid phone number format":"Formato de n\xFAmero de tel\xE9fono inv\xE1lido","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend a Code":"Reenviar un c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Sign In with Amazon":"Iniciar Sesi\xF3n con Amazon","Sign In with Apple":"Iniciar Sesi\xF3n con Apple","Sign In with Facebook":"Iniciar Sesi\xF3n con Facebook","Sign In with Google":"Iniciar Sesi\xF3n con Google","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe",Username:"Nombre de usuario","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo",Verify:"Verificar","Verify Contact":"Verificar contacto"},al={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.","Back to Sign In":"Retour \xE0 la connexion",Change:"Modifier","Change Password":"Modifier le mot de passe",Code:"Code",Confirm:"Confirmer","Confirm a Code":"Confirmer un code","Confirm Password":"Confirmez le mot de passe","Confirm Sign In":"Confirmer la connexion","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP","Confirmation Code":"Code de confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create account":"Cr\xE9er un compte","Create Account":"Cr\xE9er un compte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your password":"Saisissez votre mot de passe","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot Password":"Mot de passe oubli\xE9","Forgot your password?":"Mot de passe oubli\xE9 ? ","Have an account? ":"D\xE9j\xE0 un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur r\xE9seau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ",or:"ou",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend a Code":"Renvoyer un code","Resend Code":"Renvoyer le code","Reset password":"R\xE9initialisez votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Send Code":"M'envoyer un code","Sign in":"Se connecter","Sign In":"Se connecter","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with AWS":"Se connecter avec AWS","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",Skip:"Passer",SMS:"SMS",Submit:"Soumettre","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas",Username:"Nom d'utilisateur","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas",Verify:"V\xE9rifier","Verify Contact":"V\xE9rifier le contact"},il={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Code:"Codice",Confirm:"Conferma","Confirm a Code":"Conferma un codice","Confirm Password":"Conferma la password","Confirm Sign In":"Conferma l'accesso","Confirm Sign Up":"Conferma registrazione","Confirmation Code":"Codice di verifica","Create a new account":"Crea un nuovo account","Create account":"Crea account","Create Account":"Crea Account",Email:"Email","Enter your password":"Inserisci la tua password","Enter your username":"Inserisci il tuo nome utente","Forgot Password":"Password dimenticata","Forgot your password?":"Password dimenticata?","Have an account? ":"Gi\xE0 registrato?","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",or:"o","No account? ":"Non hai un account?",Password:"Password","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset password":"Reimposta password","Reset your password":"Reimposta la tua password","Send Code":"Invia codice","Sign in":"Accesso","Sign In":"Accesso","Sign in to your account":"Accedi al tuo account","Sign Out":"Esci","Sign Up":"Registrati",Skip:"Salta",Submit:"Invia","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente",Username:"Nome utente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto",Verify:"Verifica","Verify Contact":"Verifica contatto"},sl={"Account recovery requires verified contact information":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5FA9\u65E7\u306B\u306F\u78BA\u8A8D\u6E08\u307F\u306E\u9023\u7D61\u5148\u304C\u5FC5\u8981\u3067\u3059","An account with the given email already exists.":"\u5165\u529B\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Code:"\u30B3\u30FC\u30C9",Confirm:"\u78BA\u5B9A","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9","Create a new account":"\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Create Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Have an account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6301\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F","Incorrect username or password":"\u30E6\u30FC\u30B6\u30FC\u540D\u304B\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7570\u306A\u308A\u307E\u3059 ","Invalid password format":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5F62\u5F0F\u304C\u7121\u52B9\u3067\u3059 ","Invalid phone number format":`\u4E0D\u6B63\u306A\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u3067\u3059\u3002
2
+ +12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"Lost your code? ":"\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F","New Password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9","No account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ",or:"\u53C8\u306F",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Password attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Reset your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in to your account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign In with Amazon":"Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Facebook":"Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Google":"Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1","User already exists":"\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ","User does not exist":"\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Username cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059",Verify:"\u78BA\u8A8D","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D"},ul={"Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Change Password":"\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30",Changing:"\uBCC0\uACBD\uC911",Code:"\uCF54\uB4DC","Confirm Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Confirm Sign Up":"\uD68C\uC6D0\uAC00\uC785 \uD655\uC778","Confirm SMS Code":"\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778","Confirm TOTP Code":"TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778",Confirm:"\uD655\uC778","Confirmation Code":"\uC778\uC99D\uBC88\uD638",Confirming:"\uD655\uC778\uC911","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Family Name":"\uC131","Given Name":"\uC774\uB984","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911",Username:"\uC544\uC774\uB514",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Sign In with Amazon":"Amazon \uB85C\uADF8\uC778","Sign In with Apple":"Apple \uB85C\uADF8\uC778","Sign In with Facebook":"Facebook \uB85C\uADF8\uC778","Sign In with Google":"Google \uB85C\uADF8\uC778","Sign in to your account":"\uB85C\uADF8\uC778","Create a new account":"\uD68C\uC6D0\uAC00\uC785","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778","Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4",Verify:"\uC778\uC99D",Website:"\uC6F9\uC0AC\uC774\uD2B8"},cl={"Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Reset your Password":"Wachtwoord resetten","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 Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt",Email:"E-mail","Enter your code":"Vul je code in","Enter your username":"Vul je gebruikersnaam in","Enter your phone number":"Vul je telefoonnummer in","Enter your email":"Vul je e-mail in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden",Username:"Gebruikersnaam","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Send Code":"Verstuur Code","Send code":"Verstuur code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in":"Inloggen","Sign In":"Inloggen","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 to your account":"Inloggen op je account","Create a new account":"Nieuw account aanmaken","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd","Verify Contact":"Verifieer Contact","Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens",Verify:"Verifieer"},ll={"Back to Sign In":"Powr\xF3t do logowania",Birthdate:"Data urodzenia","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A Has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Confirm Sign Up":"Potwierd\u017A rejestracj\u0119","Confirm SMS Code":"Potwierd\u017A kod SMS","Confirm TOTP Code":"Potwierd\u017A has\u0142o jednorazowe",Confirm:"Potwierd\u017A","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie",Username:"Nazwa u\u017Cytkownika","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Send Code":"Zresetuj has\u0142o","Send code":"Wy\u015Blij kod",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in":"Zaloguj","Sign In":"Logowanie","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 to your account":"Zaloguj si\u0119 na swoje konto","Create a new account":"Utw\xF3rz nowe konto","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie","Verify Contact":"Weryfikacja danych kontaktowych","Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych",Verify:"Zweryfikuj",Website:"Strona internetowa"},dl={"Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a Senha","Reset your Password":"Redefina sua senha","Confirm Sign Up":"Confirmar inscri\xE7\xE3o","Confirm SMS Code":"Confirme o c\xF3digo SMS","Confirm TOTP Code":"Confirme o c\xF3digo TOTP",Confirm:"confirme","Confirmation Code":"C\xF3digo de confirma\xE7\xE3o",Confirming:"Confirmando","Create Account":"Criar Conta","Creating Account":"Criando conta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your username":"entre com seu nome de usu\xE1rio","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your email":"Digite seu e-mail","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando",Username:"Nome do usu\xE1rio","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","Send Code":"Enviar c\xF3digo","Send code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign In":"Entrar","Sign in":"Entrar","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\xE7a login no Google","Sign in to your account":"Fa\xE7a login em sua conta","Create a new account":"Criar uma nova conta","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando","Verify Contact":"Verificar contato","Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas",Verify:"Verificar"},fl={"Account recovery requires verified contact information":"\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F","Back to Sign In":"\u56DE\u5230\u767B\u5F55","Change Password":"\u66F4\u6539\u5BC6\u7801",Code:"\u786E\u8BA4\u7801",Confirm:"\u786E\u8BA4","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C",Email:"\u90AE\u7BB1","Forgot Password":"\u5FD8\u8BB0\u5BC6\u7801","Incorrect username or password":"\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF","Invalid password format":"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF","Invalid phone number format":"\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900","New Password":"\u65B0\u5BC6\u7801",or:"\u6216\u8005",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Sign In":"\u767B\u5F55","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728",Username:"\u7528\u6237\u540D",Verify:"\u9A8C\u8BC1","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F"},pl={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord","Confirm Password":"Bekr\xE4fta l\xF6senord",Code:"Kod",Confirm:"Bekr\xE4fta","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Confirm Sign Up":"Bekr\xE4fta registrering","Confirmation Code":"Verifikationskod","Create a new account":"Skapa ett nytt konto","Create account":"Skapa konto","Create Account":"Skapa konto",Email:"E-post","Enter your password":"Ange ditt l\xF6senord","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot Password":"Gl\xF6mt l\xF6senordet","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt anv\xE4ndarnamn eller l\xF6senord","Invalid password format":"Ogiltigt l\xF6senordsformat","Invalid phone number format":"Ogiltigt format f\xF6r telefonnummer","Lost your code? ":"F\xF6rlorat koden? ","New Password":"Nytt l\xF6senord","No account? ":"Inget konto? ",or:"eller",Password:"L\xF6senord","Password attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset password":"\xC5terst\xE4ll l\xF6senord","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Sign in":"Logga in","Sign In":"Logga in","Sign in to your account":"Logga in till ditt konto","Sign Out":"Logga ut","Sign Up":"Registrering","We Emailed You":"Vi har skickat e-post till dig","Enter your code":"Skriv din kod",Skip:"Hoppa \xF6ver",Submit:"Skicka","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte",Username:"Anv\xE4ndarnamn","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt",Verify:"Verifiera","Verify Contact":"Verifiera kontakt"},hl={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","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.","Back to Sign In":"Kembali ke Masuk","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","Change Password":"Ubah kata sandi",Code:"Kode",Confirm:"Konfirmasi","Confirm a Code":"Konfirmasi kode","Confirm Password":"Konfirmasi kata sandi","Confirmation Code":"Kode Konfirmasi","Create a new account":"Buat akun baru","Create account":"Buat akun","Create Account":"Buat Akun","Creating Account":"Membuat Akun",Confirming:"Mengkonfirmasi",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your password":"Masukkan kata sandi anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot Password":"Lupa kata sandi","Forgot your 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","New password":"Kata sandi baru","No account? ":"Tidak ada akun?",or:"atau",Password:"Kata sandi","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Phone Number":"Nomor telepon","Resend a Code":"Renvoyer un code","Resend Code":"Kirim ulang kodenya","Reset password":"Ubah kata sandi anda","Reset your password":"Ubah kata sandi anda",Send:"Kirim","Send Code":"Kirim Kode","Send code":"Kirim kode",Sending:"Mengirim","Sign in":"Masuk","Sign In":"Masuk","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with AWS":"Masuk dengan AWS","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","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","Signing in":"Memasuki",Skip:"Lewati",SMS:"SMS",Submit:"Ajukan",Submitting:"Mengajukan","User is disabled.":"Akun dinonaktifkan.","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.",Username:"Nama akun","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.",Verify:"Verifikasi","Verify Contact":"Verifikasi Kontak","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"},ml={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod",Confirm:"Do\u011Frula","Confirm Password":"\u015Eifreyi Do\u011Frula","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","Confirm Sign Up":"Kay\u0131t \u0130\u015Flemini Do\u011Frula","Confirm SMS Code":"SMS Kodunu Do\u011Frula","Confirm TOTP Code":"Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor",Email:"E-posta","Enter your code":"Kodu girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your email":"E-posta adresinizi girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle","Have an account? ":"Hesab\u0131n\u0131z var m\u0131? ","Incorrect username or password":"Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre","Invalid password format":"Ge\xE7ersiz parola format\u0131","Invalid phone number format":"Ge\xE7ersiz telefon numaras\u0131 format\u0131","Lost your code? ":"Kodu mu kaybettiniz? ",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya",Password:"\u015Eifre","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Phone Number":"Telefon Numaras\u0131","Resend Code":"Kodu Yeniden G\xF6nder","Reset your password":"\u015Eifrenizi s\u0131f\u0131rlay\u0131n","Reset your Password":"\u015Eifrenizi S\u0131f\u0131rlay\u0131n","Send Code":"Kod G\xF6nder","Send code":"Kod g\xF6nder",Sending:"G\xF6nderiliyor","Setup TOTP":"Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap","Show password":"\u015Eifreyi g\xF6ster","Sign in":"Oturum a\xE7","Sign In":"Oturum A\xE7","Sign In with Amazon":"Amazon ile Oturum A\xE7","Sign In with Apple":"Apple ile Oturum A\xE7","Sign In with Facebook":"Facebook ile Oturum A\xE7","Sign In with Google":"Google ile Oturum A\xE7","Sign in to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","Create a new account":"Yeni bir hesap olu\u015Ftur","Signing in":"Oturum a\xE7\u0131l\u0131yor","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil",Username:"Kullan\u0131c\u0131 ad\u0131","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula"},gl={BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS 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",ENTER_CODE:"Enter your code",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_YOUR_PASSWORD:"Forgot your password?",FORGOT_YOUR_PASSWORD_LEGACY:"Forgot your password? ",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",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",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",SUBMIT:"Submit",SUBMITTING:"Submitting",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WEBSITE:"Website"},vl=O({},nl),yl=O({},rl),Sl=O({},ol),wl=O({},al),_l=O({},il),bl=O({},sl),Cl=O({},ul),Al=O({},cl),El=O({},ll),Il=O({},dl),$l=O({},fl),Tl=O({},pl),Pl=O({},hl),Nl=O({},ml),kl=O({},gl);O({},kl);function R(e){return ue.I18n.get(e)}function xl(e){return ue.I18n.get(e)!==e}var Ul={de:vl,en:yl,es:Sl,fr:wl,id:Pl,it:_l,ja:bl,kr:Cl,nl:Al,pl:El,pt:Il,zh:$l,sv:Tl,tr:Nl},Yr={birthdate:{label:"Birthdate",labelHidden:!0,placeholder:"Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",labelHidden:!0,placeholder:"Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",labelHidden:!0,placeholder:"Confirm Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",labelHidden:!0,placeholder:"Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",labelHidden:!0,placeholder:"Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",labelHidden:!0,placeholder:"Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",labelHidden:!0,placeholder:"Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",labelHidden:!0,placeholder:"Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",labelHidden:!0,placeholder:"Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",labelHidden:!0,placeholder:"Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",labelHidden:!0,placeholder:"Phone",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:tl,isRequired:!0},preferred_username:{label:"Preferred Username",labelHidden:!0,placeholder:"Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",labelHidden:!0,placeholder:"Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",labelHidden:!0,placeholder:"Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",labelHidden:!0,placeholder:"Username",type:"text",autocomplete:"username",isRequired:!0}},Fe=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ta=function(e){return Qc.includes(e)},Ol=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Rl=function(e,t){var n=t.send,r=t.getSnapshot();switch(e.payload.event){case"tokenRefresh":r.matches("authenticated.idle")&&n("TOKEN_REFRESH");break;case"signOut":case"tokenRefresh_failure":r.matches("authenticated.idle")&&n("SIGN_OUT")}},Bl=function(e,t){return t===void 0&&(t=Rl),ue.Hub.listen("auth",function(n){t(n,e)})};function Vl(){this.__data__=[],this.size=0}var Dl=Vl;function Ml(e,t){return e===t||e!==e&&t!==t}var zt=Ml,Fl=zt;function Ll(e,t){for(var n=e.length;n--;)if(Fl(e[n][0],t))return n;return-1}var Mn=Ll,jl=Mn,zl=Array.prototype,Gl=zl.splice;function Hl(e){var t=this.__data__,n=jl(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Gl.call(t,n,1),--this.size,!0}var Kl=Hl,ql=Mn;function Wl(e){var t=this.__data__,n=ql(t,e);return n<0?void 0:t[n][1]}var Yl=Wl,Jl=Mn;function Zl(e){return Jl(this.__data__,e)>-1}var Ql=Zl,Xl=Mn;function ed(e,t){var n=this.__data__,r=Xl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var td=ed,nd=Dl,rd=Kl,od=Yl,ad=Ql,id=td;function mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mt.prototype.clear=nd;mt.prototype.delete=rd;mt.prototype.get=od;mt.prototype.has=ad;mt.prototype.set=id;var Fn=mt,sd=Fn;function ud(){this.__data__=new sd,this.size=0}var cd=ud;function ld(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var dd=ld;function fd(e){return this.__data__.get(e)}var pd=fd;function hd(e){return this.__data__.has(e)}var md=hd,gd=De,vd=gd["__core-js_shared__"],yd=vd,ur=yd,na=function(){var e=/[^.]+$/.exec(ur&&ur.keys&&ur.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Sd(e){return!!na&&na in e}var wd=Sd,_d=Function.prototype,bd=_d.toString;function Cd(e){if(e!=null){try{return bd.call(e)}catch{}try{return e+""}catch{}}return""}var li=Cd,Ad=Hr,Ed=wd,Id=Me,$d=li,Td=/[\\^$.*+?()[\]{}|]/g,Pd=/^\[object .+?Constructor\]$/,Nd=Function.prototype,kd=Object.prototype,xd=Nd.toString,Ud=kd.hasOwnProperty,Od=RegExp("^"+xd.call(Ud).replace(Td,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rd(e){if(!Id(e)||Ed(e))return!1;var t=Ad(e)?Od:Pd;return t.test($d(e))}var Bd=Rd;function Vd(e,t){return e==null?void 0:e[t]}var Dd=Vd,Md=Bd,Fd=Dd;function Ld(e,t){var n=Fd(e,t);return Md(n)?n:void 0}var et=Ld,jd=et,zd=De,Gd=jd(zd,"Map"),Jr=Gd,Hd=et,Kd=Hd(Object,"create"),Ln=Kd,ra=Ln;function qd(){this.__data__=ra?ra(null):{},this.size=0}var Wd=qd;function Yd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Jd=Yd,Zd=Ln,Qd="__lodash_hash_undefined__",Xd=Object.prototype,ef=Xd.hasOwnProperty;function tf(e){var t=this.__data__;if(Zd){var n=t[e];return n===Qd?void 0:n}return ef.call(t,e)?t[e]:void 0}var nf=tf,rf=Ln,of=Object.prototype,af=of.hasOwnProperty;function sf(e){var t=this.__data__;return rf?t[e]!==void 0:af.call(t,e)}var uf=sf,cf=Ln,lf="__lodash_hash_undefined__";function df(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=cf&&t===void 0?lf:t,this}var ff=df,pf=Wd,hf=Jd,mf=nf,gf=uf,vf=ff;function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=pf;gt.prototype.delete=hf;gt.prototype.get=mf;gt.prototype.has=gf;gt.prototype.set=vf;var yf=gt,oa=yf,Sf=Fn,wf=Jr;function _f(){this.size=0,this.__data__={hash:new oa,map:new(wf||Sf),string:new oa}}var bf=_f;function Cf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Af=Cf,Ef=Af;function If(e,t){var n=e.__data__;return Ef(t)?n[typeof t=="string"?"string":"hash"]:n.map}var jn=If,$f=jn;function Tf(e){var t=$f(this,e).delete(e);return this.size-=t?1:0,t}var Pf=Tf,Nf=jn;function kf(e){return Nf(this,e).get(e)}var xf=kf,Uf=jn;function Of(e){return Uf(this,e).has(e)}var Rf=Of,Bf=jn;function Vf(e,t){var n=Bf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Df=Vf,Mf=bf,Ff=Pf,Lf=xf,jf=Rf,zf=Df;function vt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vt.prototype.clear=Mf;vt.prototype.delete=Ff;vt.prototype.get=Lf;vt.prototype.has=jf;vt.prototype.set=zf;var Zr=vt,Gf=Fn,Hf=Jr,Kf=Zr,qf=200;function Wf(e,t){var n=this.__data__;if(n instanceof Gf){var r=n.__data__;if(!Hf||r.length<qf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kf(r)}return n.set(e,t),this.size=n.size,this}var Yf=Wf,Jf=Fn,Zf=cd,Qf=dd,Xf=pd,ep=md,tp=Yf;function yt(e){var t=this.__data__=new Jf(e);this.size=t.size}yt.prototype.clear=Zf;yt.prototype.delete=Qf;yt.prototype.get=Xf;yt.prototype.has=ep;yt.prototype.set=tp;var zn=yt;function np(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var rp=np,op=et,ap=function(){try{var e=op(Object,"defineProperty");return e({},"",{}),e}catch{}}(),di=ap,aa=di;function ip(e,t,n){t=="__proto__"&&aa?aa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Qr=ip,sp=Qr,up=zt,cp=Object.prototype,lp=cp.hasOwnProperty;function dp(e,t,n){var r=e[t];(!(lp.call(e,t)&&up(r,n))||n===void 0&&!(t in e))&&sp(e,t,n)}var Xr=dp,fp=Xr,pp=Qr;function hp(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),a?pp(n,u,c):fp(n,u,c)}return n}var Gt=hp,mp=Gt,gp=Dn;function vp(e,t){return e&&mp(t,gp(t),e)}var yp=vp;function Sp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var wp=Sp,_p=Me,bp=Vn,Cp=wp,Ap=Object.prototype,Ep=Ap.hasOwnProperty;function Ip(e){if(!_p(e))return Cp(e);var t=bp(e),n=[];for(var r in e)r=="constructor"&&(t||!Ep.call(e,r))||n.push(r);return n}var $p=Ip,Tp=ai,Pp=$p,Np=jt;function kp(e){return Np(e)?Tp(e,!0):Pp(e)}var Ht=kp,xp=Gt,Up=Ht;function Op(e,t){return e&&xp(t,Up(t),e)}var Rp=Op,_n={exports:{}};(function(e,t){var n=De,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(l,d){if(d)return l.slice();var h=l.length,f=u?u(h):new l.constructor(h);return l.copy(f),f}e.exports=c})(_n,_n.exports);function Bp(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var fi=Bp;function Vp(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var Dp=Vp;function Mp(){return[]}var pi=Mp,Fp=Dp,Lp=pi,jp=Object.prototype,zp=jp.propertyIsEnumerable,ia=Object.getOwnPropertySymbols,Gp=ia?function(e){return e==null?[]:(e=Object(e),Fp(ia(e),function(t){return zp.call(e,t)}))}:Lp,eo=Gp,Hp=Gt,Kp=eo;function qp(e,t){return Hp(e,Kp(e),t)}var Wp=qp;function Yp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var hi=Yp,Jp=ii,Zp=Jp(Object.getPrototypeOf,Object),to=Zp,Qp=hi,Xp=to,eh=eo,th=pi,nh=Object.getOwnPropertySymbols,rh=nh?function(e){for(var t=[];e;)Qp(t,eh(e)),e=Xp(e);return t}:th,mi=rh,oh=Gt,ah=mi;function ih(e,t){return oh(e,ah(e),t)}var sh=ih,uh=hi,ch=ke;function lh(e,t,n){var r=t(e);return ch(e)?r:uh(r,n(e))}var gi=lh,dh=gi,fh=eo,ph=Dn;function hh(e){return dh(e,ph,fh)}var vi=hh,mh=gi,gh=mi,vh=Ht;function yh(e){return mh(e,vh,gh)}var yi=yh,Sh=et,wh=De,_h=Sh(wh,"DataView"),bh=_h,Ch=et,Ah=De,Eh=Ch(Ah,"Promise"),Ih=Eh,$h=et,Th=De,Ph=$h(Th,"Set"),Nh=Ph,kh=et,xh=De,Uh=kh(xh,"WeakMap"),Oh=Uh,wr=bh,_r=Jr,br=Ih,Cr=Nh,Ar=Oh,Si=ht,St=li,sa="[object Map]",Rh="[object Object]",ua="[object Promise]",ca="[object Set]",la="[object WeakMap]",da="[object DataView]",Bh=St(wr),Vh=St(_r),Dh=St(br),Mh=St(Cr),Fh=St(Ar),Ze=Si;(wr&&Ze(new wr(new ArrayBuffer(1)))!=da||_r&&Ze(new _r)!=sa||br&&Ze(br.resolve())!=ua||Cr&&Ze(new Cr)!=ca||Ar&&Ze(new Ar)!=la)&&(Ze=function(e){var t=Si(e),n=t==Rh?e.constructor:void 0,r=n?St(n):"";if(r)switch(r){case Bh:return da;case Vh:return sa;case Dh:return ua;case Mh:return ca;case Fh:return la}return t});var Kt=Ze,Lh=Object.prototype,jh=Lh.hasOwnProperty;function zh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&jh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Gh=zh,Hh=De,Kh=Hh.Uint8Array,wi=Kh,fa=wi;function qh(e){var t=new e.constructor(e.byteLength);return new fa(t).set(new fa(e)),t}var no=qh,Wh=no;function Yh(e,t){var n=t?Wh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Jh=Yh,Zh=/\w*$/;function Qh(e){var t=new e.constructor(e.source,Zh.exec(e));return t.lastIndex=e.lastIndex,t}var Xh=Qh,pa=Lt,ha=pa?pa.prototype:void 0,ma=ha?ha.valueOf:void 0;function em(e){return ma?Object(ma.call(e)):{}}var tm=em,nm=no;function rm(e,t){var n=t?nm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _i=rm,om=no,am=Jh,im=Xh,sm=tm,um=_i,cm="[object Boolean]",lm="[object Date]",dm="[object Map]",fm="[object Number]",pm="[object RegExp]",hm="[object Set]",mm="[object String]",gm="[object Symbol]",vm="[object ArrayBuffer]",ym="[object DataView]",Sm="[object Float32Array]",wm="[object Float64Array]",_m="[object Int8Array]",bm="[object Int16Array]",Cm="[object Int32Array]",Am="[object Uint8Array]",Em="[object Uint8ClampedArray]",Im="[object Uint16Array]",$m="[object Uint32Array]";function Tm(e,t,n){var r=e.constructor;switch(t){case vm:return om(e);case cm:case lm:return new r(+e);case ym:return am(e,n);case Sm:case wm:case _m:case bm:case Cm:case Am:case Em:case Im:case $m:return um(e,n);case dm:return new r;case fm:case mm:return new r(e);case pm:return im(e);case hm:return new r;case gm:return sm(e)}}var Pm=Tm,Nm=Me,ga=Object.create,km=function(){function e(){}return function(t){if(!Nm(t))return{};if(ga)return ga(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),xm=km,Um=xm,Om=to,Rm=Vn;function Bm(e){return typeof e.constructor=="function"&&!Rm(e)?Um(Om(e)):{}}var bi=Bm,Vm=Kt,Dm=Ge,Mm="[object Map]";function Fm(e){return Dm(e)&&Vm(e)==Mm}var Lm=Fm,jm=Lm,zm=Wr,va=Dt.exports,ya=va&&va.isMap,Gm=ya?zm(ya):jm,Hm=Gm,Km=Kt,qm=Ge,Wm="[object Set]";function Ym(e){return qm(e)&&Km(e)==Wm}var Jm=Ym,Zm=Jm,Qm=Wr,Sa=Dt.exports,wa=Sa&&Sa.isSet,Xm=wa?Qm(wa):Zm,eg=Xm,tg=zn,ng=rp,rg=Xr,og=yp,ag=Rp,ig=_n.exports,sg=fi,ug=Wp,cg=sh,lg=vi,dg=yi,fg=Kt,pg=Gh,hg=Pm,mg=bi,gg=ke,vg=Qe.exports,yg=Hm,Sg=Me,wg=eg,_g=Dn,bg=Ht,Cg=1,Ag=2,Eg=4,Ci="[object Arguments]",Ig="[object Array]",$g="[object Boolean]",Tg="[object Date]",Pg="[object Error]",Ai="[object Function]",Ng="[object GeneratorFunction]",kg="[object Map]",xg="[object Number]",Ei="[object Object]",Ug="[object RegExp]",Og="[object Set]",Rg="[object String]",Bg="[object Symbol]",Vg="[object WeakMap]",Dg="[object ArrayBuffer]",Mg="[object DataView]",Fg="[object Float32Array]",Lg="[object Float64Array]",jg="[object Int8Array]",zg="[object Int16Array]",Gg="[object Int32Array]",Hg="[object Uint8Array]",Kg="[object Uint8ClampedArray]",qg="[object Uint16Array]",Wg="[object Uint32Array]",re={};re[Ci]=re[Ig]=re[Dg]=re[Mg]=re[$g]=re[Tg]=re[Fg]=re[Lg]=re[jg]=re[zg]=re[Gg]=re[kg]=re[xg]=re[Ei]=re[Ug]=re[Og]=re[Rg]=re[Bg]=re[Hg]=re[Kg]=re[qg]=re[Wg]=!0;re[Pg]=re[Ai]=re[Vg]=!1;function gn(e,t,n,r,a,i){var s,u=t&Cg,c=t&Ag,l=t&Eg;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!Sg(e))return e;var d=gg(e);if(d){if(s=pg(e),!u)return sg(e,s)}else{var h=fg(e),f=h==Ai||h==Ng;if(vg(e))return ig(e,u);if(h==Ei||h==Ci||f&&!a){if(s=c||f?{}:mg(e),!u)return c?cg(e,ag(s,e)):ug(e,og(s,e))}else{if(!re[h])return a?e:{};s=hg(e,h,u)}}i||(i=new tg);var p=i.get(e);if(p)return p;i.set(e,s),wg(e)?e.forEach(function(g){s.add(gn(g,t,n,g,e,i))}):yg(e)&&e.forEach(function(g,S){s.set(S,gn(g,t,n,S,e,i))});var v=l?c?dg:lg:c?bg:_g,m=d?void 0:v(e);return ng(m||e,function(g,S){m&&(S=g,g=e[S]),rg(s,S,gn(g,t,n,S,e,i))}),s}var Yg=gn,Jg=Yg,Zg=1,Qg=4;function Xg(e){return Jg(e,Zg|Qg)}var ev=Xg,He=function(e,t){var n=ei(e).country_code,r=Yr[t];return r.type==="tel"&&(r=O(O({},r),{dialCode:n})),r},cr=function(e){var t=Sr(e);return O(O({},He(e,t)),{autocomplete:"username"})},rn=function(e){return{confirmation_code:O(O({},He(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},tv={signIn:function(e){return{username:O({},cr(e)),password:O(O({},He(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,a=Sr(e),i={},s=0,u=Array.from(new Set(Ue(Ue(Ue([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(ta(c)){var l=c===a?cr(e):He(e,c);i[c]=O({},l)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return i},confirmSignUp:function(e){return{confirmation_code:O(O({},He(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:rn,forceNewPassword:function(e){for(var t=be(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Ue(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];ta(i)?n[i]=O({},He(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=Sr(e),n=Yr[t].label;return{username:O(O({},cr(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return O(O({},rn(e)),{password:O(O({},He(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:O(O({},He(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:rn,setupTOTP:rn},nv=function(e){for(var t=O({},e),n=0,r=Object.entries(e);n<r.length;n++){var a=r[n],i=a[0],s=a[1],u=s.label,c=s.placeholder;t[i]=O(O({},s),{label:u?R(u):void 0,placeholder:c?R(c):void 0})}return t},rv=function(e){return Object.entries(e).sort(function(t,n){return(t[1].order||Number.MAX_VALUE)-(n[1].order||Number.MAX_VALUE)}).filter(function(t){return t[1]!==void 0})},ov=function(e,t){t===void 0&&(t={});var n=ev(e);return Object.keys(t).forEach(function(r){n[r]=O(O({},n[r]),t[r])}),n},av=function(e,t){var n=(0,tv[e])(t);return nv(n)},iv=function(e,t){var n,r,a=av(e,t),i=((r=(n=be(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=ov(a,i);return delete s.QR,s},sv=function(e,t){var n=iv(e,t);return rv(n)};/*! *****************************************************************************
2
3
  Copyright (c) Microsoft Corporation.
3
4
 
4
5
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,8 +12,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
14
  PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},O.apply(this,arguments)};function ii(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function Y(e,t,n,r){return new(n||(n=Promise))(function(a,i){function s(l){try{c(r.next(l))}catch(d){i(d)}}function u(l){try{c(r.throw(l))}catch(d){i(d)}}function c(l){var d;l.done?a(l.value):(d=l.value,d instanceof n?d:new n(function(h){h(d)})).then(s,u)}c((r=r.apply(e,t||[])).next())})}function J(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(c){return function(l){return function(d){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&d[0]?r.return:d[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,d[1])).done)return a;switch(r=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,r=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!((a=a.length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=t.call(e,s)}catch(h){d=[6,h],r=0}finally{n=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([c,l])}}}function Ue(e,t,n){if(n||arguments.length===2)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var Yc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Jc=["username","email","phone_number"],Zc=Ue(Ue(Ue([],Jc,!0),Yc,!0),["confirmation_code","password","confirm_password"],!1),vr=function(e){var t,n=(t=e==null?void 0:e.context.config)===null||t===void 0?void 0:t.loginMechanisms;return(n!=null?n:["username"])[0]},Qc=function(e){var t=function(n){return function(r){return e({type:n,data:r})}};return{resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toResetPassword:t("RESET_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},Xc=function(e){var t,n,r=(t=e.context)===null||t===void 0?void 0:t.user,a=be(e),i=Qa(e),s=i==null?void 0:i.remoteError,u=O({},i==null?void 0:i.validationError),c=i==null?void 0:i.codeDeliveryDetails,l=Object.keys(u).length>0,d=e.hasTag("pending")||((n=be(e))===null||n===void 0?void 0:n.hasTag("pending")),h=function(){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(a==null?void 0:a.matches("autoSignIn")):return"autoSignIn";case(a==null?void 0:a.matches("confirmSignUp")):return"confirmSignUp";case(a==null?void 0:a.matches("confirmSignIn")):return"confirmSignIn";case(a==null?void 0:a.matches("setupTOTP")):return"setupTOTP";case(a==null?void 0:a.matches("signIn")):return"signIn";case(a==null?void 0:a.matches("signUp")):return"signUp";case(a==null?void 0:a.matches("forceNewPassword")):return"forceNewPassword";case(a==null?void 0:a.matches("resetPassword")):return"resetPassword";case(a==null?void 0:a.matches("confirmResetPassword")):return"confirmResetPassword";case(a==null?void 0:a.matches("verifyUser")):return"verifyUser";case(a==null?void 0:a.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),f=function(p){switch(p){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(h);return{error:s,hasValidationErrors:l,isPending:d,route:h,authStatus:f,user:r,validationErrors:u,codeDeliveryDetails:c}},si=function(e){var t=e.send,n=e.state,r=Qc(t),a=Xc(n);return O(O({},r),a)},el=["+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"],tl={"Account recovery requires verified contact information":"Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Back to Sign In":"Zur\xFCck zur Anmeldung","Change Password":"Passwort \xE4ndern",Code:"Code",Confirm:"Best\xE4tigen","Confirm Password":"Passwort best\xE4tigen","Confirm a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirm SMS Code":"SMS-Code best\xE4tigen","Confirm TOTP Code":"TOTP-Code best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code","Create a new account":"Einen neuen Account erstellen","Create account":"Hier registrieren","Create Account":"Account erstellen","Creating Account":"Account wird erstellt",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your password":"Geben Sie Ihr Passwort ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your email":"Geben Sie ihre Email ein","Forgot your password?":"Passwort vergessen? ","Forgot Password":"Passwort vergessen","Hide password":"Passwort verbergen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ung\xFCltiges Passwort-Format","Invalid phone number format":"Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ",or:"oder",Password:"Passwort","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset password":"Passwort zur\xFCcksetzen","Reset your password":"Zur\xFCcksetzen des Passworts","Send Code":"Code senden","Sign in":"Anmelden","Sign In":"Anmelden","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign Out":"Abmelden","Sign Up":"Registrieren",Skip:"\xDCberspringen",Submit:"Abschicken","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht",Username:"Benutzername","Username cannot be empty":"Benutzername darf nicht leer sein",Verify:"Verifizieren","Verify Contact":"Kontakt verifizieren"},nl={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code",Confirm:"Confirm","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create Account":"Create Account","Creating Account":"Creating Account",Email:"Email","Enter your code":"Enter your code","Enter your username":"Enter your username","Enter your phone number":"Enter your phone number","Enter your email":"Enter your email","Forgot your password?":"Forgot your password?","Hide password":"Hide password",Loading:"Loading",Username:"Username","New password":"New password",Password:"Password","Phone Number":"Phone Number","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send Code":"Send Code","Send code":"Send code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in":"Sign in","Sign In":"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 to your account":"Sign in to your account","Create a new account":"Create a new account","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting","Verify Contact":"Verify Contact",Verify:"Verify"},rl={"Account recovery requires verified contact information":"La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada","Back to Sign In":"Volver a inicio de sesi\xF3n","Change Password":"Cambiar contrase\xF1a",Changing:"Cambiando",Code:"C\xF3digo",Confirm:"Confirmar","Confirm a Code":"Confirmar un c\xF3digo","Confirm Password":"Confirmar contrase\xF1a","Confirm Sign In":"Confirmar inicio de sesi\xF3n","Confirm Sign Up":"Confirmar registro","Confirm TOTP Code":"Confirmar c\xF3digo TOTP","Confirmation Code":"C\xF3digo de confirmaci\xF3n",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Creating Account":"Creando cuenta",Email:"Email","Forgot Password":"Olvid\xE9 mi contrase\xF1a","Incorrect username or password":"Nombre de usuario o contrase\xF1a incorrecta","Invalid password format":"Formato de contrase\xF1a inv\xE1lido","Invalid phone number format":"Formato de n\xFAmero de tel\xE9fono inv\xE1lido","Forgot your password?":"\xBFOlvid\xF3 su contrase\xF1a?","Hide password":"Ocultar contrase\xF1a","Loading...":"Cargando...","New Password":"Nueva contrase\xF1a",or:"o",Password:"Contrase\xF1a","Phone Number":"N\xFAmero de tel\xE9fono","Resend a Code":"Reenviar un c\xF3digo","Reset your password":"Restablecer su contrase\xF1a","Reset your Password":"Restablecer su Contrase\xF1a","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contrase\xF1a","Sign in":"Iniciar sesi\xF3n","Sign In":"Iniciar Sesi\xF3n","Sign In with Amazon":"Iniciar Sesi\xF3n con Amazon","Sign In with Apple":"Iniciar Sesi\xF3n con Apple","Sign In with Facebook":"Iniciar Sesi\xF3n con Facebook","Sign In with Google":"Iniciar Sesi\xF3n con Google","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta","Signing in":"Iniciando sesi\xF3n",Skip:"Omitir",Submit:"Enviar","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe",Username:"Nombre de usuario","Username cannot be empty":"El nombre de usuario no puede estar vac\xEDo",Verify:"Verificar","Verify Contact":"Verificar contacto"},ol={"Account recovery requires verified contact information":"La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe d\xE9j\xE0.","Back to Sign In":"Retour \xE0 la connexion",Change:"Modifier","Change Password":"Modifier le mot de passe",Code:"Code",Confirm:"Confirmer","Confirm a Code":"Confirmer un code","Confirm Password":"Confirmez le mot de passe","Confirm Sign In":"Confirmer la connexion","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP","Confirmation Code":"Code de confirmation","Create a new account":"Cr\xE9er un nouveau compte","Create account":"Cr\xE9er un compte","Create Account":"Cr\xE9er un compte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your password":"Saisissez votre mot de passe","Enter your phone number":"Saisissez votre num\xE9ro de t\xE9l\xE9phone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot Password":"Mot de passe oubli\xE9","Forgot your password?":"Mot de passe oubli\xE9 ? ","Have an account? ":"D\xE9j\xE0 un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur r\xE9seau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ",or:"ou",Password:"Mot de passe","Phone Number":"Num\xE9ro de t\xE9l\xE9phone","Resend a Code":"Renvoyer un code","Resend Code":"Renvoyer le code","Reset password":"R\xE9initialisez votre mot de passe","Reset your password":"R\xE9initialisez votre mot de passe",Send:"Envoyer","Send Code":"M'envoyer un code","Sign in":"Se connecter","Sign In":"Se connecter","Sign in to your account":"Connexion \xE0 votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with AWS":"Se connecter avec AWS","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign Out":"D\xE9connexion","Sign Up":"S'inscrire",Skip:"Passer",SMS:"SMS",Submit:"Soumettre","User already exists":"L'utilisateur existe d\xE9j\xE0","User does not exist":"L'utilisateur n'existe pas",Username:"Nom d'utilisateur","Username cannot be empty":"Le nom d'utilisateur doit \xEAtre renseign\xE9","Username/client id combination not found.":"L'utilisateur n'existe pas",Verify:"V\xE9rifier","Verify Contact":"V\xE9rifier le contact"},al={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","An account with the given email already exists.":"Questa email \xE8 gi\xE0 utilizzata da un'altro account.","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Code:"Codice",Confirm:"Conferma","Confirm a Code":"Conferma un codice","Confirm Password":"Conferma la password","Confirm Sign In":"Conferma l'accesso","Confirm Sign Up":"Conferma registrazione","Confirmation Code":"Codice di verifica","Create a new account":"Crea un nuovo account","Create account":"Crea account","Create Account":"Crea Account",Email:"Email","Enter your password":"Inserisci la tua password","Enter your username":"Inserisci il tuo nome utente","Forgot Password":"Password dimenticata","Forgot your password?":"Password dimenticata?","Have an account? ":"Gi\xE0 registrato?","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",or:"o","No account? ":"Non hai un account?",Password:"Password","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Phone Number":"Numero di telefono","Resend Code":"Rispedisci codice","Reset password":"Reimposta password","Reset your password":"Reimposta la tua password","Send Code":"Invia codice","Sign in":"Accesso","Sign In":"Accesso","Sign in to your account":"Accedi al tuo account","Sign Out":"Esci","Sign Up":"Registrati",Skip:"Salta",Submit:"Invia","User already exists":"Utente gi\xE0 esistente","User does not exist":"Utente inesistente",Username:"Nome utente","Username cannot be empty":"Il nome utente non pu\xF2 essere vuoto",Verify:"Verifica","Verify Contact":"Verifica contatto"},il={"Account recovery requires verified contact information":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5FA9\u65E7\u306B\u306F\u78BA\u8A8D\u6E08\u307F\u306E\u9023\u7D61\u5148\u304C\u5FC5\u8981\u3067\u3059","An account with the given email already exists.":"\u5165\u529B\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059","Back to Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B","Change Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ",Code:"\u30B3\u30FC\u30C9",Confirm:"\u78BA\u5B9A","Confirm a Code":"\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D","Confirm Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D","Confirm Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B","Confirm Sign Up":"\u767B\u9332\u3059\u308B","Confirmation Code":"\u78BA\u8A8D\u30B3\u30FC\u30C9","Create a new account":"\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B","Create account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ","Create Account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B",Email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9","Enter your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ","Enter your username":"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ","Forgot Password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ","Forgot your password?":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ","Have an account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6301\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F","Incorrect username or password":"\u30E6\u30FC\u30B6\u30FC\u540D\u304B\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7570\u306A\u308A\u307E\u3059 ","Invalid password format":"\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5F62\u5F0F\u304C\u7121\u52B9\u3067\u3059 ","Invalid phone number format":`\u4E0D\u6B63\u306A\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u3067\u3059\u3002
15
- +12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`,"Lost your code? ":"\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F","New Password":"\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9","No account? ":"\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ",or:"\u53C8\u306F",Password:"\u30D1\u30B9\u30EF\u30FC\u30C9 ","Password attempts exceeded":"\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F","Phone Number":"\u96FB\u8A71\u756A\u53F7","Resend Code":"\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1","Reset password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ","Reset your password":"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B","Send Code":"\u30B3\u30FC\u30C9\u3092\u9001\u4FE1","Sign in":"\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In":"\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign in to your account":"\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ","Sign In with Amazon":"Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Facebook":"Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign In with Google":"Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3","Sign Out":"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ","Sign Up":"\u767B\u9332 ",Skip:"\u30B9\u30AD\u30C3\u30D7",Submit:"\u9001\u4FE1","User already exists":"\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ","User does not exist":"\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ",Username:"\u30E6\u30FC\u30B6\u30FC\u540D ","Username cannot be empty":"\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059",Verify:"\u78BA\u8A8D","Verify Contact":"\u9023\u7D61\u5148\u3092\u78BA\u8A8D"},sl={"Back to Sign In":"\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",Birthdate:"\uC0DD\uB144\uC6D4\uC77C","Change Password":"\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30",Changing:"\uBCC0\uACBD\uC911",Code:"\uCF54\uB4DC","Confirm Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778","Reset your Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Confirm Sign Up":"\uD68C\uC6D0\uAC00\uC785 \uD655\uC778","Confirm SMS Code":"\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778","Confirm TOTP Code":"TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778",Confirm:"\uD655\uC778","Confirmation Code":"\uC778\uC99D\uBC88\uD638",Confirming:"\uD655\uC778\uC911","Create Account":"\uD68C\uC6D0\uAC00\uC785","Creating Account":"\uD68C\uC6D0\uAC00\uC785\uC911",Email:"\uC774\uBA54\uC77C","Enter your code":"\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Enter your username":"\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694","Family Name":"\uC131","Given Name":"\uC774\uB984","Forgot your password?":"\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?","Hide password":"\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30",Loading:"\uB85C\uB529\uC911",Username:"\uC544\uC774\uB514",Name:"\uC131\uD568",Nickname:"\uB2C9\uB124\uC784","New password":"\uC0C8 \uBE44\uBC00\uBC88\uD638",Password:"\uBE44\uBC00\uBC88\uD638","Phone Number":"\uC804\uD654\uBC88\uD638","Preferred Username":"\uB2C9\uB124\uC784",Profile:"\uD504\uB85C\uD544","Resend Code":"\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1","Reset your password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Reset Password":"\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815","Send code":"\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30",Sending:"\uC804\uC1A1\uC911","Setup TOTP":"TOTP \uC124\uC815\uD558\uAE30","Show password":"\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30","Sign in":"\uB85C\uADF8\uC778","Sign In":"\uB85C\uADF8\uC778","Sign In with Amazon":"Amazon \uB85C\uADF8\uC778","Sign In with Apple":"Apple \uB85C\uADF8\uC778","Sign In with Facebook":"Facebook \uB85C\uADF8\uC778","Sign In with Google":"Google \uB85C\uADF8\uC778","Sign in to your account":"\uB85C\uADF8\uC778","Create a new account":"\uD68C\uC6D0\uAC00\uC785","Signing in":"\uB85C\uADF8\uC778\uC911",Skip:"\uB2E4\uC74C\uC5D0 \uD558\uAE30",Submit:"\uD655\uC778",Submitting:"\uD655\uC778\uC911","Verify Contact":"\uC5F0\uB77D\uCC98 \uD655\uC778","Account recovery requires verified contact information":"\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4",Verify:"\uC778\uC99D",Website:"\uC6F9\uC0AC\uC774\uD2B8"},ul={"Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Reset your Password":"Wachtwoord resetten","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 Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt",Email:"E-mail","Enter your code":"Vul je code in","Enter your username":"Vul je gebruikersnaam in","Enter your phone number":"Vul je telefoonnummer in","Enter your email":"Vul je e-mail in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord",Loading:"Laden",Username:"Gebruikersnaam","New password":"Nieuw wachtwoord",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Send Code":"Verstuur Code","Send code":"Verstuur code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in":"Inloggen","Sign In":"Inloggen","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 to your account":"Inloggen op je account","Create a new account":"Nieuw account aanmaken","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd","Verify Contact":"Verifieer Contact","Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens",Verify:"Verifieer"},cl={"Back to Sign In":"Powr\xF3t do logowania",Birthdate:"Data urodzenia","Change Password":"Zmie\u0144 has\u0142o",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierd\u017A Has\u0142o","Reset your Password":"Zresetuj swoje has\u0142o","Confirm Sign Up":"Potwierd\u017A rejestracj\u0119","Confirm SMS Code":"Potwierd\u017A kod SMS","Confirm TOTP Code":"Potwierd\u017A has\u0142o jednorazowe",Confirm:"Potwierd\u017A","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create Account":"Utw\xF3rz konto","Creating Account":"Tworzenie konta",Email:"E-mail","Enter your code":"Wprowad\u017A sw\xF3j kod","Enter your username":"Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika","Family Name":"Nazwisko","Given Name":"Pierwsze imi\u0119","Forgot your password?":"Zapomnia\u0142e\u015B has\u0142a? ","Hide password":"Ukryj has\u0142o",Loading:"\u0141adowanie",Username:"Nazwa u\u017Cytkownika","Middle Name":"Drugie imi\u0119",Name:"Imi\u0119 i nazwisko",Nickname:"Pseudonim","New password":"Nowe has\u0142o",Password:"Has\u0142o","Phone Number":"Numer telefonu","Preferred Username":"Preferowana nazwa u\u017Cytkownika",Profile:"Profil","Resend Code":"Wy\u015Blij kod ponownie","Reset your password":"Zresetuj swoje has\u0142o","Send Code":"Zresetuj has\u0142o","Send code":"Wy\u015Blij kod",Sending:"Wysy\u0142anie","Setup TOTP":"Konfiguruj TOTP","Show password":"Poka\u017C has\u0142o","Sign in":"Zaloguj","Sign In":"Logowanie","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 to your account":"Zaloguj si\u0119 na swoje konto","Create a new account":"Utw\xF3rz nowe konto","Signing in":"Logowanie",Skip:"Pomi\u0144",Submit:"Wy\u015Blij",Submitting:"Wysy\u0142anie","Verify Contact":"Weryfikacja danych kontaktowych","Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych",Verify:"Zweryfikuj",Website:"Strona internetowa"},ll={"Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"C\xF3digo","Confirm Password":"Confirme a Senha","Reset your Password":"Redefina sua senha","Confirm Sign Up":"Confirmar inscri\xE7\xE3o","Confirm SMS Code":"Confirme o c\xF3digo SMS","Confirm TOTP Code":"Confirme o c\xF3digo TOTP",Confirm:"confirme","Confirmation Code":"C\xF3digo de confirma\xE7\xE3o",Confirming:"Confirmando","Create Account":"Criar Conta","Creating Account":"Criando conta",Email:"O email","Enter your code":"Insira seu c\xF3digo","Enter your username":"entre com seu nome de usu\xE1rio","Enter your phone number":"Digite seu n\xFAmero de telefone","Enter your email":"Digite seu e-mail","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha",Loading:"Carregando",Username:"Nome do usu\xE1rio","New password":"Nova Senha",Password:"Senha","Phone Number":"N\xFAmero de telefone","Resend Code":"Reenviar c\xF3digo","Reset your password":"Redefina sua senha","Send Code":"Enviar c\xF3digo","Send code":"Enviar c\xF3digo",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign In":"Entrar","Sign in":"Entrar","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\xE7a login no Google","Sign in to your account":"Fa\xE7a login em sua conta","Create a new account":"Criar uma nova conta","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando","Verify Contact":"Verificar contato","Account recovery requires verified contact information":"A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas",Verify:"Verificar"},dl={"Account recovery requires verified contact information":"\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F","Back to Sign In":"\u56DE\u5230\u767B\u5F55","Change Password":"\u66F4\u6539\u5BC6\u7801",Code:"\u786E\u8BA4\u7801",Confirm:"\u786E\u8BA4","Confirm a Code":"\u786E\u8BA4\u7801","Confirm Password":"\u786E\u8BA4\u5BC6\u7801","Confirm Sign In":"\u786E\u8BA4\u767B\u5F55","Confirm Sign Up":"\u786E\u8BA4\u6CE8\u518C",Email:"\u90AE\u7BB1","Forgot Password":"\u5FD8\u8BB0\u5BC6\u7801","Incorrect username or password":"\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF","Invalid password format":"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF","Invalid phone number format":"\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900","New Password":"\u65B0\u5BC6\u7801",or:"\u6216\u8005",Password:"\u5BC6\u7801","Phone Number":"\u7535\u8BDD","Resend a Code":"\u91CD\u53D1\u786E\u8BA4\u7801","Send Code":"\u53D1\u9001\u786E\u8BA4\u7801","Sign In":"\u767B\u5F55","Sign Out":"\u9000\u51FA","Sign Up":"\u6CE8\u518C",Skip:"\u8DF3\u8FC7",Submit:"\u63D0\u4EA4","User already exists":"\u7528\u6237\u5DF2\u7ECF\u5B58\u5728","User does not exist":"\u7528\u6237\u4E0D\u5B58\u5728",Username:"\u7528\u6237\u540D",Verify:"\u9A8C\u8BC1","Verify Contact":"\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F"},fl={"Account recovery requires verified contact information":"F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt l\xF6senord","Confirm Password":"Bekr\xE4fta l\xF6senord",Code:"Kod",Confirm:"Bekr\xE4fta","Confirm a Code":"Bekr\xE4fta koden","Confirm Sign In":"Bekr\xE4fta inloggning","Confirm Sign Up":"Bekr\xE4fta registrering","Confirmation Code":"Verifikationskod","Create a new account":"Skapa ett nytt konto","Create account":"Skapa konto","Create Account":"Skapa konto",Email:"E-post","Enter your password":"Ange ditt l\xF6senord","Enter your username":"Ange ditt anv\xE4ndarnamn","Forgot Password":"Gl\xF6mt l\xF6senordet","Forgot your password?":"Gl\xF6mt ditt l\xF6senord? ","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt anv\xE4ndarnamn eller l\xF6senord","Invalid password format":"Ogiltigt l\xF6senordsformat","Invalid phone number format":"Ogiltigt format f\xF6r telefonnummer","Lost your code? ":"F\xF6rlorat koden? ","New Password":"Nytt l\xF6senord","No account? ":"Inget konto? ",or:"eller",Password:"L\xF6senord","Password attempts exceeded":"Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset password":"\xC5terst\xE4ll l\xF6senord","Reset your password":"\xC5terst\xE4ll ditt l\xF6senord","Send code":"Skicka kod","Sign in":"Logga in","Sign In":"Logga in","Sign in to your account":"Logga in till ditt konto","Sign Out":"Logga ut","Sign Up":"Registrering","We Emailed You":"Vi har skickat e-post till dig","Enter your code":"Skriv din kod",Skip:"Hoppa \xF6ver",Submit:"Skicka","User already exists":"Anv\xE4ndaren finns redan","User does not exist":"Anv\xE4ndaren finns inte",Username:"Anv\xE4ndarnamn","Username cannot be empty":"Anv\xE4ndarnamnet kan inte vara tomt",Verify:"Verifiera","Verify Contact":"Verifiera kontakt"},pl={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","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.","Back to Sign In":"Kembali ke Masuk","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","Change Password":"Ubah kata sandi",Code:"Kode",Confirm:"Konfirmasi","Confirm a Code":"Konfirmasi kode","Confirm Password":"Konfirmasi kata sandi","Confirmation Code":"Kode Konfirmasi","Create a new account":"Buat akun baru","Create account":"Buat akun","Create Account":"Buat Akun","Creating Account":"Membuat Akun",Confirming:"Mengkonfirmasi",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your password":"Masukkan kata sandi anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot Password":"Lupa kata sandi","Forgot your 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","New password":"Kata sandi baru","No account? ":"Tidak ada akun?",or:"atau",Password:"Kata sandi","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Phone Number":"Nomor telepon","Resend a Code":"Renvoyer un code","Resend Code":"Kirim ulang kodenya","Reset password":"Ubah kata sandi anda","Reset your password":"Ubah kata sandi anda",Send:"Kirim","Send Code":"Kirim Kode","Send code":"Kirim kode",Sending:"Mengirim","Sign in":"Masuk","Sign In":"Masuk","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with AWS":"Masuk dengan AWS","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","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","Signing in":"Memasuki",Skip:"Lewati",SMS:"SMS",Submit:"Ajukan",Submitting:"Mengajukan","User is disabled.":"Akun dinonaktifkan.","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.",Username:"Nama akun","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.",Verify:"Verifikasi","Verify Contact":"Verifikasi Kontak","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"},hl={"Account recovery requires verified contact information":"Hesap kurtarma, do\u011Frulanm\u0131\u015F ileti\u015Fim bilgilerini gerektirir","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Back to Sign In":"Oturum A\xE7maya Geri D\xF6n","Change Password":"\u015Eifreyi De\u011Fi\u015Ftir",Changing:"De\u011Fi\u015Ftiriliyor",Code:"Kod",Confirm:"Do\u011Frula","Confirm Password":"\u015Eifreyi Do\u011Frula","Confirm Sign In":"Oturum A\xE7may\u0131 Do\u011Frula","Confirm Sign Up":"Kay\u0131t \u0130\u015Flemini Do\u011Frula","Confirm SMS Code":"SMS Kodunu Do\u011Frula","Confirm TOTP Code":"Tek Kullan\u0131ml\u0131k \u015Eifreyi Do\u011Frula","Confirmation Code":"Do\u011Frulama Kodu",Confirming:"Do\u011Frulan\u0131yor","Create Account":"Hesap Olu\u015Ftur","Creating Account":"Hesap Olu\u015Fturuluyor",Email:"E-posta","Enter your code":"Kodu girin","Enter your username":"Kullan\u0131c\u0131 ad\u0131n\u0131z\u0131 girin","Enter your phone number":"Telefon numaran\u0131z\u0131 girin","Enter your email":"E-posta adresinizi girin","Forgot your password?":"\u015Eifrenizi mi unuttunuz?","Hide password":"\u015Eifreyi gizle","Have an account? ":"Hesab\u0131n\u0131z var m\u0131? ","Incorrect username or password":"Yanl\u0131\u015F kullan\u0131c\u0131 ad\u0131 ya da \u015Fifre","Invalid password format":"Ge\xE7ersiz parola format\u0131","Invalid phone number format":"Ge\xE7ersiz telefon numaras\u0131 format\u0131","Lost your code? ":"Kodu mu kaybettiniz? ",Loading:"Y\xFCkleniyor","New password":"Yeni \u015Fifre","No account? ":"Hesab\u0131n\u0131z yok mu? ",or:"veya",Password:"\u015Eifre","Password attempts exceeded":"Maksimum oturum a\xE7ma giri\u015Fimi a\u015F\u0131ld\u0131","Phone Number":"Telefon Numaras\u0131","Resend Code":"Kodu Yeniden G\xF6nder","Reset your password":"\u015Eifrenizi s\u0131f\u0131rlay\u0131n","Reset your Password":"\u015Eifrenizi S\u0131f\u0131rlay\u0131n","Send Code":"Kod G\xF6nder","Send code":"Kod g\xF6nder",Sending:"G\xF6nderiliyor","Setup TOTP":"Tek kullan\u0131ml\u0131k \u015Fifre kurulumu yap","Show password":"\u015Eifreyi g\xF6ster","Sign in":"Oturum a\xE7","Sign In":"Oturum A\xE7","Sign In with Amazon":"Amazon ile Oturum A\xE7","Sign In with Apple":"Apple ile Oturum A\xE7","Sign In with Facebook":"Facebook ile Oturum A\xE7","Sign In with Google":"Google ile Oturum A\xE7","Sign in to your account":"Hesab\u0131n\u0131zda oturum a\xE7\u0131n","Create a new account":"Yeni bir hesap olu\u015Ftur","Signing in":"Oturum a\xE7\u0131l\u0131yor","Sign Out":"\xC7\u0131k\u0131\u015F yap","Sign Up":"Kay\u0131t Ol",Skip:"Atla",Submit:"G\xF6nder",Submitting:"G\xF6nderiliyor","User already exists":"Bu kullan\u0131c\u0131 zaten var","User does not exist":"B\xF6yle bir kullan\u0131c\u0131 mevcut de\u011Fil",Username:"Kullan\u0131c\u0131 ad\u0131","Username cannot be empty":"Kullan\u0131c\u0131 ad\u0131 bo\u015F olamaz","Verify Contact":"Ki\u015Fiyi Do\u011Frula",Verify:"Do\u011Frula"},ml={BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS 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",ENTER_CODE:"Enter your code",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_YOUR_PASSWORD:"Forgot your password?",FORGOT_YOUR_PASSWORD_LEGACY:"Forgot your password? ",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",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",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",SUBMIT:"Submit",SUBMITTING:"Submitting",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WEBSITE:"Website"},gl=O({},tl),vl=O({},nl),yl=O({},rl),Sl=O({},ol),wl=O({},al),_l=O({},il),bl=O({},sl),Cl=O({},ul),Al=O({},cl),El=O({},ll),Il=O({},dl),$l=O({},fl),Tl=O({},pl),Pl=O({},hl),Nl=O({},ml);O({},Nl);function R(e){return ue.I18n.get(e)}function kl(e){return ue.I18n.get(e)!==e}var xl={de:gl,en:vl,es:yl,fr:Sl,id:Tl,it:wl,ja:_l,kr:bl,nl:Cl,pl:Al,pt:El,zh:Il,sv:$l,tr:Pl},qr={birthdate:{label:"Birthdate",labelHidden:!0,placeholder:"Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",labelHidden:!0,placeholder:"Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",labelHidden:!0,placeholder:"Confirm Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",labelHidden:!0,placeholder:"Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",labelHidden:!0,placeholder:"Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",labelHidden:!0,placeholder:"Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",labelHidden:!0,placeholder:"Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",labelHidden:!0,placeholder:"Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",labelHidden:!0,placeholder:"Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",labelHidden:!0,placeholder:"Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",labelHidden:!0,placeholder:"Phone",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:el,isRequired:!0},preferred_username:{label:"Preferred Username",labelHidden:!0,placeholder:"Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",labelHidden:!0,placeholder:"Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",labelHidden:!0,placeholder:"Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",labelHidden:!0,placeholder:"Username",type:"text",autocomplete:"username",isRequired:!0}},Fe=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},Xo=function(e){return Zc.includes(e)},Ul=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Ol=function(e,t){var n=t.send,r=t.getSnapshot();switch(e.payload.event){case"tokenRefresh":r.matches("authenticated.idle")&&n("TOKEN_REFRESH");break;case"signOut":case"tokenRefresh_failure":r.matches("authenticated.idle")&&n("SIGN_OUT")}},Rl=function(e,t){return t===void 0&&(t=Ol),ue.Hub.listen("auth",function(n){t(n,e)})};function Bl(){this.__data__=[],this.size=0}var Vl=Bl;function Dl(e,t){return e===t||e!==e&&t!==t}var Mt=Dl,Ml=Mt;function Fl(e,t){for(var n=e.length;n--;)if(Ml(e[n][0],t))return n;return-1}var Bn=Fl,Ll=Bn,jl=Array.prototype,zl=jl.splice;function Gl(e){var t=this.__data__,n=Ll(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():zl.call(t,n,1),--this.size,!0}var Hl=Gl,Kl=Bn;function ql(e){var t=this.__data__,n=Kl(t,e);return n<0?void 0:t[n][1]}var Wl=ql,Yl=Bn;function Jl(e){return Yl(this.__data__,e)>-1}var Zl=Jl,Ql=Bn;function Xl(e,t){var n=this.__data__,r=Ql(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var ed=Xl,td=Vl,nd=Hl,rd=Wl,od=Zl,ad=ed;function ht(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ht.prototype.clear=td;ht.prototype.delete=nd;ht.prototype.get=rd;ht.prototype.has=od;ht.prototype.set=ad;var Vn=ht,id=Vn;function sd(){this.__data__=new id,this.size=0}var ud=sd;function cd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var ld=cd;function dd(e){return this.__data__.get(e)}var fd=dd;function pd(e){return this.__data__.has(e)}var hd=pd,md=De,gd=md["__core-js_shared__"],vd=gd,ar=vd,ea=function(){var e=/[^.]+$/.exec(ar&&ar.keys&&ar.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yd(e){return!!ea&&ea in e}var Sd=yd,wd=Function.prototype,_d=wd.toString;function bd(e){if(e!=null){try{return _d.call(e)}catch{}try{return e+""}catch{}}return""}var ui=bd,Cd=zr,Ad=Sd,Ed=Me,Id=ui,$d=/[\\^$.*+?()[\]{}|]/g,Td=/^\[object .+?Constructor\]$/,Pd=Function.prototype,Nd=Object.prototype,kd=Pd.toString,xd=Nd.hasOwnProperty,Ud=RegExp("^"+kd.call(xd).replace($d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Od(e){if(!Ed(e)||Ad(e))return!1;var t=Cd(e)?Ud:Td;return t.test(Id(e))}var Rd=Od;function Bd(e,t){return e==null?void 0:e[t]}var Vd=Bd,Dd=Rd,Md=Vd;function Fd(e,t){var n=Md(e,t);return Dd(n)?n:void 0}var et=Fd,Ld=et,jd=De,zd=Ld(jd,"Map"),Wr=zd,Gd=et,Hd=Gd(Object,"create"),Dn=Hd,ta=Dn;function Kd(){this.__data__=ta?ta(null):{},this.size=0}var qd=Kd;function Wd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yd=Wd,Jd=Dn,Zd="__lodash_hash_undefined__",Qd=Object.prototype,Xd=Qd.hasOwnProperty;function ef(e){var t=this.__data__;if(Jd){var n=t[e];return n===Zd?void 0:n}return Xd.call(t,e)?t[e]:void 0}var tf=ef,nf=Dn,rf=Object.prototype,of=rf.hasOwnProperty;function af(e){var t=this.__data__;return nf?t[e]!==void 0:of.call(t,e)}var sf=af,uf=Dn,cf="__lodash_hash_undefined__";function lf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uf&&t===void 0?cf:t,this}var df=lf,ff=qd,pf=Yd,hf=tf,mf=sf,gf=df;function mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mt.prototype.clear=ff;mt.prototype.delete=pf;mt.prototype.get=hf;mt.prototype.has=mf;mt.prototype.set=gf;var vf=mt,na=vf,yf=Vn,Sf=Wr;function wf(){this.size=0,this.__data__={hash:new na,map:new(Sf||yf),string:new na}}var _f=wf;function bf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Cf=bf,Af=Cf;function Ef(e,t){var n=e.__data__;return Af(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Mn=Ef,If=Mn;function $f(e){var t=If(this,e).delete(e);return this.size-=t?1:0,t}var Tf=$f,Pf=Mn;function Nf(e){return Pf(this,e).get(e)}var kf=Nf,xf=Mn;function Uf(e){return xf(this,e).has(e)}var Of=Uf,Rf=Mn;function Bf(e,t){var n=Rf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Vf=Bf,Df=_f,Mf=Tf,Ff=kf,Lf=Of,jf=Vf;function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=Df;gt.prototype.delete=Mf;gt.prototype.get=Ff;gt.prototype.has=Lf;gt.prototype.set=jf;var Yr=gt,zf=Vn,Gf=Wr,Hf=Yr,Kf=200;function qf(e,t){var n=this.__data__;if(n instanceof zf){var r=n.__data__;if(!Gf||r.length<Kf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hf(r)}return n.set(e,t),this.size=n.size,this}var Wf=qf,Yf=Vn,Jf=ud,Zf=ld,Qf=fd,Xf=hd,ep=Wf;function vt(e){var t=this.__data__=new Yf(e);this.size=t.size}vt.prototype.clear=Jf;vt.prototype.delete=Zf;vt.prototype.get=Qf;vt.prototype.has=Xf;vt.prototype.set=ep;var Fn=vt;function tp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var np=tp,rp=et,op=function(){try{var e=rp(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ci=op,ra=ci;function ap(e,t,n){t=="__proto__"&&ra?ra(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Jr=ap,ip=Jr,sp=Mt,up=Object.prototype,cp=up.hasOwnProperty;function lp(e,t,n){var r=e[t];(!(cp.call(e,t)&&sp(r,n))||n===void 0&&!(t in e))&&ip(e,t,n)}var Zr=lp,dp=Zr,fp=Jr;function pp(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),a?fp(n,u,c):dp(n,u,c)}return n}var Ft=pp,hp=Ft,mp=Rn;function gp(e,t){return e&&hp(t,mp(t),e)}var vp=gp;function yp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Sp=yp,wp=Me,_p=On,bp=Sp,Cp=Object.prototype,Ap=Cp.hasOwnProperty;function Ep(e){if(!wp(e))return bp(e);var t=_p(e),n=[];for(var r in e)r=="constructor"&&(t||!Ap.call(e,r))||n.push(r);return n}var Ip=Ep,$p=ri,Tp=Ip,Pp=Dt;function Np(e){return Pp(e)?$p(e,!0):Tp(e)}var Lt=Np,kp=Ft,xp=Lt;function Up(e,t){return e&&kp(t,xp(t),e)}var Op=Up,yn={exports:{}};(function(e,t){var n=De,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(l,d){if(d)return l.slice();var h=l.length,f=u?u(h):new l.constructor(h);return l.copy(f),f}e.exports=c})(yn,yn.exports);function Rp(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var li=Rp;function Bp(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var Vp=Bp;function Dp(){return[]}var di=Dp,Mp=Vp,Fp=di,Lp=Object.prototype,jp=Lp.propertyIsEnumerable,oa=Object.getOwnPropertySymbols,zp=oa?function(e){return e==null?[]:(e=Object(e),Mp(oa(e),function(t){return jp.call(e,t)}))}:Fp,Qr=zp,Gp=Ft,Hp=Qr;function Kp(e,t){return Gp(e,Hp(e),t)}var qp=Kp;function Wp(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var fi=Wp,Yp=oi,Jp=Yp(Object.getPrototypeOf,Object),Xr=Jp,Zp=fi,Qp=Xr,Xp=Qr,eh=di,th=Object.getOwnPropertySymbols,nh=th?function(e){for(var t=[];e;)Zp(t,Xp(e)),e=Qp(e);return t}:eh,pi=nh,rh=Ft,oh=pi;function ah(e,t){return rh(e,oh(e),t)}var ih=ah,sh=fi,uh=ke;function ch(e,t,n){var r=t(e);return uh(e)?r:sh(r,n(e))}var hi=ch,lh=hi,dh=Qr,fh=Rn;function ph(e){return lh(e,fh,dh)}var mi=ph,hh=hi,mh=pi,gh=Lt;function vh(e){return hh(e,gh,mh)}var gi=vh,yh=et,Sh=De,wh=yh(Sh,"DataView"),_h=wh,bh=et,Ch=De,Ah=bh(Ch,"Promise"),Eh=Ah,Ih=et,$h=De,Th=Ih($h,"Set"),Ph=Th,Nh=et,kh=De,xh=Nh(kh,"WeakMap"),Uh=xh,yr=_h,Sr=Wr,wr=Eh,_r=Ph,br=Uh,vi=pt,yt=ui,aa="[object Map]",Oh="[object Object]",ia="[object Promise]",sa="[object Set]",ua="[object WeakMap]",ca="[object DataView]",Rh=yt(yr),Bh=yt(Sr),Vh=yt(wr),Dh=yt(_r),Mh=yt(br),Qe=vi;(yr&&Qe(new yr(new ArrayBuffer(1)))!=ca||Sr&&Qe(new Sr)!=aa||wr&&Qe(wr.resolve())!=ia||_r&&Qe(new _r)!=sa||br&&Qe(new br)!=ua)&&(Qe=function(e){var t=vi(e),n=t==Oh?e.constructor:void 0,r=n?yt(n):"";if(r)switch(r){case Rh:return ca;case Bh:return aa;case Vh:return ia;case Dh:return sa;case Mh:return ua}return t});var jt=Qe,Fh=Object.prototype,Lh=Fh.hasOwnProperty;function jh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Lh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var zh=jh,Gh=De,Hh=Gh.Uint8Array,yi=Hh,la=yi;function Kh(e){var t=new e.constructor(e.byteLength);return new la(t).set(new la(e)),t}var eo=Kh,qh=eo;function Wh(e,t){var n=t?qh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Yh=Wh,Jh=/\w*$/;function Zh(e){var t=new e.constructor(e.source,Jh.exec(e));return t.lastIndex=e.lastIndex,t}var Qh=Zh,da=Vt,fa=da?da.prototype:void 0,pa=fa?fa.valueOf:void 0;function Xh(e){return pa?Object(pa.call(e)):{}}var em=Xh,tm=eo;function nm(e,t){var n=t?tm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Si=nm,rm=eo,om=Yh,am=Qh,im=em,sm=Si,um="[object Boolean]",cm="[object Date]",lm="[object Map]",dm="[object Number]",fm="[object RegExp]",pm="[object Set]",hm="[object String]",mm="[object Symbol]",gm="[object ArrayBuffer]",vm="[object DataView]",ym="[object Float32Array]",Sm="[object Float64Array]",wm="[object Int8Array]",_m="[object Int16Array]",bm="[object Int32Array]",Cm="[object Uint8Array]",Am="[object Uint8ClampedArray]",Em="[object Uint16Array]",Im="[object Uint32Array]";function $m(e,t,n){var r=e.constructor;switch(t){case gm:return rm(e);case um:case cm:return new r(+e);case vm:return om(e,n);case ym:case Sm:case wm:case _m:case bm:case Cm:case Am:case Em:case Im:return sm(e,n);case lm:return new r;case dm:case hm:return new r(e);case fm:return am(e);case pm:return new r;case mm:return im(e)}}var Tm=$m,Pm=Me,ha=Object.create,Nm=function(){function e(){}return function(t){if(!Pm(t))return{};if(ha)return ha(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),km=Nm,xm=km,Um=Xr,Om=On;function Rm(e){return typeof e.constructor=="function"&&!Om(e)?xm(Um(e)):{}}var wi=Rm,Bm=jt,Vm=Ge,Dm="[object Map]";function Mm(e){return Vm(e)&&Bm(e)==Dm}var Fm=Mm,Lm=Fm,jm=Kr,ma=Ot.exports,ga=ma&&ma.isMap,zm=ga?jm(ga):Lm,Gm=zm,Hm=jt,Km=Ge,qm="[object Set]";function Wm(e){return Km(e)&&Hm(e)==qm}var Ym=Wm,Jm=Ym,Zm=Kr,va=Ot.exports,ya=va&&va.isSet,Qm=ya?Zm(ya):Jm,Xm=Qm,eg=Fn,tg=np,ng=Zr,rg=vp,og=Op,ag=yn.exports,ig=li,sg=qp,ug=ih,cg=mi,lg=gi,dg=jt,fg=zh,pg=Tm,hg=wi,mg=ke,gg=Xe.exports,vg=Gm,yg=Me,Sg=Xm,wg=Rn,_g=Lt,bg=1,Cg=2,Ag=4,_i="[object Arguments]",Eg="[object Array]",Ig="[object Boolean]",$g="[object Date]",Tg="[object Error]",bi="[object Function]",Pg="[object GeneratorFunction]",Ng="[object Map]",kg="[object Number]",Ci="[object Object]",xg="[object RegExp]",Ug="[object Set]",Og="[object String]",Rg="[object Symbol]",Bg="[object WeakMap]",Vg="[object ArrayBuffer]",Dg="[object DataView]",Mg="[object Float32Array]",Fg="[object Float64Array]",Lg="[object Int8Array]",jg="[object Int16Array]",zg="[object Int32Array]",Gg="[object Uint8Array]",Hg="[object Uint8ClampedArray]",Kg="[object Uint16Array]",qg="[object Uint32Array]",re={};re[_i]=re[Eg]=re[Vg]=re[Dg]=re[Ig]=re[$g]=re[Mg]=re[Fg]=re[Lg]=re[jg]=re[zg]=re[Ng]=re[kg]=re[Ci]=re[xg]=re[Ug]=re[Og]=re[Rg]=re[Gg]=re[Hg]=re[Kg]=re[qg]=!0;re[Tg]=re[bi]=re[Bg]=!1;function pn(e,t,n,r,a,i){var s,u=t&bg,c=t&Cg,l=t&Ag;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!yg(e))return e;var d=mg(e);if(d){if(s=fg(e),!u)return ig(e,s)}else{var h=dg(e),f=h==bi||h==Pg;if(gg(e))return ag(e,u);if(h==Ci||h==_i||f&&!a){if(s=c||f?{}:hg(e),!u)return c?ug(e,og(s,e)):sg(e,rg(s,e))}else{if(!re[h])return a?e:{};s=pg(e,h,u)}}i||(i=new eg);var p=i.get(e);if(p)return p;i.set(e,s),Sg(e)?e.forEach(function(g){s.add(pn(g,t,n,g,e,i))}):vg(e)&&e.forEach(function(g,S){s.set(S,pn(g,t,n,S,e,i))});var v=l?c?lg:cg:c?_g:wg,m=d?void 0:v(e);return tg(m||e,function(g,S){m&&(S=g,g=e[S]),ng(s,S,pn(g,t,n,S,e,i))}),s}var Wg=pn,Yg=Wg,Jg=1,Zg=4;function Qg(e){return Yg(e,Jg|Zg)}var Xg=Qg,He=function(e,t){var n=Qa(e).country_code,r=qr[t];return r.type==="tel"&&(r=O(O({},r),{dialCode:n})),r},ir=function(e){var t=vr(e);return O(O({},He(e,t)),{autocomplete:"username"})},Xt=function(e){return{confirmation_code:O(O({},He(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},ev={signIn:function(e){return{username:O({},ir(e)),password:O(O({},He(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,a=vr(e),i={},s=0,u=Array.from(new Set(Ue(Ue(Ue([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(Xo(c)){var l=c===a?ir(e):He(e,c);i[c]=O({},l)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return i},confirmSignUp:function(e){return{confirmation_code:O(O({},He(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:Xt,forceNewPassword:function(e){for(var t=be(e).context.requiredAttributes,n={},r=0,a=Array.from(new Set(Ue(["password","confirm_password"],t,!0)));r<a.length;r++){var i=a[r];Xo(i)?n[i]=O({},He(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=qr[t].label;return{username:O(O({},ir(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return O(O({},Xt(e)),{password:O(O({},He(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:O(O({},He(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:Xt,setupTOTP:Xt},tv=function(e){for(var t=O({},e),n=0,r=Object.entries(e);n<r.length;n++){var a=r[n],i=a[0],s=a[1],u=s.label,c=s.placeholder;t[i]=O(O({},s),{label:u?R(u):void 0,placeholder:c?R(c):void 0})}return t},nv=function(e){return Object.entries(e).sort(function(t,n){return(t[1].order||Number.MAX_VALUE)-(n[1].order||Number.MAX_VALUE)}).filter(function(t){return t[1]!==void 0})},rv=function(e,t){t===void 0&&(t={});var n=Xg(e);return Object.keys(t).forEach(function(r){n[r]=O(O({},n[r]),t[r])}),n},ov=function(e,t){var n=(0,ev[e])(t);return tv(n)},av=function(e,t){var n,r,a=ov(e,t),i=((r=(n=be(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=rv(a,i);return delete s.QR,s},iv=function(e,t){var n=av(e,t);return nv(n)};/*! *****************************************************************************
15
+ ***************************************************************************** */var $=function(){return $=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$.apply(this,arguments)};function ro(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function z(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){s={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function le(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ee;(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"})(ee||(ee={}));var ut;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(ut||(ut={}));var Er=ee.Start,oo=ee.Stop,Gn=ee.Raise,Hn=ee.Send,Ii=ee.Cancel,uv=ee.NullEvent,Ir=ee.Assign;ee.After;ee.DoneState;var $i=ee.Log,cv=ee.Init,$r=ee.Invoke;ee.ErrorExecution;var _a=ee.ErrorPlatform,lv=ee.ErrorCustom,ao=ee.Update,dv=ee.Choose,fv=ee.Pure,Ti=".",ba={},Tr="xstate.guard",pv="",Pt=!0,on;function io(e,t,n){n===void 0&&(n=Ti);var r=Ot(e,n),a=Ot(t,n);return H(a)?H(r)?a===r:!1:H(r)?r in a:Object.keys(r).every(function(i){return i in a?io(r[i],a[i]):!1})}function Pi(e){try{return H(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 Pr(e,t){try{return wt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function hv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Ot(e,t){if(hv(e))return e.value;if(wt(e))return bn(e);if(typeof e!="string")return e;var n=Pr(e,t);return bn(n)}function bn(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function kt(e,t){for(var n={},r=Object.keys(e),a=0;a<r.length;a++){var i=r[a];n[i]=t(e[i],i,e,a)}return n}function Ca(e,t,n){var r,a,i={};try{for(var s=z(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];!n(l)||(i[c]=t(l,c,e))}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}var mv=function(e){return function(t){var n,r,a=t;try{for(var i=z(e),s=i.next();!s.done;s=i.next()){var u=s.value;a=a[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}};function gv(e,t){return function(n){var r,a,i=n;try{for(var s=z(e),u=s.next();!u.done;u=s.next()){var c=u.value;i=i[t][c]}}catch(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}}function vn(e){if(!e)return[[]];if(H(e))return[[e]];var t=se(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:vn(e[n]).map(function(a){return[n].concat(a)})}));return t}function se(e){var t;return(t=[]).concat.apply(t,le([],W(e),!1))}function Ni(e){return wt(e)?e:[e]}function Ne(e){return e===void 0?[]:Ni(e)}function Cn(e,t,n){var r,a;if(X(e))return e(t,n.data);var i={};try{for(var s=z(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];X(l)?i[c]=l(t,n.data):i[c]=l}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}function vv(e){return/^(done|error)\./.test(e)}function Aa(e){return!!(e instanceof Promise||e!==null&&(X(e)||typeof e=="object")&&X(e.then))}function yv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function ki(e,t){var n,r,a=W([[],[]],2),i=a[0],s=a[1];try{for(var u=z(e),c=u.next();!c.done;c=u.next()){var l=c.value;t(l)?i.push(l):s.push(l)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[i,s]}function xi(e,t){return kt(e.states,function(n,r){if(!!n){var a=(H(t)?void 0:t[r])||(n?n.current:void 0);if(!!a)return{current:a,states:xi(n,a)}}})}function Sv(e,t){return{current:t,states:xi(e,t)}}function Ea(e,t,n,r){var a=e&&n.reduce(function(i,s){var u,c,l=s.assignment,d={state:r,action:s,_event:t},h={};if(X(l))h=l(i,t.data,d);else try{for(var f=z(Object.keys(l)),p=f.next();!p.done;p=f.next()){var v=p.value,m=l[v];h[v]=X(m)?m(i,t.data,d):m}}catch(g){u={error:g}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,h)},e);return a}var Rt=function(){};function wt(e){return Array.isArray(e)}function X(e){return typeof e=="function"}function H(e){return typeof e=="string"}function Ui(e,t){if(!!e)return H(e)?{type:Tr,name:e,predicate:t?t[e]:void 0}:X(e)?{type:Tr,name:e.name,predicate:e}:e}function wv(e){try{return"subscribe"in e&&X(e.subscribe)}catch{return!1}}var Ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();on={},on[Ke]=function(){return this},on[Symbol.observable]=function(){return this};function Xe(e){return!!e&&"__xstatenode"in e}function _v(e){return!!e&&typeof e.send=="function"}var bv=function(){var e=0;return function(){return e++,e.toString(16)}}();function so(e,t){return H(e)||typeof e=="number"?$({type:e},t):e}function ve(e,t){if(!H(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=so(e);return $({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function rt(e,t){var n=Ni(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||Xe(r)?{target:r,event:e}:$($({},r),{event:e})});return n}function Cv(e){if(!(e===void 0||e===pv))return Ne(e)}function Oi(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===Tr)return((i==null?void 0:i[t.name])||t.predicate)(n,r.data,s);var u=i==null?void 0:i[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,s)}function Ri(e){return typeof e=="string"?{type:e}:e}function Nr(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function an(e,t){return"".concat(e,":invocation[").concat(t,"]")}var An=ve({type:cv});function kr(e,t){return t&&t[e]||void 0}function Mt(e,t){var n;if(H(e)||typeof e=="number"){var r=kr(e,t);X(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(X(e))n={type:e.name||e.toString(),exec:e};else{var r=kr(e.type,t);if(X(r))n=$($({},e),{exec:r});else if(r){var a=r.type||e.type;n=$($($({},r),e),{type:a})}else n=e}return n}var En=function(e,t){if(!e)return[];var n=wt(e)?e:[e];return n.map(function(r){return Mt(r,t)})};function uo(e){var t=Mt(e);return $($({id:H(e)?e:t.id},t),{type:t.type})}function Av(e){return H(e)?{type:Gn,event:e}:Kn(e,{to:ut.Internal})}function Ev(e){return{type:Gn,_event:ve(e.event)}}function Kn(e,t){return{to:t?t.to:void 0,type:Hn,event:X(e)?e:so(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:X(e)?e.name:Pi(e)}}function Iv(e,t,n,r){var a={_event:n},i=ve(X(e.event)?e.event(t,n.data,a):e.event),s;if(H(e.delay)){var u=r&&r[e.delay];s=X(u)?u(t,n.data,a):u}else s=X(e.delay)?e.delay(t,n.data,a):e.delay;var c=X(e.to)?e.to(t,n.data,a):e.to;return $($({},e),{to:c,_event:i,event:i.data,delay:s})}function $v(e,t){return Kn(e,$($({},t),{to:ut.Parent}))}function Tv(){return $v(ao)}var Pv=function(e,t,n){return $($({},e),{value:H(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Nv=function(e){return{type:Ii,sendId:e}};function kv(e){var t=uo(e);return{type:ee.Start,activity:t,exec:void 0}}function xv(e){var t=X(e)?e:uo(e);return{type:ee.Stop,activity:t,exec:void 0}}function Uv(e,t,n){var r=X(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:ee.Stop,activity:a};return i}var Ov=function(e){return{type:Ir,assignment:e}};function Rv(e,t){var n=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(n)}function sn(e,t){var n="".concat(ee.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function yn(e,t){var n="".concat(ee.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function xt(e,t){var n="".concat(ee.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Bv(e,t){return Kn(function(n,r){return r},$($({},t),{to:e}))}function xr(e,t,n,r,a,i){i===void 0&&(i=!1);var s=W(i?[[],a]:ki(a,function(f){return f.type===Ir}),2),u=s[0],c=s[1],l=u.length?Ea(n,r,u,t):n,d=i?[n]:void 0,h=se(c.map(function(f){var p;switch(f.type){case Gn:return Ev(f);case Hn:var v=Iv(f,l,r,e.options.delays);return v;case $i:return Pv(f,l,r);case dv:{var m=f,g=(p=m.conds.find(function(x){var B=Ui(x.cond,e.options.guards);return!B||Oi(e,B,l,r,t)}))===null||p===void 0?void 0:p.actions;if(!g)return[];var S=W(xr(e,t,l,r,En(Ne(g),e.options.actions),i),2),w=S[0],_=S[1];return l=_,d==null||d.push(l),w}case fv:{var g=f.get(l,r.data);if(!g)return[];var b=W(xr(e,t,l,r,En(Ne(g),e.options.actions),i),2),A=b[0],I=b[1];return l=I,d==null||d.push(l),A}case oo:return Uv(f,l,r);case Ir:{l=Ea(l,r,[f],t),d==null||d.push(l);break}default:var C=Mt(f,e.options.actions),E=C.exec;if(E&&d){var P=d.length-1;C=$($({},C),{exec:function(x){for(var B=[],M=1;M<arguments.length;M++)B[M-1]=arguments[M];E.apply(void 0,le([d[P]],W(B),!1))}})}return C}}).filter(function(f){return!!f}));return[h,l]}var In=[],Ut=function(e,t){In.push(e);var n=t(e);return In.pop(),n},Vv=function(e){return e(In[In.length-1])};function Bi(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Ke]=function(){return this},t}function Dv(e,t,n,r){var a,i=Ri(e.src),s=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],u=e.data?Cn(e.data,n,r):void 0,c=s?Vi(s,e.id,u):Bi(e.id);return c.meta=e,c}function Vi(e,t,n){var r=Bi(t);if(r.deferred=!0,Xe(e)){var a=r.state=Ut(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function Mv(e){try{return typeof e.send=="function"}catch{return!1}}function Fv(e){return Mv(e)&&"id"in e}function Lv(e){var t;return $((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Ke]=function(){return this},t),e)}var $n=function(e){return e.type==="atomic"||e.type==="final"};function ct(e){return Object.keys(e.states).map(function(t){return e.states[t]}).filter(function(t){return t.type!=="history"})}function Di(e){var t=[e];return $n(e)?t:t.concat(se(ct(e).map(Di)))}function it(e,t){var n,r,a,i,s,u,c,l,d=new Set(e),h=Ur(d),f=new Set(t);try{for(var p=z(f),v=p.next();!v.done;v=p.next())for(var m=v.value,g=m.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch(P){n={error:P}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var S=Ur(f);try{for(var w=z(f),_=w.next();!_.done;_=w.next()){var m=_.value;if(m.type==="compound"&&(!S.get(m)||!S.get(m).length))h.get(m)?h.get(m).forEach(function(x){return f.add(x)}):m.initialStateNodes.forEach(function(x){return f.add(x)});else if(m.type==="parallel")try{for(var b=(s=void 0,z(ct(m))),A=b.next();!A.done;A=b.next()){var I=A.value;f.has(I)||(f.add(I),h.get(I)?h.get(I).forEach(function(x){return f.add(x)}):I.initialStateNodes.forEach(function(x){return f.add(x)}))}}catch(x){s={error:x}}finally{try{A&&!A.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(P){a={error:P}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var C=z(f),E=C.next();!E.done;E=C.next())for(var m=E.value,g=m.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch(P){c={error:P}}finally{try{E&&!E.done&&(l=C.return)&&l.call(C)}finally{if(c)throw c.error}}return f}function Mi(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if($n(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Mi(i,t)}),a}function Ur(e){var t,n,r=new Map;try{for(var a=z(e),i=a.next();!i.done;i=a.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function jv(e,t){var n=it([e],t);return Mi(e,Ur(n))}function Sn(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function zv(e){return le([],W(new Set(se(le([],W(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Bt(e,t){return t.type==="compound"?ct(t).some(function(n){return n.type==="final"&&Sn(e,n)}):t.type==="parallel"?ct(t).every(function(n){return Bt(e,n)}):!1}function Gv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function Ia(e){return new Set(se(e.map(function(t){return t.tags})))}function Fi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(H(e)||H(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return Fi(e[a],t[a])})}function Hv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Kv(e,t){var n=e.exec,r=$($({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var xe=function(){function e(t){var n=this,r;this.actions=[],this.activities=ba,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||ba,this.meta=Gv(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=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return zv(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var r=An;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=An;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),H(t))return[t];var a=Object.keys(t);return a.concat.apply(a,le([],W(a.map(function(i){return r.toStrings(t[i],n).map(function(s){return i+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=ro(t,["configuration","transitions","tags","machine"]);return $($({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return io(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;Rt(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e}(),qv={deferEvents:!1},$a=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=$($({},qv),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(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),lr=new Map,Wv=0,un={bookId:function(){return"x:".concat(Wv++)},register:function(e,t){return lr.set(e,t),e},get:function(e){return lr.get(e)},free:function(e){lr.delete(e)}};function co(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}function Yv(){var e=co();if(e&&"__xstate__"in e)return e.__xstate__}function Jv(e){if(!!co()){var t=Yv();t&&t.register(e)}}function Zv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,a=[],i=!1,s=function(){if(!i){for(i=!0;a.length>0;){var l=a.shift();n=e.transition(n,l,c),r.forEach(function(d){return d.next(n)})}i=!1}},u=Lv({id:t.id,send:function(l){a.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,d,h){var f=Nr(l,d,h);return r.add(f),f.next(n),{unsubscribe:function(){r.delete(f)}}}}),c={parent:t.parent,self:u,id:t.id||"anonymous",observers:r};return n=e.start?e.start(c):n,u}var Or={sync:!1,autoForward:!1},ye;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ye||(ye={}));var Qv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),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=ye.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,h){if(wt(d))return r.batch(d),r.state;var f=ve(so(d,h));if(r.status===ye.Stopped)return r.state;if(r.status!==ye.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
16
+ Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var p=r.nextState(f);r.update(p,f)}),r._state},this.sendTo=function(d,h){var f=r.parent&&(h===ut.Parent||r.parent.id===h),p=f?r.parent:H(h)?r.children.get(h)||un.get(h):_v(h)?h:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(h,"' from service '").concat(r.id,"'."));return}"machine"in p?p.send($($({},d),{name:d.name===lv?"".concat(xt(r.id)):d.name,origin:r.sessionId})):p.send(d.data)};var a=$($({},e.defaultOptions),n),i=a.clock,s=a.logger,u=a.parent,c=a.id,l=c!==void 0?c:t.id;this.id=l,this.logger=s,this.clock=i,this.parent=u,this.options=a,this.scheduler=new $a({deferEvents:this.options.deferEvents}),this.sessionId=un.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ut(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,a;try{for(var i=z(t.actions),s=i.next();!s.done;s=i.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,a,i,s,u,c,l,d,h=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(P){h.state.children[P.id]=P}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var f=z(this.eventListeners),p=f.next();!p.done;p=f.next()){var v=p.value;v(t.event)}}catch(P){r={error:P}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}try{for(var m=z(this.listeners),g=m.next();!g.done;g=m.next()){var v=g.value;v(t,t.event)}}catch(P){i={error:P}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(i)throw i.error}}try{for(var S=z(this.contextListeners),w=S.next();!w.done;w=S.next()){var _=w.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(P){u={error:P}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}var b=Bt(t.configuration||[],this.machine);if(this.state.configuration&&b){var A=t.configuration.find(function(P){return P.type==="final"&&P.parent===h.machine}),I=A&&A.doneData?Cn(A.doneData,t.context,n):void 0;try{for(var C=z(this.doneListeners),E=C.next();!E.done;E=C.next()){var v=E.value;v(yn(this.id,I))}}catch(P){l={error:P}}finally{try{E&&!E.done&&(d=C.return)&&d.call(C)}finally{if(l)throw l.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===ye.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this;if(!t)return{unsubscribe:function(){}};var i,s=r;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status!==ye.NotStarted&&i(this.state),s&&(this.status===ye.Stopped?s():this.onDone(s)),{unsubscribe:function(){i&&a.listeners.delete(i),s&&a.doneListeners.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.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 n=this;if(this.status===ye.Running)return this;this.machine._init(),un.register(this.sessionId,this),this.initialized=!0,this.status=ye.Running;var r=t===void 0?this.initialState:Ut(this,function(){return Hv(t)?n.machine.resolveState(t):n.machine.resolveState(xe.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,An)}),this},e.prototype.stop=function(){var t,n,r,a,i,s,u,c,l,d,h=this;try{for(var f=z(this.listeners),p=f.next();!p.done;p=f.next()){var v=p.value;this.listeners.delete(v)}}catch(E){t={error:E}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}try{for(var m=z(this.stopListeners),g=m.next();!g.done;g=m.next()){var v=g.value;v(),this.stopListeners.delete(v)}}catch(E){r={error:E}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}try{for(var S=z(this.contextListeners),w=S.next();!w.done;w=S.next()){var v=w.value;this.contextListeners.delete(v)}}catch(E){i={error:E}}finally{try{w&&!w.done&&(s=S.return)&&s.call(S)}finally{if(i)throw i.error}}try{for(var _=z(this.doneListeners),b=_.next();!b.done;b=_.next()){var v=b.value;this.doneListeners.delete(v)}}catch(E){u={error:E}}finally{try{b&&!b.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;le([],W(this.state.configuration),!1).sort(function(E,P){return P.order-E.order}).forEach(function(E){var P,x;try{for(var B=z(E.definition.exit),M=B.next();!M.done;M=B.next()){var L=M.value;h.exec(L,h.state)}}catch(ce){P={error:ce}}finally{try{M&&!M.done&&(x=B.return)&&x.call(B)}finally{if(P)throw P.error}}}),this.children.forEach(function(E){X(E.stop)&&E.stop()}),this.children.clear();try{for(var A=z(Object.keys(this.delayedEventsMap)),I=A.next();!I.done;I=A.next()){var C=I.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(E){l={error:E}}finally{try{I&&!I.done&&(d=A.return)&&d.call(A)}finally{if(l)throw l.error}}return this.scheduler.clear(),this.scheduler=new $a({deferEvents:this.options.deferEvents}),this.initialized=!1,this.status=ye.Stopped,this._initialState=void 0,un.free(this.sessionId),this},e.prototype.batch=function(t){var n=this;if(!(this.status===ye.NotStarted&&this.options.deferEvents)){if(this.status!==ye.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.'))}this.scheduler.schedule(function(){var r,a,i=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),i=Ut(n,function(){return n.machine.transition(i,p)}),u.push.apply(u,le([],W(i.actions.map(function(v){return Kv(v,i)})),!1)),s=s||!!i.changed};try{for(var l=z(t),d=l.next();!d.done;d=l.next()){var h=d.value;c(h)}}catch(f){r={error:f}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}i.changed=s,i.actions=u,n.update(i,ve(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var n=this,r=ve(t);if(r.name.indexOf(_a)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(_a)===0}))throw r.data.data;var a=Ut(this,function(){return n.machine.transition(n.state,r)});return a},e.prototype.forward=function(t){var n,r;try{for(var a=z(this.forwardTo),i=a.next();!i.done;i=a.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?n.sendTo(t._event,t.to):n.send(t._event)},t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions);var a=n.context,i=n._event,s=t.exec||kr(t.type,r),u=X(s)?s:s?s.exec:t.exec;if(u)try{return u(a,i.data,{action:t,state:this.state,_event:i})}catch(b){throw this.parent&&this.parent.send({type:"xstate.error",data:b}),b}switch(t.type){case Hn:var c=t;if(typeof c.delay=="number"){this.defer(c);return}else c.to?this.sendTo(c._event,c.to):this.send(c._event);break;case Ii:this.cancel(t.sendId);break;case Er:{if(this.status!==ye.Running)return;var l=t.activity;if(!this.state.activities[l.id||l.type])break;if(l.type===ee.Invoke){var d=Ri(l.src),h=this.machine.options.services?this.machine.options.services[d.type]:void 0,f=l.id,p=l.data,v="autoForward"in l?l.autoForward:!!l.forward;if(!h)return;var m=p?Cn(p,a,i):void 0;if(typeof h=="string")return;var g=X(h)?h(a,i.data,{data:m,src:d,meta:l.meta}):h;if(!g)return;var S=void 0;Xe(g)&&(g=m?g.withContext(m):g,S={autoForward:v}),this.spawn(g,f,S)}else this.spawnActivity(l);break}case oo:{this.stopChild(t.activity.id);break}case $i:var w=t.label,_=t.value;w?this.logger(w,_):this.logger(_);break}},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);!n||(this.removeChild(t),X(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(Aa(t))return this.spawnPromise(Promise.resolve(t),n);if(X(t))return this.spawnCallback(t,n);if(Fv(t))return this.spawnActor(t,n);if(wv(t))return this.spawnObservable(t,n);if(Xe(t))return this.spawnMachine(t,$($({},r),{id:n}));if(yv(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var a=new e(t,$($({},this.options),{parent:this,id:n.id||t.id})),i=$($({},Or),n);i.sync&&a.onTransition(function(u){r.send(ao,{state:u,id:a.id})});var s=a;return this.children.set(a.id,s),i.autoForward&&this.forwardTo.add(a.id),a.onDone(function(u){r.removeChild(a.id),r.send(ve(u,{origin:a.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=Zv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,a=this,i=!1,s;t.then(function(c){i||(s=c,a.removeChild(n),a.send(ve(yn(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var l=xt(n,c);try{a.send(ve(l,{origin:n}))}catch{a.devTools&&a.devTools.send(l,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,l,d){var h=Nr(c,l,d),f=!1;return t.then(function(p){f||(h.next(p),!f&&h.complete())},function(p){f||h.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[Ke]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,a=this,i=!1,s=new Set,u=new Set,c,l=function(f){c=f,u.forEach(function(p){return p(f)}),!i&&a.send(ve(f,{origin:n}))},d;try{d=t(l,function(f){s.add(f)})}catch(f){this.send(xt(n,f))}if(Aa(d))return this.spawnPromise(d,n);var h=(r={id:n,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=Nr(f);return u.add(p.next),{unsubscribe:function(){u.delete(p.next)}}},stop:function(){i=!0,X(d)&&d()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[Ke]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,a=this,i,s=t.subscribe(function(c){i=c,a.send(ve(c,{origin:n}))},function(c){a.removeChild(n),a.send(ve(xt(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(yn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,l,d){return t.subscribe(c,l,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[Ke]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[Ke]=function(){return this},r))},e.prototype.attachDev=function(){var t=co();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect($($({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:$({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Jv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ke]=function(){return this},e.prototype.getSnapshot=function(){return this.status===ye.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Li,e}(),Xv=function(e){return H(e)?$($({},Or),{name:e}):$($($({},Or),{name:bv()}),e)};function cn(e,t){var n=Xv(t);return Vv(function(r){return r?r.spawn(e,n.name,n):Vi(e,n.name)})}function Li(e,t){var n=new Qv(e,t);return n}function ey(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function ln(e){return $($({type:$r},e),{toJSON:function(){e.onDone,e.onError;var t=ro(e,["onDone","onError"]);return $($({},t),{type:$r,src:ey(e.src)})}})}var st="",Rr="#",Nt="*",ot={},at=function(e){return e[0]===Rr},ty=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ny=function(e,t,n){var r=n.slice(0,-1).some(function(i){return!("cond"in i)&&!("in"in i)&&(H(i.target)||Xe(i.target))}),a=t===st?"the transient event":"event '".concat(t,"'");Rt(!r,"One or more transitions for ".concat(a," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},ry=function(){function e(t,n,r,a){var i=this;r===void 0&&(r="context"in t?t.context:void 0);var s;this.config=t,this._context=r,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(ty(),n),this.parent=a==null?void 0:a.parent,this.key=this.config.key||(a==null?void 0:a.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:Ti),this.id=this.config.id||le([this.machine.key],W(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,this.initial=this.config.initial,this.states=this.config.states?kt(this.config.states,function(l,d){var h,f=new e(l,{},void 0,{parent:i,key:d});return Object.assign(i.idMap,$((h={},h[f.id]=f,h),f.idMap)),f}):ot;var u=0;function c(l){var d,h;l.order=u++;try{for(var f=z(ct(l)),p=f.next();!p.done;p=f.next()){var v=p.value;c(v)}}catch(m){d={error:m}}finally{try{p&&!p.done&&(h=f.return)&&h.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(l){var d=l.event;return d===st}):st in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ne(this.config.entry||this.config.onEntry).map(function(l){return Mt(l)}),this.onExit=Ne(this.config.exit||this.config.onExit).map(function(l){return Mt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ne(this.config.invoke).map(function(l,d){var h,f;if(Xe(l)){var p=an(i.id,d);return i.machine.options.services=$((h={},h[p]=l,h),i.machine.options.services),ln({src:p,id:p})}else if(H(l.src)){var p=l.id||an(i.id,d);return ln($($({},l),{id:p,src:l.src}))}else if(Xe(l.src)||X(l.src)){var p=l.id||an(i.id,d);return i.machine.options.services=$((f={},f[p]=l.src,f),i.machine.options.services),ln($($({id:p},l),{src:p}))}else{var v=l.src;return ln($($({id:an(i.id,d)},l),{src:v}))}}),this.activities=Ne(this.config.activities).concat(this.invoke).map(function(l){return uo(l)}),this.transition=this.transition.bind(this),this.tags=Ne(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Di(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,a=r.actions,i=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:$($({},a),t.actions),activities:$($({},i),t.activities),guards:$($({},s),t.guards),services:$($({},u),t.services),delays:$($({},c),t.delays)},n!=null?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return X(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:kt(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(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},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 n=t===st,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===Nt});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,s){var u=X(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Rv(u,t.id);return t.onEntry.push(Kn(c,{delay:i})),t.onExit.push(Nv(c)),c},a=wt(n)?n.map(function(i,s){var u=r(i.delay,s);return $($({},i),{event:u})}):se(Object.keys(n).map(function(i,s){var u=n[i],c=H(u)?{target:u}:u,l=isNaN(+i)?i:+i,d=r(l,s);return Ne(c).map(function(h){return $($({},h),{event:d,delay:l})})}));return a.map(function(i){var s=i.delay;return $($({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof xe?t.value:Ot(t,this.delimiter);if(H(a)){var i=this.getStateNode(a).initial;return i!==void 0?this.getStateNodes((n={},n[a]=i,n)):[this,this.states[a]]}var s=Object.keys(a),u=[this];return u.push.apply(u,le([],W(se(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=Pi(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof xe?t:xe.create(t),r=Array.from(it([],this.getStateNodes(n.value)));return new xe($($({},n),{value:this.resolve(n.value),configuration:r,done:Bt(r,this),tags:Ia(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var a=this.getStateNode(t),i=a.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionCompoundNode=function(t,n,r){var a=Object.keys(t),i=this.getStateNode(a[0]),s=i._transition(t[a[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var a,i,s={};try{for(var u=z(Object.keys(t)),c=u.next();!c.done;c=u.next()){var l=c.value,d=t[l];if(!!d){var h=this.getStateNode(l),f=h._transition(d,n,r);f&&(s[l]=f)}}}catch(w){a={error:w}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var p=Object.keys(s).map(function(w){return s[w]}),v=se(p.map(function(w){return w.transitions})),m=p.some(function(w){return w.transitions.length>0});if(!m)return this.next(n,r);var g=se(p.map(function(w){return w.entrySet})),S=se(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,entrySet:g,exitSet:se(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:se(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return H(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,ve(n))},e.prototype.next=function(t,n){var r,a,i=this,s=n.name,u=[],c=[],l;try{for(var d=z(this.getCandidates(s)),h=d.next();!h.done;h=d.next()){var f=h.value,p=f.cond,v=f.in,m=t.context,g=v?H(v)&&at(v)?t.matches(Ot(this.getStateNodeById(v).path,this.delimiter)):io(Ot(v,this.delimiter),mv(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||Oi(this.machine,p,m,n,t)}catch(A){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
17
+ `).concat(A.message))}if(S&&g){f.target!==void 0&&(c=f.target),u.push.apply(u,le([],W(f.actions),!1)),l=f;break}}}catch(A){r={error:A}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}if(!!l){if(!c.length)return{transitions:[l],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=se(c.map(function(A){return i.getRelativeStateNodes(A,t.historyValue)})),_=!!l.internal,b=_?[]:se(w.map(function(A){return i.nodesFromChild(A)}));return{transitions:[l],entrySet:b,exitSet:_?[]:[this],configuration:w,source:t,actions:u}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var n=[],r=t;r&&r!==this;)n.push(r),r=r.parent;return n.push(this),n},e.prototype.escapes=function(t){if(this===t)return!1;for(var n=this.parent;n;){if(n===t)return!1;n=n.parent}return!0},e.prototype.getActions=function(t,n,r,a){var i,s,u,c,l=it([],a?this.getStateNodes(a.value):[this]),d=t.configuration.length?it(l,t.configuration):l;try{for(var h=z(d),f=h.next();!f.done;f=h.next()){var p=f.value;Sn(l,p)||t.entrySet.push(p)}}catch(C){i={error:C}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var v=z(l),m=v.next();!m.done;m=v.next()){var p=m.value;(!Sn(d,p)||Sn(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(C){u={error:C}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}var g=se(t.entrySet.map(function(C){var E=[];if(C.type!=="final")return E;var P=C.parent;if(!P.parent)return E;E.push(sn(C.id,C.doneData),sn(P.id,C.doneData?Cn(C.doneData,n,r):void 0));var x=P.parent;return x.type==="parallel"&&ct(x).every(function(B){return Bt(t.configuration,B)})&&E.push(sn(x.id)),E}));t.exitSet.sort(function(C,E){return E.order-C.order}),t.entrySet.sort(function(C,E){return C.order-E.order});var S=new Set(t.entrySet),w=new Set(t.exitSet),_=W([se(Array.from(S).map(function(C){return le(le([],W(C.activities.map(function(E){return kv(E)})),!1),W(C.onEntry),!1)})).concat(g.map(Av)),se(Array.from(w).map(function(C){return le(le([],W(C.onExit),!1),W(C.activities.map(function(E){return xv(E)})),!1)}))],2),b=_[0],A=_[1],I=En(A.concat(t.actions).concat(b),this.machine.options.actions);return I},e.prototype.transition=function(t,n,r){t===void 0&&(t=this.initialState);var a=ve(n),i;if(t instanceof xe)i=r===void 0?t:this.resolveState(xe.from(t,r));else{var s=H(t)?this.resolve(bn(this.getResolvedPath(t))):this.resolve(t),u=r!=null?r:this.machine.context;i=this.resolveState(xe.from(s,u))}if(!Pt&&a.name===Nt)throw new Error("An event cannot have the wildcard type ('".concat(Nt,"')"));if(this.strict&&!this.events.includes(a.name)&&!vv(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},l=it([],this.getStateNodes(i.value)),d=c.configuration.length?it(l,c.configuration):l;return c.configuration=le([],W(d),!1),this.resolveTransition(c,i,i.context,a)},e.prototype.resolveRaisedTransition=function(t,n,r){var a,i=t.actions;return t=this.transition(t,n),t._event=r,t.event=r.data,(a=t.actions).unshift.apply(a,le([],W(i),!1)),t},e.prototype.resolveTransition=function(t,n,r,a){var i,s,u=this;a===void 0&&(a=An);var c=t.configuration,l=!n||t.transitions.length>0,d=l?jv(this.machine,c):void 0,h=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,f=this.getActions(t,r,a,n),p=n?$({},n.activities):{};try{for(var v=z(f),m=v.next();!m.done;m=v.next()){var g=m.value;g.type===Er?p[g.activity.id||g.activity.type]=g:g.type===oo&&(p[g.activity.id||g.activity.type]=!1)}}catch(me){i={error:me}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var S=W(xr(this,n,r,a,f,this.machine.config.preserveActionOrder),2),w=S[0],_=S[1],b=W(ki(w,function(me){return me.type===Gn||me.type===Hn&&me.to===ut.Internal}),2),A=b[0],I=b[1],C=w.filter(function(me){var Pe;return me.type===Er&&((Pe=me.activity)===null||Pe===void 0?void 0:Pe.type)===$r}),E=C.reduce(function(me,Pe){return me[Pe.activity.id]=Dv(Pe.activity,u.machine,_,a),me},n?$({},n.children):{}),P=l?t.configuration:n?n.configuration:[],x=Bt(P,this),B=new xe({value:d||n.value,context:_,_event:a,_sessionid:n?n._sessionid:null,historyValue:d?h?Sv(h,d):void 0:n?n.historyValue:void 0,history:!d||t.source?n:void 0,actions:d?I:[],activities:d?p:n?n.activities:{},events:[],configuration:P,transitions:t.transitions,children:E,done:x,tags:Ia(P),machine:this}),M=r!==_;B.changed=a.name===ao||M;var L=B.history;L&&delete L.history;var ce=!x&&(this._transient||c.some(function(me){return me._transient}));if(!l&&(!ce||a.name===st))return B;var q=B;if(!x)for(ce&&(q=this.resolveRaisedTransition(q,{type:uv},a));A.length;){var fe=A.shift();q=this.resolveRaisedTransition(q,fe._event,a)}var Ct=q.changed||(L?!!q.actions.length||M||typeof L.value!=typeof q.value||!Fi(q.value,L.value):void 0);return q.changed=Ct,q.history=L,q},e.prototype.getStateNode=function(t){if(at(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 n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=at(t)?t.slice(Rr.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=Pr(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||ot;switch(this.type){case"parallel":return kt(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ot});case"compound":if(H(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(n={},n[t]=a.initialStateValue,n):t}return Object.keys(t).length?kt(t,function(i,s){return i?r.getStateNode(s).resolve(i):ot}):this.initialStateValue||{};default:return t||ot}},e.prototype.getResolvedPath=function(t){if(at(t)){var n=this.machine.idMap[t.slice(Rr.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return Pr(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=Ca(this.states,function(r){return r.initialStateValue||ot},function(r){return r.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,"'"));n=$n(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n!=null?n: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 n=this.config;H(n.target)?t=at(n.target)?bn(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if($n(this))return[this];if(this.type==="compound"&&!this.initial)return Pt||Rt(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var n=vn(this.initialStateValue);return se(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=W(t),r=n[0],a=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:Ca(this.states,function(n,r){if(!t)return n.historyValue();var a=H(t)?void 0:t[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var a=this.target;return a?se(vn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=gv(r.path,"states")(t).current;return H(i)?[r.getStateNode(i)]:se(vn(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=se(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,a;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var u=z(Object.keys(i)),c=u.next();!c.done;c=u.next()){var l=c.value,d=i[l];if(d.states)try{for(var h=(r=void 0,z(d.events)),f=h.next();!f.done;f=h.next()){var p=f.value;s.add("".concat(p))}}catch(v){r={error:v}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}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(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!H(r))return r;var a=r[0]===n.delimiter;if(a&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=a?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
18
+ `).concat(u.message))}else return n.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var n=this,r=Cv(t.target),a="internal"in t?t.internal:r?r.some(function(c){return H(c)&&c[0]===n.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(r),u=$($({},t),{actions:En(Ne(t.actions)),cond:Ui(t.cond,i),target:s,source:this,internal:a,eventType:t.event,toJSON:function(){return $($({},u),{target:u.target?u.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(n.id)})}});return u},e.prototype.formatTransitions=function(){var t,n,r=this,a;if(!this.config.on)a=[];else if(Array.isArray(this.config.on))a=this.config.on;else{var i=this.config.on,s=Nt,u=i[s],c=u===void 0?[]:u,l=ro(i,[typeof s=="symbol"?s:s+""]);a=se(Object.keys(l).map(function(w){!Pt&&w===st&&Rt(!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(r.id,'".'));var _=rt(w,l[w]);return Pt||ny(r,w,_),_}).concat(rt(Nt,c)))}var d=this.config.always?rt("",this.config.always):[],h=this.config.onDone?rt(String(sn(this.id)),this.config.onDone):[];Pt||Rt(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=se(this.invoke.map(function(w){var _=[];return w.onDone&&_.push.apply(_,le([],W(rt(String(yn(w.id)),w.onDone)),!1)),w.onError&&_.push.apply(_,le([],W(rt(String(xt(w.id)),w.onError)),!1)),_})),p=this.after,v=se(le(le(le(le([],W(h),!1),W(f),!1),W(a),!1),W(d),!1).map(function(w){return Ne(w).map(function(_){return r.formatTransition(_)})}));try{for(var m=z(p),g=m.next();!g.done;g=m.next()){var S=g.value;v.push(S)}}catch(w){t={error:w}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return v},e}();function qt(e,t){return new ry(e,t)}var Ee=Ov,lo=Tv,oy=Bv,K={},fo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
16
19
  Copyright (c) Microsoft Corporation.
17
20
 
18
21
  Permission to use, copy, modify, and/or distribute this software for any
@@ -25,27 +28,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25
28
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26
29
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27
30
  PERFORMANCE OF THIS SOFTWARE.
28
- ***************************************************************************** */var $=function(){return $=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$.apply(this,arguments)};function to(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function G(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){s={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function le(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ee;(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"})(ee||(ee={}));var st;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(st||(st={}));var Cr=ee.Start,no=ee.Stop,Ln=ee.Raise,jn=ee.Send,Ai=ee.Cancel,sv=ee.NullEvent,Ar=ee.Assign;ee.After;ee.DoneState;var Ei=ee.Log,uv=ee.Init,Er=ee.Invoke;ee.ErrorExecution;var Sa=ee.ErrorPlatform,cv=ee.ErrorCustom,ro=ee.Update,lv=ee.Choose,dv=ee.Pure,Ii=".",wa={},Ir="xstate.guard",fv="",pv=!0,en;function oo(e,t,n){n===void 0&&(n=Ii);var r=kt(e,n),a=kt(t,n);return q(a)?q(r)?a===r:!1:q(r)?r in a:Object.keys(r).every(function(i){return i in a?oo(r[i],a[i]):!1})}function $i(e){try{return q(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 $r(e,t){try{return St(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function hv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function kt(e,t){if(hv(e))return e.value;if(St(e))return Sn(e);if(typeof e!="string")return e;var n=$r(e,t);return Sn(n)}function Sn(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Tt(e,t){for(var n={},r=Object.keys(e),a=0;a<r.length;a++){var i=r[a];n[i]=t(e[i],i,e,a)}return n}function _a(e,t,n){var r,a,i={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];!n(l)||(i[c]=t(l,c,e))}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}var mv=function(e){return function(t){var n,r,a=t;try{for(var i=G(e),s=i.next();!s.done;s=i.next()){var u=s.value;a=a[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}};function gv(e,t){return function(n){var r,a,i=n;try{for(var s=G(e),u=s.next();!u.done;u=s.next()){var c=u.value;i=i[t][c]}}catch(l){r={error:l}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}}function hn(e){if(!e)return[[]];if(q(e))return[[e]];var t=se(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:hn(e[n]).map(function(a){return[n].concat(a)})}));return t}function se(e){var t;return(t=[]).concat.apply(t,le([],W(e),!1))}function Ti(e){return St(e)?e:[e]}function Ne(e){return e===void 0?[]:Ti(e)}function wn(e,t,n){var r,a;if(Q(e))return e(t,n.data);var i={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,l=e[c];Q(l)?i[c]=l(t,n.data):i[c]=l}}catch(d){r={error:d}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return i}function vv(e){return/^(done|error)\./.test(e)}function ba(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function yv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Pi(e,t){var n,r,a=W([[],[]],2),i=a[0],s=a[1];try{for(var u=G(e),c=u.next();!c.done;c=u.next()){var l=c.value;t(l)?i.push(l):s.push(l)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[i,s]}function Ni(e,t){return Tt(e.states,function(n,r){if(!!n){var a=(q(t)?void 0:t[r])||(n?n.current:void 0);if(!!a)return{current:a,states:Ni(n,a)}}})}function Sv(e,t){return{current:t,states:Ni(e,t)}}function Ca(e,t,n,r){var a=e&&n.reduce(function(i,s){var u,c,l=s.assignment,d={state:r,action:s,_event:t},h={};if(Q(l))h=l(i,t.data,d);else try{for(var f=G(Object.keys(l)),p=f.next();!p.done;p=f.next()){var v=p.value,m=l[v];h[v]=Q(m)?m(i,t.data,d):m}}catch(g){u={error:g}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,h)},e);return a}var ki=function(){};function St(e){return Array.isArray(e)}function Q(e){return typeof e=="function"}function q(e){return typeof e=="string"}function xi(e,t){if(!!e)return q(e)?{type:Ir,name:e,predicate:t?t[e]:void 0}:Q(e)?{type:Ir,name:e.name,predicate:e}:e}function wv(e){try{return"subscribe"in e&&Q(e.subscribe)}catch{return!1}}var Ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();en={},en[Ke]=function(){return this},en[Symbol.observable]=function(){return this};function Ye(e){return!!e&&"__xstatenode"in e}function _v(e){return!!e&&typeof e.send=="function"}var bv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ao(e,t){return q(e)||typeof e=="number"?$({type:e},t):e}function ve(e,t){if(!q(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ao(e);return $({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function rt(e,t){var n=Ti(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||Ye(r)?{target:r,event:e}:$($({},r),{event:e})});return n}function Cv(e){if(!(e===void 0||e===fv))return Ne(e)}function Ui(e,t,n,r,a){var i=e.options.guards,s={state:a,cond:t,_event:r};if(t.type===Ir)return((i==null?void 0:i[t.name])||t.predicate)(n,r.data,s);var u=i==null?void 0:i[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(n,r.data,s)}function Oi(e){return typeof e=="string"?{type:e}:e}function Tr(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function tn(e,t){return"".concat(e,":invocation[").concat(t,"]")}var _n=ve({type:uv});function Pr(e,t){return t&&t[e]||void 0}function Rt(e,t){var n;if(q(e)||typeof e=="number"){var r=Pr(e,t);Q(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(Q(e))n={type:e.name||e.toString(),exec:e};else{var r=Pr(e.type,t);if(Q(r))n=$($({},e),{exec:r});else if(r){var a=r.type||e.type;n=$($($({},r),e),{type:a})}else n=e}return n}var bn=function(e,t){if(!e)return[];var n=St(e)?e:[e];return n.map(function(r){return Rt(r,t)})};function io(e){var t=Rt(e);return $($({id:q(e)?e:t.id},t),{type:t.type})}function Av(e){return q(e)?{type:Ln,event:e}:zn(e,{to:st.Internal})}function Ev(e){return{type:Ln,_event:ve(e.event)}}function zn(e,t){return{to:t?t.to:void 0,type:jn,event:Q(e)?e:ao(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Q(e)?e.name:$i(e)}}function Iv(e,t,n,r){var a={_event:n},i=ve(Q(e.event)?e.event(t,n.data,a):e.event),s;if(q(e.delay)){var u=r&&r[e.delay];s=Q(u)?u(t,n.data,a):u}else s=Q(e.delay)?e.delay(t,n.data,a):e.delay;var c=Q(e.to)?e.to(t,n.data,a):e.to;return $($({},e),{to:c,_event:i,event:i.data,delay:s})}function $v(e,t){return zn(e,$($({},t),{to:st.Parent}))}function Tv(){return $v(ro)}var Pv=function(e,t,n){return $($({},e),{value:q(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Nv=function(e){return{type:Ai,sendId:e}};function kv(e){var t=io(e);return{type:ee.Start,activity:t,exec:void 0}}function xv(e){var t=Q(e)?e:io(e);return{type:ee.Stop,activity:t,exec:void 0}}function Uv(e,t,n){var r=Q(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:ee.Stop,activity:a};return i}var Ov=function(e){return{type:Ar,assignment:e}};function Rv(e,t){var n=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(n)}function nn(e,t){var n="".concat(ee.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function mn(e,t){var n="".concat(ee.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Pt(e,t){var n="".concat(ee.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Bv(e,t){return zn(function(n,r){return r},$($({},t),{to:e}))}function Nr(e,t,n,r,a,i){i===void 0&&(i=!1);var s=W(i?[[],a]:Pi(a,function(f){return f.type===Ar}),2),u=s[0],c=s[1],l=u.length?Ca(n,r,u,t):n,d=i?[n]:void 0,h=se(c.map(function(f){var p;switch(f.type){case Ln:return Ev(f);case jn:var v=Iv(f,l,r,e.options.delays);return v;case Ei:return Pv(f,l,r);case lv:{var m=f,g=(p=m.conds.find(function(x){var B=xi(x.cond,e.options.guards);return!B||Ui(e,B,l,r,t)}))===null||p===void 0?void 0:p.actions;if(!g)return[];var S=W(Nr(e,t,l,r,bn(Ne(g),e.options.actions),i),2),w=S[0],_=S[1];return l=_,d==null||d.push(l),w}case dv:{var g=f.get(l,r.data);if(!g)return[];var b=W(Nr(e,t,l,r,bn(Ne(g),e.options.actions),i),2),A=b[0],I=b[1];return l=I,d==null||d.push(l),A}case no:return Uv(f,l,r);case Ar:{l=Ca(l,r,[f],t),d==null||d.push(l);break}default:var C=Rt(f,e.options.actions),E=C.exec;if(E&&d){var P=d.length-1;C=$($({},C),{exec:function(x){for(var B=[],M=1;M<arguments.length;M++)B[M-1]=arguments[M];E.apply(void 0,le([d[P]],W(B),!1))}})}return C}}).filter(function(f){return!!f}));return[h,l]}var Cn=[],Nt=function(e,t){Cn.push(e);var n=t(e);return Cn.pop(),n},Vv=function(e){return e(Cn[Cn.length-1])};function Ri(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Ke]=function(){return this},t}function Dv(e,t,n,r){var a,i=Oi(e.src),s=(a=t==null?void 0:t.options.services)===null||a===void 0?void 0:a[i.type],u=e.data?wn(e.data,n,r):void 0,c=s?Bi(s,e.id,u):Ri(e.id);return c.meta=e,c}function Bi(e,t,n){var r=Ri(t);if(r.deferred=!0,Ye(e)){var a=r.state=Nt(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return a}}return r}function Mv(e){try{return typeof e.send=="function"}catch{return!1}}function Fv(e){return Mv(e)&&"id"in e}function Lv(e){var t;return $((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Ke]=function(){return this},t),e)}var An=function(e){return e.type==="atomic"||e.type==="final"};function ut(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function Vi(e){var t=[e];return An(e)?t:t.concat(se(ut(e).map(Vi)))}function it(e,t){var n,r,a,i,s,u,c,l,d=new Set(e),h=kr(d),f=new Set(t);try{for(var p=G(f),v=p.next();!v.done;v=p.next())for(var m=v.value,g=m.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch(P){n={error:P}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var S=kr(f);try{for(var w=G(f),_=w.next();!_.done;_=w.next()){var m=_.value;if(m.type==="compound"&&(!S.get(m)||!S.get(m).length))h.get(m)?h.get(m).forEach(function(x){return f.add(x)}):m.initialStateNodes.forEach(function(x){return f.add(x)});else if(m.type==="parallel")try{for(var b=(s=void 0,G(ut(m))),A=b.next();!A.done;A=b.next()){var I=A.value;I.type!=="history"&&(f.has(I)||(f.add(I),h.get(I)?h.get(I).forEach(function(x){return f.add(x)}):I.initialStateNodes.forEach(function(x){return f.add(x)})))}}catch(x){s={error:x}}finally{try{A&&!A.done&&(u=b.return)&&u.call(b)}finally{if(s)throw s.error}}}}catch(P){a={error:P}}finally{try{_&&!_.done&&(i=w.return)&&i.call(w)}finally{if(a)throw a.error}}try{for(var C=G(f),E=C.next();!E.done;E=C.next())for(var m=E.value,g=m.parent;g&&!f.has(g);)f.add(g),g=g.parent}catch(P){c={error:P}}finally{try{E&&!E.done&&(l=C.return)&&l.call(C)}finally{if(c)throw c.error}}return f}function Di(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(An(r))return r.key}else return{}}var a={};return n.forEach(function(i){a[i.key]=Di(i,t)}),a}function kr(e){var t,n,r=new Map;try{for(var a=G(e),i=a.next();!i.done;i=a.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function jv(e,t){var n=it([e],t);return Di(e,kr(n))}function gn(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function zv(e){return le([],W(new Set(se(le([],W(e.map(function(t){return t.ownEvents})),!1)))),!1)}function xt(e,t){return t.type==="compound"?ut(t).some(function(n){return n.type==="final"&&gn(e,n)}):t.type==="parallel"?ut(t).every(function(n){return xt(e,n)}):!1}function Gv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function Aa(e){return new Set(se(e.map(function(t){return t.tags})))}function Mi(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(q(e)||q(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(a){return Mi(e[a],t[a])})}function Hv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Kv(e,t){var n=e.exec,r=$($({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var xe=function(){function e(t){var n=this,r;this.actions=[],this.activities=wa,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||wa,this.meta=Gv(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=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return zv(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var r=_n;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=_n;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),q(t))return[t];var a=Object.keys(t);return a.concat.apply(a,le([],W(a.map(function(i){return r.toStrings(t[i],n).map(function(s){return i+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=to(t,["configuration","transitions","tags","machine"]);return $($({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return oo(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;ki(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(a){return a.target!==void 0||a.actions.length})},e}(),qv={deferEvents:!1},Ea=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=$($({},qv),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(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),sr=new Map,Wv=0,rn={bookId:function(){return"x:".concat(Wv++)},register:function(e,t){return sr.set(e,t),e},get:function(e){return sr.get(e)},free:function(e){sr.delete(e)}};function so(){if(typeof globalThis!="undefined")return globalThis;if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global}function Yv(){var e=so();if(e&&"__xstate__"in e)return e.__xstate__}function Jv(e){if(!!so()){var t=Yv();t&&t.register(e)}}function Zv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,a=[],i=!1,s=function(){if(!i){for(i=!0;a.length>0;){var l=a.shift();n=e.transition(n,l,c),r.forEach(function(d){return d.next(n)})}i=!1}},u=Lv({id:t.id,send:function(l){a.push(l),s()},getSnapshot:function(){return n},subscribe:function(l,d,h){var f=Tr(l,d,h);return r.add(f),f.next(n),{unsubscribe:function(){r.delete(f)}}}}),c={parent:t.parent,self:u,id:t.id||"anonymous",observers:r};return n=e.start?e.start(c):n,u}var xr={sync:!1,autoForward:!1},Se;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Se||(Se={}));var Qv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),this.machine=t,this.scheduler=new Ea,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=Se.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,h){if(St(d))return r.batch(d),r.state;var f=ve(ao(d,h));if(r.status===Se.Stopped)return r.state;if(r.status!==Se.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
29
- Event: `).concat(JSON.stringify(f.data)));return r.scheduler.schedule(function(){r.forward(f);var p=r.nextState(f);r.update(p,f)}),r._state},this.sendTo=function(d,h){var f=r.parent&&(h===st.Parent||r.parent.id===h),p=f?r.parent:q(h)?r.children.get(h)||rn.get(h):_v(h)?h:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(h,"' from service '").concat(r.id,"'."));return}"machine"in p?p.send($($({},d),{name:d.name===cv?"".concat(Pt(r.id)):d.name,origin:r.sessionId})):p.send(d.data)};var a=$($({},e.defaultOptions),n),i=a.clock,s=a.logger,u=a.parent,c=a.id,l=c!==void 0?c:t.id;this.id=l,this.logger=s,this.clock=i,this.parent=u,this.options=a,this.scheduler=new Ea({deferEvents:this.options.deferEvents}),this.sessionId=rn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Nt(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,a;try{for(var i=G(t.actions),s=i.next();!s.done;s=i.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,a,i,s,u,c,l,d,h=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(P){h.state.children[P.id]=P}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var f=G(this.eventListeners),p=f.next();!p.done;p=f.next()){var v=p.value;v(t.event)}}catch(P){r={error:P}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}try{for(var m=G(this.listeners),g=m.next();!g.done;g=m.next()){var v=g.value;v(t,t.event)}}catch(P){i={error:P}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(i)throw i.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var _=w.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(P){u={error:P}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}var b=xt(t.configuration||[],this.machine);if(this.state.configuration&&b){var A=t.configuration.find(function(P){return P.type==="final"&&P.parent===h.machine}),I=A&&A.doneData?wn(A.doneData,t.context,n):void 0;try{for(var C=G(this.doneListeners),E=C.next();!E.done;E=C.next()){var v=E.value;v(mn(this.id,I))}}catch(P){l={error:P}}finally{try{E&&!E.done&&(d=C.return)&&d.call(C)}finally{if(l)throw l.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Se.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var a=this;if(!t)return{unsubscribe:function(){}};var i,s=r;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===Se.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&a.listeners.delete(i),s&&a.doneListeners.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.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 n=this;if(this.status===Se.Running)return this;this.machine._init(),rn.register(this.sessionId,this),this.initialized=!0,this.status=Se.Running;var r=t===void 0?this.initialState:Nt(this,function(){return Hv(t)?n.machine.resolveState(t):n.machine.resolveState(xe.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,_n)}),this},e.prototype.stop=function(){var t,n,r,a,i,s,u,c,l,d,h=this;try{for(var f=G(this.listeners),p=f.next();!p.done;p=f.next()){var v=p.value;this.listeners.delete(v)}}catch(E){t={error:E}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}try{for(var m=G(this.stopListeners),g=m.next();!g.done;g=m.next()){var v=g.value;v(),this.stopListeners.delete(v)}}catch(E){r={error:E}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var v=w.value;this.contextListeners.delete(v)}}catch(E){i={error:E}}finally{try{w&&!w.done&&(s=S.return)&&s.call(S)}finally{if(i)throw i.error}}try{for(var _=G(this.doneListeners),b=_.next();!b.done;b=_.next()){var v=b.value;this.doneListeners.delete(v)}}catch(E){u={error:E}}finally{try{b&&!b.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;le([],W(this.state.configuration),!1).sort(function(E,P){return P.order-E.order}).forEach(function(E){var P,x;try{for(var B=G(E.definition.exit),M=B.next();!M.done;M=B.next()){var L=M.value;h.exec(L,h.state)}}catch(ce){P={error:ce}}finally{try{M&&!M.done&&(x=B.return)&&x.call(B)}finally{if(P)throw P.error}}}),this.children.forEach(function(E){Q(E.stop)&&E.stop()});try{for(var A=G(Object.keys(this.delayedEventsMap)),I=A.next();!I.done;I=A.next()){var C=I.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(E){l={error:E}}finally{try{I&&!I.done&&(d=A.return)&&d.call(A)}finally{if(l)throw l.error}}return this.scheduler.clear(),this.initialized=!1,this.status=Se.Stopped,rn.free(this.sessionId),this},e.prototype.batch=function(t){var n=this;if(!(this.status===Se.NotStarted&&this.options.deferEvents)){if(this.status!==Se.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.'))}this.scheduler.schedule(function(){var r,a,i=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),i=Nt(n,function(){return n.machine.transition(i,p)}),u.push.apply(u,le([],W(i.actions.map(function(v){return Kv(v,i)})),!1)),s=s||!!i.changed};try{for(var l=G(t),d=l.next();!d.done;d=l.next()){var h=d.value;c(h)}}catch(f){r={error:f}}finally{try{d&&!d.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}i.changed=s,i.actions=u,n.update(i,ve(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var n=this,r=ve(t);if(r.name.indexOf(Sa)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(Sa)===0}))throw r.data.data;var a=Nt(this,function(){return n.machine.transition(n.state,r)});return a},e.prototype.forward=function(t){var n,r;try{for(var a=G(this.forwardTo),i=a.next();!i.done;i=a.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(c){n={error:c}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?n.sendTo(t._event,t.to):n.send(t._event)},t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions);var a=n.context,i=n._event,s=t.exec||Pr(t.type,r),u=Q(s)?s:s?s.exec:t.exec;if(u)try{return u(a,i.data,{action:t,state:this.state,_event:i})}catch(b){throw this.parent&&this.parent.send({type:"xstate.error",data:b}),b}switch(t.type){case jn:var c=t;if(typeof c.delay=="number"){this.defer(c);return}else c.to?this.sendTo(c._event,c.to):this.send(c._event);break;case Ai:this.cancel(t.sendId);break;case Cr:{if(this.status!==Se.Running)return;var l=t.activity;if(!this.state.activities[l.id||l.type])break;if(l.type===ee.Invoke){var d=Oi(l.src),h=this.machine.options.services?this.machine.options.services[d.type]:void 0,f=l.id,p=l.data,v="autoForward"in l?l.autoForward:!!l.forward;if(!h)return;var m=p?wn(p,a,i):void 0;if(typeof h=="string")return;var g=Q(h)?h(a,i.data,{data:m,src:d,meta:l.meta}):h;if(!g)return;var S=void 0;Ye(g)&&(g=m?g.withContext(m):g,S={autoForward:v}),this.spawn(g,f,S)}else this.spawnActivity(l);break}case no:{this.stopChild(t.activity.id);break}case Ei:var w=t.label,_=t.value;w?this.logger(w,_):this.logger(_);break}},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);!n||(this.removeChild(t),Q(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(ba(t))return this.spawnPromise(Promise.resolve(t),n);if(Q(t))return this.spawnCallback(t,n);if(Fv(t))return this.spawnActor(t,n);if(wv(t))return this.spawnObservable(t,n);if(Ye(t))return this.spawnMachine(t,$($({},r),{id:n}));if(yv(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var a=new e(t,$($({},this.options),{parent:this,id:n.id||t.id})),i=$($({},xr),n);i.sync&&a.onTransition(function(u){r.send(ro,{state:u,id:a.id})});var s=a;return this.children.set(a.id,s),i.autoForward&&this.forwardTo.add(a.id),a.onDone(function(u){r.removeChild(a.id),r.send(ve(u,{origin:a.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=Zv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,a=this,i=!1,s;t.then(function(c){i||(s=c,a.removeChild(n),a.send(ve(mn(n,c),{origin:n})))},function(c){if(!i){a.removeChild(n);var l=Pt(n,c);try{a.send(ve(l,{origin:n}))}catch{a.devTools&&a.devTools.send(l,a.state),a.machine.strict&&a.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,l,d){var h=Tr(c,l,d),f=!1;return t.then(function(p){f||(h.next(p),!f&&h.complete())},function(p){f||h.error(p)}),{unsubscribe:function(){return f=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[Ke]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,a=this,i=!1,s=new Set,u=new Set,c,l=function(f){c=f,u.forEach(function(p){return p(f)}),!i&&a.send(ve(f,{origin:n}))},d;try{d=t(l,function(f){s.add(f)})}catch(f){this.send(Pt(n,f))}if(ba(d))return this.spawnPromise(d,n);var h=(r={id:n,send:function(f){return s.forEach(function(p){return p(f)})},subscribe:function(f){var p=Tr(f);return u.add(p.next),{unsubscribe:function(){u.delete(p.next)}}},stop:function(){i=!0,Q(d)&&d()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[Ke]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,a=this,i,s=t.subscribe(function(c){i=c,a.send(ve(c,{origin:n}))},function(c){a.removeChild(n),a.send(ve(Pt(n,c),{origin:n}))},function(){a.removeChild(n),a.send(ve(mn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,l,d){return t.subscribe(c,l,d)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[Ke]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[Ke]=function(){return this},r))},e.prototype.attachDev=function(){var t=so();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect($($({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:$({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Jv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ke]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Se.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=Fi,e}(),Xv=function(e){return q(e)?$($({},xr),{name:e}):$($($({},xr),{name:bv()}),e)};function on(e,t){var n=Xv(t);return Vv(function(r){if(!pv){var a=Ye(e)||Q(e);ki(!!r||a,'Attempted to spawn an Actor (ID: "'.concat(Ye(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return r?r.spawn(e,n.name,n):Bi(e,n.name)})}function Fi(e,t){var n=new Qv(e,t);return n}function ey(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function an(e){return $($({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=to(e,["onDone","onError"]);return $($({},t),{type:Er,src:ey(e.src)})}})}var sn="",Ur="#",ur="*",ot={},at=function(e){return e[0]===Ur},ty=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ny=function(){function e(t,n,r,a){var i=this;r===void 0&&(r="context"in t?t.context:void 0);var s;this.config=t,this._context=r,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(ty(),n),this.parent=a==null?void 0:a.parent,this.key=this.config.key||(a==null?void 0:a.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:Ii),this.id=this.config.id||le([this.machine.key],W(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,this.initial=this.config.initial,this.states=this.config.states?Tt(this.config.states,function(l,d){var h,f=new e(l,{},void 0,{parent:i,key:d});return Object.assign(i.idMap,$((h={},h[f.id]=f,h),f.idMap)),f}):ot;var u=0;function c(l){var d,h;l.order=u++;try{for(var f=G(ut(l)),p=f.next();!p.done;p=f.next()){var v=p.value;c(v)}}catch(m){d={error:m}}finally{try{p&&!p.done&&(h=f.return)&&h.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(l){var d=l.event;return d===sn}):sn in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ne(this.config.entry||this.config.onEntry).map(function(l){return Rt(l)}),this.onExit=Ne(this.config.exit||this.config.onExit).map(function(l){return Rt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ne(this.config.invoke).map(function(l,d){var h,f;if(Ye(l)){var p=tn(i.id,d);return i.machine.options.services=$((h={},h[p]=l,h),i.machine.options.services),an({src:p,id:p})}else if(q(l.src)){var p=l.id||tn(i.id,d);return an($($({},l),{id:p,src:l.src}))}else if(Ye(l.src)||Q(l.src)){var p=l.id||tn(i.id,d);return i.machine.options.services=$((f={},f[p]=l.src,f),i.machine.options.services),an($($({id:p},l),{src:p}))}else{var v=l.src;return an($($({id:tn(i.id,d)},l),{src:v}))}}),this.activities=Ne(this.config.activities).concat(this.invoke).map(function(l){return io(l)}),this.transition=this.transition.bind(this),this.tags=Ne(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Vi(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,a=r.actions,i=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:$($({},a),t.actions),activities:$($({},i),t.activities),guards:$($({},s),t.guards),services:$($({},u),t.services),delays:$($({},c),t.delays)},n!=null?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Q(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:Tt(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(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},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 n=t===sn,r=this.transitions.filter(function(a){var i=a.eventType===t;return n?i:i||a.eventType===ur});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,s){var u=Q(i)?"".concat(t.id,":delay[").concat(s,"]"):i,c=Rv(u,t.id);return t.onEntry.push(zn(c,{delay:i})),t.onExit.push(Nv(c)),c},a=St(n)?n.map(function(i,s){var u=r(i.delay,s);return $($({},i),{event:u})}):se(Object.keys(n).map(function(i,s){var u=n[i],c=q(u)?{target:u}:u,l=isNaN(+i)?i:+i,d=r(l,s);return Ne(c).map(function(h){return $($({},h),{event:d,delay:l})})}));return a.map(function(i){var s=i.delay;return $($({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var a=t instanceof xe?t.value:kt(t,this.delimiter);if(q(a)){var i=this.getStateNode(a).initial;return i!==void 0?this.getStateNodes((n={},n[a]=i,n)):[this,this.states[a]]}var s=Object.keys(a),u=[this];return u.push.apply(u,le([],W(se(s.map(function(c){return r.getStateNode(c).getStateNodes(a[c])}))),!1)),u},e.prototype.handles=function(t){var n=$i(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof xe?t:xe.create(t),r=Array.from(it([],this.getStateNodes(n.value)));return new xe($($({},n),{value:this.resolve(n.value),configuration:r,done:xt(r,this),tags:Aa(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var a=this.getStateNode(t),i=a.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionCompoundNode=function(t,n,r){var a=Object.keys(t),i=this.getStateNode(a[0]),s=i._transition(t[a[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var a,i,s={};try{for(var u=G(Object.keys(t)),c=u.next();!c.done;c=u.next()){var l=c.value,d=t[l];if(!!d){var h=this.getStateNode(l),f=h._transition(d,n,r);f&&(s[l]=f)}}}catch(w){a={error:w}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}var p=Object.keys(s).map(function(w){return s[w]}),v=se(p.map(function(w){return w.transitions})),m=p.some(function(w){return w.transitions.length>0});if(!m)return this.next(n,r);var g=se(p.map(function(w){return w.entrySet})),S=se(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,entrySet:g,exitSet:se(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:se(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return q(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,ve(n))},e.prototype.next=function(t,n){var r,a,i=this,s=n.name,u=[],c=[],l;try{for(var d=G(this.getCandidates(s)),h=d.next();!h.done;h=d.next()){var f=h.value,p=f.cond,v=f.in,m=t.context,g=v?q(v)&&at(v)?t.matches(kt(this.getStateNodeById(v).path,this.delimiter)):oo(kt(v,this.delimiter),mv(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||Ui(this.machine,p,m,n,t)}catch(A){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
30
- `).concat(A.message))}if(S&&g){f.target!==void 0&&(c=f.target),u.push.apply(u,le([],W(f.actions),!1)),l=f;break}}}catch(A){r={error:A}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}if(!!l){if(!c.length)return{transitions:[l],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=se(c.map(function(A){return i.getRelativeStateNodes(A,t.historyValue)})),_=!!l.internal,b=_?[]:se(w.map(function(A){return i.nodesFromChild(A)}));return{transitions:[l],entrySet:b,exitSet:_?[]:[this],configuration:w,source:t,actions:u}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var n=[],r=t;r&&r!==this;)n.push(r),r=r.parent;return n.push(this),n},e.prototype.escapes=function(t){if(this===t)return!1;for(var n=this.parent;n;){if(n===t)return!1;n=n.parent}return!0},e.prototype.getActions=function(t,n,r,a){var i,s,u,c,l=it([],a?this.getStateNodes(a.value):[this]),d=t.configuration.length?it(l,t.configuration):l;try{for(var h=G(d),f=h.next();!f.done;f=h.next()){var p=f.value;gn(l,p)||t.entrySet.push(p)}}catch(C){i={error:C}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var v=G(l),m=v.next();!m.done;m=v.next()){var p=m.value;(!gn(d,p)||gn(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(C){u={error:C}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}var g=se(t.entrySet.map(function(C){var E=[];if(C.type!=="final")return E;var P=C.parent;if(!P.parent)return E;E.push(nn(C.id,C.doneData),nn(P.id,C.doneData?wn(C.doneData,n,r):void 0));var x=P.parent;return x.type==="parallel"&&ut(x).every(function(B){return xt(t.configuration,B)})&&E.push(nn(x.id)),E}));t.exitSet.sort(function(C,E){return E.order-C.order}),t.entrySet.sort(function(C,E){return C.order-E.order});var S=new Set(t.entrySet),w=new Set(t.exitSet),_=W([se(Array.from(S).map(function(C){return le(le([],W(C.activities.map(function(E){return kv(E)})),!1),W(C.onEntry),!1)})).concat(g.map(Av)),se(Array.from(w).map(function(C){return le(le([],W(C.onExit),!1),W(C.activities.map(function(E){return xv(E)})),!1)}))],2),b=_[0],A=_[1],I=bn(A.concat(t.actions).concat(b),this.machine.options.actions);return I},e.prototype.transition=function(t,n,r){t===void 0&&(t=this.initialState);var a=ve(n),i;if(t instanceof xe)i=r===void 0?t:this.resolveState(xe.from(t,r));else{var s=q(t)?this.resolve(Sn(this.getResolvedPath(t))):this.resolve(t),u=r!=null?r:this.machine.context;i=this.resolveState(xe.from(s,u))}if(this.strict&&!this.events.includes(a.name)&&!vv(a.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},l=it([],this.getStateNodes(i.value)),d=c.configuration.length?it(l,c.configuration):l;return c.configuration=le([],W(d),!1),this.resolveTransition(c,i,i.context,a)},e.prototype.resolveRaisedTransition=function(t,n,r){var a,i=t.actions;return t=this.transition(t,n),t._event=r,t.event=r.data,(a=t.actions).unshift.apply(a,le([],W(i),!1)),t},e.prototype.resolveTransition=function(t,n,r,a){var i,s,u=this;a===void 0&&(a=_n);var c=t.configuration,l=!n||t.transitions.length>0,d=l?jv(this.machine,c):void 0,h=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,f=this.getActions(t,r,a,n),p=n?$({},n.activities):{};try{for(var v=G(f),m=v.next();!m.done;m=v.next()){var g=m.value;g.type===Cr?p[g.activity.id||g.activity.type]=g:g.type===no&&(p[g.activity.id||g.activity.type]=!1)}}catch(me){i={error:me}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var S=W(Nr(this,n,r,a,f,this.machine.config.preserveActionOrder),2),w=S[0],_=S[1],b=W(Pi(w,function(me){return me.type===Ln||me.type===jn&&me.to===st.Internal}),2),A=b[0],I=b[1],C=w.filter(function(me){var Pe;return me.type===Cr&&((Pe=me.activity)===null||Pe===void 0?void 0:Pe.type)===Er}),E=C.reduce(function(me,Pe){return me[Pe.activity.id]=Dv(Pe.activity,u.machine,_,a),me},n?$({},n.children):{}),P=l?t.configuration:n?n.configuration:[],x=xt(P,this),B=new xe({value:d||n.value,context:_,_event:a,_sessionid:n?n._sessionid:null,historyValue:d?h?Sv(h,d):void 0:n?n.historyValue:void 0,history:!d||t.source?n:void 0,actions:d?I:[],activities:d?p:n?n.activities:{},events:[],configuration:P,transitions:t.transitions,children:E,done:x,tags:n==null?void 0:n.tags,machine:this}),M=r!==_;B.changed=a.name===ro||M;var L=B.history;L&&delete L.history;var ce=!x&&(this._transient||c.some(function(me){return me._transient}));if(!l&&(!ce||a.name===sn))return B;var z=B;if(!x)for(ce&&(z=this.resolveRaisedTransition(z,{type:sv},a));A.length;){var fe=A.shift();z=this.resolveRaisedTransition(z,fe._event,a)}var bt=z.changed||(L?!!z.actions.length||M||typeof L.value!=typeof z.value||!Mi(z.value,L.value):void 0);return z.changed=bt,z.history=L,z.tags=Aa(z.configuration),z},e.prototype.getStateNode=function(t){if(at(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 n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=at(t)?t.slice(Ur.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&at(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=$r(t,this.delimiter).slice(),r=this;n.length;){var a=n.shift();if(!a.length)break;r=r.getStateNode(a)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||ot;switch(this.type){case"parallel":return Tt(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):ot});case"compound":if(q(t)){var a=this.getStateNode(t);return a.type==="parallel"||a.type==="compound"?(n={},n[t]=a.initialStateValue,n):t}return Object.keys(t).length?Tt(t,function(i,s){return i?r.getStateNode(s).resolve(i):ot}):this.initialStateValue||{};default:return t||ot}},e.prototype.getResolvedPath=function(t){if(at(t)){var n=this.machine.idMap[t.slice(Ur.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return $r(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=_a(this.states,function(r){return r.initialStateValue||ot},function(r){return r.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,"'"));n=An(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n!=null?n: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 n=this.config;q(n.target)?t=at(n.target)?Sn(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(An(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=hn(this.initialStateValue);return se(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=W(t),r=n[0],a=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(a)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:_a(this.states,function(n,r){if(!t)return n.historyValue();var a=q(t)?void 0:t[r];return n.historyValue(a||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var a=this.target;return a?se(hn(a).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=gv(r.path,"states")(t).current;return q(i)?[r.getStateNode(i)]:se(hn(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=se(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,a;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var u=G(Object.keys(i)),c=u.next();!c.done;c=u.next()){var l=c.value,d=i[l];if(d.states)try{for(var h=(r=void 0,G(d.events)),f=h.next();!f.done;f=h.next()){var p=f.value;s.add("".concat(p))}}catch(v){r={error:v}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}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(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!q(r))return r;var a=r[0]===n.delimiter;if(a&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=a?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
31
- `).concat(u.message))}else return n.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var n=this,r=Cv(t.target),a="internal"in t?t.internal:r?r.some(function(c){return q(c)&&c[0]===n.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(r),u=$($({},t),{actions:bn(Ne(t.actions)),cond:xi(t.cond,i),target:s,source:this,internal:a,eventType:t.event,toJSON:function(){return $($({},u),{target:u.target?u.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(n.id)})}});return u},e.prototype.formatTransitions=function(){var t,n,r=this,a;if(!this.config.on)a=[];else if(Array.isArray(this.config.on))a=this.config.on;else{var i=this.config.on,s=ur,u=i[s],c=u===void 0?[]:u,l=to(i,[typeof s=="symbol"?s:s+""]);a=se(Object.keys(l).map(function(w){var _=rt(w,l[w]);return _}).concat(rt(ur,c)))}var d=this.config.always?rt("",this.config.always):[],h=this.config.onDone?rt(String(nn(this.id)),this.config.onDone):[],f=se(this.invoke.map(function(w){var _=[];return w.onDone&&_.push.apply(_,le([],W(rt(String(mn(w.id)),w.onDone)),!1)),w.onError&&_.push.apply(_,le([],W(rt(String(Pt(w.id)),w.onError)),!1)),_})),p=this.after,v=se(le(le(le(le([],W(h),!1),W(f),!1),W(a),!1),W(d),!1).map(function(w){return Ne(w).map(function(_){return r.formatTransition(_)})}));try{for(var m=G(p),g=m.next();!g.done;g=m.next()){var S=g.value;v.push(S)}}catch(w){t={error:w}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return v},e}();function zt(e,t){return new ny(e,t)}var Ee=Ov,uo=Tv,ry=Bv,K={},co={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
32
- Copyright (c) Microsoft Corporation.
33
-
34
- Permission to use, copy, modify, and/or distribute this software for any
35
- purpose with or without fee is hereby granted.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
- PERFORMANCE OF THIS SOFTWARE.
44
- ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,l=arguments.length;c<l;c++){u=arguments[c];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},e.__assign.apply(this,arguments)};function t(i,s){var u={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&s.indexOf(c)<0&&(u[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,c=Object.getOwnPropertySymbols(i);l<c.length;l++)s.indexOf(c[l])<0&&Object.prototype.propertyIsEnumerable.call(i,c[l])&&(u[c[l]]=i[c[l]]);return u}function n(i){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&i[s],c=0;if(u)return u.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var c=u.call(i),l,d=[],h;try{for(;(s===void 0||s-- >0)&&!(l=c.next()).done;)d.push(l.value)}catch(f){h={error:f}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return d}function a(i,s,u){if(u||arguments.length===2)for(var c=0,l=s.length,d;c<l;c++)(d||!(c in s))&&(d||(d=Array.prototype.slice.call(s,0,c)),d[c]=s[c]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=a,e.__values=n})(co);var lo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTypes=void 0,function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(e.ActionTypes||(e.ActionTypes={})),e.SpecialTargets=void 0,function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(lo);var de={};Object.defineProperty(de,"__esModule",{value:!0});var he=lo,oy=he.ActionTypes.Start,ay=he.ActionTypes.Stop,iy=he.ActionTypes.Raise,sy=he.ActionTypes.Send,uy=he.ActionTypes.Cancel,cy=he.ActionTypes.NullEvent,ly=he.ActionTypes.Assign,dy=he.ActionTypes.After,fy=he.ActionTypes.DoneState,py=he.ActionTypes.Log,hy=he.ActionTypes.Init,my=he.ActionTypes.Invoke,gy=he.ActionTypes.ErrorExecution,vy=he.ActionTypes.ErrorPlatform,yy=he.ActionTypes.ErrorCustom,Sy=he.ActionTypes.Update,wy=he.ActionTypes.Choose,_y=he.ActionTypes.Pure;de.after=dy;de.assign=ly;de.cancel=uy;de.choose=wy;de.doneState=fy;de.error=yy;de.errorExecution=gy;de.errorPlatform=vy;de.init=hy;de.invoke=my;de.log=py;de.nullEvent=cy;de.pure=_y;de.raise=iy;de.send=sy;de.start=oy;de.stop=ay;de.update=Sy;var Li={},wt={};Object.defineProperty(wt,"__esModule",{value:!0});var by=".",Cy={},Ay="xstate.guard",Ey="";wt.DEFAULT_GUARD_TYPE=Ay;wt.EMPTY_ACTIVITY_MAP=Cy;wt.STATE_DELIMITER=by;wt.TARGETLESS_KEY=Ey;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});var Iy=!0;Gn.IS_PRODUCTION=Iy;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=co,n=wt,r=Gn,a;function i(y){return Object.keys(y)}function s(y,N,U){U===void 0&&(U=n.STATE_DELIMITER);var k=h(y,U),V=h(N,U);return fe(V)?fe(k)?V===k:!1:fe(k)?k in V:Object.keys(k).every(function(D){return D in V?s(k[D],V[D]):!1})}function u(y){try{return fe(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(y){try{return fe(y)||typeof y=="number"?"".concat(y):z(y)?y.name:y.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function l(y,N){try{return ce(y)?y:y.toString().split(N)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function d(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,N){if(d(y))return y.value;if(ce(y))return f(y);if(typeof y!="string")return y;var U=l(y,N);return f(U)}function f(y){if(y.length===1)return y[0];for(var N={},U=N,k=0;k<y.length-1;k++)k===y.length-2?U[y[k]]=y[k+1]:(U[y[k]]={},U=U[y[k]]);return N}function p(y,N){for(var U={},k=Object.keys(y),V=0;V<k.length;V++){var D=k[V];U[D]=N(y[D],D,y,V)}return U}function v(y,N,U){var k,V,D={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,oe=y[Z];!U(oe)||(D[Z]=N(oe,Z,y))}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(V=j.return)&&V.call(j)}finally{if(k)throw k.error}}return D}var m=function(y){return function(N){var U,k,V=N;try{for(var D=t.__values(y),j=D.next();!j.done;j=D.next()){var F=j.value;V=V[F]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(k=D.return)&&k.call(D)}finally{if(U)throw U.error}}return V}};function g(y,N){return function(U){var k,V,D=U;try{for(var j=t.__values(y),F=j.next();!F.done;F=j.next()){var Z=F.value;D=D[N][Z]}}catch(oe){k={error:oe}}finally{try{F&&!F.done&&(V=j.return)&&V.call(j)}finally{if(k)throw k.error}}return D}}function S(y){if(!y)return[[]];if(fe(y))return[[y]];var N=_(Object.keys(y).map(function(U){var k=y[U];return typeof k!="string"&&(!k||!Object.keys(k).length)?[[U]]:S(y[U]).map(function(V){return[U].concat(V)})}));return N}function w(y){var N,U,k={};if(y&&y.length===1&&y[0].length===1)return y[0][0];try{for(var V=t.__values(y),D=V.next();!D.done;D=V.next())for(var j=D.value,F=k,Z=0;Z<j.length;Z++){var oe=j[Z];if(Z===j.length-2){F[oe]=j[Z+1];break}F[oe]=F[oe]||{},F=F[oe]}}catch(_e){N={error:_e}}finally{try{D&&!D.done&&(U=V.return)&&U.call(V)}finally{if(N)throw N.error}}return k}function _(y){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(y),!1))}function b(y){return ce(y)?y:[y]}function A(y){return y===void 0?[]:b(y)}function I(y,N,U){var k,V;if(z(y))return y(N,U.data);var D={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,oe=y[Z];z(oe)?D[Z]=oe(N,U.data):D[Z]=oe}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(V=j.return)&&V.call(j)}finally{if(k)throw k.error}}return D}function C(y){return/^(done|error)\./.test(y)}function E(y){return!!(y instanceof Promise||y!==null&&(z(y)||typeof y=="object")&&z(y.then))}function P(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function x(y,N){var U,k,V=t.__read([[],[]],2),D=V[0],j=V[1];try{for(var F=t.__values(y),Z=F.next();!Z.done;Z=F.next()){var oe=Z.value;N(oe)?D.push(oe):j.push(oe)}}catch(_e){U={error:_e}}finally{try{Z&&!Z.done&&(k=F.return)&&k.call(F)}finally{if(U)throw U.error}}return[D,j]}function B(y,N){return p(y.states,function(U,k){if(!!U){var V=(fe(N)?void 0:N[k])||(U?U.current:void 0);if(!!V)return{current:V,states:B(U,V)}}})}function M(y,N){return{current:N,states:B(y,N)}}function L(y,N,U,k){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var V=y&&U.reduce(function(D,j){var F,Z,oe=j.assignment,_e={state:k,action:j,_event:N},tt={};if(z(oe))tt=oe(D,N.data,_e);else try{for(var te=t.__values(Object.keys(oe)),ne=te.next();!ne.done;ne=te.next()){var nt=ne.value,At=oe[nt];tt[nt]=z(At)?At(D,N.data,_e):At}}catch(ks){F={error:ks}}finally{try{ne&&!ne.done&&(Z=te.return)&&Z.call(te)}finally{if(F)throw F.error}}return Object.assign({},D,tt)},y);return V}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(y,N){var U=y instanceof Error?y:void 0;if(!(!U&&y)&&console!==void 0){var k=["Warning: ".concat(N)];U&&k.push(U),console.warn.apply(console,k)}});function ce(y){return Array.isArray(y)}function z(y){return typeof y=="function"}function fe(y){return typeof y=="string"}function bt(y,N){if(!!y)return fe(y)?{type:n.DEFAULT_GUARD_TYPE,name:y,predicate:N?N[y]:void 0}:z(y)?{type:n.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function me(y){try{return"subscribe"in y&&z(y.subscribe)}catch{return!1}}var Pe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),er=(a={},a[Pe]=function(){return this},a[Symbol.observable]=function(){return this},a);function qt(y){return!!y&&"__xstatenode"in y}function tr(y){return!!y&&typeof y.send=="function"}var nr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Wt(y,N){return fe(y)||typeof y=="number"?t.__assign({type:y},N):y}function rr(y,N){if(!fe(y)&&"$$type"in y&&y.$$type==="scxml")return y;var U=Wt(y);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},N)}function Yt(y,N){var U=b(N).map(function(k){return typeof k=="undefined"||typeof k=="string"||qt(k)?{target:k,event:y}:t.__assign(t.__assign({},k),{event:y})});return U}function Jt(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return A(y)}function Ct(y,N,U){if(!r.IS_PRODUCTION){var k=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===N)console.error("Missing onError handler for invocation '".concat(U,"', error was '").concat(y,"'.").concat(k));else{var V=N.stack?" Stacktrace was '".concat(N.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(U,"'. ")+"Original error: '".concat(y,"'. ").concat(k," Current error is '").concat(N,"'.").concat(V))}}}function or(y,N,U,k,V){var D=y.options.guards,j={state:V,cond:N,_event:k};if(N.type===n.DEFAULT_GUARD_TYPE)return((D==null?void 0:D[N.name])||N.predicate)(U,k.data,j);var F=D==null?void 0:D[N.type];if(!F)throw new Error("Guard '".concat(N.type,"' is not implemented on machine '").concat(y.id,"'."));return F(U,k.data,j)}function T(y){return typeof y=="string"?{type:y}:y}function ye(y,N,U){if(typeof y=="object")return y;var k=function(){};return{next:y,error:N||k,complete:U||k}}function Zt(y,N){return"".concat(y,":invocation[").concat(N,"]")}e.createInvokeId=Zt,e.evaluateGuard=or,e.flatten=_,e.getActionType=c,e.getEventType=u,e.interopSymbols=er,e.isActor=tr,e.isArray=ce,e.isBehavior=P,e.isBuiltInEvent=C,e.isFunction=z,e.isMachine=qt,e.isObservable=me,e.isPromiseLike=E,e.isStateLike=d,e.isString=fe,e.keys=i,e.mapContext=I,e.mapFilterValues=v,e.mapValues=p,e.matchesState=s,e.nestedPath=g,e.normalizeTarget=Jt,e.partition=x,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=Ct,e.symbolObservable=Pe,e.toArray=A,e.toArrayStrict=b,e.toEventObject=Wt,e.toGuard=bt,e.toInvokeSource=T,e.toObserver=ye,e.toSCXMLEvent=rr,e.toStatePath=l,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=Yt,e.uniqueId=nr,e.updateContext=L,e.updateHistoryStates=B,e.updateHistoryValue=M})(Li);Object.defineProperty(K,"__esModule",{value:!0});var X=co,$e=lo,pe=de,H=Li,$y=Gn,Ty=H.toSCXMLEvent({type:pe.init});function Or(e,t){return t&&t[e]||void 0}function Hn(e,t){var n;if(H.isString(e)||typeof e=="number"){var r=Or(e,t);H.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(H.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=Or(e.type,t);if(H.isFunction(r))n=X.__assign(X.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=X.__assign(X.__assign(X.__assign({},r),e),{type:a})}else n=e}return n}var Rr=function(e,t){if(!e)return[];var n=H.isArray(e)?e:[e];return n.map(function(r){return Hn(r,t)})};function fo(e){var t=Hn(e);return X.__assign(X.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function Py(e){return H.isString(e)?{type:pe.raise,event:e}:_t(e,{to:$e.SpecialTargets.Internal})}function ji(e){return{type:pe.raise,_event:H.toSCXMLEvent(e.event)}}function _t(e,t){return{to:t?t.to:void 0,type:pe.send,event:H.isFunction(e)?e:H.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:H.isFunction(e)?e.name:H.getEventType(e)}}function zi(e,t,n,r){var a={_event:n},i=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,a):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,a):e.to;return X.__assign(X.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function po(e,t){return _t(e,X.__assign(X.__assign({},t),{to:$e.SpecialTargets.Parent}))}function Ny(e,t,n){return _t(t,X.__assign(X.__assign({},n),{to:e}))}function ky(){return po(pe.update)}function xy(e,t){return _t(e,X.__assign(X.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var Uy=function(e,t){return{context:e,event:t}};function Oy(e,t){return e===void 0&&(e=Uy),{type:pe.log,label:t,expr:e}}var Gi=function(e,t,n){return X.__assign(X.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Ry=function(e){return{type:pe.cancel,sendId:e}};function By(e){var t=fo(e);return{type:$e.ActionTypes.Start,activity:t,exec:void 0}}function Vy(e){var t=H.isFunction(e)?e:fo(e);return{type:$e.ActionTypes.Stop,activity:t,exec:void 0}}function Hi(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:$e.ActionTypes.Stop,activity:a};return i}var Dy=function(e){return{type:pe.assign,assignment:e}};function My(e){return typeof e=="object"&&"type"in e}function Fy(e,t){var n=t?"#".concat(t):"";return"".concat($e.ActionTypes.After,"(").concat(e,")").concat(n)}function Ly(e,t){var n="".concat($e.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function jy(e,t){var n="".concat($e.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function zy(e,t){var n="".concat($e.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Gy(e){return{type:$e.ActionTypes.Pure,get:e}}function Hy(e,t){return _t(function(n,r){return r},X.__assign(X.__assign({},t),{to:e}))}function Ky(e,t){return po(function(n,r,a){return{type:pe.error,data:H.isFunction(e)?e(n,r,a):e}},X.__assign(X.__assign({},t),{to:$e.SpecialTargets.Parent}))}function qy(e){return{type:$e.ActionTypes.Choose,conds:e}}function Br(e,t,n,r,a,i){i===void 0&&(i=!1);var s=X.__read(i?[[],a]:H.partition(a,function(f){return f.type===pe.assign}),2),u=s[0],c=s[1],l=u.length?H.updateContext(n,r,u,t):n,d=i?[n]:void 0,h=H.flatten(c.map(function(f){var p;switch(f.type){case pe.raise:return ji(f);case pe.send:var v=zi(f,l,r,e.options.delays);return $y.IS_PRODUCTION||H.warn(!H.isString(f.delay)||typeof v.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),v;case pe.log:return Gi(f,l,r);case pe.choose:{var m=f,g=(p=m.conds.find(function(x){var B=H.toGuard(x.cond,e.options.guards);return!B||H.evaluateGuard(e,B,l,r,t)}))===null||p===void 0?void 0:p.actions;if(!g)return[];var S=X.__read(Br(e,t,l,r,Rr(H.toArray(g),e.options.actions),i),2),w=S[0],_=S[1];return l=_,d==null||d.push(l),w}case pe.pure:{var g=f.get(l,r.data);if(!g)return[];var b=X.__read(Br(e,t,l,r,Rr(H.toArray(g),e.options.actions),i),2),A=b[0],I=b[1];return l=I,d==null||d.push(l),A}case pe.stop:return Hi(f,l,r);case pe.assign:{l=H.updateContext(l,r,[f],t),d==null||d.push(l);break}default:var C=Hn(f,e.options.actions),E=C.exec;if(E&&d){var P=d.length-1;C=X.__assign(X.__assign({},C),{exec:function(x){for(var B=[],M=1;M<arguments.length;M++)B[M-1]=arguments[M];E.apply(void 0,X.__spreadArray([d[P]],X.__read(B),!1))}})}return C}}).filter(function(f){return!!f}));return[h,l]}K.actionTypes=pe;K.after=Fy;var ie=K.assign=Dy;K.cancel=Ry;var Wy=K.choose=qy;K.done=Ly;K.doneInvoke=jy;K.error=zy;K.escalate=Ky;K.forwardTo=Hy;K.getActionFunction=Or;K.initEvent=Ty;K.isActionObject=My;K.log=Oy;K.pure=Gy;K.raise=Py;K.resolveActions=Br;K.resolveLog=Gi;K.resolveRaise=ji;K.resolveSend=zi;K.resolveStop=Hi;K.respond=xy;K.send=_t;K.sendParent=po;K.sendTo=Ny;K.sendUpdate=ky;K.start=By;var Yy=K.stop=Vy;K.toActionObject=Hn;K.toActionObjects=Rr;K.toActivityDefinition=fo;var un=function(e){return Yy(e)},Jy=ie({attributeToVerify:function(e){}}),Zy=ie({challengeName:function(e){}}),Qy=ie({requiredAttributes:function(e){}}),ho=ie({remoteError:function(e){return""}}),mo=ie({formValues:function(e){return{}}}),go=ie({touched:function(e){return{}}}),Xy=ie({unverifiedAttributes:function(e){}}),e1=ie({username:function(e){}}),vo=ie({validationError:function(e){return{}}}),t1=ie({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),n1=ie({requiredAttributes:function(e,t){var n,r;return(r=(n=t.data)===null||n===void 0?void 0:n.challengeParam)===null||r===void 0?void 0:r.requiredAttributes}}),r1=ie({redirectIntent:function(e){return"confirmPasswordReset"}}),o1=ie({redirectIntent:function(e){return"confirmSignUp"}}),Ki=ie({authAttributes:function(e,t){var n,r,a=e.loginMechanisms[0];return{username:(n=e.formValues[a])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),yo=ie({validationError:function(e,t){return t.data}}),So=ie({remoteError:function(e,t){var n;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((n=t.data)===null||n===void 0?void 0:n.message)||t.data}}),a1=ie({unverifiedAttributes:function(e,t){return t.data.unverified}}),qi=ie({user:function(e,t){return t.data.user||t.data}}),i1=ie({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),s1=ie({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),u1=ie({authAttributes:function(e,t){return{username:e.formValues.username}}}),wo=ie({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return O(O({},e.formValues),((n={})[a]=i,n))}}),_o=ie({formValues:function(e,t){return O(O({},e.formValues),t.data)}}),bo=ie({touched:function(e,t){var n,r=t.data.name;return O(O({},e.touched),((n={})["".concat(r)]=!0,n))}}),Wi=ie({formValues:function(e,t){var n,r,a=e.loginMechanisms[0],i=a===void 0?"username":a;if(!e.formValues.phone_number&&i!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",l="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),d=O(O({},s),((n={})[c]=l,n));return delete d.country_code,d}}),c1=ke,l1=Hr,d1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f1=/^\w*$/;function p1(e,t){if(c1(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||l1(e)?!0:f1.test(e)||!d1.test(e)||t!=null&&e in Object(t)}var Co=p1,Yi=Yr,h1="Expected a function";function Ao(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h1);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Ao.Cache||Yi),n}Ao.Cache=Yi;var m1=Ao,g1=m1,v1=500;function y1(e){var t=g1(e,function(r){return n.size===v1&&n.clear(),r}),n=t.cache;return t}var S1=y1,w1=S1,_1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b1=/\\(\\)?/g,C1=w1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_1,function(n,r,a,i){t.push(a?i.replace(b1,"$1"):r||n)}),t}),A1=C1,Ia=Vt,E1=ti,I1=ke,$1=Hr,T1=1/0,$a=Ia?Ia.prototype:void 0,Ta=$a?$a.toString:void 0;function Ji(e){if(typeof e=="string")return e;if(I1(e))return E1(e,Ji)+"";if($1(e))return Ta?Ta.call(e):"";var t=e+"";return t=="0"&&1/e==-T1?"-0":t}var P1=Ji,N1=P1;function k1(e){return e==null?"":N1(e)}var x1=k1,U1=ke,O1=Co,R1=A1,B1=x1;function V1(e,t){return U1(e)?e:O1(e,t)?[e]:R1(B1(e))}var Kn=V1,D1=Hr,M1=1/0;function F1(e){if(typeof e=="string"||D1(e))return e;var t=e+"";return t=="0"&&1/e==-M1?"-0":t}var Gt=F1,L1=Kn,j1=Gt;function z1(e,t){t=L1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[j1(t[n++])];return n&&n==r?e:void 0}var Eo=z1,G1=Eo;function H1(e,t,n){var r=e==null?void 0:G1(e,t);return r===void 0?n:r}var Zi=H1,qe=Zi,K1=ai,q1=jt,W1=kn,Y1=ke,J1=Dt,Z1=Xe.exports,Q1=On,X1=Un,eS="[object Map]",tS="[object Set]",nS=Object.prototype,rS=nS.hasOwnProperty;function oS(e){if(e==null)return!0;if(J1(e)&&(Y1(e)||typeof e=="string"||typeof e.splice=="function"||Z1(e)||X1(e)||W1(e)))return!e.length;var t=q1(e);if(t==eS||t==tS)return!e.size;if(Q1(e))return!K1(e).length;for(var n in e)if(rS.call(e,n))return!1;return!0}var aS=oS,Vr=aS,iS=Jr,sS=Mt;function uS(e,t,n){(n!==void 0&&!sS(e[t],n)||n===void 0&&!(t in e))&&iS(e,t,n)}var Qi=uS;function cS(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++a];if(n(i[c],c,i)===!1)break}return t}}var lS=cS,dS=lS,fS=dS(),pS=fS,hS=Dt,mS=Ge;function gS(e){return mS(e)&&hS(e)}var vS=gS,yS=pt,SS=Xr,wS=Ge,_S="[object Object]",bS=Function.prototype,CS=Object.prototype,Xi=bS.toString,AS=CS.hasOwnProperty,ES=Xi.call(Object);function IS(e){if(!wS(e)||yS(e)!=_S)return!1;var t=SS(e);if(t===null)return!0;var n=AS.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Xi.call(n)==ES}var $S=IS;function TS(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var es=TS,PS=Ft,NS=Lt;function kS(e){return PS(e,NS(e))}var xS=kS,Pa=Qi,US=yn.exports,OS=Si,RS=li,BS=wi,Na=kn,ka=ke,VS=vS,DS=Xe.exports,MS=zr,FS=Me,LS=$S,jS=Un,xa=es,zS=xS;function GS(e,t,n,r,a,i,s){var u=xa(e,n),c=xa(t,n),l=s.get(c);if(l){Pa(e,n,l);return}var d=i?i(u,c,n+"",e,t,s):void 0,h=d===void 0;if(h){var f=ka(c),p=!f&&DS(c),v=!f&&!p&&jS(c);d=c,f||p||v?ka(u)?d=u:VS(u)?d=RS(u):p?(h=!1,d=US(c,!0)):v?(h=!1,d=OS(c,!0)):d=[]:LS(c)||Na(c)?(d=u,Na(u)?d=zS(u):(!FS(u)||MS(u))&&(d=BS(c))):h=!1}h&&(s.set(c,d),a(d,c,r,i,s),s.delete(c)),Pa(e,n,d)}var HS=GS,KS=Fn,qS=Qi,WS=pS,YS=HS,JS=Me,ZS=Lt,QS=es;function ts(e,t,n,r,a){e!==t&&WS(t,function(i,s){if(a||(a=new KS),JS(i))YS(e,t,s,n,ts,r,a);else{var u=r?r(QS(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),qS(e,s,u)}},ZS)}var XS=ts;function ew(e){return e}var Io=ew;function tw(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var nw=tw,rw=nw,Ua=Math.max;function ow(e,t,n){return t=Ua(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Ua(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(s),rw(e,this,u)}}var aw=ow;function iw(e){return function(){return e}}var sw=iw,uw=sw,Oa=ci,cw=Io,lw=Oa?function(e,t){return Oa(e,"toString",{configurable:!0,enumerable:!1,value:uw(t),writable:!0})}:cw,dw=lw,fw=800,pw=16,hw=Date.now;function mw(e){var t=0,n=0;return function(){var r=hw(),a=pw-(r-n);if(n=r,a>0){if(++t>=fw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var gw=mw,vw=dw,yw=gw,Sw=yw(vw),ww=Sw,_w=Io,bw=aw,Cw=ww;function Aw(e,t){return Cw(bw(e,t,_w),e+"")}var Ew=Aw,Iw=Mt,$w=Dt,Tw=xn,Pw=Me;function Nw(e,t,n){if(!Pw(n))return!1;var r=typeof t;return(r=="number"?$w(n)&&Tw(t,n.length):r=="string"&&t in n)?Iw(n[t],e):!1}var kw=Nw,xw=Ew,Uw=kw;function Ow(e){return xw(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&Uw(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var u=n[r];u&&e(t,u,r,i)}return t})}var Rw=Ow,Bw=XS,Vw=Rw,Dw=Vw(function(e,t,n){Bw(e,t,n)}),Mw=Dw,$o=function(e,t,n,r){return Y(void 0,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return a=s.sent(),i=Mw.apply(void 0,Ue([{}],a,!1)),Vr(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},En={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,ue.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,ue.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,ue.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return Y(this,void 0,void 0,function(){return J(this,function(r){return[2,ue.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,ue.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return Y(this,void 0,void 0,function(){return J(this,function(r){switch(r.label){case 0:return[4,ue.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,ue.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,ue.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(this,function(u){return r=e.password,t.password&&n?(a=[],i=+(n==null?void 0:n.passwordPolicyMinLength),r.length<i&&a.push("Password must have at least ".concat(i," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||a.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||a.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||a.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":/[\W]/.test(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Y(this,void 0,void 0,function(){var n,r,a,i;return J(this,function(s){return n=e.password,r=e.confirm_password,a=t.confirm_password,i=t.password,n||r?(n||r)&&n!==r&&(a&&i||(n==null?void 0:n.length)>=6&&(r==null?void 0:r.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]})})},validatePreferredUsername:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})}};function Fw(e){var t=e.services;return zt({initial:"init",id:"signInActor",states:{init:{always:[{target:"autoSignIn",cond:"shouldAutoSignIn"},{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},autoSignIn:{initial:"submit",states:{submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"#signInActor.rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"#signInActor.rejected"},{actions:"setRemoteError",target:"#signInActor.signIn"}]}}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}},forceNewPassword:{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:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],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:"verifyTotpToken",onDone:{actions:["setUser","clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedAttributes","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(n){return{user:n.user}}},rejected:{type:"final",data:function(n,r){return{intent:n.redirectIntent,authAttributes:n.authAttributes}}}}},{actions:{clearAttributeToVerify:Jy,clearChallengeName:Zy,clearRequiredAttributes:Qy,clearError:ho,clearFormValues:mo,clearTouched:go,clearUnverifiedAttributes:Xy,clearValidationError:vo,handleInput:wo,handleSubmit:_o,handleBlur:bo,parsePhoneNumber:Wi,setChallengeName:t1,setConfirmResetPasswordIntent:r1,setConfirmSignUpIntent:o1,setRequiredAttributes:n1,setCredentials:Ki,setFieldErrors:yo,setRemoteError:So,setUnverifiedAttributes:a1,setUser:qi,setUsernameAuthAttributes:u1,sendUpdate:uo()},guards:{shouldConfirmSignIn:function(n,r){var a=qe(r,"data.challengeName");return[ze.SMS_MFA,ze.SOFTWARE_TOKEN_MFA].includes(a)},shouldAutoSignIn:function(n){return(n==null?void 0:n.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return qe(r,"data.challengeName")===ze.MFA_SETUP},shouldForceChangePassword:function(n,r){return qe(r,"data.challengeName")===ze.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Vr(s)&&!Vr(i)}},services:{signIn:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s,u,c,l;return J(this,function(d){switch(d.label){case 0:return r=n.authAttributes,a=r===void 0?{}:r,i=n.formValues,s=i===void 0?{}:i,u=O(O({},a),s),c=u.username,l=u.password,[4,t.handleSignIn({username:c,password:l})];case 1:return[2,d.sent()]}})})},confirmSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u;return J(this,function(c){switch(c.label){case 0:return a=n.challengeName,i=n.user,s=n.formValues.confirmation_code,a!==ze.SMS_MFA&&a!==ze.SOFTWARE_TOKEN_MFA||(u=a),[4,t.handleConfirmSignIn({user:i,code:s,mfaType:u})];case 1:return c.sent(),[4,ue.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d,h,f;return J(this,function(p){switch(p.label){case 0:a=n.user,i=n.formValues,s=i.password,u=i.phone_number,c=i.country_code,l=ii(i,["password","confirm_password","phone_number","country_code"]),u&&(d="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),l=O(O({},l),{phone_number:d})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,ue.Auth.completeNewPassword(a,s,l)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,ue.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){return a=n.user,i=n.formValues.confirmation_code,[2,ue.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ue.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=n.user,[4,ue.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.formValues.unverifiedAttr,[4,ue.Auth.verifyCurrentUserAttribute(a)];case 1:return i=s.sent(),n.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.attributeToVerify,i=n.formValues.confirmation_code,[4,ue.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,$o(n.formValues,n.touched,n.passwordSettings,[En.validateConfirmPassword])]})})}}})}var Lw=zt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return ue.Auth.signOut()}}});function jw(e){var t=e.services;return zt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","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:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:ho,clearFormValues:mo,clearTouched:go,clearUsername:e1,clearValidationError:vo,handleInput:wo,handleSubmit:_o,handleBlur:bo,setFieldErrors:yo,setRemoteError:So,setUsername:i1,sendUpdate:uo()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return Y(this,void 0,void 0,function(){var r;return J(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(this,function(u){return r=n.username,a=n.formValues,i=a.confirmation_code,s=a.password,[2,t.handleForgotPasswordSubmit({username:r,code:i,password:s})]})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,$o(n.formValues,n.touched,n.passwordSettings,[En.validateConfirmPassword])]})})}}})}var zw="__lodash_hash_undefined__";function Gw(e){return this.__data__.set(e,zw),this}var Hw=Gw;function Kw(e){return this.__data__.has(e)}var qw=Kw,Ww=Yr,Yw=Hw,Jw=qw;function In(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ww;++t<n;)this.add(e[t])}In.prototype.add=In.prototype.push=Yw;In.prototype.has=Jw;var Zw=In;function Qw(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Xw=Qw;function e_(e,t){return e.has(t)}var t_=e_,n_=Zw,r_=Xw,o_=t_,a_=1,i_=2;function s_(e,t,n,r,a,i){var s=n&a_,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),d=i.get(t);if(l&&d)return l==t&&d==e;var h=-1,f=!0,p=n&i_?new n_:void 0;for(i.set(e,t),i.set(t,e);++h<u;){var v=e[h],m=t[h];if(r)var g=s?r(m,v,h,t,e,i):r(v,m,h,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!r_(t,function(S,w){if(!o_(p,w)&&(v===S||a(v,S,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(v===m||a(v,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ns=s_;function u_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var c_=u_;function l_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var d_=l_,Ra=Vt,Ba=yi,f_=Mt,p_=ns,h_=c_,m_=d_,g_=1,v_=2,y_="[object Boolean]",S_="[object Date]",w_="[object Error]",__="[object Map]",b_="[object Number]",C_="[object RegExp]",A_="[object Set]",E_="[object String]",I_="[object Symbol]",$_="[object ArrayBuffer]",T_="[object DataView]",Va=Ra?Ra.prototype:void 0,cr=Va?Va.valueOf:void 0;function P_(e,t,n,r,a,i,s){switch(n){case T_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $_:return!(e.byteLength!=t.byteLength||!i(new Ba(e),new Ba(t)));case y_:case S_:case b_:return f_(+e,+t);case w_:return e.name==t.name&&e.message==t.message;case C_:case E_:return e==t+"";case __:var u=h_;case A_:var c=r&g_;if(u||(u=m_),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=v_,s.set(e,t);var d=p_(u(e),u(t),r,a,i,s);return s.delete(e),d;case I_:if(cr)return cr.call(e)==cr.call(t)}return!1}var N_=P_,Da=mi,k_=1,x_=Object.prototype,U_=x_.hasOwnProperty;function O_(e,t,n,r,a,i){var s=n&k_,u=Da(e),c=u.length,l=Da(t),d=l.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:U_.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var _=s?r(w,S,f,t,e,i):r(S,w,f,e,t,i);if(!(_===void 0?S===w||a(S,w,n,r,i):_)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var b=e.constructor,A=t.constructor;b!=A&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof A=="function"&&A instanceof A)&&(m=!1)}return i.delete(e),i.delete(t),m}var R_=O_,lr=Fn,B_=ns,V_=N_,D_=R_,Ma=jt,Fa=ke,La=Xe.exports,M_=Un,F_=1,ja="[object Arguments]",za="[object Array]",cn="[object Object]",L_=Object.prototype,Ga=L_.hasOwnProperty;function j_(e,t,n,r,a,i){var s=Fa(e),u=Fa(t),c=s?za:Ma(e),l=u?za:Ma(t);c=c==ja?cn:c,l=l==ja?cn:l;var d=c==cn,h=l==cn,f=c==l;if(f&&La(e)){if(!La(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new lr),s||M_(e)?B_(e,t,n,r,a,i):V_(e,t,c,n,r,a,i);if(!(n&F_)){var p=d&&Ga.call(e,"__wrapped__"),v=h&&Ga.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,g=v?t.value():t;return i||(i=new lr),a(m,g,n,r,i)}}return f?(i||(i=new lr),D_(e,t,n,r,a,i)):!1}var z_=j_,G_=z_,Ha=Ge;function rs(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ha(e)&&!Ha(t)?e!==e&&t!==t:G_(e,t,n,r,rs,a)}var os=rs,H_=Fn,K_=os,q_=1,W_=2;function Y_(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){u=n[a];var c=u[0],l=e[c],d=u[1];if(s&&u[2]){if(l===void 0&&!(c in e))return!1}else{var h=new H_;if(r)var f=r(l,d,c,e,t,h);if(!(f===void 0?K_(d,l,q_|W_,r,h):f))return!1}}return!0}var J_=Y_,Z_=Me;function Q_(e){return e===e&&!Z_(e)}var as=Q_,X_=as,eb=Rn;function tb(e){for(var t=eb(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,X_(a)]}return t}var nb=tb;function rb(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var is=rb,ob=J_,ab=nb,ib=is;function sb(e){var t=ab(e);return t.length==1&&t[0][2]?ib(t[0][0],t[0][1]):function(n){return n===e||ob(n,e,t)}}var ub=sb;function cb(e,t){return e!=null&&t in Object(e)}var lb=cb,db=Kn,fb=kn,pb=ke,hb=xn,mb=Gr,gb=Gt;function vb(e,t,n){t=db(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=gb(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&mb(a)&&hb(s,a)&&(pb(e)||fb(e)))}var yb=vb,Sb=lb,wb=yb;function _b(e,t){return e!=null&&wb(e,t,Sb)}var bb=_b,Cb=os,Ab=Zi,Eb=bb,Ib=Co,$b=as,Tb=is,Pb=Gt,Nb=1,kb=2;function xb(e,t){return Ib(e)&&$b(t)?Tb(Pb(e),t):function(n){var r=Ab(n,e);return r===void 0&&r===t?Eb(n,e):Cb(t,r,Nb|kb)}}var Ub=xb;function Ob(e){return function(t){return t==null?void 0:t[e]}}var Rb=Ob,Bb=Eo;function Vb(e){return function(t){return Bb(t,e)}}var Db=Vb,Mb=Rb,Fb=Db,Lb=Co,jb=Gt;function zb(e){return Lb(e)?Mb(jb(e)):Fb(e)}var Gb=zb,Hb=ub,Kb=Ub,qb=Io,Wb=ke,Yb=Gb;function Jb(e){return typeof e=="function"?e:e==null?qb:typeof e=="object"?Wb(e)?Kb(e[0],e[1]):Hb(e):Yb(e)}var Zb=Jb,Qb=Zr,Xb=Kn,e0=xn,Ka=Me,t0=Gt;function n0(e,t,n,r){if(!Ka(e))return e;t=Xb(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=t0(t[a]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var d=u[c];l=r?r(d,c,u):void 0,l===void 0&&(l=Ka(d)?d:e0(t[a+1])?[]:{})}Qb(u,c,l),u=u[c]}return e}var r0=n0,o0=Eo,a0=r0,i0=Kn;function s0(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=o0(e,s);n(u,s)&&a0(i,i0(s,e),u)}return i}var u0=s0,c0=ti,l0=Zb,d0=u0,f0=gi;function p0(e,t){if(e==null)return{};var n=c0(f0(e),function(r){return[r]});return t=l0(t),d0(e,n,function(r,a){return t(r,a[0])})}var h0=p0;function m0(e){var t=e.services;return zt({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",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"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var a=n.authAttributes,i=a.username,s=a.password;return{user:qe(r,"data.user")||n.user,authAttributes:{username:i,password:s},intent:n.intent}}}}},{guards:{isUserAlreadyConfirmed:function(n,r){return r.data.message==="User is already confirmed."},shouldInitConfirmSignUp:function(n){return n.intent&&n.intent==="confirmSignUp"},shouldSkipConfirm:function(n,r){return r.data.userConfirmed}},actions:{clearError:ho,clearFormValues:mo,clearTouched:go,clearValidationError:vo,handleInput:wo,handleSubmit:_o,handleBlur:bo,parsePhoneNumber:Wi,setCredentials:Ki,setFieldErrors:yo,setRemoteError:So,setCodeDeliveryDetails:s1,setUser:qi,sendUpdate:uo(),setAutoSignInIntent:Ee({intent:function(n){return"autoSignIn"}})},services:{confirmSignUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c;return J(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=qe(a,"username")||qe(i,"username"),[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s;return J(this,function(u){return a=n.user,i=n.authAttributes,s=qe(a,"username")||qe(i,"username"),[2,ue.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ue.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d;return J(this,function(h){switch(h.label){case 0:return a=n.formValues,i=n.loginMechanisms,s=i[0],c=(u=a)[s===void 0?"username":s],l=u.password,d=h0(a,function(f,p){switch(p){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 p.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:l,attributes:d})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,$o(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function g0(){return zt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:En,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{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:{forwardToActor:Wy([{cond:"hasActor",actions:ry(function(e){return e.actorRef})}]),setUser:Ee({user:function(e,t){return t.data}}),setActorDoneData:Ee({actorDoneData:function(e,t){var n,r;return{authAttributes:O({},(n=t.data)===null||n===void 0?void 0:n.authAttributes),intent:(r=t.data)===null||r===void 0?void 0:r.intent}},user:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.user}}),clearUser:Ee({user:void 0}),clearActorDoneData:Ee({actorDoneData:void 0}),applyAmplifyConfig:Ee({config:function(e,t){var n,r,a,i,s,u,c,l,d,h=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(A){return A.toLowerCase()}))!==null&&r!==void 0?r:[],f=(i=(a=t.data.aws_cognito_verification_mechanisms)===null||a===void 0?void 0:a.map(function(A){return A.toLowerCase()}))!==null&&i!==void 0?i:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(A){return A.toLowerCase()}))!==null&&u!==void 0?u:[],v=(l=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(A){return A.toLowerCase()}))!==null&&l!==void 0?l:[],m=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var g=e.config,S=g.loginMechanisms,w=g.signUpAttributes,_=g.socialProviders,b=g.initialState;return{loginMechanisms:S!=null?S:h,formFields:(d=v0(g.formFields))!==null&&d!==void 0?d:{},passwordSettings:m,signUpAttributes:w!=null?w:Array.from(new Set(Ue(Ue([],f,!0),p,!0))),socialProviders:_!=null?_:v.sort(),initialState:b}}}),spawnSignInActor:Ee({actorRef:function(e,t){var n,r,a,i,s,u,c=e.services,l=Fw({services:c}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},user:e.user,intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields});return on(l,{name:"signInActor"})}}),spawnSignUpActor:Ee({actorRef:function(e,t){var n,r,a,i,s,u,c,l=e.services,d=m0({services:l}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields,passwordSettings:(c=e.config)===null||c===void 0?void 0:c.passwordSettings});return on(d,{name:"signUpActor"})}}),spawnResetPasswordActor:Ee({actorRef:function(e,t){var n,r,a,i,s=e.services,u=jw({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(a=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||a===void 0?void 0:a.username,formFields:(i=e.config)===null||i===void 0?void 0:i.formFields,validationError:{}});return on(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ee({actorRef:function(e){var t=Lw.withContext({user:e.user});return on(t,{name:"signOutActor"})}}),stopSignInActor:un("signInActor"),stopSignUpActor:un("signUpActor"),stopResetPasswordActor:un("resetPasswordActor"),stopSignOutActor:un("signOutActor"),configure:Ee(function(e,t){var n=t.data,r=n.services,a=ii(n,["services"]);return{services:O(O({},En),r),config:a}}),setHasSetup:Ee({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return e.config.initialState==="signUp"},isInitialStateResetPassword:function(e){return e.config.initialState==="resetPassword"},shouldRedirectToSignUp:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmSignUp"},shouldRedirectToResetPassword:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmPasswordReset"},shouldAutoSignIn:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="autoSignIn"},shouldSetup:function(e){return e.hasSetup===!1},hasActor:function(e){return!!e.actorRef}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function v0(e){return e&&Object.keys(e).forEach(function(t){Object.keys(e[t]).forEach(function(n){var r=e[t][n];r.required=r.isRequired})}),e}var $n=globalThis&&globalThis.__assign||function(){return $n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},$n.apply(this,arguments)},y0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function S0(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function w0(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,a=t.context,i=t.guards,s=t.actions,u=t.activities,c=t.services,l=t.delays,d=t.state,h=y0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:l},p=r.withConfig(f,function(){return $n($n({},r.context),a)}),v=Fi(p,h).start(d?xe.create(d):void 0),m;return o.onMounted(function(){n&&(m=v.subscribe(S0(n)))}),o.onBeforeUnmount(function(){v.stop(),m==null||m.unsubscribe()}),v}function _0(e){return"state"in e}var qa=function(){};function b0(e){return"getSnapshot"in e?e.getSnapshot():_0(e)?e.state:void 0}function ss(e,t){t===void 0&&(t=b0);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),a=function(i){n.value.send(i)};return o.watch(n,function(i,s,u){r.value=t(i);var c=i.subscribe({next:function(l){return r.value=l},error:qa,complete:qa}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const us={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:[""],codeDeliveryDetails:{val:"",DeliveryMedium:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Dr=o.ref(),vn=o.reactive(It(Et({},us),{send:"",state:""})),Te=e=>(e&&(Dr.value=e),ss(Dr.value)),C0=()=>(Wa(),o.watchEffect(()=>{Wa()}),vn),Ce=C0;function Wa(){if(!Dr.value)return;const{state:e,send:t}=Te(),n=si({send:t,state:e.value});for(const r of Object.keys(us))vn[r]=n[r];vn.send=t,vn.state=e}const ln=o.defineComponent({props:{provider:String},setup(e){const t=e,{provider:n}=o.toRefs(t),{send:r}=Te(),a=()=>{r({type:"FEDERATED_SIGN_IN",data:{provider:n==null?void 0:n.value}})};return(i,s)=>{const u=ge,c=we;return o.openBlock(),o.createBlock(c,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:a},{default:o.withCtx(()=>[o.createVNode(u,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3})]),_:3})}}}),A0=o.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[o.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),E0={class:"amplify-text amplify-authenticator__federated-text"},I0=o.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o.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),$0={class:"amplify-text amplify-authenticator__federated-text"},T0=o.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[o.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),P0={class:"amplify-text amplify-authenticator__federated-text"},N0=o.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[o.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"}),o.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"}),o.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"}),o.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),k0={class:"amplify-text amplify-authenticator__federated-text"},x0=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),qn=o.defineComponent({setup(e){var S;const{state:t}=Te(),n=Ie(Ce),{route:r}=n(),{value:{context:a}}=t,i=(S=a==null?void 0:a.config)==null?void 0:S.socialProviders,s=i==null?void 0:i.includes("amazon"),u=i==null?void 0:i.includes("apple"),c=i==null?void 0:i.includes("facebook"),l=i==null?void 0:i.includes("google"),d=c||l||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),p=o.computed(()=>R(`Sign ${h} with Amazon`)),v=o.computed(()=>R(`Sign ${h} with Apple`)),m=o.computed(()=>R(`Sign ${h} with Facebook`)),g=o.computed(()=>R(`Sign ${h} with Google`));return(w,_)=>{const b=ge;return o.unref(d)?(o.openBlock(),o.createBlock(b,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(ln,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[A0,o.createElementVNode("p",E0,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(ln,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[I0,o.createElementVNode("p",$0,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(ln,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[T0,o.createElementVNode("p",P0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(ln,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[N0,o.createElementVNode("p",k0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),x0]),_:1})):o.createCommentVNode("",!0)}}}),U0={},O0={"data-amplify-label":""};function R0(e,t){return o.openBlock(),o.createElementBlock("label",O0,[o.renderSlot(e.$slots,"default")])}var Wn=Nn(U0,[["render",R0]]);const Yn=o.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,a)=>(o.openBlock(),o.createElementBlock("input",{onChange:a[0]||(a[0]=i=>n(i)),"data-amplify-input":""},null,32))}}),B0=["aria-label"],V0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},D0=o.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),M0=[D0],F0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},L0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),j0=o.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),z0=[L0,j0],G0={inheritAttrs:!1},To=o.defineComponent(It(Et({},G0),{props:{name:null,label:null,autocomplete:null,ariainvalid:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0}},setup(e){var w;const t=e,n=R("Show password"),r=R("Hide password"),a=o.ref("password"),i=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:l,ariainvalid:d,labelHidden:h,placeholder:f,required:p}=o.toRefs(t);let v=o.ref("");function m(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const g=R((w=f==null?void 0:f.value)!=null?w:c.value),S=R(c.value);return(_,b)=>{const A=Wn,I=Yn,C=ge;return o.openBlock(),o.createBlock(C,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var E;return[o.createVNode(A,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":(E=o.unref(h))!=null?E:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1},8,["class","for"]),o.createVNode(C,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var P;return[o.createVNode(I,o.mergeProps(_.$attrs,{modelValue:o.unref(v),"onUpdate:modelValue":b[0]||(b[0]=x=>o.isRef(v)?v.value=x:v=x),class:"amplify-input amplify-field-group__control","aria-invalid":o.unref(d),id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(l),required:(P=o.unref(p))!=null?P:!0,placeholder:o.unref(g),type:a.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","required","placeholder","type"]),o.createVNode(C,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth","data-fullwidth":"false",type:"button",onClick:m},[a.value==="password"?(o.openBlock(),o.createElementBlock("svg",V0,M0)):(o.openBlock(),o.createElementBlock("svg",F0,z0))],8,B0)]),_:1})]}),_:1})]}),_:1})}}})),H0=["value","selected"],K0=o.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const n=e,{options:r,selectValue:a}=o.toRefs(n),i=s=>{t("update:selectValue",s.target.value)};return(s,u)=>(o.openBlock(),o.createElementBlock("select",{onChange:u[0]||(u[0]=c=>i(c))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),(c,l)=>(o.openBlock(),o.createElementBlock("option",{key:l,value:c,selected:c==o.unref(a)?!0:void 0},o.toDisplayString(c),9,H0))),128))],32))}}),q0=o.createTextVNode(o.toDisplayString("Country Code")),W0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon amplify-icon--large"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),Y0=o.defineComponent({props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean,default:!1},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"}},setup(e){const t=e,{label:n,name:r,placeholder:a,autocomplete:i,labelHidden:s,required:u,dialCode:c,dialCodeList:l}=o.toRefs(t),d=Math.floor(Math.random()*999999),h=Math.floor(Math.random()*999999);return(f,p)=>{const v=Wn,m=K0,g=ge,S=Yn;return o.openBlock(),o.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":o.unref(s)}]},f.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},16,["for","class"]),o.createVNode(g,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(g,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(g,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,o.mergeProps({for:"amplify-field-"+o.unref(h),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:o.withCtx(()=>[q0]),_:1},16,["for"]),o.createVNode(g,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(h),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:o.unref(l),"select-value":o.unref(c)},null,8,["id","options","select-value"]),o.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[W0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>{var w;return[o.createVNode(S,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+o.unref(d),autocomplete:o.unref(i),name:o.unref(r),required:(w=o.unref(u))!=null?w:!0,type:e.type,placeholder:o.unref(a)},null,8,["id","autocomplete","name","required","type","placeholder"])]}),_:1})]),_:1})]),_:1})}}}),J0={key:2},cs=o.defineComponent({props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),a=Ie(Ce),{validationErrors:i}=o.toRefs(a()),{type:s}=r.value,u=o.computed(()=>Ul(i.value[n.value])),c=s==="password";return(l,d)=>{var h;return o.openBlock(),o.createElementBlock(o.Fragment,null,[c?(o.openBlock(),o.createBlock(To,{key:0,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,ariainvalid:!!o.unref(i)[o.unref(n)]},null,8,["name","label","placeholder","required","label-hidden","autocomplete","ariainvalid"])):(o.openBlock(),o.createBlock(Y0,{key:1,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,"dial-code":o.unref(r).dialCode,"dial-code-list":o.unref(r).dialCodeList,type:o.unref(r).type},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type"])),((h=o.unref(u))==null?void 0:h.length)>0?(o.openBlock(),o.createElementBlock("div",J0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(u),(f,p)=>(o.openBlock(),o.createElementBlock("p",{key:p,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(R)(f)),1))),128))])):o.createCommentVNode("",!0)],64)}}}),Le=o.defineComponent({props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Te();let a=[];return o.onBeforeMount(()=>{a=iv(n.value,r.value)}),(i,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),([u,c])=>(o.openBlock(),o.createBlock(cs,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),Z0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),Q0={"data-amplify-footer":""},Po=o.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=Ie(Ce)(),a=o.useAttrs(),i=o.computed(()=>kl("Forgot your password? ")?R("Forgot your password? "):R("Forgot your password?")),s=o.computed(()=>R("Sign in")),u=o.computed(()=>R("Signing in")),{state:c,send:l}=Te(),d=o.computed(()=>be(c.value)),h=m=>{const{name:g,value:S}=m.target;l({type:"CHANGE",data:{name:g,value:S}})},f=m=>{a!=null&&a.onSignInSubmit?t("signInSubmit",m):p(m)},p=m=>{r.submitForm(Fe(m))},v=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,g)=>{const S=Oe,w=Re,_=we,b=ge,A=Be,I=Ve;return o.renderSlot(m.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.renderSlot(m.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{"data-amplify-authenticator-signin":"",onInput:h,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:C})=>[o.renderSlot(m.$slots,"form",{info:C,onSignInSubmit:f,onInput:h,onForgotPasswordClicked:v})]),default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(S,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:o.withCtx(({slotData:C})=>[o.renderSlot(m.$slots,"signin-fields",{info:C})]),default:o.withCtx(()=>[Z0,o.createVNode(Le,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(d).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(I,null,{default:o.withCtx(()=>[o.renderSlot(m.$slots,"footer",{},()=>[o.createElementVNode("div",Q0,[o.createVNode(_,{onClick:v,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(i)),1)]),_:1})])])]),_:3})])}}}),No=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"signUp"}))}}),ko=o.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const n=Ie(Ce),r=n(),a=n(),{hasValidationErrors:i,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),l=o.computed(()=>R("Create Account")),d=v=>{let{checked:m,name:g,type:S,value:w}=v.target;S==="checkbox"&&!m&&(w=void 0),a.updateForm({name:g,value:w})};function h(v){const{name:m}=v.target;a.updateBlur({name:m})}const f=v=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",v):p(v)},p=v=>{a.submitForm(Fe(v))};return(v,m)=>{const g=Oe,S=Re,w=we,_=ge,b=Be,A=Ve;return o.renderSlot(v.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.renderSlot(v.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:d,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(qn),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:I})=>[o.renderSlot(v.$slots,"signup-fields",{info:I})]),default:o.withCtx(()=>[o.createVNode(No)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(A,null,{default:o.withCtx(()=>[o.renderSlot(v.$slots,"footer")]),_:3})])}}}),X0=o.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:n,id:r,label:a}=o.toRefs(t);return(i,s)=>{const u=ge;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(n)?0:-1,"data-state":o.unref(n)?"active":"inactive","aria-selected":o.unref(n)?"true":"false","aria-controls":`radix-id-${o.unref(r)}-8-content-0`,id:`radix-id-${o.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),eC={};function tC(e,t){const n=ge;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var nC=Nn(eC,[["render",tC]]);const Je=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var s,u;const r=t.default?t.default():[],a=t.headingI?t.headingI():[],i=`${n.class||""} amplify-heading--${e.level}`;if(((u=(s=a[0])==null?void 0:s.children)==null?void 0:u.length)===0)a[0].children=[o.h(`h${e.level}`,It(Et({},n),{class:i}),[r])];else return()=>o.h(`h${e.level}`,It(Et({"data-amplify-heading":""},n),{class:i}),[a[0]?o.h(a[0].children[0]):o.h(r[0])]);return()=>a}}),rC={};function oC(e,t){return o.renderSlot(e.$slots,"textI",o.normalizeProps(o.guardReactiveProps(e.$attrs)),()=>[o.createElementVNode("span",o.mergeProps(e.$attrs,{"data-amplify-text":""}),[o.renderSlot(e.$slots,"default")],16)])}var ls=Nn(rC,[["render",oC]]);const xo=o.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Ie(Ce),{isPending:a,error:i,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:l}=r(),d=o.computed(()=>{var I,C;return((I=s.value)==null?void 0:I.DeliveryMedium)==="EMAIL"?R("We Emailed You"):((C=s.value)==null?void 0:C.DeliveryMedium)==="SMS"?R("We Texted You"):R("We Sent A Code")}),h=o.computed(()=>R("Resend Code")),f=o.computed(()=>R("Confirm")),p=R("Your code is on the way. To log in, enter the code we emailed to"),v=R("Your code is on the way. To log in, enter the code we texted to"),m=R("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),g=R("It may take a minute to arrive."),S=o.computed(()=>{var I,C,E,P;return((I=s.value)==null?void 0:I.DeliveryMedium)==="EMAIL"?`${p} ${(C=s.value)==null?void 0:C.Destination}. ${g}`:((E=s.value)==null?void 0:E.DeliveryMedium)==="SMS"?`${v} ${(P=s.value)==null?void 0:P.Destination}. ${g}`:R(`${m}`)}),w=I=>{const{name:C,value:E}=I.target;c({name:C,value:E})},_=I=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",I):b(I)},b=I=>{u(Fe(I))},A=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(I,C)=>{const E=Je,P=ls,x=Oe,B=Re,M=we,L=Ve,ce=ge,z=Be;return o.renderSlot(I.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps(I.$attrs)),()=>[o.createVNode(ce,o.normalizeProps(o.guardReactiveProps(I.$attrs)),{default:o.withCtx(()=>[o.createVNode(z,{onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(ce,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(I.$slots,"header",{},()=>[o.createVNode(E,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(P,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(L,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(i)?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(i))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(A,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(I.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:A})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Uo=o.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Te(),s=Ie(Ce)(),u=o.computed(()=>be(r.value)),c=u.value.context.challengeName;let l="SMS";c===ze.SOFTWARE_TOKEN_MFA&&(l="TOTP");const d=`Confirm ${l} Code`,h=o.computed(()=>R("Back to Sign In")),f=o.computed(()=>R("Confirm")),p=S=>{const{name:w,value:_}=S.target;a({type:"CHANGE",data:{name:w,value:_}})},v=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):m(S)},m=S=>{s.submitForm(Fe(S))},g=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(S,w)=>{const _=Je,b=ge,A=Re,I=we,C=Ve,E=Oe,P=Be;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(P,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignIn"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var x,B;return[(B=(x=o.unref(u))==null?void 0:x.context)!=null&&B.remoteError?(o.openBlock(),o.createBlock(A,{key:0},{default:o.withCtx(()=>{var M,L;return[o.createTextVNode(o.toDisplayString(o.unref(R)((L=(M=o.unref(u))==null?void 0:M.context)==null?void 0:L.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:g,onConfirmSignInSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Ht={},aC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ds={},Ae={};let Oo;const iC=[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];Ae.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};Ae.getSymbolTotalCodewords=function(t){return iC[t]};Ae.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ae.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Oo=t};Ae.isKanjiModeEnabled=function(){return typeof Oo!="undefined"};Ae.toSJIS=function(t){return Oo(t)};var Jn={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.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: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})(Jn);function fs(){this.buffer=[],this.length=0}fs.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 n=0;n<t;n++)this.putBit((e>>>t-n-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 sC=fs;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,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Kt.prototype.get=function(e,t){return this.data[e*this.size+t]};Kt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Kt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var uC=Kt,ps={};(function(e){const t=Ae.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,i=t(r),s=i===145?26:Math.ceil((i-13)/(2*a-2))*2,u=[i-7];for(let c=1;c<a-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const a=[],i=e.getRowColCoords(r),s=i.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||a.push([i[u],i[c]]);return a}})(ps);var hs={};const cC=Ae.getSymbolSize,Ya=7;hs.getPositions=function(t){const n=cC(t);return[[0,0],[n-Ya,0],[0,n-Ya]]};var ms={};(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(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const i=a.size;let s=0,u=0,c=0,l=null,d=null;for(let h=0;h<i;h++){u=c=0,l=d=null;for(let f=0;f<i;f++){let p=a.get(h,f);p===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=p,u=1),p=a.get(f,h),p===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(a){const i=a.size;let s=0;for(let u=0;u<i-1;u++)for(let c=0;c<i-1;c++){const l=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(a){const i=a.size;let s=0,u=0,c=0;for(let l=0;l<i;l++){u=c=0;for(let d=0;d<i;d++)u=u<<1&2047|a.get(l,d),d>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|a.get(d,l),d>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(a){let i=0;const s=a.data.length;for(let c=0;c<s;c++)i+=a.data[c];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(r,a,i){switch(r){case e.Patterns.PATTERN000:return(a+i)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(a+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return a*i%2+a*i%3===0;case e.Patterns.PATTERN110:return(a*i%2+a*i%3)%2===0;case e.Patterns.PATTERN111:return(a*i%3+(a+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,i){const s=i.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)i.isReserved(c,u)||i.xor(c,u,n(a,c,u))},e.getBestMask=function(a,i){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let l=0;l<s;l++){i(l),e.applyMask(l,a);const d=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(l,a),d<c&&(c=d,u=l)}return u}})(ms);var Zn={};const We=Jn,dn=[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],fn=[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];Zn.getBlocksCount=function(t,n){switch(n){case We.L:return dn[(t-1)*4+0];case We.M:return dn[(t-1)*4+1];case We.Q:return dn[(t-1)*4+2];case We.H:return dn[(t-1)*4+3];default:return}};Zn.getTotalCodewordsCount=function(t,n){switch(n){case We.L:return fn[(t-1)*4+0];case We.M:return fn[(t-1)*4+1];case We.Q:return fn[(t-1)*4+2];case We.H:return fn[(t-1)*4+3];default:return}};var gs={},Qn={};const Ut=new Uint8Array(512),Tn=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Ut[n]=t,Tn[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Ut[n]=Ut[n-255]})();Qn.log=function(t){if(t<1)throw new Error("log("+t+")");return Tn[t]};Qn.exp=function(t){return Ut[t]};Qn.mul=function(t,n){return t===0||n===0?0:Ut[Tn[t]+Tn[n]]};(function(e){const t=Qn;e.mul=function(r,a){const i=new Uint8Array(r.length+a.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<a.length;u++)i[s+u]^=t.mul(r[s],a[u]);return i},e.mod=function(r,a){let i=new Uint8Array(r);for(;i.length-a.length>=0;){const s=i[0];for(let c=0;c<a.length;c++)i[c]^=t.mul(a[c],s);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let i=0;i<r;i++)a=e.mul(a,new Uint8Array([1,t.exp(i)]));return a}})(gs);const vs=gs;function Ro(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Ro.prototype.initialize=function(t){this.degree=t,this.genPoly=vs.generateECPolynomial(this.degree)};Ro.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=vs.mod(n,this.genPoly),a=this.degree-r.length;if(a>0){const i=new Uint8Array(this.degree);return i.set(r,a),i}return r};var lC=Ro,ys={},Ze={},Bo={};Bo.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const Ss="[0-9]+",dC="[A-Z $%*+\\-./:]+";let Bt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Bt=Bt.replace(/u/g,"\\u");const fC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Bt+`)(?:.|[\r
45
- ]))+`;je.KANJI=new RegExp(Bt,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(fC,"g");je.NUMERIC=new RegExp(Ss,"g");je.ALPHANUMERIC=new RegExp(dC,"g");const pC=new RegExp("^"+Bt+"$"),hC=new RegExp("^"+Ss+"$"),mC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return pC.test(t)};je.testNumeric=function(t){return hC.test(t)};je.testAlphanumeric=function(t){return mC.test(t)};(function(e){const t=Bo,n=je;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return n.testNumeric(i)?e.NUMERIC:n.testAlphanumeric(i)?e.ALPHANUMERIC:n.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function r(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.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: "+a)}}e.from=function(i,s){if(e.isValid(i))return i;try{return r(i)}catch{return s}}})(Ze);(function(e){const t=Ae,n=Zn,r=Jn,a=Ze,i=Bo,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function c(f,p,v){for(let m=1;m<=40;m++)if(p<=e.getCapacity(m,v,f))return m}function l(f,p){return a.getCharCountIndicator(f,p)+4}function d(f,p){let v=0;return f.forEach(function(m){v+=l(m.mode,p)+m.getBitsLength()}),v}function h(f,p){for(let v=1;v<=40;v++)if(d(f,v)<=e.getCapacity(v,p,a.MIXED))return v}e.from=function(p,v){return i.isValid(p)?parseInt(p,10):v},e.getCapacity=function(p,v,m){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof m=="undefined"&&(m=a.BYTE);const g=t.getSymbolTotalCodewords(p),S=n.getTotalCodewordsCount(p,v),w=(g-S)*8;if(m===a.MIXED)return w;const _=w-l(m,p);switch(m){case a.NUMERIC:return Math.floor(_/10*3);case a.ALPHANUMERIC:return Math.floor(_/11*2);case a.KANJI:return Math.floor(_/13);case a.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(p,v){let m;const g=r.from(v,r.M);if(Array.isArray(p)){if(p.length>1)return h(p,g);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),g)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let v=p<<12;for(;t.getBCHDigit(v)-u>=0;)v^=s<<t.getBCHDigit(v)-u;return p<<12|v}})(ys);var ws={};const Mr=Ae,_s=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,gC=1<<14|1<<12|1<<10|1<<4|1<<1,Ja=Mr.getBCHDigit(_s);ws.getEncodedBits=function(t,n){const r=t.bit<<3|n;let a=r<<10;for(;Mr.getBCHDigit(a)-Ja>=0;)a^=_s<<Mr.getBCHDigit(a)-Ja;return(r<<10|a)^gC};var bs={};const vC=Ze;function ct(e){this.mode=vC.NUMERIC,this.data=e.toString()}ct.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ct.prototype.getLength=function(){return this.data.length};ct.prototype.getBitsLength=function(){return ct.getBitsLength(this.data.length)};ct.prototype.write=function(t){let n,r,a;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),a=parseInt(r,10),t.put(a,10);const i=this.data.length-n;i>0&&(r=this.data.substr(n),a=parseInt(r,10),t.put(a,i*3+1))};var yC=ct;const SC=Ze,dr=["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 lt(e){this.mode=SC.ALPHANUMERIC,this.data=e}lt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};lt.prototype.getLength=function(){return this.data.length};lt.prototype.getBitsLength=function(){return lt.getBitsLength(this.data.length)};lt.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=dr.indexOf(this.data[n])*45;r+=dr.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(dr.indexOf(this.data[n]),6)};var wC=lt,_C=function(t){for(var n=[],r=t.length,a=0;a<r;a++){var i=t.charCodeAt(a);if(i>=55296&&i<=56319&&r>a+1){var s=t.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){n.push(i);continue}if(i<2048){n.push(i>>6|192),n.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128);continue}if(i>=65536&&i<=1114111){n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(i&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const bC=_C,CC=Ze;function dt(e){this.mode=CC.BYTE,this.data=new Uint8Array(bC(e))}dt.getBitsLength=function(t){return t*8};dt.prototype.getLength=function(){return this.data.length};dt.prototype.getBitsLength=function(){return dt.getBitsLength(this.data.length)};dt.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var AC=dt;const EC=Ze,IC=Ae;function ft(e){this.mode=EC.KANJI,this.data=e}ft.getBitsLength=function(t){return t*13};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=IC.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
46
- Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var $C=ft,Cs={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,a){var i={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,l,d,h,f,p,v,m,g;!u.empty();){c=u.pop(),l=c.value,h=c.cost,f=n[l]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],v=h+p,m=s[d],g=typeof s[d]=="undefined",(g||m>v)&&(s[d]=v,u.push(d,v),i[d]=l))}if(typeof a!="undefined"&&typeof s[a]=="undefined"){var S=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(S)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],i=r;i;)a.push(i),i=n[i];return a.reverse(),a},find_path:function(n,r,a){var i=t.single_source_shortest_paths(n,r,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,a={},i;n=n||{};for(i in r)r.hasOwnProperty(i)&&(a[i]=r[i]);return a.queue=[],a.sorter=n.sorter||r.default_sorter,a},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var a={value:n,cost:r};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Cs);(function(e){const t=Ze,n=yC,r=wC,a=AC,i=$C,s=je,u=Ae,c=Cs.exports;function l(S){return unescape(encodeURIComponent(S)).length}function d(S,w,_){const b=[];let A;for(;(A=S.exec(_))!==null;)b.push({data:A[0],index:A.index,mode:w,length:A[0].length});return b}function h(S){const w=d(s.NUMERIC,t.NUMERIC,S),_=d(s.ALPHANUMERIC,t.ALPHANUMERIC,S);let b,A;return u.isKanjiModeEnabled()?(b=d(s.BYTE,t.BYTE,S),A=d(s.KANJI,t.KANJI,S)):(b=d(s.BYTE_KANJI,t.BYTE,S),A=[]),w.concat(_,b,A).sort(function(C,E){return C.index-E.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(S,w){switch(w){case t.NUMERIC:return n.getBitsLength(S);case t.ALPHANUMERIC:return r.getBitsLength(S);case t.KANJI:return i.getBitsLength(S);case t.BYTE:return a.getBitsLength(S)}}function p(S){return S.reduce(function(w,_){const b=w.length-1>=0?w[w.length-1]:null;return b&&b.mode===_.mode?(w[w.length-1].data+=_.data,w):(w.push(_),w)},[])}function v(S){const w=[];for(let _=0;_<S.length;_++){const b=S[_];switch(b.mode){case t.NUMERIC:w.push([b,{data:b.data,mode:t.ALPHANUMERIC,length:b.length},{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.ALPHANUMERIC:w.push([b,{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.KANJI:w.push([b,{data:b.data,mode:t.BYTE,length:l(b.data)}]);break;case t.BYTE:w.push([{data:b.data,mode:t.BYTE,length:l(b.data)}])}}return w}function m(S,w){const _={},b={start:{}};let A=["start"];for(let I=0;I<S.length;I++){const C=S[I],E=[];for(let P=0;P<C.length;P++){const x=C[P],B=""+I+P;E.push(B),_[B]={node:x,lastCount:0},b[B]={};for(let M=0;M<A.length;M++){const L=A[M];_[L]&&_[L].node.mode===x.mode?(b[L][B]=f(_[L].lastCount+x.length,x.mode)-f(_[L].lastCount,x.mode),_[L].lastCount+=x.length):(_[L]&&(_[L].lastCount=x.length),b[L][B]=f(x.length,x.mode)+4+t.getCharCountIndicator(x.mode,w))}}A=E}for(let I=0;I<A.length;I++)b[A[I]].end=0;return{map:b,table:_}}function g(S,w){let _;const b=t.getBestModeForData(S);if(_=t.from(w,b),_!==t.BYTE&&_.bit<b.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(_)+`.
47
- Suggested mode is: `+t.toString(b));switch(_===t.KANJI&&!u.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new n(S);case t.ALPHANUMERIC:return new r(S);case t.KANJI:return new i(S);case t.BYTE:return new a(S)}}e.fromArray=function(w){return w.reduce(function(_,b){return typeof b=="string"?_.push(g(b,null)):b.data&&_.push(g(b.data,b.mode)),_},[])},e.fromString=function(w,_){const b=h(w,u.isKanjiModeEnabled()),A=v(b),I=m(A,_),C=c.find_path(I.map,"start","end"),E=[];for(let P=1;P<C.length-1;P++)E.push(I.table[C[P]].node);return e.fromArray(p(E))},e.rawSplit=function(w){return e.fromArray(h(w,u.isKanjiModeEnabled()))}})(bs);const Xn=Ae,fr=Jn,TC=sC,PC=uC,NC=ps,kC=hs,Fr=ms,Lr=Zn,xC=lC,Pn=ys,UC=ws,OC=Ze,pr=bs;function RC(e,t){const n=e.size,r=kC.getPositions(t);for(let a=0;a<r.length;a++){const i=r[a][0],s=r[a][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||n<=i+u))for(let c=-1;c<=7;c++)s+c<=-1||n<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?e.set(i+u,s+c,!0,!0):e.set(i+u,s+c,!1,!0))}}function BC(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function VC(e,t){const n=NC.getPositions(t);for(let r=0;r<n.length;r++){const a=n[r][0],i=n[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?e.set(a+s,i+u,!0,!0):e.set(a+s,i+u,!1,!0)}}function DC(e,t){const n=e.size,r=Pn.getEncodedBits(t);let a,i,s;for(let u=0;u<18;u++)a=Math.floor(u/3),i=u%3+n-8-3,s=(r>>u&1)===1,e.set(a,i,s,!0),e.set(i,a,s,!0)}function hr(e,t,n){const r=e.size,a=UC.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function MC(e,t){const n=e.size;let r=-1,a=n-1,i=7,s=0;for(let u=n-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!e.isReserved(a,u-c)){let l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),e.set(a,u-c,l),i--,i===-1&&(s++,i=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}function FC(e,t,n){const r=new TC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),OC.getCharCountIndicator(c.mode,e)),c.write(r)});const a=Xn.getSymbolTotalCodewords(e),i=Lr.getTotalCodewordsCount(e,t),s=(a-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return LC(r,e,t)}function LC(e,t,n){const r=Xn.getSymbolTotalCodewords(t),a=Lr.getTotalCodewordsCount(t,n),i=r-a,s=Lr.getBlocksCount(t,n),u=r%s,c=s-u,l=Math.floor(r/s),d=Math.floor(i/s),h=d+1,f=l-d,p=new xC(f);let v=0;const m=new Array(s),g=new Array(s);let S=0;const w=new Uint8Array(e.buffer);for(let C=0;C<s;C++){const E=C<c?d:h;m[C]=w.slice(v,v+E),g[C]=p.encode(m[C]),v+=E,S=Math.max(S,E)}const _=new Uint8Array(r);let b=0,A,I;for(A=0;A<S;A++)for(I=0;I<s;I++)A<m[I].length&&(_[b++]=m[I][A]);for(A=0;A<f;A++)for(I=0;I<s;I++)_[b++]=g[I][A];return _}function jC(e,t,n,r){let a;if(Array.isArray(e))a=pr.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const d=pr.rawSplit(e);l=Pn.getBestVersionForData(d,n)}a=pr.fromString(e,l||40)}else throw new Error("Invalid data");const i=Pn.getBestVersionForData(a,n);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
31
+ ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,l=arguments.length;c<l;c++){u=arguments[c];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},e.__assign.apply(this,arguments)};function t(i,s){var u={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&s.indexOf(c)<0&&(u[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,c=Object.getOwnPropertySymbols(i);l<c.length;l++)s.indexOf(c[l])<0&&Object.prototype.propertyIsEnumerable.call(i,c[l])&&(u[c[l]]=i[c[l]]);return u}function n(i){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&i[s],c=0;if(u)return u.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var c=u.call(i),l,d=[],h;try{for(;(s===void 0||s-- >0)&&!(l=c.next()).done;)d.push(l.value)}catch(f){h={error:f}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return d}function a(i,s,u){if(u||arguments.length===2)for(var c=0,l=s.length,d;c<l;c++)(d||!(c in s))&&(d||(d=Array.prototype.slice.call(s,0,c)),d[c]=s[c]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=a,e.__values=n})(fo);var po={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTypes=void 0,function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(e.ActionTypes||(e.ActionTypes={})),e.SpecialTargets=void 0,function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(po);var de={};Object.defineProperty(de,"__esModule",{value:!0});var he=po,ay=he.ActionTypes.Start,iy=he.ActionTypes.Stop,sy=he.ActionTypes.Raise,uy=he.ActionTypes.Send,cy=he.ActionTypes.Cancel,ly=he.ActionTypes.NullEvent,dy=he.ActionTypes.Assign,fy=he.ActionTypes.After,py=he.ActionTypes.DoneState,hy=he.ActionTypes.Log,my=he.ActionTypes.Init,gy=he.ActionTypes.Invoke,vy=he.ActionTypes.ErrorExecution,yy=he.ActionTypes.ErrorPlatform,Sy=he.ActionTypes.ErrorCustom,wy=he.ActionTypes.Update,_y=he.ActionTypes.Choose,by=he.ActionTypes.Pure;de.after=fy;de.assign=dy;de.cancel=cy;de.choose=_y;de.doneState=py;de.error=Sy;de.errorExecution=vy;de.errorPlatform=yy;de.init=my;de.invoke=gy;de.log=hy;de.nullEvent=ly;de.pure=by;de.raise=sy;de.send=uy;de.start=ay;de.stop=iy;de.update=wy;var ji={},_t={};Object.defineProperty(_t,"__esModule",{value:!0});var Cy=".",Ay={},Ey="xstate.guard",Iy="";_t.DEFAULT_GUARD_TYPE=Ey;_t.EMPTY_ACTIVITY_MAP=Ay;_t.STATE_DELIMITER=Cy;_t.TARGETLESS_KEY=Iy;var qn={};Object.defineProperty(qn,"__esModule",{value:!0});var $y=!0;qn.IS_PRODUCTION=$y;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=fo,n=_t,r=qn,a;function i(y){return Object.keys(y)}function s(y,N,U){U===void 0&&(U=n.STATE_DELIMITER);var k=h(y,U),V=h(N,U);return fe(V)?fe(k)?V===k:!1:fe(k)?k in V:Object.keys(k).every(function(D){return D in V?s(k[D],V[D]):!1})}function u(y){try{return fe(y)||typeof y=="number"?"".concat(y):y.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function c(y){try{return fe(y)||typeof y=="number"?"".concat(y):q(y)?y.name:y.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}}function l(y,N){try{return ce(y)?y:y.toString().split(N)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function d(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,N){if(d(y))return y.value;if(ce(y))return f(y);if(typeof y!="string")return y;var U=l(y,N);return f(U)}function f(y){if(y.length===1)return y[0];for(var N={},U=N,k=0;k<y.length-1;k++)k===y.length-2?U[y[k]]=y[k+1]:(U[y[k]]={},U=U[y[k]]);return N}function p(y,N){for(var U={},k=Object.keys(y),V=0;V<k.length;V++){var D=k[V];U[D]=N(y[D],D,y,V)}return U}function v(y,N,U){var k,V,D={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,oe=y[Z];!U(oe)||(D[Z]=N(oe,Z,y))}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(V=j.return)&&V.call(j)}finally{if(k)throw k.error}}return D}var m=function(y){return function(N){var U,k,V=N;try{for(var D=t.__values(y),j=D.next();!j.done;j=D.next()){var F=j.value;V=V[F]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(k=D.return)&&k.call(D)}finally{if(U)throw U.error}}return V}};function g(y,N){return function(U){var k,V,D=U;try{for(var j=t.__values(y),F=j.next();!F.done;F=j.next()){var Z=F.value;D=D[N][Z]}}catch(oe){k={error:oe}}finally{try{F&&!F.done&&(V=j.return)&&V.call(j)}finally{if(k)throw k.error}}return D}}function S(y){if(!y)return[[]];if(fe(y))return[[y]];var N=_(Object.keys(y).map(function(U){var k=y[U];return typeof k!="string"&&(!k||!Object.keys(k).length)?[[U]]:S(y[U]).map(function(V){return[U].concat(V)})}));return N}function w(y){var N,U,k={};if(y&&y.length===1&&y[0].length===1)return y[0][0];try{for(var V=t.__values(y),D=V.next();!D.done;D=V.next())for(var j=D.value,F=k,Z=0;Z<j.length;Z++){var oe=j[Z];if(Z===j.length-2){F[oe]=j[Z+1];break}F[oe]=F[oe]||{},F=F[oe]}}catch(_e){N={error:_e}}finally{try{D&&!D.done&&(U=V.return)&&U.call(V)}finally{if(N)throw N.error}}return k}function _(y){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(y),!1))}function b(y){return ce(y)?y:[y]}function A(y){return y===void 0?[]:b(y)}function I(y,N,U){var k,V;if(q(y))return y(N,U.data);var D={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,oe=y[Z];q(oe)?D[Z]=oe(N,U.data):D[Z]=oe}}catch(_e){k={error:_e}}finally{try{F&&!F.done&&(V=j.return)&&V.call(j)}finally{if(k)throw k.error}}return D}function C(y){return/^(done|error)\./.test(y)}function E(y){return!!(y instanceof Promise||y!==null&&(q(y)||typeof y=="object")&&q(y.then))}function P(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function x(y,N){var U,k,V=t.__read([[],[]],2),D=V[0],j=V[1];try{for(var F=t.__values(y),Z=F.next();!Z.done;Z=F.next()){var oe=Z.value;N(oe)?D.push(oe):j.push(oe)}}catch(_e){U={error:_e}}finally{try{Z&&!Z.done&&(k=F.return)&&k.call(F)}finally{if(U)throw U.error}}return[D,j]}function B(y,N){return p(y.states,function(U,k){if(!!U){var V=(fe(N)?void 0:N[k])||(U?U.current:void 0);if(!!V)return{current:V,states:B(U,V)}}})}function M(y,N){return{current:N,states:B(y,N)}}function L(y,N,U,k){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var V=y&&U.reduce(function(D,j){var F,Z,oe=j.assignment,_e={state:k,action:j,_event:N},tt={};if(q(oe))tt=oe(D,N.data,_e);else try{for(var te=t.__values(Object.keys(oe)),ne=te.next();!ne.done;ne=te.next()){var nt=ne.value,Et=oe[nt];tt[nt]=q(Et)?Et(D,N.data,_e):Et}}catch(xs){F={error:xs}}finally{try{ne&&!ne.done&&(Z=te.return)&&Z.call(te)}finally{if(F)throw F.error}}return Object.assign({},D,tt)},y);return V}e.warn=function(){},r.IS_PRODUCTION||(e.warn=function(y,N){var U=y instanceof Error?y:void 0;if(!(!U&&y)&&console!==void 0){var k=["Warning: ".concat(N)];U&&k.push(U),console.warn.apply(console,k)}});function ce(y){return Array.isArray(y)}function q(y){return typeof y=="function"}function fe(y){return typeof y=="string"}function Ct(y,N){if(!!y)return fe(y)?{type:n.DEFAULT_GUARD_TYPE,name:y,predicate:N?N[y]:void 0}:q(y)?{type:n.DEFAULT_GUARD_TYPE,name:y.name,predicate:y}:y}function me(y){try{return"subscribe"in y&&q(y.subscribe)}catch{return!1}}var Pe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),rr=(a={},a[Pe]=function(){return this},a[Symbol.observable]=function(){return this},a);function Zt(y){return!!y&&"__xstatenode"in y}function or(y){return!!y&&typeof y.send=="function"}var ar=function(){var y=0;return function(){return y++,y.toString(16)}}();function Qt(y,N){return fe(y)||typeof y=="number"?t.__assign({type:y},N):y}function ir(y,N){if(!fe(y)&&"$$type"in y&&y.$$type==="scxml")return y;var U=Qt(y);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},N)}function Xt(y,N){var U=b(N).map(function(k){return typeof k=="undefined"||typeof k=="string"||Zt(k)?{target:k,event:y}:t.__assign(t.__assign({},k),{event:y})});return U}function en(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return A(y)}function At(y,N,U){if(!r.IS_PRODUCTION){var k=y.stack?" Stacktrace was '".concat(y.stack,"'"):"";if(y===N)console.error("Missing onError handler for invocation '".concat(U,"', error was '").concat(y,"'.").concat(k));else{var V=N.stack?" Stacktrace was '".concat(N.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(U,"'. ")+"Original error: '".concat(y,"'. ").concat(k," Current error is '").concat(N,"'.").concat(V))}}}function sr(y,N,U,k,V){var D=y.options.guards,j={state:V,cond:N,_event:k};if(N.type===n.DEFAULT_GUARD_TYPE)return((D==null?void 0:D[N.name])||N.predicate)(U,k.data,j);var F=D==null?void 0:D[N.type];if(!F)throw new Error("Guard '".concat(N.type,"' is not implemented on machine '").concat(y.id,"'."));return F(U,k.data,j)}function T(y){return typeof y=="string"?{type:y}:y}function Se(y,N,U){if(typeof y=="object")return y;var k=function(){};return{next:y,error:N||k,complete:U||k}}function tn(y,N){return"".concat(y,":invocation[").concat(N,"]")}e.createInvokeId=tn,e.evaluateGuard=sr,e.flatten=_,e.getActionType=c,e.getEventType=u,e.interopSymbols=rr,e.isActor=or,e.isArray=ce,e.isBehavior=P,e.isBuiltInEvent=C,e.isFunction=q,e.isMachine=Zt,e.isObservable=me,e.isPromiseLike=E,e.isStateLike=d,e.isString=fe,e.keys=i,e.mapContext=I,e.mapFilterValues=v,e.mapValues=p,e.matchesState=s,e.nestedPath=g,e.normalizeTarget=en,e.partition=x,e.path=m,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=At,e.symbolObservable=Pe,e.toArray=A,e.toArrayStrict=b,e.toEventObject=Qt,e.toGuard=Ct,e.toInvokeSource=T,e.toObserver=Se,e.toSCXMLEvent=ir,e.toStatePath=l,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=Xt,e.uniqueId=ar,e.updateContext=L,e.updateHistoryStates=B,e.updateHistoryValue=M})(ji);Object.defineProperty(K,"__esModule",{value:!0});var Q=fo,$e=po,pe=de,G=ji,Ty=qn,Py=G.toSCXMLEvent({type:pe.init});function Br(e,t){return t&&t[e]||void 0}function Wn(e,t){var n;if(G.isString(e)||typeof e=="number"){var r=Br(e,t);G.isFunction(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(G.isFunction(e))n={type:e.name||e.toString(),exec:e};else{var r=Br(e.type,t);if(G.isFunction(r))n=Q.__assign(Q.__assign({},e),{exec:r});else if(r){var a=r.type||e.type;n=Q.__assign(Q.__assign(Q.__assign({},r),e),{type:a})}else n=e}return n}var Vr=function(e,t){if(!e)return[];var n=G.isArray(e)?e:[e];return n.map(function(r){return Wn(r,t)})};function ho(e){var t=Wn(e);return Q.__assign(Q.__assign({id:G.isString(e)?e:t.id},t),{type:t.type})}function Ny(e){return G.isString(e)?{type:pe.raise,event:e}:bt(e,{to:$e.SpecialTargets.Internal})}function zi(e){return{type:pe.raise,_event:G.toSCXMLEvent(e.event)}}function bt(e,t){return{to:t?t.to:void 0,type:pe.send,event:G.isFunction(e)?e:G.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:G.isFunction(e)?e.name:G.getEventType(e)}}function Gi(e,t,n,r){var a={_event:n},i=G.toSCXMLEvent(G.isFunction(e.event)?e.event(t,n.data,a):e.event),s;if(G.isString(e.delay)){var u=r&&r[e.delay];s=G.isFunction(u)?u(t,n.data,a):u}else s=G.isFunction(e.delay)?e.delay(t,n.data,a):e.delay;var c=G.isFunction(e.to)?e.to(t,n.data,a):e.to;return Q.__assign(Q.__assign({},e),{to:c,_event:i,event:i.data,delay:s})}function mo(e,t){return bt(e,Q.__assign(Q.__assign({},t),{to:$e.SpecialTargets.Parent}))}function ky(e,t,n){return bt(t,Q.__assign(Q.__assign({},n),{to:e}))}function xy(){return mo(pe.update)}function Uy(e,t){return bt(e,Q.__assign(Q.__assign({},t),{to:function(n,r,a){var i=a._event;return i.origin}}))}var Oy=function(e,t){return{context:e,event:t}};function Ry(e,t){return e===void 0&&(e=Oy),{type:pe.log,label:t,expr:e}}var Hi=function(e,t,n){return Q.__assign(Q.__assign({},e),{value:G.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},By=function(e){return{type:pe.cancel,sendId:e}};function Vy(e){var t=ho(e);return{type:$e.ActionTypes.Start,activity:t,exec:void 0}}function Dy(e){var t=G.isFunction(e)?e:ho(e);return{type:$e.ActionTypes.Stop,activity:t,exec:void 0}}function Ki(e,t,n){var r=G.isFunction(e.activity)?e.activity(t,n.data):e.activity,a=typeof r=="string"?{id:r}:r,i={type:$e.ActionTypes.Stop,activity:a};return i}var My=function(e){return{type:pe.assign,assignment:e}};function Fy(e){return typeof e=="object"&&"type"in e}function Ly(e,t){var n=t?"#".concat(t):"";return"".concat($e.ActionTypes.After,"(").concat(e,")").concat(n)}function jy(e,t){var n="".concat($e.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function zy(e,t){var n="".concat($e.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Gy(e,t){var n="".concat($e.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Hy(e){return{type:$e.ActionTypes.Pure,get:e}}function Ky(e,t){return bt(function(n,r){return r},Q.__assign(Q.__assign({},t),{to:e}))}function qy(e,t){return mo(function(n,r,a){return{type:pe.error,data:G.isFunction(e)?e(n,r,a):e}},Q.__assign(Q.__assign({},t),{to:$e.SpecialTargets.Parent}))}function Wy(e){return{type:$e.ActionTypes.Choose,conds:e}}function Dr(e,t,n,r,a,i){i===void 0&&(i=!1);var s=Q.__read(i?[[],a]:G.partition(a,function(f){return f.type===pe.assign}),2),u=s[0],c=s[1],l=u.length?G.updateContext(n,r,u,t):n,d=i?[n]:void 0,h=G.flatten(c.map(function(f){var p;switch(f.type){case pe.raise:return zi(f);case pe.send:var v=Gi(f,l,r,e.options.delays);return Ty.IS_PRODUCTION||G.warn(!G.isString(f.delay)||typeof v.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),v;case pe.log:return Hi(f,l,r);case pe.choose:{var m=f,g=(p=m.conds.find(function(x){var B=G.toGuard(x.cond,e.options.guards);return!B||G.evaluateGuard(e,B,l,r,t)}))===null||p===void 0?void 0:p.actions;if(!g)return[];var S=Q.__read(Dr(e,t,l,r,Vr(G.toArray(g),e.options.actions),i),2),w=S[0],_=S[1];return l=_,d==null||d.push(l),w}case pe.pure:{var g=f.get(l,r.data);if(!g)return[];var b=Q.__read(Dr(e,t,l,r,Vr(G.toArray(g),e.options.actions),i),2),A=b[0],I=b[1];return l=I,d==null||d.push(l),A}case pe.stop:return Ki(f,l,r);case pe.assign:{l=G.updateContext(l,r,[f],t),d==null||d.push(l);break}default:var C=Wn(f,e.options.actions),E=C.exec;if(E&&d){var P=d.length-1;C=Q.__assign(Q.__assign({},C),{exec:function(x){for(var B=[],M=1;M<arguments.length;M++)B[M-1]=arguments[M];E.apply(void 0,Q.__spreadArray([d[P]],Q.__read(B),!1))}})}return C}}).filter(function(f){return!!f}));return[h,l]}K.actionTypes=pe;K.after=Ly;var ie=K.assign=My;K.cancel=By;var Yy=K.choose=Wy;K.done=jy;K.doneInvoke=zy;K.error=Gy;K.escalate=qy;K.forwardTo=Ky;K.getActionFunction=Br;K.initEvent=Py;K.isActionObject=Fy;K.log=Ry;K.pure=Hy;K.raise=Ny;K.resolveActions=Dr;K.resolveLog=Hi;K.resolveRaise=zi;K.resolveSend=Gi;K.resolveStop=Ki;K.respond=Uy;K.send=bt;K.sendParent=mo;K.sendTo=ky;K.sendUpdate=xy;K.start=Vy;var Jy=K.stop=Dy;K.toActionObject=Wn;K.toActionObjects=Vr;K.toActivityDefinition=ho;var dn=function(e){return Jy(e)},Zy=ie({attributeToVerify:function(e){}}),Qy=ie({challengeName:function(e){}}),Xy=ie({requiredAttributes:function(e){}}),go=ie({remoteError:function(e){return""}}),vo=ie({formValues:function(e){return{}}}),yo=ie({touched:function(e){return{}}}),e1=ie({unverifiedAttributes:function(e){}}),t1=ie({username:function(e){}}),So=ie({validationError:function(e){return{}}}),n1=ie({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),r1=ie({requiredAttributes:function(e,t){var n,r;return(r=(n=t.data)===null||n===void 0?void 0:n.challengeParam)===null||r===void 0?void 0:r.requiredAttributes}}),o1=ie({redirectIntent:function(e){return"confirmPasswordReset"}}),a1=ie({redirectIntent:function(e){return"confirmSignUp"}}),qi=ie({authAttributes:function(e,t){var n,r,a=e.loginMechanisms[0];return{username:(n=e.formValues[a])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),wo=ie({validationError:function(e,t){return t.data}}),_o=ie({remoteError:function(e,t){var n;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((n=t.data)===null||n===void 0?void 0:n.message)||t.data}}),i1=ie({unverifiedAttributes:function(e,t){return t.data.unverified}}),Wi=ie({user:function(e,t){return t.data.user||t.data}}),s1=ie({username:function(e,t){var n=e.formValues,r=n.username,a=n.country_code;return a&&(r="".concat(a).concat(r)),r}}),u1=ie({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),c1=ie({authAttributes:function(e,t){return{username:e.formValues.username}}}),bo=ie({formValues:function(e,t){var n,r=t.data,a=r.name,i=r.value;return O(O({},e.formValues),((n={})[a]=i,n))}}),Co=ie({formValues:function(e,t){return O(O({},e.formValues),t.data)}}),Ao=ie({touched:function(e,t){var n,r=t.data.name;return O(O({},e.touched),((n={})["".concat(r)]=!0,n))}}),Yi=ie({formValues:function(e,t){var n,r,a=e.loginMechanisms[0],i=a===void 0?"username":a;if(!e.formValues.phone_number&&i!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",l="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),d=O(O({},s),((n={})[c]=l,n));return delete d.country_code,d}}),l1=ke,d1=qr,f1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p1=/^\w*$/;function h1(e,t){if(l1(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||d1(e)?!0:p1.test(e)||!f1.test(e)||t!=null&&e in Object(t)}var Eo=h1,Ji=Zr,m1="Expected a function";function Io(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(m1);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Io.Cache||Ji),n}Io.Cache=Ji;var g1=Io,v1=g1,y1=500;function S1(e){var t=v1(e,function(r){return n.size===y1&&n.clear(),r}),n=t.cache;return t}var w1=S1,_1=w1,b1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C1=/\\(\\)?/g,A1=_1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(b1,function(n,r,a,i){t.push(a?i.replace(C1,"$1"):r||n)}),t}),E1=A1,Ta=Lt,I1=ri,$1=ke,T1=qr,P1=1/0,Pa=Ta?Ta.prototype:void 0,Na=Pa?Pa.toString:void 0;function Zi(e){if(typeof e=="string")return e;if($1(e))return I1(e,Zi)+"";if(T1(e))return Na?Na.call(e):"";var t=e+"";return t=="0"&&1/e==-P1?"-0":t}var N1=Zi,k1=N1;function x1(e){return e==null?"":k1(e)}var U1=x1,O1=ke,R1=Eo,B1=E1,V1=U1;function D1(e,t){return O1(e)?e:R1(e,t)?[e]:B1(V1(e))}var Yn=D1,M1=qr,F1=1/0;function L1(e){if(typeof e=="string"||M1(e))return e;var t=e+"";return t=="0"&&1/e==-F1?"-0":t}var Wt=L1,j1=Yn,z1=Wt;function G1(e,t){t=j1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[z1(t[n++])];return n&&n==r?e:void 0}var $o=G1,H1=$o;function K1(e,t,n){var r=e==null?void 0:H1(e,t);return r===void 0?n:r}var Qi=K1,qe=Qi,q1=si,W1=Kt,Y1=On,J1=ke,Z1=jt,Q1=Qe.exports,X1=Vn,eS=Bn,tS="[object Map]",nS="[object Set]",rS=Object.prototype,oS=rS.hasOwnProperty;function aS(e){if(e==null)return!0;if(Z1(e)&&(J1(e)||typeof e=="string"||typeof e.splice=="function"||Q1(e)||eS(e)||Y1(e)))return!e.length;var t=W1(e);if(t==tS||t==nS)return!e.size;if(X1(e))return!q1(e).length;for(var n in e)if(oS.call(e,n))return!1;return!0}var iS=aS,Mr=iS,sS=Qr,uS=zt;function cS(e,t,n){(n!==void 0&&!uS(e[t],n)||n===void 0&&!(t in e))&&sS(e,t,n)}var Xi=cS;function lS(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++a];if(n(i[c],c,i)===!1)break}return t}}var dS=lS,fS=dS,pS=fS(),hS=pS,mS=jt,gS=Ge;function vS(e){return gS(e)&&mS(e)}var yS=vS,SS=ht,wS=to,_S=Ge,bS="[object Object]",CS=Function.prototype,AS=Object.prototype,es=CS.toString,ES=AS.hasOwnProperty,IS=es.call(Object);function $S(e){if(!_S(e)||SS(e)!=bS)return!1;var t=wS(e);if(t===null)return!0;var n=ES.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&es.call(n)==IS}var TS=$S;function PS(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ts=PS,NS=Gt,kS=Ht;function xS(e){return NS(e,kS(e))}var US=xS,ka=Xi,OS=_n.exports,RS=_i,BS=fi,VS=bi,xa=On,Ua=ke,DS=yS,MS=Qe.exports,FS=Hr,LS=Me,jS=TS,zS=Bn,Oa=ts,GS=US;function HS(e,t,n,r,a,i,s){var u=Oa(e,n),c=Oa(t,n),l=s.get(c);if(l){ka(e,n,l);return}var d=i?i(u,c,n+"",e,t,s):void 0,h=d===void 0;if(h){var f=Ua(c),p=!f&&MS(c),v=!f&&!p&&zS(c);d=c,f||p||v?Ua(u)?d=u:DS(u)?d=BS(u):p?(h=!1,d=OS(c,!0)):v?(h=!1,d=RS(c,!0)):d=[]:jS(c)||xa(c)?(d=u,xa(u)?d=GS(u):(!LS(u)||FS(u))&&(d=VS(c))):h=!1}h&&(s.set(c,d),a(d,c,r,i,s),s.delete(c)),ka(e,n,d)}var KS=HS,qS=zn,WS=Xi,YS=hS,JS=KS,ZS=Me,QS=Ht,XS=ts;function ns(e,t,n,r,a){e!==t&&YS(t,function(i,s){if(a||(a=new qS),ZS(i))JS(e,t,s,n,ns,r,a);else{var u=r?r(XS(e,s),i,s+"",e,t,a):void 0;u===void 0&&(u=i),WS(e,s,u)}},QS)}var ew=ns;function tw(e){return e}var To=tw;function nw(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var rw=nw,ow=rw,Ra=Math.max;function aw(e,t,n){return t=Ra(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Ra(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(s),ow(e,this,u)}}var iw=aw;function sw(e){return function(){return e}}var uw=sw,cw=uw,Ba=di,lw=To,dw=Ba?function(e,t){return Ba(e,"toString",{configurable:!0,enumerable:!1,value:cw(t),writable:!0})}:lw,fw=dw,pw=800,hw=16,mw=Date.now;function gw(e){var t=0,n=0;return function(){var r=mw(),a=hw-(r-n);if(n=r,a>0){if(++t>=pw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vw=gw,yw=fw,Sw=vw,ww=Sw(yw),_w=ww,bw=To,Cw=iw,Aw=_w;function Ew(e,t){return Aw(Cw(e,t,bw),e+"")}var Iw=Ew,$w=zt,Tw=jt,Pw=Rn,Nw=Me;function kw(e,t,n){if(!Nw(n))return!1;var r=typeof t;return(r=="number"?Tw(n)&&Pw(t,n.length):r=="string"&&t in n)?$w(n[t],e):!1}var xw=kw,Uw=Iw,Ow=xw;function Rw(e){return Uw(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&Ow(n[0],n[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var u=n[r];u&&e(t,u,r,i)}return t})}var Bw=Rw,Vw=ew,Dw=Bw,Mw=Dw(function(e,t,n){Vw(e,t,n)}),Fw=Mw,Po=function(e,t,n,r){return Y(void 0,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return a=s.sent(),i=Fw.apply(void 0,Ue([{}],a,!1)),Mr(i)?[2,Promise.resolve()]:[2,Promise.reject(i)]}})})},Tn={getAmplifyConfig:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,ue.Amplify.configure()]})})},getCurrentUser:function(){return Y(this,void 0,void 0,function(){return J(this,function(e){return[2,ue.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,ue.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return Y(this,void 0,void 0,function(){return J(this,function(r){return[2,ue.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,ue.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return Y(this,void 0,void 0,function(){return J(this,function(r){switch(r.label){case 0:return[4,ue.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,ue.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return Y(this,void 0,void 0,function(){return J(this,function(t){return[2,ue.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(this,function(u){return r=e.password,t.password&&n?(a=[],i=+(n==null?void 0:n.passwordPolicyMinLength),r.length<i&&a.push("Password must have at least ".concat(i," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||a.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||a.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||a.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":/[\W]/.test(r)||a.push("Password must have special characters")}}),[2,a.length!==0?{password:a}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return Y(this,void 0,void 0,function(){var n,r,a,i;return J(this,function(s){return n=e.password,r=e.confirm_password,a=t.confirm_password,i=t.password,n||r?(n||r)&&n!==r&&(a&&i||(n==null?void 0:n.length)>=6&&(r==null?void 0:r.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]})})},validatePreferredUsername:function(e,t){return Y(this,void 0,void 0,function(){return J(this,function(n){return[2]})})}};function Lw(e){var t=e.services;return qt({initial:"init",id:"signInActor",states:{init:{always:[{target:"autoSignIn",cond:"shouldAutoSignIn"},{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedAttributes"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},autoSignIn:{initial:"submit",states:{submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"#signInActor.rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"#signInActor.rejected"},{actions:"setRemoteError",target:"#signInActor.signIn"}]}}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}},forceNewPassword:{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:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],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:"verifyTotpToken",onDone:{actions:["setUser","clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedAttributes","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(n){return{user:n.user}}},rejected:{type:"final",data:function(n,r){return{intent:n.redirectIntent,authAttributes:n.authAttributes}}}}},{actions:{clearAttributeToVerify:Zy,clearChallengeName:Qy,clearRequiredAttributes:Xy,clearError:go,clearFormValues:vo,clearTouched:yo,clearUnverifiedAttributes:e1,clearValidationError:So,handleInput:bo,handleSubmit:Co,handleBlur:Ao,parsePhoneNumber:Yi,setChallengeName:n1,setConfirmResetPasswordIntent:o1,setConfirmSignUpIntent:a1,setRequiredAttributes:r1,setCredentials:qi,setFieldErrors:wo,setRemoteError:_o,setUnverifiedAttributes:i1,setUser:Wi,setUsernameAuthAttributes:c1,sendUpdate:lo()},guards:{shouldConfirmSignIn:function(n,r){var a=qe(r,"data.challengeName");return[ze.SMS_MFA,ze.SOFTWARE_TOKEN_MFA].includes(a)},shouldAutoSignIn:function(n){return(n==null?void 0:n.intent)==="autoSignIn"},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return qe(r,"data.challengeName")===ze.MFA_SETUP},shouldForceChangePassword:function(n,r){return qe(r,"data.challengeName")===ze.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var a=r.data,i=a.unverified,s=a.verified;return Mr(s)&&!Mr(i)}},services:{signIn:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s,u,c,l;return J(this,function(d){switch(d.label){case 0:return r=n.authAttributes,a=r===void 0?{}:r,i=n.formValues,s=i===void 0?{}:i,u=O(O({},a),s),c=u.username,l=u.password,[4,t.handleSignIn({username:c,password:l})];case 1:return[2,d.sent()]}})})},confirmSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u;return J(this,function(c){switch(c.label){case 0:return a=n.challengeName,i=n.user,s=n.formValues.confirmation_code,a!==ze.SMS_MFA&&a!==ze.SOFTWARE_TOKEN_MFA||(u=a),[4,t.handleConfirmSignIn({user:i,code:s,mfaType:u})];case 1:return c.sent(),[4,ue.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d,h,f;return J(this,function(p){switch(p.label){case 0:a=n.user,i=n.formValues,s=i.password,u=i.phone_number,c=i.country_code,l=ui(i,["password","confirm_password","phone_number","country_code"]),u&&(d="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),l=O(O({},l),{phone_number:d})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,ue.Auth.completeNewPassword(a,s,l)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,ue.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){return a=n.user,i=n.formValues.confirmation_code,[2,ue.Auth.verifyTotpToken(a,i)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ue.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},checkVerifiedContact:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=n.user,[4,ue.Auth.verifiedContact(a)];case 1:return[2,i.sent()]}})})},verifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.formValues.unverifiedAttr,[4,ue.Auth.verifyCurrentUserAttribute(a)];case 1:return i=s.sent(),n.attributeToVerify=a,[2,i]}})})},confirmVerifyUser:function(n,r){return Y(this,void 0,void 0,function(){var a,i;return J(this,function(s){switch(s.label){case 0:return a=n.attributeToVerify,i=n.formValues.confirmation_code,[4,ue.Auth.verifyCurrentUserAttributeSubmit(a,i)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Po(n.formValues,n.touched,n.passwordSettings,[Tn.validateConfirmPassword])]})})}}})}var jw=qt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return ue.Auth.signOut()}}});function zw(e){var t=e.services;return qt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","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:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:go,clearFormValues:vo,clearTouched:yo,clearUsername:t1,clearValidationError:So,handleInput:bo,handleSubmit:Co,handleBlur:Ao,setFieldErrors:wo,setRemoteError:_o,setUsername:s1,sendUpdate:lo()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){return Y(this,void 0,void 0,function(){var r;return J(this,function(a){return r=n.username,[2,t.handleForgotPassword(r)]})})},confirmResetPassword:function(n){return Y(this,void 0,void 0,function(){var r,a,i,s;return J(this,function(u){return r=n.username,a=n.formValues,i=a.confirmation_code,s=a.password,[2,t.handleForgotPasswordSubmit({username:r,code:i,password:s})]})})},validateFields:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Po(n.formValues,n.touched,n.passwordSettings,[Tn.validateConfirmPassword])]})})}}})}var Gw="__lodash_hash_undefined__";function Hw(e){return this.__data__.set(e,Gw),this}var Kw=Hw;function qw(e){return this.__data__.has(e)}var Ww=qw,Yw=Zr,Jw=Kw,Zw=Ww;function Pn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Yw;++t<n;)this.add(e[t])}Pn.prototype.add=Pn.prototype.push=Jw;Pn.prototype.has=Zw;var Qw=Pn;function Xw(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var e_=Xw;function t_(e,t){return e.has(t)}var n_=t_,r_=Qw,o_=e_,a_=n_,i_=1,s_=2;function u_(e,t,n,r,a,i){var s=n&i_,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=i.get(e),d=i.get(t);if(l&&d)return l==t&&d==e;var h=-1,f=!0,p=n&s_?new r_:void 0;for(i.set(e,t),i.set(t,e);++h<u;){var v=e[h],m=t[h];if(r)var g=s?r(m,v,h,t,e,i):r(v,m,h,e,t,i);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!o_(t,function(S,w){if(!a_(p,w)&&(v===S||a(v,S,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(v===m||a(v,m,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var rs=u_;function c_(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var l_=c_;function d_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var f_=d_,Va=Lt,Da=wi,p_=zt,h_=rs,m_=l_,g_=f_,v_=1,y_=2,S_="[object Boolean]",w_="[object Date]",__="[object Error]",b_="[object Map]",C_="[object Number]",A_="[object RegExp]",E_="[object Set]",I_="[object String]",$_="[object Symbol]",T_="[object ArrayBuffer]",P_="[object DataView]",Ma=Va?Va.prototype:void 0,dr=Ma?Ma.valueOf:void 0;function N_(e,t,n,r,a,i,s){switch(n){case P_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T_:return!(e.byteLength!=t.byteLength||!i(new Da(e),new Da(t)));case S_:case w_:case C_:return p_(+e,+t);case __:return e.name==t.name&&e.message==t.message;case A_:case I_:return e==t+"";case b_:var u=m_;case E_:var c=r&v_;if(u||(u=g_),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=y_,s.set(e,t);var d=h_(u(e),u(t),r,a,i,s);return s.delete(e),d;case $_:if(dr)return dr.call(e)==dr.call(t)}return!1}var k_=N_,Fa=vi,x_=1,U_=Object.prototype,O_=U_.hasOwnProperty;function R_(e,t,n,r,a,i){var s=n&x_,u=Fa(e),c=u.length,l=Fa(t),d=l.length;if(c!=d&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:O_.call(t,f)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var _=s?r(w,S,f,t,e,i):r(S,w,f,e,t,i);if(!(_===void 0?S===w||a(S,w,n,r,i):_)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var b=e.constructor,A=t.constructor;b!=A&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof A=="function"&&A instanceof A)&&(m=!1)}return i.delete(e),i.delete(t),m}var B_=R_,fr=zn,V_=rs,D_=k_,M_=B_,La=Kt,ja=ke,za=Qe.exports,F_=Bn,L_=1,Ga="[object Arguments]",Ha="[object Array]",fn="[object Object]",j_=Object.prototype,Ka=j_.hasOwnProperty;function z_(e,t,n,r,a,i){var s=ja(e),u=ja(t),c=s?Ha:La(e),l=u?Ha:La(t);c=c==Ga?fn:c,l=l==Ga?fn:l;var d=c==fn,h=l==fn,f=c==l;if(f&&za(e)){if(!za(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new fr),s||F_(e)?V_(e,t,n,r,a,i):D_(e,t,c,n,r,a,i);if(!(n&L_)){var p=d&&Ka.call(e,"__wrapped__"),v=h&&Ka.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,g=v?t.value():t;return i||(i=new fr),a(m,g,n,r,i)}}return f?(i||(i=new fr),M_(e,t,n,r,a,i)):!1}var G_=z_,H_=G_,qa=Ge;function os(e,t,n,r,a){return e===t?!0:e==null||t==null||!qa(e)&&!qa(t)?e!==e&&t!==t:H_(e,t,n,r,os,a)}var as=os,K_=zn,q_=as,W_=1,Y_=2;function J_(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){u=n[a];var c=u[0],l=e[c],d=u[1];if(s&&u[2]){if(l===void 0&&!(c in e))return!1}else{var h=new K_;if(r)var f=r(l,d,c,e,t,h);if(!(f===void 0?q_(d,l,W_|Y_,r,h):f))return!1}}return!0}var Z_=J_,Q_=Me;function X_(e){return e===e&&!Q_(e)}var is=X_,eb=is,tb=Dn;function nb(e){for(var t=tb(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,eb(a)]}return t}var rb=nb;function ob(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var ss=ob,ab=Z_,ib=rb,sb=ss;function ub(e){var t=ib(e);return t.length==1&&t[0][2]?sb(t[0][0],t[0][1]):function(n){return n===e||ab(n,e,t)}}var cb=ub;function lb(e,t){return e!=null&&t in Object(e)}var db=lb,fb=Yn,pb=On,hb=ke,mb=Rn,gb=Kr,vb=Wt;function yb(e,t,n){t=fb(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=vb(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&gb(a)&&mb(s,a)&&(hb(e)||pb(e)))}var Sb=yb,wb=db,_b=Sb;function bb(e,t){return e!=null&&_b(e,t,wb)}var Cb=bb,Ab=as,Eb=Qi,Ib=Cb,$b=Eo,Tb=is,Pb=ss,Nb=Wt,kb=1,xb=2;function Ub(e,t){return $b(e)&&Tb(t)?Pb(Nb(e),t):function(n){var r=Eb(n,e);return r===void 0&&r===t?Ib(n,e):Ab(t,r,kb|xb)}}var Ob=Ub;function Rb(e){return function(t){return t==null?void 0:t[e]}}var Bb=Rb,Vb=$o;function Db(e){return function(t){return Vb(t,e)}}var Mb=Db,Fb=Bb,Lb=Mb,jb=Eo,zb=Wt;function Gb(e){return jb(e)?Fb(zb(e)):Lb(e)}var Hb=Gb,Kb=cb,qb=Ob,Wb=To,Yb=ke,Jb=Hb;function Zb(e){return typeof e=="function"?e:e==null?Wb:typeof e=="object"?Yb(e)?qb(e[0],e[1]):Kb(e):Jb(e)}var Qb=Zb,Xb=Xr,e0=Yn,t0=Rn,Wa=Me,n0=Wt;function r0(e,t,n,r){if(!Wa(e))return e;t=e0(t,e);for(var a=-1,i=t.length,s=i-1,u=e;u!=null&&++a<i;){var c=n0(t[a]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var d=u[c];l=r?r(d,c,u):void 0,l===void 0&&(l=Wa(d)?d:t0(t[a+1])?[]:{})}Xb(u,c,l),u=u[c]}return e}var o0=r0,a0=$o,i0=o0,s0=Yn;function u0(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var s=t[r],u=a0(e,s);n(u,s)&&i0(i,s0(s,e),u)}return i}var c0=u0,l0=ri,d0=Qb,f0=c0,p0=yi;function h0(e,t){if(e==null)return{};var n=l0(p0(e),function(r){return[r]});return t=d0(t),f0(e,n,function(r,a){return t(r,a[0])})}var m0=h0;function g0(e){var t=e.services;return qt({id:"signUpActor",initial:"init",states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",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"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var a=n.authAttributes,i=a.username,s=a.password;return{user:qe(r,"data.user")||n.user,authAttributes:{username:i,password:s},intent:n.intent}}}}},{guards:{isUserAlreadyConfirmed:function(n,r){return r.data.message==="User is already confirmed."},shouldInitConfirmSignUp:function(n){return n.intent&&n.intent==="confirmSignUp"},shouldSkipConfirm:function(n,r){return r.data.userConfirmed}},actions:{clearError:go,clearFormValues:vo,clearTouched:yo,clearValidationError:So,handleInput:bo,handleSubmit:Co,handleBlur:Ao,parsePhoneNumber:Yi,setCredentials:qi,setFieldErrors:wo,setRemoteError:_o,setCodeDeliveryDetails:u1,setUser:Wi,sendUpdate:lo(),setAutoSignInIntent:Ee({intent:function(n){return"autoSignIn"}})},services:{confirmSignUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c;return J(this,function(l){switch(l.label){case 0:return a=n.user,i=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=qe(a,"username")||qe(i,"username"),[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s;return J(this,function(u){return a=n.user,i=n.authAttributes,s=qe(a,"username")||qe(i,"username"),[2,ue.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return Y(this,void 0,void 0,function(){var a;return J(this,function(i){switch(i.label){case 0:return a=r.data.provider,[4,ue.Auth.federatedSignIn({provider:a})];case 1:return[2,i.sent()]}})})},signUp:function(n,r){return Y(this,void 0,void 0,function(){var a,i,s,u,c,l,d;return J(this,function(h){switch(h.label){case 0:return a=n.formValues,i=n.loginMechanisms,s=i[0],c=(u=a)[s===void 0?"username":s],l=u.password,d=m0(a,function(f,p){switch(p){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 p.startsWith("custom:")}}),[4,t.handleSignUp({username:c,password:l,attributes:d})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return Y(this,void 0,void 0,function(){return J(this,function(a){return[2,Po(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function v0(){return qt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Tn,actorRef:void 0,hasSetup:!1},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{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:{forwardToActor:Yy([{cond:"hasActor",actions:oy(function(e){return e.actorRef})}]),setUser:Ee({user:function(e,t){return t.data}}),setActorDoneData:Ee({actorDoneData:function(e,t){var n,r;return{authAttributes:O({},(n=t.data)===null||n===void 0?void 0:n.authAttributes),intent:(r=t.data)===null||r===void 0?void 0:r.intent}},user:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.user}}),clearUser:Ee({user:void 0}),clearActorDoneData:Ee({actorDoneData:void 0}),applyAmplifyConfig:Ee({config:function(e,t){var n,r,a,i,s,u,c,l,d,h=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(A){return A.toLowerCase()}))!==null&&r!==void 0?r:[],f=(i=(a=t.data.aws_cognito_verification_mechanisms)===null||a===void 0?void 0:a.map(function(A){return A.toLowerCase()}))!==null&&i!==void 0?i:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(A){return A.toLowerCase()}))!==null&&u!==void 0?u:[],v=(l=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(A){return A.toLowerCase()}))!==null&&l!==void 0?l:[],m=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var g=e.config,S=g.loginMechanisms,w=g.signUpAttributes,_=g.socialProviders,b=g.initialState;return{loginMechanisms:S!=null?S:h,formFields:(d=y0(g.formFields))!==null&&d!==void 0?d:{},passwordSettings:m,signUpAttributes:w!=null?w:Array.from(new Set(Ue(Ue([],f,!0),p,!0))),socialProviders:_!=null?_:v.sort(),initialState:b}}}),spawnSignInActor:Ee({actorRef:function(e,t){var n,r,a,i,s,u,c=e.services,l=Lw({services:c}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},user:e.user,intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields});return cn(l,{name:"signInActor"})}}),spawnSignUpActor:Ee({actorRef:function(e,t){var n,r,a,i,s,u,c,l=e.services,d=g0({services:l}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(a=e.actorDoneData)===null||a===void 0?void 0:a.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(u=e.config)===null||u===void 0?void 0:u.formFields,passwordSettings:(c=e.config)===null||c===void 0?void 0:c.passwordSettings});return cn(d,{name:"signUpActor"})}}),spawnResetPasswordActor:Ee({actorRef:function(e,t){var n,r,a,i,s=e.services,u=zw({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(a=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||a===void 0?void 0:a.username,formFields:(i=e.config)===null||i===void 0?void 0:i.formFields,validationError:{}});return cn(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ee({actorRef:function(e){var t=jw.withContext({user:e.user});return cn(t,{name:"signOutActor"})}}),stopSignInActor:dn("signInActor"),stopSignUpActor:dn("signUpActor"),stopResetPasswordActor:dn("resetPasswordActor"),stopSignOutActor:dn("signOutActor"),configure:Ee(function(e,t){var n=t.data,r=n.services,a=ui(n,["services"]);return{services:O(O({},Tn),r),config:a}}),setHasSetup:Ee({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return e.config.initialState==="signUp"},isInitialStateResetPassword:function(e){return e.config.initialState==="resetPassword"},shouldRedirectToSignUp:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmSignUp"},shouldRedirectToResetPassword:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmPasswordReset"},shouldAutoSignIn:function(e,t){var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="autoSignIn"},shouldSetup:function(e){return e.hasSetup===!1},hasActor:function(e){return!!e.actorRef}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function y0(e){return e&&Object.keys(e).forEach(function(t){Object.keys(e[t]).forEach(function(n){var r=e[t][n];r.required=r.isRequired})}),e}var Nn=globalThis&&globalThis.__assign||function(){return Nn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Nn.apply(this,arguments)},S0=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function w0(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function _0(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,a=t.context,i=t.guards,s=t.actions,u=t.activities,c=t.services,l=t.delays,d=t.state,h=S0(t,["context","guards","actions","activities","services","delays","state"]),f={context:a,guards:i,actions:s,activities:u,services:c,delays:l},p=r.withConfig(f,function(){return Nn(Nn({},r.context),a)}),v=Li(p,h).start(d?xe.create(d):void 0),m;return o.onMounted(function(){n&&(m=v.subscribe(w0(n)))}),o.onBeforeUnmount(function(){v.stop(),m==null||m.unsubscribe()}),v}function b0(e){return"state"in e}var Ya=function(){};function C0(e){return"getSnapshot"in e?e.getSnapshot():b0(e)?e.state:void 0}function us(e,t){t===void 0&&(t=C0);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),a=function(i){n.value.send(i)};return o.watch(n,function(i,s,u){r.value=t(i);var c=i.subscribe({next:function(l){return r.value=l},error:Ya,complete:Ya}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:a}}const cs={error:"",hasValidationErrors:!1,isPending:!1,route:"",authStatus:"",user:"",validationErrors:[""],codeDeliveryDetails:{val:"",DeliveryMedium:""},change:e=>null,updateForm:e=>null,updateBlur:e=>null,resend:e=>null,resendCode:e=>null,signOut:e=>null,federatedSignIn:e=>null,toFederatedSignIn:e=>null,resetPassword:e=>null,toResetPassword:e=>null,signIn:e=>null,toSignIn:e=>null,signUp:e=>null,toSignUp:e=>null,skip:e=>null,skipVerification:e=>null,submit:e=>null,submitForm:e=>null},Fr=o.ref(),wn=o.reactive($t(It({},cs),{send:"",state:""})),Te=e=>(e&&(Fr.value=e),us(Fr.value)),A0=()=>(Ja(),o.watchEffect(()=>{Ja()}),wn),Ce=A0;function Ja(){if(!Fr.value)return;const{state:e,send:t}=Te(),n=ci({send:t,state:e.value});for(const r of Object.keys(cs))wn[r]=n[r];wn.send=t,wn.state=e}const pn=o.defineComponent({name:"federated-sign-in-button",props:{provider:String},setup(e){const t=e,{provider:n}=o.toRefs(t),{send:r}=Te(),a=()=>{r({type:"FEDERATED_SIGN_IN",data:{provider:n==null?void 0:n.value}})};return(i,s)=>{const u=ge,c=we;return o.openBlock(),o.createBlock(c,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:a},{default:o.withCtx(()=>[o.createVNode(u,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3})]),_:3})}}}),E0=o.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[o.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),I0={class:"amplify-text amplify-authenticator__federated-text"},$0=o.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o.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),T0={class:"amplify-text amplify-authenticator__federated-text"},P0=o.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[o.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),N0={class:"amplify-text amplify-authenticator__federated-text"},k0=o.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[o.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"}),o.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"}),o.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"}),o.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),x0={class:"amplify-text amplify-authenticator__federated-text"},U0=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),Jn=o.defineComponent({name:"federated-sign-in",setup(e){var S;const{state:t}=Te(),n=Ie(Ce),{route:r}=n(),{value:{context:a}}=t,i=(S=a==null?void 0:a.config)==null?void 0:S.socialProviders,s=i==null?void 0:i.includes("amazon"),u=i==null?void 0:i.includes("apple"),c=i==null?void 0:i.includes("facebook"),l=i==null?void 0:i.includes("google"),d=c||l||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>yr),p=o.computed(()=>R(`Sign ${h} with Amazon`)),v=o.computed(()=>R(`Sign ${h} with Apple`)),m=o.computed(()=>R(`Sign ${h} with Facebook`)),g=o.computed(()=>R(`Sign ${h} with Google`));return(w,_)=>{const b=ge;return o.unref(d)?(o.openBlock(),o.createBlock(b,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(pn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[E0,o.createElementVNode("p",I0,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(pn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[$0,o.createElementVNode("p",T0,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(pn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[P0,o.createElementVNode("p",N0,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(l)?(o.openBlock(),o.createBlock(pn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[k0,o.createElementVNode("p",x0,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),U0]),_:1})):o.createCommentVNode("",!0)}}}),O0={},R0={"data-amplify-label":""};function B0(e,t){return o.openBlock(),o.createElementBlock("label",R0,[o.renderSlot(e.$slots,"default")])}var Zn=Un(O0,[["render",B0]]);const Qn=o.defineComponent({name:"base-input",emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,a)=>(o.openBlock(),o.createElementBlock("input",{onChange:a[0]||(a[0]=i=>n(i)),"data-amplify-input":""},null,32))}}),V0=["aria-label"],D0={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},M0=o.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),F0=[M0],L0={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},j0=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),z0=o.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),G0=[j0,z0],H0={inheritAttrs:!1},No=o.defineComponent($t(It({},H0),{name:"password-control",props:{name:null,label:null,autocomplete:null,ariainvalid:{type:Boolean},labelHidden:{type:Boolean,default:!0},placeholder:null,required:{type:Boolean,default:!0}},setup(e){var w;const t=e,n=R("Show password"),r=R("Hide password"),a=o.ref("password"),i=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:l,ariainvalid:d,labelHidden:h,placeholder:f,required:p}=o.toRefs(t);let v=o.ref("");function m(){i.value=i.value===n?r:n,a.value=a.value==="password"?"text":"password"}const g=R((w=f==null?void 0:f.value)!=null?w:c.value),S=R(c.value);return(_,b)=>{const A=Zn,I=Qn,C=ge;return o.openBlock(),o.createBlock(C,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield amplify-authenticator__column"},{default:o.withCtx(()=>{var E;return[o.createVNode(A,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":(E=o.unref(h))!=null?E:!0}]),for:"amplify-field-"+o.unref(s)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1},8,["class","for"]),o.createVNode(C,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var P;return[o.createVNode(I,o.mergeProps(_.$attrs,{modelValue:o.unref(v),"onUpdate:modelValue":b[0]||(b[0]=x=>o.isRef(v)?v.value=x:v=x),class:"amplify-input amplify-field-group__control","aria-invalid":o.unref(d),id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(l),required:(P=o.unref(p))!=null?P:!0,placeholder:o.unref(g),type:a.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","required","placeholder","type"]),o.createVNode(C,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password amplify-button--fullwidth","data-fullwidth":"false",type:"button",onClick:m},[a.value==="password"?(o.openBlock(),o.createElementBlock("svg",D0,F0)):(o.openBlock(),o.createElementBlock("svg",L0,G0))],8,V0)]),_:1})]}),_:1})]}),_:1})}}})),K0=["value","selected"],q0=o.defineComponent({name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const n=e,{options:r,selectValue:a}=o.toRefs(n),i=s=>{t("update:selectValue",s.target.value)};return(s,u)=>(o.openBlock(),o.createElementBlock("select",{onChange:u[0]||(u[0]=c=>i(c))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r),(c,l)=>(o.openBlock(),o.createElementBlock("option",{key:l,value:c,selected:c==o.unref(a)?!0:void 0},o.toDisplayString(c),9,K0))),128))],32))}}),W0=o.createTextVNode(o.toDisplayString("Country Code")),Y0=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon amplify-icon--large"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),J0=o.defineComponent({name:"alias-control",props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean,default:!1},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"}},setup(e){const t=e,{label:n,name:r,placeholder:a,autocomplete:i,labelHidden:s,required:u,dialCode:c,dialCodeList:l}=o.toRefs(t),d=Math.floor(Math.random()*999999),h=Math.floor(Math.random()*999999);return(f,p)=>{const v=Zn,m=q0,g=ge,S=Qn;return o.openBlock(),o.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":o.unref(s)}]},f.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},16,["for","class"]),o.createVNode(g,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>[o.createVNode(g,{class:"amplify-field-group__outer-start"},{default:o.withCtx(()=>[e.type==="tel"?(o.openBlock(),o.createBlock(g,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(v,o.mergeProps({for:"amplify-field-"+o.unref(h),class:"amplify-label amplify-visually-hidden"},f.$attrs),{default:o.withCtx(()=>[W0]),_:1},16,["for"]),o.createVNode(g,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(h),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:o.unref(l),"select-value":o.unref(c)},null,8,["id","options","select-value"]),o.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:o.withCtx(()=>[Y0]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>{var w;return[o.createVNode(S,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+o.unref(d),autocomplete:o.unref(i),name:o.unref(r),required:(w=o.unref(u))!=null?w:!0,type:e.type,placeholder:o.unref(a)},null,8,["id","autocomplete","name","required","type","placeholder"])]}),_:1})]),_:1})]),_:1})}}}),Z0={key:2},ls=o.defineComponent({name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),a=Ie(Ce),{validationErrors:i}=o.toRefs(a()),{type:s}=r.value,u=o.computed(()=>Ol(i.value[n.value])),c=s==="password";return(l,d)=>{var h;return o.openBlock(),o.createElementBlock(o.Fragment,null,[c?(o.openBlock(),o.createBlock(No,{key:0,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,ariainvalid:!!o.unref(i)[o.unref(n)]},null,8,["name","label","placeholder","required","label-hidden","autocomplete","ariainvalid"])):(o.openBlock(),o.createBlock(J0,{key:1,name:o.unref(n),label:o.unref(r).label,placeholder:o.unref(r).placeholder,required:o.unref(r).isRequired,"label-hidden":o.unref(r).labelHidden,autocomplete:o.unref(r).autocomplete,"dial-code":o.unref(r).dialCode,"dial-code-list":o.unref(r).dialCodeList,type:o.unref(r).type},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type"])),((h=o.unref(u))==null?void 0:h.length)>0?(o.openBlock(),o.createElementBlock("div",Z0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(u),(f,p)=>(o.openBlock(),o.createElementBlock("p",{key:p,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},o.toDisplayString(o.unref(R)(f)),1))),128))])):o.createCommentVNode("",!0)],64)}}}),Le=o.defineComponent({name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Te();let a=[];return o.onBeforeMount(()=>{a=sv(n.value,r.value)}),(i,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),([u,c])=>(o.openBlock(),o.createBlock(ls,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),Q0=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),X0={"data-amplify-footer":""},ko=o.defineComponent({name:"sign-in",emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=Ie(Ce)(),a=o.useAttrs(),i=o.computed(()=>xl("Forgot your password? ")?R("Forgot your password? "):R("Forgot your password?")),s=o.computed(()=>R("Sign in")),u=o.computed(()=>R("Signing in")),{state:c,send:l}=Te(),d=o.computed(()=>be(c.value)),h=m=>{const{name:g,value:S}=m.target;l({type:"CHANGE",data:{name:g,value:S}})},f=m=>{a!=null&&a.onSignInSubmit?t("signInSubmit",m):p(m)},p=m=>{r.submitForm(Fe(m))},v=()=>{a!=null&&a.onForgotPasswordClicked?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,g)=>{const S=Oe,w=Re,_=we,b=ge,A=Be,I=Ve;return o.renderSlot(m.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.renderSlot(m.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(A,{"data-amplify-authenticator-signin":"",onInput:h,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:C})=>[o.renderSlot(m.$slots,"form",{info:C,onSignInSubmit:f,onInput:h,onForgotPasswordClicked:v})]),default:o.withCtx(()=>[o.createVNode(Jn),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(S,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:o.withCtx(({slotData:C})=>[o.renderSlot(m.$slots,"signin-fields",{info:C})]),default:o.withCtx(()=>[Q0,o.createVNode(Le,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(d).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(_,{disabled:o.unref(d).matches("signIn.submit"),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(I,null,{default:o.withCtx(()=>[o.renderSlot(m.$slots,"footer",{},()=>[o.createElementVNode("div",X0,[o.createVNode(_,{onClick:v,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(i)),1)]),_:1})])])]),_:3})])}}}),xo=o.defineComponent({name:"authenticator-sign-up-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"signUp"}))}}),Uo=o.defineComponent({name:"sign-up",emits:["signUpSubmit"],setup(e,{emit:t}){const n=Ie(Ce),r=n(),a=n(),{hasValidationErrors:i,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),l=o.computed(()=>R("Create Account")),d=v=>{let{checked:m,name:g,type:S,value:w}=v.target;S==="checkbox"&&!m&&(w=void 0),a.updateForm({name:g,value:w})};function h(v){const{name:m}=v.target;a.updateBlur({name:m})}const f=v=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",v):p(v)},p=v=>{a.submitForm(Fe(v))};return(v,m)=>{const g=Oe,S=Re,w=we,_=ge,b=Be,A=Ve;return o.renderSlot(v.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.renderSlot(v.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(b,{onInput:d,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(Jn),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(g,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:I})=>[o.renderSlot(v.$slots,"signup-fields",{info:I})]),default:o.withCtx(()=>[o.createVNode(xo)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(A,null,{default:o.withCtx(()=>[o.renderSlot(v.$slots,"footer")]),_:3})])}}}),eC=o.defineComponent({name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:n,id:r,label:a}=o.toRefs(t);return(i,s)=>{const u=ge;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(n)?0:-1,"data-state":o.unref(n)?"active":"inactive","aria-selected":o.unref(n)?"true":"false","aria-controls":`radix-id-${o.unref(r)}-8-content-0`,id:`radix-id-${o.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),tC={};function nC(e,t){const n=ge;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var rC=Un(tC,[["render",nC]]);const Ye=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var s,u;const r=t.default?t.default():[],a=t.headingI?t.headingI():[],i=`${n.class||""} amplify-heading--${e.level}`;if(((u=(s=a[0])==null?void 0:s.children)==null?void 0:u.length)===0)a[0].children=[o.h(`h${e.level}`,$t(It({},n),{class:i}),[r])];else return()=>o.h(`h${e.level}`,$t(It({"data-amplify-heading":""},n),{class:i}),[a[0]?o.h(a[0].children[0]):o.h(r[0])]);return()=>a}}),oC={};function aC(e,t){return o.renderSlot(e.$slots,"textI",o.normalizeProps(o.guardReactiveProps(e.$attrs)),()=>[o.createElementVNode("span",o.mergeProps(e.$attrs,{"data-amplify-text":""}),[o.renderSlot(e.$slots,"default")],16)])}var ds=Un(oC,[["render",aC]]);const Oo=o.defineComponent({name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Ie(Ce),{isPending:a,error:i,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:l}=r(),d=o.computed(()=>{var I,C;return((I=s.value)==null?void 0:I.DeliveryMedium)==="EMAIL"?R("We Emailed You"):((C=s.value)==null?void 0:C.DeliveryMedium)==="SMS"?R("We Texted You"):R("We Sent A Code")}),h=o.computed(()=>R("Resend Code")),f=o.computed(()=>R("Confirm")),p=R("Your code is on the way. To log in, enter the code we emailed to"),v=R("Your code is on the way. To log in, enter the code we texted to"),m=R("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),g=R("It may take a minute to arrive."),S=o.computed(()=>{var I,C,E,P;return((I=s.value)==null?void 0:I.DeliveryMedium)==="EMAIL"?`${p} ${(C=s.value)==null?void 0:C.Destination}. ${g}`:((E=s.value)==null?void 0:E.DeliveryMedium)==="SMS"?`${v} ${(P=s.value)==null?void 0:P.Destination}. ${g}`:R(`${m}`)}),w=I=>{const{name:C,value:E}=I.target;c({name:C,value:E})},_=I=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",I):b(I)},b=I=>{u(Fe(I))},A=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(I,C)=>{const E=Ye,P=ds,x=Oe,B=Re,M=we,L=Ve,ce=ge,q=Be;return o.renderSlot(I.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps(I.$attrs)),()=>[o.createVNode(ce,o.normalizeProps(o.guardReactiveProps(I.$attrs)),{default:o.withCtx(()=>[o.createVNode(q,{onInput:w,onSubmit:o.withModifiers(_,["prevent"])},{default:o.withCtx(()=>[o.createVNode(ce,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(I.$slots,"header",{},()=>[o.createVNode(E,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1})]),o.createVNode(P,{class:"amplify-authenticator__subtitle"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(L,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(i)?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(i))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(A,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(I.$slots,"footer",{onConfirmSignUpSubmit:_,onLostCodeClicked:A})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Ro=o.defineComponent({name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Te(),s=Ie(Ce)(),u=o.computed(()=>be(r.value)),c=u.value.context.challengeName;let l="SMS";c===ze.SOFTWARE_TOKEN_MFA&&(l="TOTP");const d=`Confirm ${l} Code`,h=o.computed(()=>R("Back to Sign In")),f=o.computed(()=>R("Confirm")),p=S=>{const{name:w,value:_}=S.target;a({type:"CHANGE",data:{name:w,value:_}})},v=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):m(S)},m=S=>{s.submitForm(Fe(S))},g=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(S,w)=>{const _=Ye,b=ge,A=Re,I=we,C=Ve,E=Oe,P=Be;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(b,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(P,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d))]),_:1})]),o.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmSignIn"})]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var x,B;return[(B=(x=o.unref(u))==null?void 0:x.context)!=null&&B.remoteError?(o.openBlock(),o.createBlock(A,{key:0},{default:o.withCtx(()=>{var M,L;return[o.createTextVNode(o.toDisplayString(o.unref(R)((L=(M=o.unref(u))==null?void 0:M.context)==null?void 0:L.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(I,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:g,onConfirmSignInSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var Yt={},iC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},fs={},Ae={};let Bo;const sC=[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];Ae.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};Ae.getSymbolTotalCodewords=function(t){return sC[t]};Ae.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ae.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Bo=t};Ae.isKanjiModeEnabled=function(){return typeof Bo!="undefined"};Ae.toSJIS=function(t){return Bo(t)};var Xn={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.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: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,a){if(e.isValid(r))return r;try{return t(r)}catch{return a}}})(Xn);function ps(){this.buffer=[],this.length=0}ps.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 n=0;n<t;n++)this.putBit((e>>>t-n-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 uC=ps;function Jt(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)}Jt.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)};Jt.prototype.get=function(e,t){return this.data[e*this.size+t]};Jt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Jt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var cC=Jt,hs={};(function(e){const t=Ae.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const a=Math.floor(r/7)+2,i=t(r),s=i===145?26:Math.ceil((i-13)/(2*a-2))*2,u=[i-7];for(let c=1;c<a-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const a=[],i=e.getRowColCoords(r),s=i.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||a.push([i[u],i[c]]);return a}})(hs);var ms={};const lC=Ae.getSymbolSize,Za=7;ms.getPositions=function(t){const n=lC(t);return[[0,0],[n-Za,0],[0,n-Za]]};var gs={};(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(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const i=a.size;let s=0,u=0,c=0,l=null,d=null;for(let h=0;h<i;h++){u=c=0,l=d=null;for(let f=0;f<i;f++){let p=a.get(h,f);p===l?u++:(u>=5&&(s+=t.N1+(u-5)),l=p,u=1),p=a.get(f,h),p===d?c++:(c>=5&&(s+=t.N1+(c-5)),d=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(a){const i=a.size;let s=0;for(let u=0;u<i-1;u++)for(let c=0;c<i-1;c++){const l=a.get(u,c)+a.get(u,c+1)+a.get(u+1,c)+a.get(u+1,c+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(a){const i=a.size;let s=0,u=0,c=0;for(let l=0;l<i;l++){u=c=0;for(let d=0;d<i;d++)u=u<<1&2047|a.get(l,d),d>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|a.get(d,l),d>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(a){let i=0;const s=a.data.length;for(let c=0;c<s;c++)i+=a.data[c];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(r,a,i){switch(r){case e.Patterns.PATTERN000:return(a+i)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(a+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return a*i%2+a*i%3===0;case e.Patterns.PATTERN110:return(a*i%2+a*i%3)%2===0;case e.Patterns.PATTERN111:return(a*i%3+(a+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(a,i){const s=i.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)i.isReserved(c,u)||i.xor(c,u,n(a,c,u))},e.getBestMask=function(a,i){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let l=0;l<s;l++){i(l),e.applyMask(l,a);const d=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(l,a),d<c&&(c=d,u=l)}return u}})(gs);var er={};const We=Xn,hn=[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],mn=[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];er.getBlocksCount=function(t,n){switch(n){case We.L:return hn[(t-1)*4+0];case We.M:return hn[(t-1)*4+1];case We.Q:return hn[(t-1)*4+2];case We.H:return hn[(t-1)*4+3];default:return}};er.getTotalCodewordsCount=function(t,n){switch(n){case We.L:return mn[(t-1)*4+0];case We.M:return mn[(t-1)*4+1];case We.Q:return mn[(t-1)*4+2];case We.H:return mn[(t-1)*4+3];default:return}};var vs={},tr={};const Vt=new Uint8Array(512),kn=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Vt[n]=t,kn[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Vt[n]=Vt[n-255]})();tr.log=function(t){if(t<1)throw new Error("log("+t+")");return kn[t]};tr.exp=function(t){return Vt[t]};tr.mul=function(t,n){return t===0||n===0?0:Vt[kn[t]+kn[n]]};(function(e){const t=tr;e.mul=function(r,a){const i=new Uint8Array(r.length+a.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<a.length;u++)i[s+u]^=t.mul(r[s],a[u]);return i},e.mod=function(r,a){let i=new Uint8Array(r);for(;i.length-a.length>=0;){const s=i[0];for(let c=0;c<a.length;c++)i[c]^=t.mul(a[c],s);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(r){let a=new Uint8Array([1]);for(let i=0;i<r;i++)a=e.mul(a,new Uint8Array([1,t.exp(i)]));return a}})(vs);const ys=vs;function Vo(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Vo.prototype.initialize=function(t){this.degree=t,this.genPoly=ys.generateECPolynomial(this.degree)};Vo.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=ys.mod(n,this.genPoly),a=this.degree-r.length;if(a>0){const i=new Uint8Array(this.degree);return i.set(r,a),i}return r};var dC=Vo,Ss={},Je={},Do={};Do.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const ws="[0-9]+",fC="[A-Z $%*+\\-./:]+";let Ft="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ft=Ft.replace(/u/g,"\\u");const pC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ft+`)(?:.|[\r
32
+ ]))+`;je.KANJI=new RegExp(Ft,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(pC,"g");je.NUMERIC=new RegExp(ws,"g");je.ALPHANUMERIC=new RegExp(fC,"g");const hC=new RegExp("^"+Ft+"$"),mC=new RegExp("^"+ws+"$"),gC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return hC.test(t)};je.testNumeric=function(t){return mC.test(t)};je.testAlphanumeric=function(t){return gC.test(t)};(function(e){const t=Do,n=je;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return n.testNumeric(i)?e.NUMERIC:n.testAlphanumeric(i)?e.ALPHANUMERIC:n.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function r(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.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: "+a)}}e.from=function(i,s){if(e.isValid(i))return i;try{return r(i)}catch{return s}}})(Je);(function(e){const t=Ae,n=er,r=Xn,a=Je,i=Do,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function c(f,p,v){for(let m=1;m<=40;m++)if(p<=e.getCapacity(m,v,f))return m}function l(f,p){return a.getCharCountIndicator(f,p)+4}function d(f,p){let v=0;return f.forEach(function(m){v+=l(m.mode,p)+m.getBitsLength()}),v}function h(f,p){for(let v=1;v<=40;v++)if(d(f,v)<=e.getCapacity(v,p,a.MIXED))return v}e.from=function(p,v){return i.isValid(p)?parseInt(p,10):v},e.getCapacity=function(p,v,m){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof m=="undefined"&&(m=a.BYTE);const g=t.getSymbolTotalCodewords(p),S=n.getTotalCodewordsCount(p,v),w=(g-S)*8;if(m===a.MIXED)return w;const _=w-l(m,p);switch(m){case a.NUMERIC:return Math.floor(_/10*3);case a.ALPHANUMERIC:return Math.floor(_/11*2);case a.KANJI:return Math.floor(_/13);case a.BYTE:default:return Math.floor(_/8)}},e.getBestVersionForData=function(p,v){let m;const g=r.from(v,r.M);if(Array.isArray(p)){if(p.length>1)return h(p,g);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),g)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let v=p<<12;for(;t.getBCHDigit(v)-u>=0;)v^=s<<t.getBCHDigit(v)-u;return p<<12|v}})(Ss);var _s={};const Lr=Ae,bs=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,vC=1<<14|1<<12|1<<10|1<<4|1<<1,Qa=Lr.getBCHDigit(bs);_s.getEncodedBits=function(t,n){const r=t.bit<<3|n;let a=r<<10;for(;Lr.getBCHDigit(a)-Qa>=0;)a^=bs<<Lr.getBCHDigit(a)-Qa;return(r<<10|a)^vC};var Cs={};const yC=Je;function lt(e){this.mode=yC.NUMERIC,this.data=e.toString()}lt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};lt.prototype.getLength=function(){return this.data.length};lt.prototype.getBitsLength=function(){return lt.getBitsLength(this.data.length)};lt.prototype.write=function(t){let n,r,a;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),a=parseInt(r,10),t.put(a,10);const i=this.data.length-n;i>0&&(r=this.data.substr(n),a=parseInt(r,10),t.put(a,i*3+1))};var SC=lt;const wC=Je,pr=["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 dt(e){this.mode=wC.ALPHANUMERIC,this.data=e}dt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};dt.prototype.getLength=function(){return this.data.length};dt.prototype.getBitsLength=function(){return dt.getBitsLength(this.data.length)};dt.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=pr.indexOf(this.data[n])*45;r+=pr.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(pr.indexOf(this.data[n]),6)};var _C=dt,bC=function(t){for(var n=[],r=t.length,a=0;a<r;a++){var i=t.charCodeAt(a);if(i>=55296&&i<=56319&&r>a+1){var s=t.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){n.push(i);continue}if(i<2048){n.push(i>>6|192),n.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128);continue}if(i>=65536&&i<=1114111){n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(i&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const CC=bC,AC=Je;function ft(e){this.mode=AC.BYTE,this.data=new Uint8Array(CC(e))}ft.getBitsLength=function(t){return t*8};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var EC=ft;const IC=Je,$C=Ae;function pt(e){this.mode=IC.KANJI,this.data=e}pt.getBitsLength=function(t){return t*13};pt.prototype.getLength=function(){return this.data.length};pt.prototype.getBitsLength=function(){return pt.getBitsLength(this.data.length)};pt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=$C.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
33
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var TC=pt,As={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,a){var i={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,l,d,h,f,p,v,m,g;!u.empty();){c=u.pop(),l=c.value,h=c.cost,f=n[l]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],v=h+p,m=s[d],g=typeof s[d]=="undefined",(g||m>v)&&(s[d]=v,u.push(d,v),i[d]=l))}if(typeof a!="undefined"&&typeof s[a]=="undefined"){var S=["Could not find a path from ",r," to ",a,"."].join("");throw new Error(S)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var a=[],i=r;i;)a.push(i),i=n[i];return a.reverse(),a},find_path:function(n,r,a){var i=t.single_source_shortest_paths(n,r,a);return t.extract_shortest_path_from_predecessor_list(i,a)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,a={},i;n=n||{};for(i in r)r.hasOwnProperty(i)&&(a[i]=r[i]);return a.queue=[],a.sorter=n.sorter||r.default_sorter,a},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var a={value:n,cost:r};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(As);(function(e){const t=Je,n=SC,r=_C,a=EC,i=TC,s=je,u=Ae,c=As.exports;function l(S){return unescape(encodeURIComponent(S)).length}function d(S,w,_){const b=[];let A;for(;(A=S.exec(_))!==null;)b.push({data:A[0],index:A.index,mode:w,length:A[0].length});return b}function h(S){const w=d(s.NUMERIC,t.NUMERIC,S),_=d(s.ALPHANUMERIC,t.ALPHANUMERIC,S);let b,A;return u.isKanjiModeEnabled()?(b=d(s.BYTE,t.BYTE,S),A=d(s.KANJI,t.KANJI,S)):(b=d(s.BYTE_KANJI,t.BYTE,S),A=[]),w.concat(_,b,A).sort(function(C,E){return C.index-E.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(S,w){switch(w){case t.NUMERIC:return n.getBitsLength(S);case t.ALPHANUMERIC:return r.getBitsLength(S);case t.KANJI:return i.getBitsLength(S);case t.BYTE:return a.getBitsLength(S)}}function p(S){return S.reduce(function(w,_){const b=w.length-1>=0?w[w.length-1]:null;return b&&b.mode===_.mode?(w[w.length-1].data+=_.data,w):(w.push(_),w)},[])}function v(S){const w=[];for(let _=0;_<S.length;_++){const b=S[_];switch(b.mode){case t.NUMERIC:w.push([b,{data:b.data,mode:t.ALPHANUMERIC,length:b.length},{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.ALPHANUMERIC:w.push([b,{data:b.data,mode:t.BYTE,length:b.length}]);break;case t.KANJI:w.push([b,{data:b.data,mode:t.BYTE,length:l(b.data)}]);break;case t.BYTE:w.push([{data:b.data,mode:t.BYTE,length:l(b.data)}])}}return w}function m(S,w){const _={},b={start:{}};let A=["start"];for(let I=0;I<S.length;I++){const C=S[I],E=[];for(let P=0;P<C.length;P++){const x=C[P],B=""+I+P;E.push(B),_[B]={node:x,lastCount:0},b[B]={};for(let M=0;M<A.length;M++){const L=A[M];_[L]&&_[L].node.mode===x.mode?(b[L][B]=f(_[L].lastCount+x.length,x.mode)-f(_[L].lastCount,x.mode),_[L].lastCount+=x.length):(_[L]&&(_[L].lastCount=x.length),b[L][B]=f(x.length,x.mode)+4+t.getCharCountIndicator(x.mode,w))}}A=E}for(let I=0;I<A.length;I++)b[A[I]].end=0;return{map:b,table:_}}function g(S,w){let _;const b=t.getBestModeForData(S);if(_=t.from(w,b),_!==t.BYTE&&_.bit<b.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(_)+`.
34
+ Suggested mode is: `+t.toString(b));switch(_===t.KANJI&&!u.isKanjiModeEnabled()&&(_=t.BYTE),_){case t.NUMERIC:return new n(S);case t.ALPHANUMERIC:return new r(S);case t.KANJI:return new i(S);case t.BYTE:return new a(S)}}e.fromArray=function(w){return w.reduce(function(_,b){return typeof b=="string"?_.push(g(b,null)):b.data&&_.push(g(b.data,b.mode)),_},[])},e.fromString=function(w,_){const b=h(w,u.isKanjiModeEnabled()),A=v(b),I=m(A,_),C=c.find_path(I.map,"start","end"),E=[];for(let P=1;P<C.length-1;P++)E.push(I.table[C[P]].node);return e.fromArray(p(E))},e.rawSplit=function(w){return e.fromArray(h(w,u.isKanjiModeEnabled()))}})(Cs);const nr=Ae,hr=Xn,PC=uC,NC=cC,kC=hs,xC=ms,jr=gs,zr=er,UC=dC,xn=Ss,OC=_s,RC=Je,mr=Cs;function BC(e,t){const n=e.size,r=xC.getPositions(t);for(let a=0;a<r.length;a++){const i=r[a][0],s=r[a][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||n<=i+u))for(let c=-1;c<=7;c++)s+c<=-1||n<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?e.set(i+u,s+c,!0,!0):e.set(i+u,s+c,!1,!0))}}function VC(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function DC(e,t){const n=kC.getPositions(t);for(let r=0;r<n.length;r++){const a=n[r][0],i=n[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?e.set(a+s,i+u,!0,!0):e.set(a+s,i+u,!1,!0)}}function MC(e,t){const n=e.size,r=xn.getEncodedBits(t);let a,i,s;for(let u=0;u<18;u++)a=Math.floor(u/3),i=u%3+n-8-3,s=(r>>u&1)===1,e.set(a,i,s,!0),e.set(i,a,s,!0)}function gr(e,t,n){const r=e.size,a=OC.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function FC(e,t){const n=e.size;let r=-1,a=n-1,i=7,s=0;for(let u=n-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!e.isReserved(a,u-c)){let l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),e.set(a,u-c,l),i--,i===-1&&(s++,i=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}function LC(e,t,n){const r=new PC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),RC.getCharCountIndicator(c.mode,e)),c.write(r)});const a=nr.getSymbolTotalCodewords(e),i=zr.getTotalCodewordsCount(e,t),s=(a-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return jC(r,e,t)}function jC(e,t,n){const r=nr.getSymbolTotalCodewords(t),a=zr.getTotalCodewordsCount(t,n),i=r-a,s=zr.getBlocksCount(t,n),u=r%s,c=s-u,l=Math.floor(r/s),d=Math.floor(i/s),h=d+1,f=l-d,p=new UC(f);let v=0;const m=new Array(s),g=new Array(s);let S=0;const w=new Uint8Array(e.buffer);for(let C=0;C<s;C++){const E=C<c?d:h;m[C]=w.slice(v,v+E),g[C]=p.encode(m[C]),v+=E,S=Math.max(S,E)}const _=new Uint8Array(r);let b=0,A,I;for(A=0;A<S;A++)for(I=0;I<s;I++)A<m[I].length&&(_[b++]=m[I][A]);for(A=0;A<f;A++)for(I=0;I<s;I++)_[b++]=g[I][A];return _}function zC(e,t,n,r){let a;if(Array.isArray(e))a=mr.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const d=mr.rawSplit(e);l=xn.getBestVersionForData(d,n)}a=mr.fromString(e,l||40)}else throw new Error("Invalid data");const i=xn.getBestVersionForData(a,n);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
48
35
  The chosen QR Code version cannot contain this amount of data.
49
36
  Minimum version required to store current data is: `+i+`.
50
- `);const s=FC(t,n,a),u=Xn.getSymbolSize(t),c=new PC(u);return RC(c,t),BC(c),VC(c,t),hr(c,n,0),t>=7&&DC(c,t),MC(c,s),isNaN(r)&&(r=Fr.getBestMask(c,hr.bind(null,c,n))),Fr.applyMask(r,c),hr(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:a}}ds.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let r=fr.M,a,i;return typeof n!="undefined"&&(r=fr.from(n.errorCorrectionLevel,fr.M),a=Pn.from(n.version),i=Fr.from(n.maskPattern),n.toSJISFunc&&Xn.setToSJISFunction(n.toSJISFunc)),jC(t,a,r,i)};var As={},Vo={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(i){return[i,i]}))),r.length===6&&r.push("F","F");const a=parseInt(r.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,i=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:i,scale:i?4:s,margin:a,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},e.getImageWidth=function(r,a){const i=e.getScale(r,a);return Math.floor((r+a.margin*2)*i)},e.qrToImageData=function(r,a,i){const s=a.modules.size,u=a.modules.data,c=e.getScale(s,i),l=Math.floor((s+i.margin*2)*c),d=i.margin*c,h=[i.color.light,i.color.dark];for(let f=0;f<l;f++)for(let p=0;p<l;p++){let v=(f*l+p)*4,m=i.color.light;if(f>=d&&p>=d&&f<l-d&&p<l-d){const g=Math.floor((f-d)/c),S=Math.floor((p-d)/c);m=h[u[g*s+S]?1:0]}r[v++]=m.r,r[v++]=m.g,r[v++]=m.b,r[v]=m.a}}})(Vo);(function(e){const t=Vo;function n(a,i,s){a.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,u){let c=u,l=s;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(l=r()),c=t.getOptions(c);const d=t.getImageWidth(i.modules.size,c),h=l.getContext("2d"),f=h.createImageData(d,d);return t.qrToImageData(f.data,i,c),n(h,l,d),h.putImageData(f,0,0),l},e.renderToDataURL=function(i,s,u){let c=u;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const l=e.render(i,s,c),d=c.type||"image/png",h=c.rendererOpts||{};return l.toDataURL(d,h.quality)}})(As);var Es={};const zC=Vo;function Za(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function mr(e,t,n){let r=e+t;return typeof n!="undefined"&&(r+=" "+n),r}function GC(e,t,n){let r="",a=0,i=!1,s=0;for(let u=0;u<e.length;u++){const c=Math.floor(u%t),l=Math.floor(u/t);!c&&!i&&(i=!0),e[u]?(s++,u>0&&c>0&&e[u-1]||(r+=i?mr("M",c+n,.5+l+n):mr("m",a,0),a=0,i=!1),c+1<t&&e[u+1]||(r+=mr("h",s),s=0)):a++}return r}Es.render=function(t,n,r){const a=zC.getOptions(n),i=t.modules.size,s=t.modules.data,u=i+a.margin*2,c=a.color.light.a?"<path "+Za(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Za(a.color.dark,"stroke")+' d="'+GC(s,i,a.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',h=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+h+d+' shape-rendering="crispEdges">'+c+l+`</svg>
51
- `;return typeof r=="function"&&r(null,f),f};const HC=aC,jr=ds,Is=As,KC=Es;function Do(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!HC())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(a=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof a=="undefined"?(a=r,r=void 0):(a=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const d=jr.create(n,r);c(e(d,t,r))}catch(d){l(d)}})}try{const c=jr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}Ht.create=jr.create;Ht.toCanvas=Do.bind(null,Is.render);Ht.toDataURL=Do.bind(null,Is.renderToDataURL);Ht.toString=Do.bind(null,function(e,t,n){return KC.render(e,n)});const qC={key:0},WC=o.createTextVNode(" Setup TOTP "),YC=["src"],JC={"data-amplify-copy-tooltip":""},ZC=o.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[o.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),QC=o.defineComponent({emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var A,I;const r=Ie(Ce)(),a=o.useAttrs(),{state:i,send:s}=Te(),{value:{context:u}}=i,c=(I=(A=u==null?void 0:u.config)==null?void 0:A.formFields)==null?void 0:I.setupTOTP,l=c==null?void 0:c.QR,d=o.computed(()=>be(i.value));let h=o.reactive({qrCodeImageSource:"",isLoading:!0}),f=o.ref(""),p=o.ref(R("COPY"));function v(){navigator.clipboard.writeText(f.value),p.value=R("COPIED")}o.onMounted(async()=>{var P,x;const C=new ue.Logger("SetupTOTP-logger"),{user:E}=d.value.context;if(!!E)try{f.value=await ue.Auth.setupTOTP(E);const B=(P=l==null?void 0:l.totpIssuer)!=null?P:"AWSCognito",M=(x=l==null?void 0:l.totpUsername)!=null?x:E.username,L=encodeURI(`otpauth://totp/${B}:${M}?secret=${f.value}&issuer=${B}`);h.qrCodeImageSource=await Ht.toDataURL(L)}catch(B){C.error(B)}finally{h.isLoading=!1}});const m=o.computed(()=>R("Back to Sign In")),g=o.computed(()=>R("Confirm")),S=C=>{const{name:E,value:P}=C.target;s({type:"CHANGE",data:{name:E,value:P}})},w=C=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",C):_(C)},_=C=>{r.submitForm(Fe(C))},b=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(C,E)=>{const P=Je,x=ge,B=Re,M=we,L=Ve,ce=Oe,z=Be;return o.renderSlot(C.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(C.$attrs)),()=>[o.createVNode(x,o.normalizeProps(o.guardReactiveProps(C.$attrs)),{default:o.withCtx(()=>[o.createVNode(z,{"data-amplify-authenticator-setup-totp":"",onInput:S,onSubmit:o.withModifiers(w,["prevent"])},{default:o.withCtx(()=>[o.createVNode(ce,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(h).isLoading?(o.openBlock(),o.createElementBlock("p",qC,"Loading...")):(o.openBlock(),o.createBlock(x,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(C.$slots,"header",{},()=>[o.createVNode(P,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[WC]),_:1})]),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(h).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,YC),o.createVNode(x,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(f)),1),o.createVNode(x,{"data-amplify-copy-svg":"",onClick:v},{default:o.withCtx(()=>[o.createElementVNode("div",JC,o.toDisplayString(o.unref(p)),1),ZC]),_:1})]),_:1}),o.createVNode(Le,{route:"setupTOTP"})]),_:1}),o.createVNode(L,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var fe;return[(fe=o.unref(d).context)!=null&&fe.remoteError?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(g)),1)]),_:1},8,["disabled"]),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(m)),1)]),_:1},8,["onClick"]),o.renderSlot(C.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:w})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Mo=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"forceNewPassword"}))}}),Fo=o.defineComponent({emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Te(),s=Ie(Ce)(),u=o.computed(()=>be(r.value)),c=o.computed(()=>R("Change Password")),l=o.computed(()=>R("Changing")),d=o.computed(()=>R("Back to Sign In")),h=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=g=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",g):p(g)},p=g=>{s.submitForm(Fe(g))},v=g=>{const{name:S,value:w}=g.target;a({type:"CHANGE",data:{name:S,value:w}})};function m(g){const{name:S}=g.target;s.updateBlur({name:S})}return(g,S)=>{const w=Je,_=ge,b=Re,A=we,I=Ve,C=Oe,E=Be;return o.renderSlot(g.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-forcenewpassword":"",onInput:v,onBlur:m,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("forceNewPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(w,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Mo)])]),_:3}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u).context.remoteError?(o.openBlock(),o.createBlock(b,{key:0,"data-ui-error":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("signUp.submit")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(u).matches("forceNewPassword.pending")?o.unref(l)+"\u2026":o.unref(c)),1)]),_:1},8,["disabled"]),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onHaveAccountClicked:h,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Lo=o.defineComponent({emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Ie(Ce),{send:a,submitForm:i}=r(),{error:s,isPending:u}=o.toRefs(r()),c=o.computed(()=>R("Back to Sign In")),l=o.computed(()=>R("Reset your password")),d=o.computed(()=>R("Send Code")),h=m=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",m):f(m)},f=m=>{i(Fe(m))},p=m=>{const{name:g,value:S}=m.target;a({type:"CHANGE",data:{name:g,value:S}})},v=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(m,g)=>{const S=Je,w=Oe,_=Re,b=we,A=Ve,I=ge,C=Be;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(C,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:p,onSubmit:o.withModifiers(h,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(s))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:v,onResetPasswordSubmit:h})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),jo=o.defineComponent({emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=Te(),i=Ie(Ce)(),s=o.useAttrs(),u=o.computed(()=>be(n.value)),c=o.computed(()=>R("Resend Code")),l=o.computed(()=>R("Reset your Password")),d=o.computed(()=>R("Submit")),h=g=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",g):f(g)},f=g=>{i.submitForm(Fe(g))},p=()=>{r({type:"RESEND"})},v=g=>{const{name:S,value:w}=g.target;r({type:"CHANGE",data:{name:S,value:w}})};function m(g){const{name:S}=g.target;i.updateBlur({name:S})}return(g,S)=>{const w=Je,_=ge,b=Re,A=we,I=Ve,C=Oe,E=Be;return o.renderSlot(g.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-confirmResetpassword":"",onInput:v,onBlurCapture:m,onSubmit:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmResetPassword"})]),_:1}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var P,x;return[(x=(P=o.unref(u))==null?void 0:P.context)!=null&&x.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var B,M;return[o.createTextVNode(o.toDisplayString(o.unref(R)((M=(B=o.unref(u))==null?void 0:B.context)==null?void 0:M.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onConfirmResetPasswordSubmit:h,onLostYourCodeClicked:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),zo=o.defineComponent({emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Ie(Ce)(),a=o.useAttrs(),{state:i,send:s}=Te(),u=o.computed(()=>be(i.value)),c=u.value.context.unverifiedAttributes,l=o.computed(()=>R("Account recovery requires verified contact information")),d=o.computed(()=>R("Skip")),h=o.computed(()=>R("Verify")),f=o.computed(()=>R("Verify Contact")),p=S=>{const{name:w,value:_}=S.target;s({type:"CHANGE",data:{name:w,value:_}})},v=S=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",S):m(S)},m=S=>{r.submitForm(Fe(S))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(S,w)=>{const _=Je,b=Wn,A=Yn,I=ls,C=ge,E=Re,P=we,x=Ve,B=Oe,M=Be;return o.renderSlot(S.$slots,"verifyUserSlotI",{},()=>[o.createVNode(C,null,{default:o.withCtx(()=>[o.createVNode(M,{onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(B,{disabled:o.unref(u).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(C,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(b,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(L,ce)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:L},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:ce},null,8,["value"]),o.createVNode(I,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode(I,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(qr)[ce].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var L,ce;return[(ce=(L=o.unref(u))==null?void 0:L.context)!=null&&ce.remoteError?(o.openBlock(),o.createBlock(E,{key:0},{default:o.withCtx(()=>{var z;return[o.createTextVNode(o.toDisplayString(o.unref(R)((z=o.unref(u))==null?void 0:z.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(P,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("verifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["disabled"]),o.createVNode(P,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onSkipClicked:g,onVerifyUserSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Go=o.defineComponent({emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Ie(Ce)(),a=o.useAttrs(),{state:i,send:s}=Te(),u=o.computed(()=>be(i.value)),c=o.computed(()=>R("Account recovery requires verified contact information")),l=o.computed(()=>R("Skip")),d=o.computed(()=>R("Submit")),h=m=>{const{name:g,value:S}=m.target;s({type:"CHANGE",data:{name:g,value:S}})},f=m=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):p(m)},p=m=>{r.submitForm(Fe(m))},v=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,g)=>{const S=Je,w=ge,_=Re,b=we,A=Ve,I=Oe,C=Be;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(w,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{onInput:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(I,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var E,P;return[(P=(E=o.unref(u))==null?void 0:E.context)!=null&&P.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>{var x;return[o.createTextVNode(o.toDisplayString(o.unref(R)((x=o.unref(u))==null?void 0:x.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:v,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),XC=["data-variation"],e2={"data-amplify-container":""},t2=["data-amplify-router-content"],n2={key:1,"data-amplify-router-content":""},$s=o.defineComponent({props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const n=e,r=o.useAttrs(),{initialState:a,loginMechanisms:i,variation:s,services:u,signUpAttributes:c,socialProviders:l,hideSignUp:d,formFields:h}=o.toRefs(n),f=g0(),p=w0(f);let v,m;const{state:g,send:S}=ss(p);Te(p);const w=o.ref(!1);m=p.subscribe(T=>{T.matches("setup")&&!w.value&&(S({type:"INIT",data:{initialState:a==null?void 0:a.value,loginMechanisms:i==null?void 0:i.value,socialProviders:l==null?void 0:l.value,signUpAttributes:c==null?void 0:c.value,services:u==null?void 0:u.value,formFields:h==null?void 0:h.value}}),w.value=!0)}).unsubscribe,o.onMounted(()=>{v=Rl(p)}),o.onUnmounted(()=>{v&&v(),m&&m()});const _=o.computed(()=>be(g.value)),b=o.ref(),A=o.ref(),I=o.ref(),C=o.ref(),E=o.ref(),P=o.ref(),x=o.ref(),B=o.ref(),M=o.ref(),L=o.ref(),ce=o.computed(()=>R("Create Account")),z=o.computed(()=>R("Sign In")),fe=T=>{var ye;r!=null&&r.onSignInSubmit?t("signInSubmit",T):(ye=b.value)==null||ye.submit(T)},bt=T=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",T):I.value.submit(T)},me=T=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",T):x.value.submit(T)},Pe=T=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",T):B.value.submit(T)},er=T=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",T):C.value.submit(T)},qt=T=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",T):E.value.submit(T)},tr=T=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",T):P.value.submit(T)},nr=T=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",T):A.value.submit()},Wt=T=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",T):M.value.submit(T)},rr=T=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",T):L.value.submit(T)},Yt=o.ref(null),Jt=o.ref();o.watch(()=>g.value.context,()=>{const{user:T,signOut:ye}=si({send:S,state:g.value});Yt.value=T,Jt.value=ye});const Ct=o.computed(()=>{var T,ye;return((T=_.value)==null?void 0:T.matches("signIn"))||((ye=_.value)==null?void 0:ye.matches("signUp"))}),or=o.computed(()=>{var T;return!(g.value.matches("authenticated")||g.value.matches("idle")||g.value.matches("setup")||g.value.matches("signOut")||((T=_.value)==null?void 0:T.matches("autoSignIn")))});return(T,ye)=>{var N,U,k,V,D,j,F,Z,oe,_e,tt;const Zt=X0,y=nC;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(or)?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},T.$attrs,{"data-amplify-authenticator":"","data-variation":o.unref(s)}),[o.createElementVNode("div",e2,[o.renderSlot(T.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(Ct)?void 0:""},[o.unref(Ct)&&!o.unref(d)?(o.openBlock(),o.createBlock(y,{key:0},{default:o.withCtx(()=>{var te,ne;return[o.createVNode(Zt,{active:(te=o.unref(_))==null?void 0:te.matches("signIn"),id:44472,label:o.unref(z),onClick:ye[0]||(ye[0]=nt=>o.unref(S)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(Zt,{active:(ne=o.unref(_))==null?void 0:ne.matches("signUp"),id:44471,label:o.unref(ce),onClick:ye[1]||(ye[1]=nt=>o.unref(S)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(Ct)?(o.openBlock(),o.createElementBlock("div",n2,[(N=o.unref(_))!=null&&N.matches("signIn")?(o.openBlock(),o.createBlock(Po,{key:0,onSignInSubmit:fe,ref_key:"signInComponent",ref:b},{signInSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-in")]),form:o.withCtx(({info:te,onSignInSubmit:ne,onForgotPasswordClicked:nt,onInput:At})=>[o.renderSlot(T.$slots,"sign-in-form",{info:te,onInput:At,onSignInSubmit:ne,onForgotPasswordClicked:nt})]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-in-header")]),footer:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-in-footer")]),_:3},512)):o.createCommentVNode("",!0),((U=o.unref(_))==null?void 0:U.matches("signUp"))&&!o.unref(d)?(o.openBlock(),o.createBlock(ko,{key:1,onSignUpSubmit:nr,ref_key:"signUpComponent",ref:A},{signUpSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:te})=>[o.renderSlot(T.$slots,"sign-up-fields",{info:te})]),footer:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(k=o.unref(_))!=null&&k.matches("confirmSignUp")?(o.openBlock(),o.createBlock(xo,{key:2,onConfirmSignUpSubmit:bt,ref_key:"confirmSignUpComponent",ref:I},{confirmSignUpSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-up")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-up-header")]),footer:o.withCtx(({onConfirmSignUpSubmit:te,onLostCodeClicked:ne})=>[o.renderSlot(T.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:te,onLostCodeClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(V=o.unref(_))!=null&&V.matches("resetPassword")?(o.openBlock(),o.createBlock(Lo,{key:3,onResetPasswordSubmit:me,ref_key:"resetPasswordComponent",ref:x},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:te,onBackToSignInClicked:ne})=>[o.renderSlot(T.$slots,"reset-password-footer",{onResetPasswordSubmit:te,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(D=o.unref(_))!=null&&D.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(jo,{key:4,onConfirmResetPasswordSubmit:Pe,ref_key:"confirmResetPasswordComponent",ref:B},{confirmResetPasswordSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-reset-password")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-reset-password-header")]),footer:o.withCtx(({onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ne})=>[o.renderSlot(T.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(_))!=null&&j.matches("confirmSignIn")?(o.openBlock(),o.createBlock(Uo,{key:5,onConfirmSignInSubmit:er,ref_key:"confirmSignInComponent",ref:C},{confirmSignInSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-in")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-in-header")]),footer:o.withCtx(({onConfirmSignInSubmit:te,onBackToSignInClicked:ne})=>[o.renderSlot(T.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:te,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(F=o.unref(_))!=null&&F.matches("setupTOTP")?(o.openBlock(),o.createBlock(QC,{key:6,onConfirmSetupTotpSubmit:qt,ref_key:"confirmSetupTOTPComponent",ref:E},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(T.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:te,onBackToSignInClicked:ne})=>[o.renderSlot(T.$slots,"setup-totp-footer",{onSetupTOTPSubmit:te,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(Z=o.unref(_))!=null&&Z.matches("forceNewPassword")?(o.openBlock(),o.createBlock(Fo,{key:7,onForceNewPasswordSubmit:tr,ref_key:"forceNewPasswordComponent",ref:P},{forceNewPasswordI:o.withCtx(()=>[o.renderSlot(T.$slots,"force-new-password")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"force-new-password-header")]),"force-new-password-form-fields":o.withCtx(()=>[o.renderSlot(T.$slots,"force-new-password-form-fields")]),footer:o.withCtx(({onHaveAccountClicked:te,onForceNewPasswordSubmit:ne})=>[o.renderSlot(T.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:ne,onBackToSignInClicked:te})]),_:3},512)):o.createCommentVNode("",!0),(oe=o.unref(_))!=null&&oe.matches("verifyUser")?(o.openBlock(),o.createBlock(zo,{key:8,onVerifyUserSubmit:Wt,ref_key:"verifyUserComponent",ref:M},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:te,onSkipClicked:ne})=>[o.renderSlot(T.$slots,"verify-user-footer",{onVerifyUserSubmit:te,onSkipClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(_e=o.unref(_))!=null&&_e.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(Go,{key:9,onConfirmVerifyUserSubmit:rr,ref_key:"confirmVerifyUserComponent",ref:L},{confirmVerifyUserSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-verify-user")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-verify-user-header")]),footer:o.withCtx(({onConfirmVerifyUserSubmit:te,onSkipClicked:ne})=>[o.renderSlot(T.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:te,onSkipClicked:ne})]),_:3},512)):o.createCommentVNode("",!0)],8,t2),o.renderSlot(T.$slots,"footer")])],16,XC)):o.createCommentVNode("",!0),(tt=o.unref(g))!=null&&tt.matches("authenticated")?o.renderSlot(T.$slots,"default",{key:1,user:Yt.value,state:o.unref(g),signOut:Jt.value,send:o.unref(S)}):o.createCommentVNode("",!0)],64)}}}),Ts=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ps=o.defineComponent({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:n,id:r,autocomplete:a,placeholder:i,required:s,name:u,type:c}=o.toRefs(t);return(l,d)=>{const h=Wn,f=Yn,p=ge;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(h,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:o.unref(r)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},8,["class","for"]),o.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(f,{class:"amplify-input amplify-field-group__control",id:o.unref(r),"aria-invalid":"false",autocomplete:o.unref(a),placeholder:o.unref(i),required:o.unref(s),name:o.unref(u),disabled:e.disabled,type:o.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),r2={class:"amplify-flex amplify-field amplify-checkboxfield"},o2={class:"amplify-flex amplify-checkbox"},a2={class:"amplify-visually-hidden"},i2=["data-error","data-checked"],s2=["data-checked"],u2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),c2=[u2],l2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),d2={key:0,class:"amplify-text amplify-field__error-message"},Ns=o.defineComponent({props:{errorMessage:{default:""}},setup(e){const t=e,n=o.ref(!1),{errorMessage:r}=o.toRefs(t);return(a,i)=>(o.openBlock(),o.createElementBlock("div",r2,[o.createElementVNode("label",o2,[o.createElementVNode("span",a2,[o.createElementVNode("input",{onClick:i[0]||(i[0]=s=>n.value=!n.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),o.createElementVNode("span",{class:o.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!n.value}]),"aria-hidden":"true","data-focus":"false","data-error":!n.value,"data-checked":n.value},[(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:o.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":n.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":n.value},c2,10,s2))],10,i2),l2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",d2,o.toDisplayString(o.unref(r)),1))]))}});var f2={install:e=>{e.component("SignIn",Po),e.component("SignUp",ko),e.component("FederatedSignIn",qn),e.component("Authenticator",$s),e.component("RenderInfo",Ts),e.component("PasswordControl",To),e.component("ForceNewPassword",Fo),e.component("ResetPassword",Lo),e.component("ConfirmResetPassword",jo),e.component("ConfirmSignUp",xo),e.component("ConfirmSignIn",Uo),e.component("VerifyUser",zo),e.component("ConfirmVerifyUser",Go),e.component("AmplifyTextField",Ps),e.component("AmplifyCheckBox",Ns),e.component("AmplifyButton",we),e.component("BaseFormField",cs),e.component("BaseFormFields",Le),e.component("AuthenticatorSignUpFormFields",No),e.component("AuthenticatorForceNewPasswordFormFields",Mo)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=Ns;exports.AmplifyTextField=Ps;exports.Authenticator=$s;exports.AuthenticatorForceNewPasswordFormFields=Mo;exports.AuthenticatorSignUpFormFields=No;exports.ConfirmResetPassword=jo;exports.ConfirmSignIn=Uo;exports.ConfirmSignUp=xo;exports.ConfirmVerifyUser=Go;exports.FederatedSignIn=qn;exports.ForceNewPassword=Fo;exports.PasswordControl=To;exports.RenderInfo=Ts;exports.ResetPassword=Lo;exports.SignIn=Po;exports.SignUp=ko;exports.VerifyUser=zo;exports.default=f2;exports.translations=xl;exports.useAuthenticator=Ce;
37
+ `);const s=LC(t,n,a),u=nr.getSymbolSize(t),c=new NC(u);return BC(c,t),VC(c),DC(c,t),gr(c,n,0),t>=7&&MC(c,t),FC(c,s),isNaN(r)&&(r=jr.getBestMask(c,gr.bind(null,c,n))),jr.applyMask(r,c),gr(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:a}}fs.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let r=hr.M,a,i;return typeof n!="undefined"&&(r=hr.from(n.errorCorrectionLevel,hr.M),a=xn.from(n.version),i=jr.from(n.maskPattern),n.toSJISFunc&&nr.setToSJISFunction(n.toSJISFunc)),zC(t,a,r,i)};var Es={},Mo={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(i){return[i,i]}))),r.length===6&&r.push("F","F");const a=parseInt(r.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const a=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,i=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:i,scale:i?4:s,margin:a,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,a){return a.width&&a.width>=r+a.margin*2?a.width/(r+a.margin*2):a.scale},e.getImageWidth=function(r,a){const i=e.getScale(r,a);return Math.floor((r+a.margin*2)*i)},e.qrToImageData=function(r,a,i){const s=a.modules.size,u=a.modules.data,c=e.getScale(s,i),l=Math.floor((s+i.margin*2)*c),d=i.margin*c,h=[i.color.light,i.color.dark];for(let f=0;f<l;f++)for(let p=0;p<l;p++){let v=(f*l+p)*4,m=i.color.light;if(f>=d&&p>=d&&f<l-d&&p<l-d){const g=Math.floor((f-d)/c),S=Math.floor((p-d)/c);m=h[u[g*s+S]?1:0]}r[v++]=m.r,r[v++]=m.g,r[v++]=m.b,r[v]=m.a}}})(Mo);(function(e){const t=Mo;function n(a,i,s){a.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,u){let c=u,l=s;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(l=r()),c=t.getOptions(c);const d=t.getImageWidth(i.modules.size,c),h=l.getContext("2d"),f=h.createImageData(d,d);return t.qrToImageData(f.data,i,c),n(h,l,d),h.putImageData(f,0,0),l},e.renderToDataURL=function(i,s,u){let c=u;typeof c=="undefined"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const l=e.render(i,s,c),d=c.type||"image/png",h=c.rendererOpts||{};return l.toDataURL(d,h.quality)}})(Es);var Is={};const GC=Mo;function Xa(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function vr(e,t,n){let r=e+t;return typeof n!="undefined"&&(r+=" "+n),r}function HC(e,t,n){let r="",a=0,i=!1,s=0;for(let u=0;u<e.length;u++){const c=Math.floor(u%t),l=Math.floor(u/t);!c&&!i&&(i=!0),e[u]?(s++,u>0&&c>0&&e[u-1]||(r+=i?vr("M",c+n,.5+l+n):vr("m",a,0),a=0,i=!1),c+1<t&&e[u+1]||(r+=vr("h",s),s=0)):a++}return r}Is.render=function(t,n,r){const a=GC.getOptions(n),i=t.modules.size,s=t.modules.data,u=i+a.margin*2,c=a.color.light.a?"<path "+Xa(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+Xa(a.color.dark,"stroke")+' d="'+HC(s,i,a.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',h=a.width?'width="'+a.width+'" height="'+a.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+h+d+' shape-rendering="crispEdges">'+c+l+`</svg>
38
+ `;return typeof r=="function"&&r(null,f),f};const KC=iC,Gr=fs,$s=Es,qC=Is;function Fo(e,t,n,r,a){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!KC())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(a=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof a=="undefined"?(a=r,r=void 0):(a=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(c,l){try{const d=Gr.create(n,r);c(e(d,t,r))}catch(d){l(d)}})}try{const c=Gr.create(n,r);a(null,e(c,t,r))}catch(c){a(c)}}Yt.create=Gr.create;Yt.toCanvas=Fo.bind(null,$s.render);Yt.toDataURL=Fo.bind(null,$s.renderToDataURL);Yt.toString=Fo.bind(null,function(e,t,n){return qC.render(e,n)});const WC={key:0},YC=o.createTextVNode(" Setup TOTP "),JC=["src"],ZC={"data-amplify-copy-tooltip":""},QC=o.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[o.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),XC=o.defineComponent({name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var A,I;const r=Ie(Ce)(),a=o.useAttrs(),{state:i,send:s}=Te(),{value:{context:u}}=i,c=(I=(A=u==null?void 0:u.config)==null?void 0:A.formFields)==null?void 0:I.setupTOTP,l=c==null?void 0:c.QR,d=o.computed(()=>be(i.value));let h=o.reactive({qrCodeImageSource:"",isLoading:!0}),f=o.ref(""),p=o.ref(R("COPY"));function v(){navigator.clipboard.writeText(f.value),p.value=R("COPIED")}o.onMounted(async()=>{var P,x;const C=new ue.Logger("SetupTOTP-logger"),{user:E}=d.value.context;if(!!E)try{f.value=await ue.Auth.setupTOTP(E);const B=(P=l==null?void 0:l.totpIssuer)!=null?P:"AWSCognito",M=(x=l==null?void 0:l.totpUsername)!=null?x:E.username,L=encodeURI(`otpauth://totp/${B}:${M}?secret=${f.value}&issuer=${B}`);h.qrCodeImageSource=await Yt.toDataURL(L)}catch(B){C.error(B)}finally{h.isLoading=!1}});const m=o.computed(()=>R("Back to Sign In")),g=o.computed(()=>R("Confirm")),S=C=>{const{name:E,value:P}=C.target;s({type:"CHANGE",data:{name:E,value:P}})},w=C=>{a!=null&&a.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",C):_(C)},_=C=>{r.submitForm(Fe(C))},b=()=>{a!=null&&a.onBackToSignInClicked?t("backToSignInClicked"):s({type:"SIGN_IN"})};return(C,E)=>{const P=Ye,x=ge,B=Re,M=we,L=Ve,ce=Oe,q=Be;return o.renderSlot(C.$slots,"confirmSetupTOTPI",o.normalizeProps(o.guardReactiveProps(C.$attrs)),()=>[o.createVNode(x,o.normalizeProps(o.guardReactiveProps(C.$attrs)),{default:o.withCtx(()=>[o.createVNode(q,{"data-amplify-authenticator-setup-totp":"",onInput:S,onSubmit:o.withModifiers(w,["prevent"])},{default:o.withCtx(()=>[o.createVNode(ce,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.unref(h).isLoading?(o.openBlock(),o.createElementBlock("p",WC,"Loading...")):(o.openBlock(),o.createBlock(x,{key:1,class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(C.$slots,"header",{},()=>[o.createVNode(P,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[YC]),_:1})]),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:o.unref(h).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,JC),o.createVNode(x,{class:"amplify-flex","data-amplify-copy":""},{default:o.withCtx(()=>[o.createElementVNode("div",null,o.toDisplayString(o.unref(f)),1),o.createVNode(x,{"data-amplify-copy-svg":"",onClick:v},{default:o.withCtx(()=>[o.createElementVNode("div",ZC,o.toDisplayString(o.unref(p)),1),QC]),_:1})]),_:1}),o.createVNode(Le,{route:"setupTOTP"})]),_:1}),o.createVNode(L,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var fe;return[(fe=o.unref(d).context)!=null&&fe.remoteError?(o.openBlock(),o.createBlock(B,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(d).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:o.unref(d).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(g)),1)]),_:1},8,["disabled"]),o.createVNode(M,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(m)),1)]),_:1},8,["onClick"]),o.renderSlot(C.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:w})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Lo=o.defineComponent({name:"authenticator-force-new-password-form-fields",setup(e){return(t,n)=>(o.openBlock(),o.createBlock(Le,{route:"forceNewPassword"}))}}),jo=o.defineComponent({name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:a}=Te(),s=Ie(Ce)(),u=o.computed(()=>be(r.value)),c=o.computed(()=>R("Change Password")),l=o.computed(()=>R("Changing")),d=o.computed(()=>R("Back to Sign In")),h=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):a({type:"SIGN_IN"})},f=g=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",g):p(g)},p=g=>{s.submitForm(Fe(g))},v=g=>{const{name:S,value:w}=g.target;a({type:"CHANGE",data:{name:S,value:w}})};function m(g){const{name:S}=g.target;s.updateBlur({name:S})}return(g,S)=>{const w=Ye,_=ge,b=Re,A=we,I=Ve,C=Oe,E=Be;return o.renderSlot(g.$slots,"forceNewPasswordI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-forcenewpassword":"",onInput:v,onBlur:m,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("forceNewPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(w,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"force-new-password-form-fields",{},()=>[o.createVNode(Lo)])]),_:3}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(u).context.remoteError?(o.openBlock(),o.createBlock(b,{key:0,"data-ui-error":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(u).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:o.unref(u).matches("signUp.submit")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(u).matches("forceNewPassword.pending")?o.unref(l)+"\u2026":o.unref(c)),1)]),_:1},8,["disabled"]),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onHaveAccountClicked:h,onForceNewPasswordSubmit:f})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),zo=o.defineComponent({name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=Ie(Ce),{send:a,submitForm:i}=r(),{error:s,isPending:u}=o.toRefs(r()),c=o.computed(()=>R("Back to Sign In")),l=o.computed(()=>R("Reset your password")),d=o.computed(()=>R("Send Code")),h=m=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",m):f(m)},f=m=>{i(Fe(m))},p=m=>{const{name:g,value:S}=m.target;a({type:"CHANGE",data:{name:g,value:S}})},v=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):a({type:"SIGN_IN"})};return(m,g)=>{const S=Ye,w=Oe,_=Re,b=we,A=Ve,I=ge,C=Be;return o.renderSlot(m.$slots,"resetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(C,o.mergeProps(m.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:p,onSubmit:o.withModifiers(h,["prevent"])}),{default:o.withCtx(()=>[o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createVNode(Le,{route:"resetPassword"})]),_:1},8,["disabled"]),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(R)(o.unref(s))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onBackToSignInClicked:v,onResetPasswordSubmit:h})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Go=o.defineComponent({name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:n,send:r}=Te(),i=Ie(Ce)(),s=o.useAttrs(),u=o.computed(()=>be(n.value)),c=o.computed(()=>R("Resend Code")),l=o.computed(()=>R("Reset your Password")),d=o.computed(()=>R("Submit")),h=g=>{s!=null&&s.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",g):f(g)},f=g=>{i.submitForm(Fe(g))},p=()=>{r({type:"RESEND"})},v=g=>{const{name:S,value:w}=g.target;r({type:"CHANGE",data:{name:S,value:w}})};function m(g){const{name:S}=g.target;i.updateBlur({name:S})}return(g,S)=>{const w=Ye,_=ge,b=Re,A=we,I=Ve,C=Oe,E=Be;return o.renderSlot(g.$slots,"confirmResetPasswordSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(E,{"data-amplify-authenticator-confirmResetpassword":"",onInput:v,onBlurCapture:m,onSubmit:o.withModifiers(h,["prevent"])},{default:o.withCtx(()=>[o.createVNode(C,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"header",{},()=>[o.createVNode(w,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(_,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmResetPassword"})]),_:1}),o.createVNode(I,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var P,x;return[(x=(P=o.unref(u))==null?void 0:P.context)!=null&&x.remoteError?(o.openBlock(),o.createBlock(b,{key:0},{default:o.withCtx(()=>{var B,M;return[o.createTextVNode(o.toDisplayString(o.unref(R)((M=(B=o.unref(u))==null?void 0:B.context)==null?void 0:M.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:o.unref(u).matches("confirmResetPassword.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(A,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:o.withModifiers(p,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1},8,["onClick"]),o.renderSlot(g.$slots,"footer",{onConfirmResetPasswordSubmit:h,onLostYourCodeClicked:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Ho=o.defineComponent({name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Ie(Ce)(),a=o.useAttrs(),{state:i,send:s}=Te(),u=o.computed(()=>be(i.value)),c=u.value.context.unverifiedAttributes,l=o.computed(()=>R("Account recovery requires verified contact information")),d=o.computed(()=>R("Skip")),h=o.computed(()=>R("Verify")),f=o.computed(()=>R("Verify Contact")),p=S=>{const{name:w,value:_}=S.target;s({type:"CHANGE",data:{name:w,value:_}})},v=S=>{a!=null&&a.onVerifyUserSubmit?t("verifyUserSubmit",S):m(S)},m=S=>{r.submitForm(Fe(S))},g=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s("SKIP")};return(S,w)=>{const _=Ye,b=Zn,A=Qn,I=ds,C=ge,E=Re,P=we,x=Ve,B=Oe,M=Be;return o.renderSlot(S.$slots,"verifyUserSlotI",{},()=>[o.createVNode(C,null,{default:o.withCtx(()=>[o.createVNode(M,{onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(B,{disabled:o.unref(u).matches("verifyUser.pending"),class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(_,{class:"amplify-heading",level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(C,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(b,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1}),o.createVNode(C,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(c),(L,ce)=>(o.openBlock(),o.createBlock(b,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:L},{default:o.withCtx(()=>[o.createVNode(A,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:ce},null,8,["value"]),o.createVNode(I,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),o.createVNode(I,{class:"amplify-text amplify-radio__label"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(Yr)[ce].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),o.createVNode(x,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var L,ce;return[(ce=(L=o.unref(u))==null?void 0:L.context)!=null&&ce.remoteError?(o.openBlock(),o.createBlock(E,{key:0},{default:o.withCtx(()=>{var q;return[o.createTextVNode(o.toDisplayString(o.unref(R)((q=o.unref(u))==null?void 0:q.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(P,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("verifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["disabled"]),o.createVNode(P,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onSkipClicked:g,onVerifyUserSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Ko=o.defineComponent({name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=Ie(Ce)(),a=o.useAttrs(),{state:i,send:s}=Te(),u=o.computed(()=>be(i.value)),c=o.computed(()=>R("Account recovery requires verified contact information")),l=o.computed(()=>R("Skip")),d=o.computed(()=>R("Submit")),h=m=>{const{name:g,value:S}=m.target;s({type:"CHANGE",data:{name:g,value:S}})},f=m=>{a!=null&&a.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",m):p(m)},p=m=>{r.submitForm(Fe(m))},v=()=>{a!=null&&a.onSkipClicked?t("skipClicked"):s({type:"SKIP"})};return(m,g)=>{const S=Ye,w=ge,_=Re,b=we,A=Ve,I=Oe,C=Be;return o.renderSlot(m.$slots,"confirmVerifyUserSlotI",o.normalizeProps(o.guardReactiveProps(m.$attrs)),()=>[o.createVNode(w,o.normalizeProps(o.guardReactiveProps(m.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{onInput:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(I,{class:"amplify-flex amplify-authenticator__column",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"header",{},()=>[o.createVNode(S,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(c)),1)]),_:1})]),o.createVNode(w,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>[o.createVNode(Le,{route:"confirmVerifyUser"})]),_:1}),o.createVNode(A,{class:"amplify-flex amplify-authenticator__column"},{default:o.withCtx(()=>{var E,P;return[(P=(E=o.unref(u))==null?void 0:E.context)!=null&&P.remoteError?(o.openBlock(),o.createBlock(_,{key:0},{default:o.withCtx(()=>{var x;return[o.createTextVNode(o.toDisplayString(o.unref(R)((x=o.unref(u))==null?void 0:x.context.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:o.unref(u).matches("confirmVerifyUser.pending")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"]),o.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1},8,["onClick"]),o.renderSlot(m.$slots,"footer",{onSkipClicked:v,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),e2=["data-variation"],t2={"data-amplify-container":""},n2=["data-amplify-router-content"],r2={key:1,"data-amplify-router-content":""},Ts=o.defineComponent({name:"authenticator",props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const n=e,r=o.useAttrs(),{initialState:a,loginMechanisms:i,variation:s,services:u,signUpAttributes:c,socialProviders:l,hideSignUp:d,formFields:h}=o.toRefs(n),f=v0(),p=_0(f);let v,m;const{state:g,send:S}=us(p);Te(p);const w=o.ref(!1);m=p.subscribe(T=>{T.matches("setup")&&!w.value&&(S({type:"INIT",data:{initialState:a==null?void 0:a.value,loginMechanisms:i==null?void 0:i.value,socialProviders:l==null?void 0:l.value,signUpAttributes:c==null?void 0:c.value,services:u==null?void 0:u.value,formFields:h==null?void 0:h.value}}),w.value=!0)}).unsubscribe,o.onMounted(()=>{v=Bl(p)}),o.onUnmounted(()=>{v&&v(),m&&m()});const _=o.computed(()=>be(g.value)),b=o.ref(),A=o.ref(),I=o.ref(),C=o.ref(),E=o.ref(),P=o.ref(),x=o.ref(),B=o.ref(),M=o.ref(),L=o.ref(),ce=o.computed(()=>R("Create Account")),q=o.computed(()=>R("Sign In")),fe=T=>{var Se;r!=null&&r.onSignInSubmit?t("signInSubmit",T):(Se=b.value)==null||Se.submit(T)},Ct=T=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",T):I.value.submit(T)},me=T=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",T):x.value.submit(T)},Pe=T=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",T):B.value.submit(T)},rr=T=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",T):C.value.submit(T)},Zt=T=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",T):E.value.submit(T)},or=T=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",T):P.value.submit(T)},ar=T=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",T):A.value.submit()},Qt=T=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",T):M.value.submit(T)},ir=T=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",T):L.value.submit(T)},Xt=o.ref(null),en=o.ref();o.watch(()=>g.value.context,()=>{const{user:T,signOut:Se}=ci({send:S,state:g.value});Xt.value=T,en.value=Se});const At=o.computed(()=>{var T,Se;return((T=_.value)==null?void 0:T.matches("signIn"))||((Se=_.value)==null?void 0:Se.matches("signUp"))}),sr=o.computed(()=>{var T;return!(g.value.matches("authenticated")||g.value.matches("idle")||g.value.matches("setup")||g.value.matches("signOut")||((T=_.value)==null?void 0:T.matches("autoSignIn")))});return(T,Se)=>{var N,U,k,V,D,j,F,Z,oe,_e,tt;const tn=eC,y=rC;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.unref(sr)?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0},T.$attrs,{"data-amplify-authenticator":"","data-variation":o.unref(s)}),[o.createElementVNode("div",t2,[o.renderSlot(T.$slots,"header"),o.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":o.unref(At)?void 0:""},[o.unref(At)&&!o.unref(d)?(o.openBlock(),o.createBlock(y,{key:0},{default:o.withCtx(()=>{var te,ne;return[o.createVNode(tn,{active:(te=o.unref(_))==null?void 0:te.matches("signIn"),id:44472,label:o.unref(q),onClick:Se[0]||(Se[0]=nt=>o.unref(S)("SIGN_IN"))},null,8,["active","label"]),o.createVNode(tn,{active:(ne=o.unref(_))==null?void 0:ne.matches("signUp"),id:44471,label:o.unref(ce),onClick:Se[1]||(Se[1]=nt=>o.unref(S)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):o.createCommentVNode("",!0),o.unref(At)?(o.openBlock(),o.createElementBlock("div",r2,[(N=o.unref(_))!=null&&N.matches("signIn")?(o.openBlock(),o.createBlock(ko,{key:0,onSignInSubmit:fe,ref_key:"signInComponent",ref:b},{signInSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-in")]),form:o.withCtx(({info:te,onSignInSubmit:ne,onForgotPasswordClicked:nt,onInput:Et})=>[o.renderSlot(T.$slots,"sign-in-form",{info:te,onInput:Et,onSignInSubmit:ne,onForgotPasswordClicked:nt})]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-in-header")]),footer:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-in-footer")]),_:3},512)):o.createCommentVNode("",!0),((U=o.unref(_))==null?void 0:U.matches("signUp"))&&!o.unref(d)?(o.openBlock(),o.createBlock(Uo,{key:1,onSignUpSubmit:ar,ref_key:"signUpComponent",ref:A},{signUpSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-up")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-up-header")]),"signup-fields":o.withCtx(({info:te})=>[o.renderSlot(T.$slots,"sign-up-fields",{info:te})]),footer:o.withCtx(()=>[o.renderSlot(T.$slots,"sign-up-footer")]),_:3},512)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(k=o.unref(_))!=null&&k.matches("confirmSignUp")?(o.openBlock(),o.createBlock(Oo,{key:2,onConfirmSignUpSubmit:Ct,ref_key:"confirmSignUpComponent",ref:I},{confirmSignUpSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-up")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-up-header")]),footer:o.withCtx(({onConfirmSignUpSubmit:te,onLostCodeClicked:ne})=>[o.renderSlot(T.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:te,onLostCodeClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(V=o.unref(_))!=null&&V.matches("resetPassword")?(o.openBlock(),o.createBlock(zo,{key:3,onResetPasswordSubmit:me,ref_key:"resetPasswordComponent",ref:x},{resetPasswordSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"reset-password")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"reset-password-header")]),footer:o.withCtx(({onResetPasswordSubmit:te,onBackToSignInClicked:ne})=>[o.renderSlot(T.$slots,"reset-password-footer",{onResetPasswordSubmit:te,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(D=o.unref(_))!=null&&D.matches("confirmResetPassword")?(o.openBlock(),o.createBlock(Go,{key:4,onConfirmResetPasswordSubmit:Pe,ref_key:"confirmResetPasswordComponent",ref:B},{confirmResetPasswordSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-reset-password")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-reset-password-header")]),footer:o.withCtx(({onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ne})=>[o.renderSlot(T.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:te,onLostYourCodeClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(j=o.unref(_))!=null&&j.matches("confirmSignIn")?(o.openBlock(),o.createBlock(Ro,{key:5,onConfirmSignInSubmit:rr,ref_key:"confirmSignInComponent",ref:C},{confirmSignInSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-in")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-sign-in-header")]),footer:o.withCtx(({onConfirmSignInSubmit:te,onBackToSignInClicked:ne})=>[o.renderSlot(T.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:te,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(F=o.unref(_))!=null&&F.matches("setupTOTP")?(o.openBlock(),o.createBlock(XC,{key:6,onConfirmSetupTotpSubmit:Zt,ref_key:"confirmSetupTOTPComponent",ref:E},{confirmSetupTOTPI:o.withCtx(()=>[o.renderSlot(T.$slots,"setup-totp")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"setup-totp-header")]),footer:o.withCtx(({onSetupTOTPSubmit:te,onBackToSignInClicked:ne})=>[o.renderSlot(T.$slots,"setup-totp-footer",{onSetupTOTPSubmit:te,onBackToSignInClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(Z=o.unref(_))!=null&&Z.matches("forceNewPassword")?(o.openBlock(),o.createBlock(jo,{key:7,onForceNewPasswordSubmit:or,ref_key:"forceNewPasswordComponent",ref:P},{forceNewPasswordI:o.withCtx(()=>[o.renderSlot(T.$slots,"force-new-password")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"force-new-password-header")]),"force-new-password-form-fields":o.withCtx(()=>[o.renderSlot(T.$slots,"force-new-password-form-fields")]),footer:o.withCtx(({onHaveAccountClicked:te,onForceNewPasswordSubmit:ne})=>[o.renderSlot(T.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:ne,onBackToSignInClicked:te})]),_:3},512)):o.createCommentVNode("",!0),(oe=o.unref(_))!=null&&oe.matches("verifyUser")?(o.openBlock(),o.createBlock(Ho,{key:8,onVerifyUserSubmit:Qt,ref_key:"verifyUserComponent",ref:M},{verifyUserSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"verify-user")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"verify-user-header")]),footer:o.withCtx(({onVerifyUserSubmit:te,onSkipClicked:ne})=>[o.renderSlot(T.$slots,"verify-user-footer",{onVerifyUserSubmit:te,onSkipClicked:ne})]),_:3},512)):o.createCommentVNode("",!0),(_e=o.unref(_))!=null&&_e.matches("confirmVerifyUser")?(o.openBlock(),o.createBlock(Ko,{key:9,onConfirmVerifyUserSubmit:ir,ref_key:"confirmVerifyUserComponent",ref:L},{confirmVerifyUserSlotI:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-verify-user")]),header:o.withCtx(()=>[o.renderSlot(T.$slots,"confirm-verify-user-header")]),footer:o.withCtx(({onConfirmVerifyUserSubmit:te,onSkipClicked:ne})=>[o.renderSlot(T.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:te,onSkipClicked:ne})]),_:3},512)):o.createCommentVNode("",!0)],8,n2),o.renderSlot(T.$slots,"footer")])],16,e2)):o.createCommentVNode("",!0),(tt=o.unref(g))!=null&&tt.matches("authenticated")?o.renderSlot(T.$slots,"default",{key:1,user:Xt.value,state:o.unref(g),signOut:en.value,send:o.unref(S)}):o.createCommentVNode("",!0)],64)}}}),Ps=o.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ns=o.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:n,id:r,autocomplete:a,placeholder:i,required:s,name:u,type:c}=o.toRefs(t);return(l,d)=>{const h=Zn,f=Qn,p=ge;return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(h,{class:o.normalizeClass(["amplify-label",{"amplify-visually-hidden":e.hideLabel}]),for:o.unref(r)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)),1)]),_:1},8,["class","for"]),o.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(f,{class:"amplify-input amplify-field-group__control",id:o.unref(r),"aria-invalid":"false",autocomplete:o.unref(a),placeholder:o.unref(i),required:o.unref(s),name:o.unref(u),disabled:e.disabled,type:o.unref(c)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),o2={class:"amplify-flex amplify-field amplify-checkboxfield"},a2={class:"amplify-flex amplify-checkbox"},i2={class:"amplify-visually-hidden"},s2=["data-error","data-checked"],u2=["data-checked"],c2=o.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),l2=[c2],d2=o.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),f2={key:0,class:"amplify-text amplify-field__error-message"},ks=o.defineComponent({name:"amplify-check-box",props:{errorMessage:{default:""}},setup(e){const t=e,n=o.ref(!1),{errorMessage:r}=o.toRefs(t);return(a,i)=>(o.openBlock(),o.createElementBlock("div",o2,[o.createElementVNode("label",a2,[o.createElementVNode("span",i2,[o.createElementVNode("input",{onClick:i[0]||(i[0]=s=>n.value=!n.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),o.createElementVNode("span",{class:o.normalizeClass(["amplify-flex amplify-checkbox__button",{"amplify-checkbox__button--error":!n.value}]),"aria-hidden":"true","data-focus":"false","data-error":!n.value,"data-checked":n.value},[(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:o.normalizeClass(["amplify-icon amplify-checkbox__icon",{"amplify-checkbox__icon--checked":n.value}]),viewBox:"0 0 24 24",fill:"currentColor","data-checked":n.value},l2,10,u2))],10,s2),d2]),n.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",f2,o.toDisplayString(o.unref(r)),1))]))}});var p2={install:e=>{e.component("SignIn",ko),e.component("SignUp",Uo),e.component("FederatedSignIn",Jn),e.component("Authenticator",Ts),e.component("RenderInfo",Ps),e.component("PasswordControl",No),e.component("ForceNewPassword",jo),e.component("ResetPassword",zo),e.component("ConfirmResetPassword",Go),e.component("ConfirmSignUp",Oo),e.component("ConfirmSignIn",Ro),e.component("VerifyUser",Ho),e.component("ConfirmVerifyUser",Ko),e.component("AmplifyTextField",Ns),e.component("AmplifyCheckBox",ks),e.component("AmplifyButton",we),e.component("BaseFormField",ls),e.component("BaseFormFields",Le),e.component("AuthenticatorSignUpFormFields",xo),e.component("AuthenticatorForceNewPasswordFormFields",Lo)}};exports.AmplifyButton=we;exports.AmplifyCheckBox=ks;exports.AmplifyTextField=Ns;exports.Authenticator=Ts;exports.AuthenticatorForceNewPasswordFormFields=Lo;exports.AuthenticatorSignUpFormFields=xo;exports.ConfirmResetPassword=Go;exports.ConfirmSignIn=Ro;exports.ConfirmSignUp=Oo;exports.ConfirmVerifyUser=Ko;exports.FederatedSignIn=Jn;exports.ForceNewPassword=jo;exports.PasswordControl=No;exports.RenderInfo=Ps;exports.ResetPassword=zo;exports.SignIn=ko;exports.SignUp=Uo;exports.VerifyUser=Ho;exports.default=p2;exports.translations=Ul;exports.useAuthenticator=Ce;