@aws-amplify/ui-vue 2.3.9 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var xs=Object.defineProperty,Us=Object.defineProperties;var Os=Object.getOwnPropertyDescriptors;var Ko=Object.getOwnPropertySymbols;var Rs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var qo=(e,t,n)=>t in e?xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t)=>{for(var n in t||(t={}))Rs.call(t,n)&&qo(e,n,t[n]);if(Ko)for(var n of Ko(t))Vs.call(t,n)&&qo(e,n,t[n]);return e},or=(e,t)=>Us(e,Os(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),re=require("aws-amplify");const Re=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)])}}),Se=o.defineComponent({props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null},setup(e){const{type:t,fullWidth:n,size:r,variation:i,fontWeight:a}=e;return(s,u)=>o.renderSlot(s.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(s.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:"amplify-button",type:t,style:{fontWeight:a},"data-fullwidth":n,"data-size":r,"data-fontWeight":a,"data-variation":i},s.$attrs,{"data-amplify-button":""}),[o.renderSlot(s.$slots,"default")],16)])}}),Bs={key:0,class:"amplify-flex amplify-alert","data-variation":"error",style:{"align-items":"center","justify-content":"space-between"},role:"alert"},Ds={class:"amplify-flex",style:{"align-items":"center"}},Ms=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),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:"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),Ve={setup(e){const t=o.ref(!0);function n(){t.value=!1}return(r,i)=>{const a=Se;return t.value?(o.openBlock(),o.createElementBlock("div",Bs,[o.createElementVNode("div",Ds,[Ms,o.createElementVNode("div",null,[o.renderSlot(r.$slots,"default")])]),o.createVNode(a,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"link",type:"button",onClick:n},{default:o.withCtx(()=>[Fs]),_:1})])):o.createCommentVNode("",!0)}}};var Pn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const Ls={};function js(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ge=Pn(Ls,[["render",js]]);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)])}}),De=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 zs(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function $e(e){let t=0,n,r;const i=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...a))),zs(i),n)}var _e=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},zr=function(e){var t;return(t=_e(e))===null||t===void 0?void 0:t.context},Zt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Gs=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,Xi=Gs,Hs=Xi,Ks=typeof self=="object"&&self&&self.Object===Object&&self,qs=Hs||Ks||Function("return this")(),Me=qs,Ws=Me,Ys=Ws.Symbol,Ot=Ys,Wo=Ot,ea=Object.prototype,Js=ea.hasOwnProperty,Zs=ea.toString,At=Wo?Wo.toStringTag:void 0;function Qs(e){var t=Js.call(e,At),n=e[At];try{e[At]=void 0;var r=!0}catch{}var i=Zs.call(e);return r&&(t?e[At]=n:delete e[At]),i}var Xs=Qs,eu=Object.prototype,tu=eu.toString;function nu(e){return tu.call(e)}var ru=nu,Yo=Ot,ou=Xs,iu=ru,au="[object Null]",su="[object Undefined]",Jo=Yo?Yo.toStringTag:void 0;function uu(e){return e==null?e===void 0?su:au:Jo&&Jo in Object(e)?ou(e):iu(e)}var pt=uu;function cu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fe=cu,lu=pt,du=Fe,fu="[object AsyncFunction]",pu="[object Function]",hu="[object GeneratorFunction]",mu="[object Proxy]";function gu(e){if(!du(e))return!1;var t=lu(e);return t==pu||t==hu||t==fu||t==mu}var Gr=gu,vu=9007199254740991;function yu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vu}var Hr=yu,wu=Gr,Su=Hr;function bu(e){return e!=null&&Su(e.length)&&!wu(e)}var Rt=bu,_u=Array.isArray,ke=_u;function Cu(e){return e!=null&&typeof e=="object"}var Ke=Cu,Au=pt,Eu=Ke,$u="[object Symbol]";function Iu(e){return typeof e=="symbol"||Eu(e)&&Au(e)==$u}var Kr=Iu;function Tu(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ta=Tu;function Pu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nu=Pu,ku=pt,xu=Ke,Uu="[object Arguments]";function Ou(e){return xu(e)&&ku(e)==Uu}var Ru=Ou,Zo=Ru,Vu=Ke,na=Object.prototype,Bu=na.hasOwnProperty,Du=na.propertyIsEnumerable,Mu=Zo(function(){return arguments}())?Zo:function(e){return Vu(e)&&Bu.call(e,"callee")&&!Du.call(e,"callee")},Nn=Mu,tt={exports:{}};function Fu(){return!1}var Lu=Fu;(function(e,t){var n=Me,r=Lu,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||r;e.exports=d})(tt,tt.exports);var ju=9007199254740991,zu=/^(?:0|[1-9]\d*)$/;function Gu(e,t){var n=typeof e;return t=t==null?ju:t,!!t&&(n=="number"||n!="symbol"&&zu.test(e))&&e>-1&&e%1==0&&e<t}var kn=Gu,Hu=pt,Ku=Hr,qu=Ke,Wu="[object Arguments]",Yu="[object Array]",Ju="[object Boolean]",Zu="[object Date]",Qu="[object Error]",Xu="[object Function]",ec="[object Map]",tc="[object Number]",nc="[object Object]",rc="[object RegExp]",oc="[object Set]",ic="[object String]",ac="[object WeakMap]",sc="[object ArrayBuffer]",uc="[object DataView]",cc="[object Float32Array]",lc="[object Float64Array]",dc="[object Int8Array]",fc="[object Int16Array]",pc="[object Int32Array]",hc="[object Uint8Array]",mc="[object Uint8ClampedArray]",gc="[object Uint16Array]",vc="[object Uint32Array]",se={};se[cc]=se[lc]=se[dc]=se[fc]=se[pc]=se[hc]=se[mc]=se[gc]=se[vc]=!0;se[Wu]=se[Yu]=se[sc]=se[Ju]=se[uc]=se[Zu]=se[Qu]=se[Xu]=se[ec]=se[tc]=se[nc]=se[rc]=se[oc]=se[ic]=se[ac]=!1;function yc(e){return qu(e)&&Ku(e.length)&&!!se[Hu(e)]}var wc=yc;function Sc(e){return function(t){return e(t)}}var qr=Sc,kt={exports:{}};(function(e,t){var n=Xi,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(kt,kt.exports);var bc=wc,_c=qr,Qo=kt.exports,Xo=Qo&&Qo.isTypedArray,Cc=Xo?_c(Xo):bc,xn=Cc,Ac=Nu,Ec=Nn,$c=ke,Ic=tt.exports,Tc=kn,Pc=xn,Nc=Object.prototype,kc=Nc.hasOwnProperty;function xc(e,t){var n=$c(e),r=!n&&Ec(e),i=!n&&!r&&Ic(e),a=!n&&!r&&!i&&Pc(e),s=n||r||i||a,u=s?Ac(e.length,String):[],c=u.length;for(var d in e)(t||kc.call(e,d))&&!(s&&(d=="length"||i&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Tc(d,c)))&&u.push(d);return u}var ra=xc,Uc=Object.prototype;function Oc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Uc;return e===n}var Un=Oc;function Rc(e,t){return function(n){return e(t(n))}}var oa=Rc,Vc=oa,Bc=Vc(Object.keys,Object),Dc=Bc,Mc=Un,Fc=Dc,Lc=Object.prototype,jc=Lc.hasOwnProperty;function zc(e){if(!Mc(e))return Fc(e);var t=[];for(var n in Object(e))jc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ia=zc,Gc=ra,Hc=ia,Kc=Rt;function qc(e){return Kc(e)?Gc(e):Hc(e)}var On=qc,He,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"})(He||(He={})),function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(gr||(gr={}));/*! *****************************************************************************
1
+ "use strict";var xs=Object.defineProperty,Us=Object.defineProperties;var Os=Object.getOwnPropertyDescriptors;var Ko=Object.getOwnPropertySymbols;var Rs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var qo=(e,t,n)=>t in e?xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t)=>{for(var n in t||(t={}))Rs.call(t,n)&&qo(e,n,t[n]);if(Ko)for(var n of Ko(t))Vs.call(t,n)&&qo(e,n,t[n]);return e},or=(e,t)=>Us(e,Os(t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=require("vue"),re=require("aws-amplify");const Re=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)])}}),Se=o.defineComponent({props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null},setup(e){const{type:t,fullWidth:n,size:r,variation:i,fontWeight:a}=e;return(s,u)=>o.renderSlot(s.$slots,"buttont",o.normalizeProps(o.guardReactiveProps(s.$attrs)),()=>[o.createElementVNode("button",o.mergeProps({class:"amplify-button",type:t,style:{fontWeight:a},"data-fullwidth":n,"data-size":r,"data-fontWeight":a,"data-variation":i},s.$attrs,{"data-amplify-button":""}),[o.renderSlot(s.$slots,"default")],16)])}}),Bs={key:0,class:"amplify-flex amplify-alert","data-variation":"error",style:{"align-items":"center","justify-content":"space-between"},role:"alert"},Ds={class:"amplify-flex",style:{"align-items":"center"}},Ms=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),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:"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),Ve={setup(e){const t=o.ref(!0);function n(){t.value=!1}return(r,i)=>{const a=Se;return t.value?(o.openBlock(),o.createElementBlock("div",Bs,[o.createElementVNode("div",Ds,[Ms,o.createElementVNode("div",null,[o.renderSlot(r.$slots,"default")])]),o.createVNode(a,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"link",type:"button",onClick:n},{default:o.withCtx(()=>[Fs]),_:1})])):o.createCommentVNode("",!0)}}};var Pn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const Ls={};function js(e,t){return o.openBlock(),o.createElementBlock("div",null,[o.renderSlot(e.$slots,"default")])}var ge=Pn(Ls,[["render",js]]);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)])}}),De=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 zs(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function $e(e){let t=0,n,r;const i=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,n||(r=o.effectScope(!0),n=r.run(()=>e(...a))),zs(i),n)}var _e=function(e){var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},zr=function(e){var t;return(t=_e(e))===null||t===void 0?void 0:t.context},Zt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Gs=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,Xi=Gs,Hs=Xi,Ks=typeof self=="object"&&self&&self.Object===Object&&self,qs=Hs||Ks||Function("return this")(),Me=qs,Ws=Me,Ys=Ws.Symbol,Ot=Ys,Wo=Ot,ea=Object.prototype,Js=ea.hasOwnProperty,Zs=ea.toString,At=Wo?Wo.toStringTag:void 0;function Qs(e){var t=Js.call(e,At),n=e[At];try{e[At]=void 0;var r=!0}catch{}var i=Zs.call(e);return r&&(t?e[At]=n:delete e[At]),i}var Xs=Qs,eu=Object.prototype,tu=eu.toString;function nu(e){return tu.call(e)}var ru=nu,Yo=Ot,ou=Xs,iu=ru,au="[object Null]",su="[object Undefined]",Jo=Yo?Yo.toStringTag:void 0;function uu(e){return e==null?e===void 0?su:au:Jo&&Jo in Object(e)?ou(e):iu(e)}var pt=uu;function cu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fe=cu,lu=pt,du=Fe,fu="[object AsyncFunction]",pu="[object Function]",hu="[object GeneratorFunction]",mu="[object Proxy]";function gu(e){if(!du(e))return!1;var t=lu(e);return t==pu||t==hu||t==fu||t==mu}var Gr=gu,vu=9007199254740991;function yu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vu}var Hr=yu,wu=Gr,Su=Hr;function bu(e){return e!=null&&Su(e.length)&&!wu(e)}var Rt=bu,_u=Array.isArray,xe=_u;function Cu(e){return e!=null&&typeof e=="object"}var Ke=Cu,Au=pt,Eu=Ke,$u="[object Symbol]";function Iu(e){return typeof e=="symbol"||Eu(e)&&Au(e)==$u}var Kr=Iu;function Tu(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ta=Tu;function Pu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nu=Pu,ku=pt,xu=Ke,Uu="[object Arguments]";function Ou(e){return xu(e)&&ku(e)==Uu}var Ru=Ou,Zo=Ru,Vu=Ke,na=Object.prototype,Bu=na.hasOwnProperty,Du=na.propertyIsEnumerable,Mu=Zo(function(){return arguments}())?Zo:function(e){return Vu(e)&&Bu.call(e,"callee")&&!Du.call(e,"callee")},Nn=Mu,tt={exports:{}};function Fu(){return!1}var Lu=Fu;(function(e,t){var n=Me,r=Lu,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,u=s?n.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||r;e.exports=d})(tt,tt.exports);var ju=9007199254740991,zu=/^(?:0|[1-9]\d*)$/;function Gu(e,t){var n=typeof e;return t=t==null?ju:t,!!t&&(n=="number"||n!="symbol"&&zu.test(e))&&e>-1&&e%1==0&&e<t}var kn=Gu,Hu=pt,Ku=Hr,qu=Ke,Wu="[object Arguments]",Yu="[object Array]",Ju="[object Boolean]",Zu="[object Date]",Qu="[object Error]",Xu="[object Function]",ec="[object Map]",tc="[object Number]",nc="[object Object]",rc="[object RegExp]",oc="[object Set]",ic="[object String]",ac="[object WeakMap]",sc="[object ArrayBuffer]",uc="[object DataView]",cc="[object Float32Array]",lc="[object Float64Array]",dc="[object Int8Array]",fc="[object Int16Array]",pc="[object Int32Array]",hc="[object Uint8Array]",mc="[object Uint8ClampedArray]",gc="[object Uint16Array]",vc="[object Uint32Array]",se={};se[cc]=se[lc]=se[dc]=se[fc]=se[pc]=se[hc]=se[mc]=se[gc]=se[vc]=!0;se[Wu]=se[Yu]=se[sc]=se[Ju]=se[uc]=se[Zu]=se[Qu]=se[Xu]=se[ec]=se[tc]=se[nc]=se[rc]=se[oc]=se[ic]=se[ac]=!1;function yc(e){return qu(e)&&Ku(e.length)&&!!se[Hu(e)]}var wc=yc;function Sc(e){return function(t){return e(t)}}var qr=Sc,kt={exports:{}};(function(e,t){var n=Xi,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,u=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(kt,kt.exports);var bc=wc,_c=qr,Qo=kt.exports,Xo=Qo&&Qo.isTypedArray,Cc=Xo?_c(Xo):bc,xn=Cc,Ac=Nu,Ec=Nn,$c=xe,Ic=tt.exports,Tc=kn,Pc=xn,Nc=Object.prototype,kc=Nc.hasOwnProperty;function xc(e,t){var n=$c(e),r=!n&&Ec(e),i=!n&&!r&&Ic(e),a=!n&&!r&&!i&&Pc(e),s=n||r||i||a,u=s?Ac(e.length,String):[],c=u.length;for(var d in e)(t||kc.call(e,d))&&!(s&&(d=="length"||i&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Tc(d,c)))&&u.push(d);return u}var ra=xc,Uc=Object.prototype;function Oc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Uc;return e===n}var Un=Oc;function Rc(e,t){return function(n){return e(t(n))}}var oa=Rc,Vc=oa,Bc=Vc(Object.keys,Object),Dc=Bc,Mc=Un,Fc=Dc,Lc=Object.prototype,jc=Lc.hasOwnProperty;function zc(e){if(!Mc(e))return Fc(e);var t=[];for(var n in Object(e))jc.call(e,n)&&n!="constructor"&&t.push(n);return t}var ia=zc,Gc=ra,Hc=ia,Kc=Rt;function qc(e){return Kc(e)?Gc(e):Hc(e)}var On=qc,He,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"})(He||(He={})),function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(gr||(gr={}));/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */var R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},R.apply(this,arguments)};function aa(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function q(e,t,n,r){return new(n||(n=Promise))(function(i,a){function s(d){try{c(r.next(d))}catch(l){a(l)}}function u(d){try{c(r.throw(d))}catch(l){a(l)}}function c(d){var l;d.done?i(d.value):(l=d.value,l instanceof n?l:new n(function(h){h(l)})).then(s,u)}c((r=r.apply(e,t||[])).next())})}function W(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(d){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||l[0]!==6&&l[0]!==2)){s=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(l[0]===6&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(h){l=[6,h],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([c,d])}}}function Oe(e,t,n){if(n||arguments.length===2)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var Wc=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],Yc=["username","email","phone_number"],Jc=Oe(Oe(Oe([],Yc,!0),Wc,!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]},Zc=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")}},Qc=function(e){var t,n,r=(t=e.context)===null||t===void 0?void 0:t.user,i=_e(e),a=zr(e),s=a==null?void 0:a.remoteError,u=R({},a==null?void 0:a.validationError),c=a==null?void 0:a.codeDeliveryDetails;return{error:s,hasValidationErrors:Object.keys(u).length>0,isPending:e.hasTag("pending")||((n=_e(e))===null||n===void 0?void 0:n.hasTag("pending")),route: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(i==null?void 0:i.matches("confirmSignUp")):return"confirmSignUp";case(i==null?void 0:i.matches("confirmSignIn")):return"confirmSignIn";case(i==null?void 0:i.matches("setupTOTP")):return"setupTOTP";case(i==null?void 0:i.matches("signIn")):return"signIn";case(i==null?void 0:i.matches("signUp")):return"signUp";case(i==null?void 0:i.matches("forceNewPassword")):return"forceNewPassword";case(i==null?void 0:i.matches("resetPassword")):return"resetPassword";case(i==null?void 0:i.matches("confirmResetPassword")):return"confirmResetPassword";case(i==null?void 0:i.matches("verifyUser")):return"verifyUser";case(i==null?void 0:i.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),user:r,validationErrors:u,codeDeliveryDetails:c}},sa=function(e){var t=e.send,n=e.state,r=Zc(t),i=Qc(n);return R(R({},r),i)},Xc=["+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"],el={"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"},tl={"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"},nl={"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"},rl={"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"},ol={"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"},al={"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"},sl={"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"},ul={"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"},cl={"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"},ll={"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"},dl={"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"},fl={"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"},pl={"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"},hl={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"},ml=R({},el),gl=R({},tl),vl=R({},nl),yl=R({},rl),wl=R({},ol),Sl=R({},il),bl=R({},al),_l=R({},sl),Cl=R({},ul),Al=R({},cl),El=R({},ll),$l=R({},dl),Il=R({},fl),Tl=R({},pl),Pl=R({},hl);R({},Pl);function O(e){return re.I18n.get(e)}function Nl(e){return re.I18n.get(e)!==e}var kl={de:ml,en:gl,es:vl,fr:yl,id:Il,it:wl,ja:Sl,kr:bl,nl:_l,pl:Cl,pt:Al,zh:El,sv:$l,tr:Tl},Wr={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:Xc,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}},Le=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ei=function(e){return Jc.includes(e)},xl=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Ul=function(e){return re.Hub.listen("auth",function(t){t.payload.event==="signOut"&&e("SIGN_OUT")})};function Ol(){this.__data__=[],this.size=0}var Rl=Ol;function Vl(e,t){return e===t||e!==e&&t!==t}var Vt=Vl,Bl=Vt;function Dl(e,t){for(var n=e.length;n--;)if(Bl(e[n][0],t))return n;return-1}var Rn=Dl,Ml=Rn,Fl=Array.prototype,Ll=Fl.splice;function jl(e){var t=this.__data__,n=Ml(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ll.call(t,n,1),--this.size,!0}var zl=jl,Gl=Rn;function Hl(e){var t=this.__data__,n=Gl(t,e);return n<0?void 0:t[n][1]}var Kl=Hl,ql=Rn;function Wl(e){return ql(this.__data__,e)>-1}var Yl=Wl,Jl=Rn;function Zl(e,t){var n=this.__data__,r=Jl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Ql=Zl,Xl=Rl,ed=zl,td=Kl,nd=Yl,rd=Ql;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=Xl;ht.prototype.delete=ed;ht.prototype.get=td;ht.prototype.has=nd;ht.prototype.set=rd;var Vn=ht,od=Vn;function id(){this.__data__=new od,this.size=0}var ad=id;function sd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var ud=sd;function cd(e){return this.__data__.get(e)}var ld=cd;function dd(e){return this.__data__.has(e)}var fd=dd,pd=Me,hd=pd["__core-js_shared__"],md=hd,ir=md,ti=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gd(e){return!!ti&&ti in e}var vd=gd,yd=Function.prototype,wd=yd.toString;function Sd(e){if(e!=null){try{return wd.call(e)}catch{}try{return e+""}catch{}}return""}var ua=Sd,bd=Gr,_d=vd,Cd=Fe,Ad=ua,Ed=/[\\^$.*+?()[\]{}|]/g,$d=/^\[object .+?Constructor\]$/,Id=Function.prototype,Td=Object.prototype,Pd=Id.toString,Nd=Td.hasOwnProperty,kd=RegExp("^"+Pd.call(Nd).replace(Ed,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xd(e){if(!Cd(e)||_d(e))return!1;var t=bd(e)?kd:$d;return t.test(Ad(e))}var Ud=xd;function Od(e,t){return e==null?void 0:e[t]}var Rd=Od,Vd=Ud,Bd=Rd;function Dd(e,t){var n=Bd(e,t);return Vd(n)?n:void 0}var nt=Dd,Md=nt,Fd=Me,Ld=Md(Fd,"Map"),Yr=Ld,jd=nt,zd=jd(Object,"create"),Bn=zd,ni=Bn;function Gd(){this.__data__=ni?ni(null):{},this.size=0}var Hd=Gd;function Kd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qd=Kd,Wd=Bn,Yd="__lodash_hash_undefined__",Jd=Object.prototype,Zd=Jd.hasOwnProperty;function Qd(e){var t=this.__data__;if(Wd){var n=t[e];return n===Yd?void 0:n}return Zd.call(t,e)?t[e]:void 0}var Xd=Qd,ef=Bn,tf=Object.prototype,nf=tf.hasOwnProperty;function rf(e){var t=this.__data__;return ef?t[e]!==void 0:nf.call(t,e)}var of=rf,af=Bn,sf="__lodash_hash_undefined__";function uf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=af&&t===void 0?sf:t,this}var cf=uf,lf=Hd,df=qd,ff=Xd,pf=of,hf=cf;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=lf;mt.prototype.delete=df;mt.prototype.get=ff;mt.prototype.has=pf;mt.prototype.set=hf;var mf=mt,ri=mf,gf=Vn,vf=Yr;function yf(){this.size=0,this.__data__={hash:new ri,map:new(vf||gf),string:new ri}}var wf=yf;function Sf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bf=Sf,_f=bf;function Cf(e,t){var n=e.__data__;return _f(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Dn=Cf,Af=Dn;function Ef(e){var t=Af(this,e).delete(e);return this.size-=t?1:0,t}var $f=Ef,If=Dn;function Tf(e){return If(this,e).get(e)}var Pf=Tf,Nf=Dn;function kf(e){return Nf(this,e).has(e)}var xf=kf,Uf=Dn;function Of(e,t){var n=Uf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Rf=Of,Vf=wf,Bf=$f,Df=Pf,Mf=xf,Ff=Rf;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=Vf;gt.prototype.delete=Bf;gt.prototype.get=Df;gt.prototype.has=Mf;gt.prototype.set=Ff;var Jr=gt,Lf=Vn,jf=Yr,zf=Jr,Gf=200;function Hf(e,t){var n=this.__data__;if(n instanceof Lf){var r=n.__data__;if(!jf||r.length<Gf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zf(r)}return n.set(e,t),this.size=n.size,this}var Kf=Hf,qf=Vn,Wf=ad,Yf=ud,Jf=ld,Zf=fd,Qf=Kf;function vt(e){var t=this.__data__=new qf(e);this.size=t.size}vt.prototype.clear=Wf;vt.prototype.delete=Yf;vt.prototype.get=Jf;vt.prototype.has=Zf;vt.prototype.set=Qf;var Mn=vt;function Xf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ep=Xf,tp=nt,np=function(){try{var e=tp(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ca=np,oi=ca;function rp(e,t,n){t=="__proto__"&&oi?oi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Zr=rp,op=Zr,ip=Vt,ap=Object.prototype,sp=ap.hasOwnProperty;function up(e,t,n){var r=e[t];(!(sp.call(e,t)&&ip(r,n))||n===void 0&&!(t in e))&&op(e,t,n)}var Qr=up,cp=Qr,lp=Zr;function dp(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),i?lp(n,u,c):cp(n,u,c)}return n}var Bt=dp,fp=Bt,pp=On;function hp(e,t){return e&&fp(t,pp(t),e)}var mp=hp;function gp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vp=gp,yp=Fe,wp=Un,Sp=vp,bp=Object.prototype,_p=bp.hasOwnProperty;function Cp(e){if(!yp(e))return Sp(e);var t=wp(e),n=[];for(var r in e)r=="constructor"&&(t||!_p.call(e,r))||n.push(r);return n}var Ap=Cp,Ep=ra,$p=Ap,Ip=Rt;function Tp(e){return Ip(e)?Ep(e,!0):$p(e)}var Dt=Tp,Pp=Bt,Np=Dt;function kp(e,t){return e&&Pp(t,Np(t),e)}var xp=kp,vn={exports:{}};(function(e,t){var n=Me,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(d,l){if(l)return d.slice();var h=d.length,f=u?u(h):new d.constructor(h);return d.copy(f),f}e.exports=c})(vn,vn.exports);function Up(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var la=Up;function Op(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}var Rp=Op;function Vp(){return[]}var da=Vp,Bp=Rp,Dp=da,Mp=Object.prototype,Fp=Mp.propertyIsEnumerable,ii=Object.getOwnPropertySymbols,Lp=ii?function(e){return e==null?[]:(e=Object(e),Bp(ii(e),function(t){return Fp.call(e,t)}))}:Dp,Xr=Lp,jp=Bt,zp=Xr;function Gp(e,t){return jp(e,zp(e),t)}var Hp=Gp;function Kp(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var fa=Kp,qp=oa,Wp=qp(Object.getPrototypeOf,Object),eo=Wp,Yp=fa,Jp=eo,Zp=Xr,Qp=da,Xp=Object.getOwnPropertySymbols,eh=Xp?function(e){for(var t=[];e;)Yp(t,Zp(e)),e=Jp(e);return t}:Qp,pa=eh,th=Bt,nh=pa;function rh(e,t){return th(e,nh(e),t)}var oh=rh,ih=fa,ah=ke;function sh(e,t,n){var r=t(e);return ah(e)?r:ih(r,n(e))}var ha=sh,uh=ha,ch=Xr,lh=On;function dh(e){return uh(e,lh,ch)}var ma=dh,fh=ha,ph=pa,hh=Dt;function mh(e){return fh(e,hh,ph)}var ga=mh,gh=nt,vh=Me,yh=gh(vh,"DataView"),wh=yh,Sh=nt,bh=Me,_h=Sh(bh,"Promise"),Ch=_h,Ah=nt,Eh=Me,$h=Ah(Eh,"Set"),Ih=$h,Th=nt,Ph=Me,Nh=Th(Ph,"WeakMap"),kh=Nh,yr=wh,wr=Yr,Sr=Ch,br=Ih,_r=kh,va=pt,yt=ua,ai="[object Map]",xh="[object Object]",si="[object Promise]",ui="[object Set]",ci="[object WeakMap]",li="[object DataView]",Uh=yt(yr),Oh=yt(wr),Rh=yt(Sr),Vh=yt(br),Bh=yt(_r),et=va;(yr&&et(new yr(new ArrayBuffer(1)))!=li||wr&&et(new wr)!=ai||Sr&&et(Sr.resolve())!=si||br&&et(new br)!=ui||_r&&et(new _r)!=ci)&&(et=function(e){var t=va(e),n=t==xh?e.constructor:void 0,r=n?yt(n):"";if(r)switch(r){case Uh:return li;case Oh:return ai;case Rh:return si;case Vh:return ui;case Bh:return ci}return t});var Mt=et,Dh=Object.prototype,Mh=Dh.hasOwnProperty;function Fh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Mh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Lh=Fh,jh=Me,zh=jh.Uint8Array,ya=zh,di=ya;function Gh(e){var t=new e.constructor(e.byteLength);return new di(t).set(new di(e)),t}var to=Gh,Hh=to;function Kh(e,t){var n=t?Hh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qh=Kh,Wh=/\w*$/;function Yh(e){var t=new e.constructor(e.source,Wh.exec(e));return t.lastIndex=e.lastIndex,t}var Jh=Yh,fi=Ot,pi=fi?fi.prototype:void 0,hi=pi?pi.valueOf:void 0;function Zh(e){return hi?Object(hi.call(e)):{}}var Qh=Zh,Xh=to;function em(e,t){var n=t?Xh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wa=em,tm=to,nm=qh,rm=Jh,om=Qh,im=wa,am="[object Boolean]",sm="[object Date]",um="[object Map]",cm="[object Number]",lm="[object RegExp]",dm="[object Set]",fm="[object String]",pm="[object Symbol]",hm="[object ArrayBuffer]",mm="[object DataView]",gm="[object Float32Array]",vm="[object Float64Array]",ym="[object Int8Array]",wm="[object Int16Array]",Sm="[object Int32Array]",bm="[object Uint8Array]",_m="[object Uint8ClampedArray]",Cm="[object Uint16Array]",Am="[object Uint32Array]";function Em(e,t,n){var r=e.constructor;switch(t){case hm:return tm(e);case am:case sm:return new r(+e);case mm:return nm(e,n);case gm:case vm:case ym:case wm:case Sm:case bm:case _m:case Cm:case Am:return im(e,n);case um:return new r;case cm:case fm:return new r(e);case lm:return rm(e);case dm:return new r;case pm:return om(e)}}var $m=Em,Im=Fe,mi=Object.create,Tm=function(){function e(){}return function(t){if(!Im(t))return{};if(mi)return mi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Pm=Tm,Nm=Pm,km=eo,xm=Un;function Um(e){return typeof e.constructor=="function"&&!xm(e)?Nm(km(e)):{}}var Sa=Um,Om=Mt,Rm=Ke,Vm="[object Map]";function Bm(e){return Rm(e)&&Om(e)==Vm}var Dm=Bm,Mm=Dm,Fm=qr,gi=kt.exports,vi=gi&&gi.isMap,Lm=vi?Fm(vi):Mm,jm=Lm,zm=Mt,Gm=Ke,Hm="[object Set]";function Km(e){return Gm(e)&&zm(e)==Hm}var qm=Km,Wm=qm,Ym=qr,yi=kt.exports,wi=yi&&yi.isSet,Jm=wi?Ym(wi):Wm,Zm=Jm,Qm=Mn,Xm=ep,eg=Qr,tg=mp,ng=xp,rg=vn.exports,og=la,ig=Hp,ag=oh,sg=ma,ug=ga,cg=Mt,lg=Lh,dg=$m,fg=Sa,pg=ke,hg=tt.exports,mg=jm,gg=Fe,vg=Zm,yg=On,wg=Dt,Sg=1,bg=2,_g=4,ba="[object Arguments]",Cg="[object Array]",Ag="[object Boolean]",Eg="[object Date]",$g="[object Error]",_a="[object Function]",Ig="[object GeneratorFunction]",Tg="[object Map]",Pg="[object Number]",Ca="[object Object]",Ng="[object RegExp]",kg="[object Set]",xg="[object String]",Ug="[object Symbol]",Og="[object WeakMap]",Rg="[object ArrayBuffer]",Vg="[object DataView]",Bg="[object Float32Array]",Dg="[object Float64Array]",Mg="[object Int8Array]",Fg="[object Int16Array]",Lg="[object Int32Array]",jg="[object Uint8Array]",zg="[object Uint8ClampedArray]",Gg="[object Uint16Array]",Hg="[object Uint32Array]",ne={};ne[ba]=ne[Cg]=ne[Rg]=ne[Vg]=ne[Ag]=ne[Eg]=ne[Bg]=ne[Dg]=ne[Mg]=ne[Fg]=ne[Lg]=ne[Tg]=ne[Pg]=ne[Ca]=ne[Ng]=ne[kg]=ne[xg]=ne[Ug]=ne[jg]=ne[zg]=ne[Gg]=ne[Hg]=!0;ne[$g]=ne[_a]=ne[Og]=!1;function fn(e,t,n,r,i,a){var s,u=t&Sg,c=t&bg,d=t&_g;if(n&&(s=i?n(e,r,i,a):n(e)),s!==void 0)return s;if(!gg(e))return e;var l=pg(e);if(l){if(s=lg(e),!u)return og(e,s)}else{var h=cg(e),f=h==_a||h==Ig;if(hg(e))return rg(e,u);if(h==Ca||h==ba||f&&!i){if(s=c||f?{}:fg(e),!u)return c?ag(e,ng(s,e)):ig(e,tg(s,e))}else{if(!ne[h])return i?e:{};s=dg(e,h,u)}}a||(a=new Qm);var p=a.get(e);if(p)return p;a.set(e,s),vg(e)?e.forEach(function(m){s.add(fn(m,t,n,m,e,a))}):mg(e)&&e.forEach(function(m,S){s.set(S,fn(m,t,n,S,e,a))});var v=d?c?ug:sg:c?wg:yg,g=l?void 0:v(e);return Xm(g||e,function(m,S){g&&(S=m,m=e[S]),eg(s,S,fn(m,t,n,S,e,a))}),s}var Kg=fn,qg=Kg,Wg=1,Yg=4;function Jg(e){return qg(e,Wg|Yg)}var Zg=Jg,qe=function(e,t){var n=zr(e).country_code,r=Wr[t];return r.type==="tel"&&(r=R(R({},r),{dialCode:n})),r},ar=function(e){var t=vr(e);return R(R({},qe(e,t)),{autocomplete:"username"})},Qt=function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Qg={signIn:function(e){return{username:R({},ar(e)),password:R(R({},qe(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,i=vr(e),a={},s=0,u=Array.from(new Set(Oe(Oe(Oe([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(ei(c)){var d=c===i?ar(e):qe(e,c);a[c]=R({},d)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return a},confirmSignUp:function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:Qt,forceNewPassword:function(e){for(var t=_e(e).context.requiredAttributes,n={},r=0,i=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));r<i.length;r++){var a=i[r];ei(a)?n[a]=R({},qe(e,a)):console.debug("Authenticator does not have a default implementation for ".concat(a,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=Wr[t].label;return{username:R(R({},ar(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return R(R({},Qt(e)),{password:R(R({},qe(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:R(R({},qe(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:Qt,setupTOTP:Qt},Xg=function(e){for(var t=R({},e),n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],s=i[1],u=s.label,c=s.placeholder;t[a]=R(R({},s),{label:u?O(u):void 0,placeholder:c?O(c):void 0})}return t},ev=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})},tv=function(e,t){t===void 0&&(t={});var n=Zg(e);return Object.keys(t).forEach(function(r){n[r]=R(R({},n[r]),t[r])}),n},nv=function(e,t){var n=(0,Qg[e])(t);return Xg(n)},rv=function(e,t){var n,r,i=nv(e,t),a=((r=(n=_e(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=tv(i,a);return delete s.QR,s},ov=function(e,t){var n=rv(e,t);return ev(n)};/*! *****************************************************************************
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"},al={"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"},sl={"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"},ul={"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"},cl={"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"},ll={"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"},dl={"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"},fl={"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"},pl={"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"},hl={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"},ml=R({},el),gl=R({},tl),vl=R({},nl),yl=R({},rl),wl=R({},ol),Sl=R({},il),bl=R({},al),_l=R({},sl),Cl=R({},ul),Al=R({},cl),El=R({},ll),$l=R({},dl),Il=R({},fl),Tl=R({},pl),Pl=R({},hl);R({},Pl);function O(e){return re.I18n.get(e)}function Nl(e){return re.I18n.get(e)!==e}var kl={de:ml,en:gl,es:vl,fr:yl,id:Il,it:wl,ja:Sl,kr:bl,nl:_l,pl:Cl,pt:Al,zh:El,sv:$l,tr:Tl},Wr={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:Xc,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}},Le=function(e){var t=new FormData(e.target);return Object.fromEntries(t)},ei=function(e){return Jc.includes(e)},xl=function(e){return e?(t=e,Array.isArray(t)?e:[e]):null;var t},Ul=function(e){return re.Hub.listen("auth",function(t){t.payload.event==="signOut"&&e("SIGN_OUT")})};function Ol(){this.__data__=[],this.size=0}var Rl=Ol;function Vl(e,t){return e===t||e!==e&&t!==t}var Vt=Vl,Bl=Vt;function Dl(e,t){for(var n=e.length;n--;)if(Bl(e[n][0],t))return n;return-1}var Rn=Dl,Ml=Rn,Fl=Array.prototype,Ll=Fl.splice;function jl(e){var t=this.__data__,n=Ml(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ll.call(t,n,1),--this.size,!0}var zl=jl,Gl=Rn;function Hl(e){var t=this.__data__,n=Gl(t,e);return n<0?void 0:t[n][1]}var Kl=Hl,ql=Rn;function Wl(e){return ql(this.__data__,e)>-1}var Yl=Wl,Jl=Rn;function Zl(e,t){var n=this.__data__,r=Jl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Ql=Zl,Xl=Rl,ed=zl,td=Kl,nd=Yl,rd=Ql;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=Xl;ht.prototype.delete=ed;ht.prototype.get=td;ht.prototype.has=nd;ht.prototype.set=rd;var Vn=ht,od=Vn;function id(){this.__data__=new od,this.size=0}var ad=id;function sd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var ud=sd;function cd(e){return this.__data__.get(e)}var ld=cd;function dd(e){return this.__data__.has(e)}var fd=dd,pd=Me,hd=pd["__core-js_shared__"],md=hd,ir=md,ti=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gd(e){return!!ti&&ti in e}var vd=gd,yd=Function.prototype,wd=yd.toString;function Sd(e){if(e!=null){try{return wd.call(e)}catch{}try{return e+""}catch{}}return""}var ua=Sd,bd=Gr,_d=vd,Cd=Fe,Ad=ua,Ed=/[\\^$.*+?()[\]{}|]/g,$d=/^\[object .+?Constructor\]$/,Id=Function.prototype,Td=Object.prototype,Pd=Id.toString,Nd=Td.hasOwnProperty,kd=RegExp("^"+Pd.call(Nd).replace(Ed,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xd(e){if(!Cd(e)||_d(e))return!1;var t=bd(e)?kd:$d;return t.test(Ad(e))}var Ud=xd;function Od(e,t){return e==null?void 0:e[t]}var Rd=Od,Vd=Ud,Bd=Rd;function Dd(e,t){var n=Bd(e,t);return Vd(n)?n:void 0}var nt=Dd,Md=nt,Fd=Me,Ld=Md(Fd,"Map"),Yr=Ld,jd=nt,zd=jd(Object,"create"),Bn=zd,ni=Bn;function Gd(){this.__data__=ni?ni(null):{},this.size=0}var Hd=Gd;function Kd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qd=Kd,Wd=Bn,Yd="__lodash_hash_undefined__",Jd=Object.prototype,Zd=Jd.hasOwnProperty;function Qd(e){var t=this.__data__;if(Wd){var n=t[e];return n===Yd?void 0:n}return Zd.call(t,e)?t[e]:void 0}var Xd=Qd,ef=Bn,tf=Object.prototype,nf=tf.hasOwnProperty;function rf(e){var t=this.__data__;return ef?t[e]!==void 0:nf.call(t,e)}var of=rf,af=Bn,sf="__lodash_hash_undefined__";function uf(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=af&&t===void 0?sf:t,this}var cf=uf,lf=Hd,df=qd,ff=Xd,pf=of,hf=cf;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=lf;mt.prototype.delete=df;mt.prototype.get=ff;mt.prototype.has=pf;mt.prototype.set=hf;var mf=mt,ri=mf,gf=Vn,vf=Yr;function yf(){this.size=0,this.__data__={hash:new ri,map:new(vf||gf),string:new ri}}var wf=yf;function Sf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bf=Sf,_f=bf;function Cf(e,t){var n=e.__data__;return _f(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Dn=Cf,Af=Dn;function Ef(e){var t=Af(this,e).delete(e);return this.size-=t?1:0,t}var $f=Ef,If=Dn;function Tf(e){return If(this,e).get(e)}var Pf=Tf,Nf=Dn;function kf(e){return Nf(this,e).has(e)}var xf=kf,Uf=Dn;function Of(e,t){var n=Uf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Rf=Of,Vf=wf,Bf=$f,Df=Pf,Mf=xf,Ff=Rf;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=Vf;gt.prototype.delete=Bf;gt.prototype.get=Df;gt.prototype.has=Mf;gt.prototype.set=Ff;var Jr=gt,Lf=Vn,jf=Yr,zf=Jr,Gf=200;function Hf(e,t){var n=this.__data__;if(n instanceof Lf){var r=n.__data__;if(!jf||r.length<Gf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zf(r)}return n.set(e,t),this.size=n.size,this}var Kf=Hf,qf=Vn,Wf=ad,Yf=ud,Jf=ld,Zf=fd,Qf=Kf;function vt(e){var t=this.__data__=new qf(e);this.size=t.size}vt.prototype.clear=Wf;vt.prototype.delete=Yf;vt.prototype.get=Jf;vt.prototype.has=Zf;vt.prototype.set=Qf;var Mn=vt;function Xf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ep=Xf,tp=nt,np=function(){try{var e=tp(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ca=np,oi=ca;function rp(e,t,n){t=="__proto__"&&oi?oi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Zr=rp,op=Zr,ip=Vt,ap=Object.prototype,sp=ap.hasOwnProperty;function up(e,t,n){var r=e[t];(!(sp.call(e,t)&&ip(r,n))||n===void 0&&!(t in e))&&op(e,t,n)}var Qr=up,cp=Qr,lp=Zr;function dp(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):void 0;c===void 0&&(c=e[u]),i?lp(n,u,c):cp(n,u,c)}return n}var Bt=dp,fp=Bt,pp=On;function hp(e,t){return e&&fp(t,pp(t),e)}var mp=hp;function gp(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vp=gp,yp=Fe,wp=Un,Sp=vp,bp=Object.prototype,_p=bp.hasOwnProperty;function Cp(e){if(!yp(e))return Sp(e);var t=wp(e),n=[];for(var r in e)r=="constructor"&&(t||!_p.call(e,r))||n.push(r);return n}var Ap=Cp,Ep=ra,$p=Ap,Ip=Rt;function Tp(e){return Ip(e)?Ep(e,!0):$p(e)}var Dt=Tp,Pp=Bt,Np=Dt;function kp(e,t){return e&&Pp(t,Np(t),e)}var xp=kp,vn={exports:{}};(function(e,t){var n=Me,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(d,l){if(l)return d.slice();var h=d.length,f=u?u(h):new d.constructor(h);return d.copy(f),f}e.exports=c})(vn,vn.exports);function Up(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var la=Up;function Op(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}var Rp=Op;function Vp(){return[]}var da=Vp,Bp=Rp,Dp=da,Mp=Object.prototype,Fp=Mp.propertyIsEnumerable,ii=Object.getOwnPropertySymbols,Lp=ii?function(e){return e==null?[]:(e=Object(e),Bp(ii(e),function(t){return Fp.call(e,t)}))}:Dp,Xr=Lp,jp=Bt,zp=Xr;function Gp(e,t){return jp(e,zp(e),t)}var Hp=Gp;function Kp(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var fa=Kp,qp=oa,Wp=qp(Object.getPrototypeOf,Object),eo=Wp,Yp=fa,Jp=eo,Zp=Xr,Qp=da,Xp=Object.getOwnPropertySymbols,eh=Xp?function(e){for(var t=[];e;)Yp(t,Zp(e)),e=Jp(e);return t}:Qp,pa=eh,th=Bt,nh=pa;function rh(e,t){return th(e,nh(e),t)}var oh=rh,ih=fa,ah=xe;function sh(e,t,n){var r=t(e);return ah(e)?r:ih(r,n(e))}var ha=sh,uh=ha,ch=Xr,lh=On;function dh(e){return uh(e,lh,ch)}var ma=dh,fh=ha,ph=pa,hh=Dt;function mh(e){return fh(e,hh,ph)}var ga=mh,gh=nt,vh=Me,yh=gh(vh,"DataView"),wh=yh,Sh=nt,bh=Me,_h=Sh(bh,"Promise"),Ch=_h,Ah=nt,Eh=Me,$h=Ah(Eh,"Set"),Ih=$h,Th=nt,Ph=Me,Nh=Th(Ph,"WeakMap"),kh=Nh,yr=wh,wr=Yr,Sr=Ch,br=Ih,_r=kh,va=pt,yt=ua,ai="[object Map]",xh="[object Object]",si="[object Promise]",ui="[object Set]",ci="[object WeakMap]",li="[object DataView]",Uh=yt(yr),Oh=yt(wr),Rh=yt(Sr),Vh=yt(br),Bh=yt(_r),et=va;(yr&&et(new yr(new ArrayBuffer(1)))!=li||wr&&et(new wr)!=ai||Sr&&et(Sr.resolve())!=si||br&&et(new br)!=ui||_r&&et(new _r)!=ci)&&(et=function(e){var t=va(e),n=t==xh?e.constructor:void 0,r=n?yt(n):"";if(r)switch(r){case Uh:return li;case Oh:return ai;case Rh:return si;case Vh:return ui;case Bh:return ci}return t});var Mt=et,Dh=Object.prototype,Mh=Dh.hasOwnProperty;function Fh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Mh.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Lh=Fh,jh=Me,zh=jh.Uint8Array,ya=zh,di=ya;function Gh(e){var t=new e.constructor(e.byteLength);return new di(t).set(new di(e)),t}var to=Gh,Hh=to;function Kh(e,t){var n=t?Hh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qh=Kh,Wh=/\w*$/;function Yh(e){var t=new e.constructor(e.source,Wh.exec(e));return t.lastIndex=e.lastIndex,t}var Jh=Yh,fi=Ot,pi=fi?fi.prototype:void 0,hi=pi?pi.valueOf:void 0;function Zh(e){return hi?Object(hi.call(e)):{}}var Qh=Zh,Xh=to;function em(e,t){var n=t?Xh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wa=em,tm=to,nm=qh,rm=Jh,om=Qh,im=wa,am="[object Boolean]",sm="[object Date]",um="[object Map]",cm="[object Number]",lm="[object RegExp]",dm="[object Set]",fm="[object String]",pm="[object Symbol]",hm="[object ArrayBuffer]",mm="[object DataView]",gm="[object Float32Array]",vm="[object Float64Array]",ym="[object Int8Array]",wm="[object Int16Array]",Sm="[object Int32Array]",bm="[object Uint8Array]",_m="[object Uint8ClampedArray]",Cm="[object Uint16Array]",Am="[object Uint32Array]";function Em(e,t,n){var r=e.constructor;switch(t){case hm:return tm(e);case am:case sm:return new r(+e);case mm:return nm(e,n);case gm:case vm:case ym:case wm:case Sm:case bm:case _m:case Cm:case Am:return im(e,n);case um:return new r;case cm:case fm:return new r(e);case lm:return rm(e);case dm:return new r;case pm:return om(e)}}var $m=Em,Im=Fe,mi=Object.create,Tm=function(){function e(){}return function(t){if(!Im(t))return{};if(mi)return mi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Pm=Tm,Nm=Pm,km=eo,xm=Un;function Um(e){return typeof e.constructor=="function"&&!xm(e)?Nm(km(e)):{}}var Sa=Um,Om=Mt,Rm=Ke,Vm="[object Map]";function Bm(e){return Rm(e)&&Om(e)==Vm}var Dm=Bm,Mm=Dm,Fm=qr,gi=kt.exports,vi=gi&&gi.isMap,Lm=vi?Fm(vi):Mm,jm=Lm,zm=Mt,Gm=Ke,Hm="[object Set]";function Km(e){return Gm(e)&&zm(e)==Hm}var qm=Km,Wm=qm,Ym=qr,yi=kt.exports,wi=yi&&yi.isSet,Jm=wi?Ym(wi):Wm,Zm=Jm,Qm=Mn,Xm=ep,eg=Qr,tg=mp,ng=xp,rg=vn.exports,og=la,ig=Hp,ag=oh,sg=ma,ug=ga,cg=Mt,lg=Lh,dg=$m,fg=Sa,pg=xe,hg=tt.exports,mg=jm,gg=Fe,vg=Zm,yg=On,wg=Dt,Sg=1,bg=2,_g=4,ba="[object Arguments]",Cg="[object Array]",Ag="[object Boolean]",Eg="[object Date]",$g="[object Error]",_a="[object Function]",Ig="[object GeneratorFunction]",Tg="[object Map]",Pg="[object Number]",Ca="[object Object]",Ng="[object RegExp]",kg="[object Set]",xg="[object String]",Ug="[object Symbol]",Og="[object WeakMap]",Rg="[object ArrayBuffer]",Vg="[object DataView]",Bg="[object Float32Array]",Dg="[object Float64Array]",Mg="[object Int8Array]",Fg="[object Int16Array]",Lg="[object Int32Array]",jg="[object Uint8Array]",zg="[object Uint8ClampedArray]",Gg="[object Uint16Array]",Hg="[object Uint32Array]",ne={};ne[ba]=ne[Cg]=ne[Rg]=ne[Vg]=ne[Ag]=ne[Eg]=ne[Bg]=ne[Dg]=ne[Mg]=ne[Fg]=ne[Lg]=ne[Tg]=ne[Pg]=ne[Ca]=ne[Ng]=ne[kg]=ne[xg]=ne[Ug]=ne[jg]=ne[zg]=ne[Gg]=ne[Hg]=!0;ne[$g]=ne[_a]=ne[Og]=!1;function fn(e,t,n,r,i,a){var s,u=t&Sg,c=t&bg,d=t&_g;if(n&&(s=i?n(e,r,i,a):n(e)),s!==void 0)return s;if(!gg(e))return e;var l=pg(e);if(l){if(s=lg(e),!u)return og(e,s)}else{var h=cg(e),f=h==_a||h==Ig;if(hg(e))return rg(e,u);if(h==Ca||h==ba||f&&!i){if(s=c||f?{}:fg(e),!u)return c?ag(e,ng(s,e)):ig(e,tg(s,e))}else{if(!ne[h])return i?e:{};s=dg(e,h,u)}}a||(a=new Qm);var p=a.get(e);if(p)return p;a.set(e,s),vg(e)?e.forEach(function(m){s.add(fn(m,t,n,m,e,a))}):mg(e)&&e.forEach(function(m,S){s.set(S,fn(m,t,n,S,e,a))});var v=d?c?ug:sg:c?wg:yg,g=l?void 0:v(e);return Xm(g||e,function(m,S){g&&(S=m,m=e[S]),eg(s,S,fn(m,t,n,S,e,a))}),s}var Kg=fn,qg=Kg,Wg=1,Yg=4;function Jg(e){return qg(e,Wg|Yg)}var Zg=Jg,qe=function(e,t){var n=zr(e).country_code,r=Wr[t];return r.type==="tel"&&(r=R(R({},r),{dialCode:n})),r},ar=function(e){var t=vr(e);return R(R({},qe(e,t)),{autocomplete:"username"})},Qt=function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},Qg={signIn:function(e){return{username:R({},ar(e)),password:R(R({},qe(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,i=vr(e),a={},s=0,u=Array.from(new Set(Oe(Oe(Oe([],n,!0),["password","confirm_password"],!1),r,!0)));s<u.length;s++){var c=u[s];if(ei(c)){var d=c===i?ar(e):qe(e,c);a[c]=R({},d)}else console.debug("Authenticator does not have a default implementation for ".concat(c,". Customize SignUp FormFields to add your own."))}return a},confirmSignUp:function(e){return{confirmation_code:R(R({},qe(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:Qt,forceNewPassword:function(e){for(var t=_e(e).context.requiredAttributes,n={},r=0,i=Array.from(new Set(Oe(["password","confirm_password"],t,!0)));r<i.length;r++){var a=i[r];ei(a)?n[a]=R({},qe(e,a)):console.debug("Authenticator does not have a default implementation for ".concat(a,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=vr(e),n=Wr[t].label;return{username:R(R({},ar(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return R(R({},Qt(e)),{password:R(R({},qe(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:R(R({},qe(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:Qt,setupTOTP:Qt},Xg=function(e){for(var t=R({},e),n=0,r=Object.entries(e);n<r.length;n++){var i=r[n],a=i[0],s=i[1],u=s.label,c=s.placeholder;t[a]=R(R({},s),{label:u?O(u):void 0,placeholder:c?O(c):void 0})}return t},ev=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})},tv=function(e,t){t===void 0&&(t={});var n=Zg(e);return Object.keys(t).forEach(function(r){n[r]=R(R({},n[r]),t[r])}),n},nv=function(e,t){var n=(0,Qg[e])(t);return Xg(n)},rv=function(e,t){var n,r,i=nv(e,t),a=((r=(n=_e(t).context)===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e])||{},s=tv(i,a);return delete s.QR,s},ov=function(e,t){var n=rv(e,t);return ev(n)};/*! *****************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
17
17
 
18
18
  Permission to use, copy, modify, and/or distribute this software for any
@@ -25,10 +25,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25
25
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26
26
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27
27
  PERFORMANCE OF THIS SOFTWARE.
28
- ***************************************************************************** */var I=function(){return I=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},I.apply(this,arguments)};function no(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);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 J(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function le(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||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,ro=ee.Stop,Fn=ee.Raise,Ln=ee.Send,Aa=ee.Cancel,iv=ee.NullEvent,Ar=ee.Assign;ee.After;ee.DoneState;var Ea=ee.Log,av=ee.Init,Er=ee.Invoke;ee.ErrorExecution;var Si=ee.ErrorPlatform,sv=ee.ErrorCustom,oo=ee.Update,uv=ee.Choose,cv=ee.Pure,$a=".",bi={},$r="xstate.guard",lv="",dv=!0,Xt;function io(e,t,n){n===void 0&&(n=$a);var r=Tt(e,n),i=Tt(t,n);return Y(i)?Y(r)?i===r:!1:Y(r)?r in i:Object.keys(r).every(function(a){return a in i?io(r[a],i[a]):!1})}function Ia(e){try{return Y(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 Ir(e,t){try{return wt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function fv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Tt(e,t){if(fv(e))return e.value;if(wt(e))return yn(e);if(typeof e!="string")return e;var n=Ir(e,t);return yn(n)}function yn(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 Et(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var a=r[i];n[a]=t(e[a],a,e,i)}return n}function _i(e,t,n){var r,i,a={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];!n(d)||(a[c]=t(d,c,e))}}catch(l){r={error:l}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}var pv=function(e){return function(t){var n,r,i=t;try{for(var a=G(e),s=a.next();!s.done;s=a.next()){var u=s.value;i=i[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}};function hv(e,t){return function(n){var r,i,a=n;try{for(var s=G(e),u=s.next();!u.done;u=s.next()){var c=u.value;a=a[t][c]}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}}function pn(e){if(!e)return[[]];if(Y(e))return[[e]];var t=ce(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:pn(e[n]).map(function(i){return[n].concat(i)})}));return t}function ce(e){var t;return(t=[]).concat.apply(t,le([],J(e),!1))}function Ta(e){return wt(e)?e:[e]}function Pe(e){return e===void 0?[]:Ta(e)}function wn(e,t,n){var r,i;if(Q(e))return e(t,n.data);var a={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];Q(d)?a[c]=d(t,n.data):a[c]=d}}catch(l){r={error:l}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}function mv(e){return/^(done|error)\./.test(e)}function Ci(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function gv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Pa(e,t){var n,r,i=J([[],[]],2),a=i[0],s=i[1];try{for(var u=G(e),c=u.next();!c.done;c=u.next()){var d=c.value;t(d)?a.push(d):s.push(d)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[a,s]}function Na(e,t){return Et(e.states,function(n,r){if(!!n){var i=(Y(t)?void 0:t[r])||(n?n.current:void 0);if(!!i)return{current:i,states:Na(n,i)}}})}function vv(e,t){return{current:t,states:Na(e,t)}}function Ai(e,t,n,r){var i=e&&n.reduce(function(a,s){var u,c,d=s.assignment,l={state:r,action:s,_event:t},h={};if(Q(d))h=d(a,t.data,l);else try{for(var f=G(Object.keys(d)),p=f.next();!p.done;p=f.next()){var v=p.value,g=d[v];h[v]=Q(g)?g(a,t.data,l):g}}catch(m){u={error:m}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},a,h)},e);return i}var ka=function(){};function wt(e){return Array.isArray(e)}function Q(e){return typeof e=="function"}function Y(e){return typeof e=="string"}function xa(e,t){if(!!e)return Y(e)?{type:$r,name:e,predicate:t?t[e]:void 0}:Q(e)?{type:$r,name:e.name,predicate:e}:e}function yv(e){try{return"subscribe"in e&&Q(e.subscribe)}catch{return!1}}var We=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();Xt={},Xt[We]=function(){return this},Xt[Symbol.observable]=function(){return this};function Je(e){return!!e&&"__xstatenode"in e}function wv(e){return!!e&&typeof e.send=="function"}var Sv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ao(e,t){return Y(e)||typeof e=="number"?I({type:e},t):e}function ve(e,t){if(!Y(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ao(e);return I({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function rt(e,t){var n=Ta(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||Je(r)?{target:r,event:e}:I(I({},r),{event:e})});return n}function bv(e){if(!(e===void 0||e===lv))return Pe(e)}function Ua(e,t,n,r,i){var a=e.options.guards,s={state:i,cond:t,_event:r};if(t.type===$r)return((a==null?void 0:a[t.name])||t.predicate)(n,r.data,s);var u=a==null?void 0:a[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 Oa(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 en(e,t){return"".concat(e,":invocation[").concat(t,"]")}var Sn=ve({type:av});function Pr(e,t){return t&&t[e]||void 0}function xt(e,t){var n;if(Y(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=I(I({},e),{exec:r});else if(r){var i=r.type||e.type;n=I(I(I({},r),e),{type:i})}else n=e}return n}var bn=function(e,t){if(!e)return[];var n=wt(e)?e:[e];return n.map(function(r){return xt(r,t)})};function so(e){var t=xt(e);return I(I({id:Y(e)?e:t.id},t),{type:t.type})}function _v(e){return Y(e)?{type:Fn,event:e}:jn(e,{to:st.Internal})}function Cv(e){return{type:Fn,_event:ve(e.event)}}function jn(e,t){return{to:t?t.to:void 0,type:Ln,event:Q(e)?e:ao(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Q(e)?e.name:Ia(e)}}function Av(e,t,n,r){var i={_event:n},a=ve(Q(e.event)?e.event(t,n.data,i):e.event),s;if(Y(e.delay)){var u=r&&r[e.delay];s=Q(u)?u(t,n.data,i):u}else s=Q(e.delay)?e.delay(t,n.data,i):e.delay;var c=Q(e.to)?e.to(t,n.data,i):e.to;return I(I({},e),{to:c,_event:a,event:a.data,delay:s})}function Ev(e,t){return jn(e,I(I({},t),{to:st.Parent}))}function $v(){return Ev(oo)}var Iv=function(e,t,n){return I(I({},e),{value:Y(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Tv=function(e){return{type:Aa,sendId:e}};function Pv(e){var t=so(e);return{type:ee.Start,activity:t,exec:void 0}}function Nv(e){var t=Q(e)?e:so(e);return{type:ee.Stop,activity:t,exec:void 0}}function kv(e,t,n){var r=Q(e.activity)?e.activity(t,n.data):e.activity,i=typeof r=="string"?{id:r}:r,a={type:ee.Stop,activity:i};return a}var xv=function(e){return{type:Ar,assignment:e}};function Uv(e,t){var n=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(n)}function tn(e,t){var n="".concat(ee.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function hn(e,t){var n="".concat(ee.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function $t(e,t){var n="".concat(ee.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ov(e,t){return jn(function(n,r){return r},I(I({},t),{to:e}))}function Nr(e,t,n,r,i,a){a===void 0&&(a=!1);var s=J(a?[[],i]:Pa(i,function(f){return f.type===Ar}),2),u=s[0],c=s[1],d=u.length?Ai(n,r,u,t):n,l=a?[n]:void 0,h=ce(c.map(function(f){var p;switch(f.type){case Fn:return Cv(f);case Ln:var v=Av(f,d,r,e.options.delays);return v;case Ea:return Iv(f,d,r);case uv:{var g=f,m=(p=g.conds.find(function(x){var V=xa(x.cond,e.options.guards);return!V||Ua(e,V,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!m)return[];var S=J(Nr(e,t,d,r,bn(Pe(m),e.options.actions),a),2),w=S[0],b=S[1];return d=b,l==null||l.push(d),w}case cv:{var m=f.get(d,r.data);if(!m)return[];var _=J(Nr(e,t,d,r,bn(Pe(m),e.options.actions),a),2),C=_[0],$=_[1];return d=$,l==null||l.push(d),C}case ro:return kv(f,d,r);case Ar:{d=Ai(d,r,[f],t),l==null||l.push(d);break}default:var A=xt(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=I(I({},A),{exec:function(x){for(var V=[],B=1;B<arguments.length;B++)V[B-1]=arguments[B];E.apply(void 0,le([l[T]],J(V),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}var _n=[],It=function(e,t){_n.push(e);var n=t(e);return _n.pop(),n},Rv=function(e){return e(_n[_n.length-1])};function Ra(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[We]=function(){return this},t}function Vv(e,t,n,r){var i,a=Oa(e.src),s=(i=t==null?void 0:t.options.services)===null||i===void 0?void 0:i[a.type],u=e.data?wn(e.data,n,r):void 0,c=s?Va(s,e.id,u):Ra(e.id);return c.meta=e,c}function Va(e,t,n){var r=Ra(t);if(r.deferred=!0,Je(e)){var i=r.state=It(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return i}}return r}function Bv(e){try{return typeof e.send=="function"}catch{return!1}}function Dv(e){return Bv(e)&&"id"in e}function Mv(e){var t;return I((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[We]=function(){return this},t),e)}var Cn=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 Ba(e){var t=[e];return Cn(e)?t:t.concat(ce(ut(e).map(Ba)))}function at(e,t){var n,r,i,a,s,u,c,d,l=new Set(e),h=kr(l),f=new Set(t);try{for(var p=G(f),v=p.next();!v.done;v=p.next())for(var g=v.value,m=g.parent;m&&!f.has(m);)f.add(m),m=m.parent}catch(T){n={error:T}}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),b=w.next();!b.done;b=w.next()){var g=b.value;if(g.type==="compound"&&(!S.get(g)||!S.get(g).length))h.get(g)?h.get(g).forEach(function(x){return f.add(x)}):g.initialStateNodes.forEach(function(x){return f.add(x)});else if(g.type==="parallel")try{for(var _=(s=void 0,G(ut(g))),C=_.next();!C.done;C=_.next()){var $=C.value;$.type!=="history"&&(f.has($)||(f.add($),h.get($)?h.get($).forEach(function(x){return f.add(x)}):$.initialStateNodes.forEach(function(x){return f.add(x)})))}}catch(x){s={error:x}}finally{try{C&&!C.done&&(u=_.return)&&u.call(_)}finally{if(s)throw s.error}}}}catch(T){i={error:T}}finally{try{b&&!b.done&&(a=w.return)&&a.call(w)}finally{if(i)throw i.error}}try{for(var A=G(f),E=A.next();!E.done;E=A.next())for(var g=E.value,m=g.parent;m&&!f.has(m);)f.add(m),m=m.parent}catch(T){c={error:T}}finally{try{E&&!E.done&&(d=A.return)&&d.call(A)}finally{if(c)throw c.error}}return f}function Da(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(Cn(r))return r.key}else return{}}var i={};return n.forEach(function(a){i[a.key]=Da(a,t)}),i}function kr(e){var t,n,r=new Map;try{for(var i=G(e),a=i.next();!a.done;a=i.next()){var s=a.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{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Fv(e,t){var n=at([e],t);return Da(e,kr(n))}function mn(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function Lv(e){return le([],J(new Set(ce(le([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Pt(e,t){return t.type==="compound"?ut(t).some(function(n){return n.type==="final"&&mn(e,n)}):t.type==="parallel"?ut(t).every(function(n){return Pt(e,n)}):!1}function jv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function Ei(e){return new Set(ce(e.map(function(t){return t.tags})))}function Ma(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(Y(e)||Y(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(i){return Ma(e[i],t[i])})}function zv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Gv(e,t){var n=e.exec,r=I(I({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Ue=function(){function e(t){var n=this,r;this.actions=[],this.activities=bi,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||bi,this.meta=jv(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 Lv(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=Sn;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=Sn;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="."),Y(t))return[t];var i=Object.keys(t);return i.concat.apply(i,le([],J(i.map(function(a){return r.toStrings(t[a],n).map(function(s){return a+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=no(t,["configuration","transitions","tags","machine"]);return I(I({},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;ka(!!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(i){return i.target!==void 0||i.actions.length})},e}(),Hv={deferEvents:!1},$i=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=I(I({},Hv),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,Kv=0,nn={bookId:function(){return"x:".concat(Kv++)},register:function(e,t){return sr.set(e,t),e},get:function(e){return sr.get(e)},free:function(e){sr.delete(e)}};function uo(){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 qv(){var e=uo();if(e&&"__xstate__"in e)return e.__xstate__}function Wv(e){if(!!uo()){var t=qv();t&&t.register(e)}}function Yv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,i=[],a=!1,s=function(){if(!a){for(a=!0;i.length>0;){var d=i.shift();n=e.transition(n,d,c),r.forEach(function(l){return l.next(n)})}a=!1}},u=Mv({id:t.id,send:function(d){i.push(d),s()},getSnapshot:function(){return n},subscribe:function(d,l,h){var f=Tr(d,l,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},we;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(we||(we={}));var Jv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),this.machine=t,this.scheduler=new $i,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=we.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(l,h){if(wt(l))return r.batch(l),r.state;var f=ve(ao(l,h));if(r.status===we.Stopped)return r.state;if(r.status!==we.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(l,h){var f=r.parent&&(h===st.Parent||r.parent.id===h),p=f?r.parent:Y(h)?r.children.get(h)||nn.get(h):wv(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(I(I({},l),{name:l.name===sv?"".concat($t(r.id)):l.name,origin:r.sessionId})):p.send(l.data)};var i=I(I({},e.defaultOptions),n),a=i.clock,s=i.logger,u=i.parent,c=i.id,d=c!==void 0?c:t.id;this.id=d,this.logger=s,this.clock=a,this.parent=u,this.options=i,this.scheduler=new $i({deferEvents:this.options.deferEvents}),this.sessionId=nn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:It(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,i;try{for(var a=G(t.actions),s=a.next();!s.done;s=a.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,i,a,s,u,c,d,l,h=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(T){h.state.children[T.id]=T}),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(T){r={error:T}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}try{for(var g=G(this.listeners),m=g.next();!m.done;m=g.next()){var v=m.value;v(t,t.event)}}catch(T){a={error:T}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var b=w.value;b(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(T){u={error:T}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}var _=Pt(t.configuration||[],this.machine);if(this.state.configuration&&_){var C=t.configuration.find(function(T){return T.type==="final"&&T.parent===h.machine}),$=C&&C.doneData?wn(C.doneData,t.context,n):void 0;try{for(var A=G(this.doneListeners),E=A.next();!E.done;E=A.next()){var v=E.value;v(hn(this.id,$))}}catch(T){d={error:T}}finally{try{E&&!E.done&&(l=A.return)&&l.call(A)}finally{if(d)throw d.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===we.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var i=this;if(!t)return{unsubscribe:function(){}};var a,s=r;return typeof t=="function"?a=t:(a=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(a),this.status===we.Running&&a(this.state),s&&this.onDone(s),{unsubscribe:function(){a&&i.listeners.delete(a),s&&i.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===we.Running)return this;this.machine._init(),nn.register(this.sessionId,this),this.initialized=!0,this.status=we.Running;var r=t===void 0?this.initialState:It(this,function(){return zv(t)?n.machine.resolveState(t):n.machine.resolveState(Ue.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Sn)}),this},e.prototype.stop=function(){var t,n,r,i,a,s,u,c,d,l,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 g=G(this.stopListeners),m=g.next();!m.done;m=g.next()){var v=m.value;v(),this.stopListeners.delete(v)}}catch(E){r={error:E}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}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){a={error:E}}finally{try{w&&!w.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}try{for(var b=G(this.doneListeners),_=b.next();!_.done;_=b.next()){var v=_.value;this.doneListeners.delete(v)}}catch(E){u={error:E}}finally{try{_&&!_.done&&(c=b.return)&&c.call(b)}finally{if(u)throw u.error}}if(!this.initialized)return this;le([],J(this.state.configuration),!1).sort(function(E,T){return T.order-E.order}).forEach(function(E){var T,x;try{for(var V=G(E.definition.exit),B=V.next();!B.done;B=V.next()){var L=B.value;h.exec(L,h.state)}}catch(oe){T={error:oe}}finally{try{B&&!B.done&&(x=V.return)&&x.call(V)}finally{if(T)throw T.error}}}),this.children.forEach(function(E){Q(E.stop)&&E.stop()});try{for(var C=G(Object.keys(this.delayedEventsMap)),$=C.next();!$.done;$=C.next()){var A=$.value;this.clock.clearTimeout(this.delayedEventsMap[A])}}catch(E){d={error:E}}finally{try{$&&!$.done&&(l=C.return)&&l.call(C)}finally{if(d)throw d.error}}return this.scheduler.clear(),this.initialized=!1,this.status=we.Stopped,nn.free(this.sessionId),this},e.prototype.batch=function(t){var n=this;if(!(this.status===we.NotStarted&&this.options.deferEvents)){if(this.status!==we.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,i,a=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),a=It(n,function(){return n.machine.transition(a,p)}),u.push.apply(u,le([],J(a.actions.map(function(v){return Gv(v,a)})),!1)),s=s||!!a.changed};try{for(var d=G(t),l=d.next();!l.done;l=d.next()){var h=l.value;c(h)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}a.changed=s,a.actions=u,n.update(a,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(Si)===0&&!this.state.nextEvents.some(function(a){return a.indexOf(Si)===0}))throw r.data.data;var i=It(this,function(){return n.machine.transition(n.state,r)});return i},e.prototype.forward=function(t){var n,r;try{for(var i=G(this.forwardTo),a=i.next();!a.done;a=i.next()){var s=a.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{a&&!a.done&&(r=i.return)&&r.call(i)}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 i=n.context,a=n._event,s=t.exec||Pr(t.type,r),u=Q(s)?s:s?s.exec:t.exec;if(u)try{return u(i,a.data,{action:t,state:this.state,_event:a})}catch(_){throw this.parent&&this.parent.send({type:"xstate.error",data:_}),_}switch(t.type){case Ln: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 Aa:this.cancel(t.sendId);break;case Cr:{if(this.status!==we.Running)return;var d=t.activity;if(!this.state.activities[d.id||d.type])break;if(d.type===ee.Invoke){var l=Oa(d.src),h=this.machine.options.services?this.machine.options.services[l.type]:void 0,f=d.id,p=d.data,v="autoForward"in d?d.autoForward:!!d.forward;if(!h)return;var g=p?wn(p,i,a):void 0;if(typeof h=="string")return;var m=Q(h)?h(i,a.data,{data:g,src:l,meta:d.meta}):h;if(!m)return;var S=void 0;Je(m)&&(m=g?m.withContext(g):m,S={autoForward:v}),this.spawn(m,f,S)}else this.spawnActivity(d);break}case ro:{this.stopChild(t.activity.id);break}case Ea:var w=t.label,b=t.value;w?this.logger(w,b):this.logger(b);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(Ci(t))return this.spawnPromise(Promise.resolve(t),n);if(Q(t))return this.spawnCallback(t,n);if(Dv(t))return this.spawnActor(t,n);if(yv(t))return this.spawnObservable(t,n);if(Je(t))return this.spawnMachine(t,I(I({},r),{id:n}));if(gv(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 i=new e(t,I(I({},this.options),{parent:this,id:n.id||t.id})),a=I(I({},xr),n);a.sync&&i.onTransition(function(u){r.send(oo,{state:u,id:i.id})});var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone(function(u){r.removeChild(i.id),r.send(ve(u,{origin:i.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=Yv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,i=this,a=!1,s;t.then(function(c){a||(s=c,i.removeChild(n),i.send(ve(hn(n,c),{origin:n})))},function(c){if(!a){i.removeChild(n);var d=$t(n,c);try{i.send(ve(d,{origin:n}))}catch{i.devTools&&i.devTools.send(d,i.state),i.machine.strict&&i.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,d,l){var h=Tr(c,d,l),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(){a=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,i=this,a=!1,s=new Set,u=new Set,c,d=function(f){c=f,u.forEach(function(p){return p(f)}),!a&&i.send(ve(f,{origin:n}))},l;try{l=t(d,function(f){s.add(f)})}catch(f){this.send($t(n,f))}if(Ci(l))return this.spawnPromise(l,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(){a=!0,Q(l)&&l()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[We]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,i=this,a,s=t.subscribe(function(c){a=c,i.send(ve(c,{origin:n}))},function(c){i.removeChild(n),i.send(ve($t(n,c),{origin:n}))},function(){i.removeChild(n),i.send(ve(hn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,d,l){return t.subscribe(c,d,l)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return a},toJSON:function(){return{id:n}}},r[We]=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[We]=function(){return this},r))},e.prototype.attachDev=function(){var t=uo();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(I(I({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:I({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Wv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[We]=function(){return this},e.prototype.getSnapshot=function(){return this.status===we.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=Fa,e}(),Zv=function(e){return Y(e)?I(I({},xr),{name:e}):I(I(I({},xr),{name:Sv()}),e)};function rn(e,t){var n=Zv(t);return Rv(function(r){if(!dv){var i=Je(e)||Q(e);ka(!!r||i,'Attempted to spawn an Actor (ID: "'.concat(Je(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return r?r.spawn(e,n.name,n):Va(e,n.name)})}function Fa(e,t){var n=new Jv(e,t);return n}function Qv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function on(e){return I(I({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=no(e,["onDone","onError"]);return I(I({},t),{type:Er,src:Qv(e.src)})}})}var an="",Ur="#",ur="*",ot={},it=function(e){return e[0]===Ur},Xv=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ey=function(){function e(t,n,r,i){var a=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(Xv(),n),this.parent=i==null?void 0:i.parent,this.key=this.config.key||(i==null?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:$a),this.id=this.config.id||le([this.machine.key],J(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?Et(this.config.states,function(d,l){var h,f=new e(d,{},void 0,{parent:a,key:l});return Object.assign(a.idMap,I((h={},h[f.id]=f,h),f.idMap)),f}):ot;var u=0;function c(d){var l,h;d.order=u++;try{for(var f=G(ut(d)),p=f.next();!p.done;p=f.next()){var v=p.value;c(v)}}catch(g){l={error:g}}finally{try{p&&!p.done&&(h=f.return)&&h.call(f)}finally{if(l)throw l.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(d){var l=d.event;return l===an}):an in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Pe(this.config.entry||this.config.onEntry).map(function(d){return xt(d)}),this.onExit=Pe(this.config.exit||this.config.onExit).map(function(d){return xt(d)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Pe(this.config.invoke).map(function(d,l){var h,f;if(Je(d)){var p=en(a.id,l);return a.machine.options.services=I((h={},h[p]=d,h),a.machine.options.services),on({src:p,id:p})}else if(Y(d.src)){var p=d.id||en(a.id,l);return on(I(I({},d),{id:p,src:d.src}))}else if(Je(d.src)||Q(d.src)){var p=d.id||en(a.id,l);return a.machine.options.services=I((f={},f[p]=d.src,f),a.machine.options.services),on(I(I({id:p},d),{src:p}))}else{var v=d.src;return on(I(I({id:en(a.id,l)},d),{src:v}))}}),this.activities=Pe(this.config.activities).concat(this.invoke).map(function(d){return so(d)}),this.transition=this.transition.bind(this),this.tags=Pe(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Ba(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,a=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:I(I({},i),t.actions),activities:I(I({},a),t.activities),guards:I(I({},s),t.guards),services:I(I({},u),t.services),delays:I(I({},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:Et(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===an,r=this.transitions.filter(function(i){var a=i.eventType===t;return n?a:a||i.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(a,s){var u=Q(a)?"".concat(t.id,":delay[").concat(s,"]"):a,c=Uv(u,t.id);return t.onEntry.push(jn(c,{delay:a})),t.onExit.push(Tv(c)),c},i=wt(n)?n.map(function(a,s){var u=r(a.delay,s);return I(I({},a),{event:u})}):ce(Object.keys(n).map(function(a,s){var u=n[a],c=Y(u)?{target:u}:u,d=isNaN(+a)?a:+a,l=r(d,s);return Pe(c).map(function(h){return I(I({},h),{event:l,delay:d})})}));return i.map(function(a){var s=a.delay;return I(I({},t.formatTransition(a)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var i=t instanceof Ue?t.value:Tt(t,this.delimiter);if(Y(i)){var a=this.getStateNode(i).initial;return a!==void 0?this.getStateNodes((n={},n[i]=a,n)):[this,this.states[i]]}var s=Object.keys(i),u=[this];return u.push.apply(u,le([],J(ce(s.map(function(c){return r.getStateNode(c).getStateNodes(i[c])}))),!1)),u},e.prototype.handles=function(t){var n=Ia(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ue?t:Ue.create(t),r=Array.from(at([],this.getStateNodes(n.value)));return new Ue(I(I({},n),{value:this.resolve(n.value),configuration:r,done:Pt(r,this),tags:Ei(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var i=this.getStateNode(t),a=i.next(n,r);return!a||!a.transitions.length?this.next(n,r):a},e.prototype.transitionCompoundNode=function(t,n,r){var i=Object.keys(t),a=this.getStateNode(i[0]),s=a._transition(t[i[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var i,a,s={};try{for(var u=G(Object.keys(t)),c=u.next();!c.done;c=u.next()){var d=c.value,l=t[d];if(!!l){var h=this.getStateNode(d),f=h._transition(l,n,r);f&&(s[d]=f)}}}catch(w){i={error:w}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}var p=Object.keys(s).map(function(w){return s[w]}),v=ce(p.map(function(w){return w.transitions})),g=p.some(function(w){return w.transitions.length>0});if(!g)return this.next(n,r);var m=ce(p.map(function(w){return w.entrySet})),S=ce(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,entrySet:m,exitSet:ce(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:ce(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return Y(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,i,a=this,s=n.name,u=[],c=[],d;try{for(var l=G(this.getCandidates(s)),h=l.next();!h.done;h=l.next()){var f=h.value,p=f.cond,v=f.in,g=t.context,m=v?Y(v)&&it(v)?t.matches(Tt(this.getStateNodeById(v).path,this.delimiter)):io(Tt(v,this.delimiter),pv(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||Ua(this.machine,p,g,n,t)}catch(C){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
28
+ ***************************************************************************** */var I=function(){return I=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},I.apply(this,arguments)};function no(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);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 J(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(u){s={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function le(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||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,ro=ee.Stop,Fn=ee.Raise,Ln=ee.Send,Aa=ee.Cancel,iv=ee.NullEvent,Ar=ee.Assign;ee.After;ee.DoneState;var Ea=ee.Log,av=ee.Init,Er=ee.Invoke;ee.ErrorExecution;var Si=ee.ErrorPlatform,sv=ee.ErrorCustom,oo=ee.Update,uv=ee.Choose,cv=ee.Pure,$a=".",bi={},$r="xstate.guard",lv="",dv=!0,Xt;function io(e,t,n){n===void 0&&(n=$a);var r=Tt(e,n),i=Tt(t,n);return Y(i)?Y(r)?i===r:!1:Y(r)?r in i:Object.keys(r).every(function(a){return a in i?io(r[a],i[a]):!1})}function Ia(e){try{return Y(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 Ir(e,t){try{return wt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function fv(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function Tt(e,t){if(fv(e))return e.value;if(wt(e))return yn(e);if(typeof e!="string")return e;var n=Ir(e,t);return yn(n)}function yn(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 Et(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var a=r[i];n[a]=t(e[a],a,e,i)}return n}function _i(e,t,n){var r,i,a={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];!n(d)||(a[c]=t(d,c,e))}}catch(l){r={error:l}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}var pv=function(e){return function(t){var n,r,i=t;try{for(var a=G(e),s=a.next();!s.done;s=a.next()){var u=s.value;i=i[u]}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}};function hv(e,t){return function(n){var r,i,a=n;try{for(var s=G(e),u=s.next();!u.done;u=s.next()){var c=u.value;a=a[t][c]}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}}function pn(e){if(!e)return[[]];if(Y(e))return[[e]];var t=ce(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:pn(e[n]).map(function(i){return[n].concat(i)})}));return t}function ce(e){var t;return(t=[]).concat.apply(t,le([],J(e),!1))}function Ta(e){return wt(e)?e:[e]}function Ne(e){return e===void 0?[]:Ta(e)}function wn(e,t,n){var r,i;if(Q(e))return e(t,n.data);var a={};try{for(var s=G(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value,d=e[c];Q(d)?a[c]=d(t,n.data):a[c]=d}}catch(l){r={error:l}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}function mv(e){return/^(done|error)\./.test(e)}function Ci(e){return!!(e instanceof Promise||e!==null&&(Q(e)||typeof e=="object")&&Q(e.then))}function gv(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function Pa(e,t){var n,r,i=J([[],[]],2),a=i[0],s=i[1];try{for(var u=G(e),c=u.next();!c.done;c=u.next()){var d=c.value;t(d)?a.push(d):s.push(d)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return[a,s]}function Na(e,t){return Et(e.states,function(n,r){if(!!n){var i=(Y(t)?void 0:t[r])||(n?n.current:void 0);if(!!i)return{current:i,states:Na(n,i)}}})}function vv(e,t){return{current:t,states:Na(e,t)}}function Ai(e,t,n,r){var i=e&&n.reduce(function(a,s){var u,c,d=s.assignment,l={state:r,action:s,_event:t},h={};if(Q(d))h=d(a,t.data,l);else try{for(var f=G(Object.keys(d)),p=f.next();!p.done;p=f.next()){var v=p.value,g=d[v];h[v]=Q(g)?g(a,t.data,l):g}}catch(m){u={error:m}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(u)throw u.error}}return Object.assign({},a,h)},e);return i}var ka=function(){};function wt(e){return Array.isArray(e)}function Q(e){return typeof e=="function"}function Y(e){return typeof e=="string"}function xa(e,t){if(!!e)return Y(e)?{type:$r,name:e,predicate:t?t[e]:void 0}:Q(e)?{type:$r,name:e.name,predicate:e}:e}function yv(e){try{return"subscribe"in e&&Q(e.subscribe)}catch{return!1}}var We=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();Xt={},Xt[We]=function(){return this},Xt[Symbol.observable]=function(){return this};function Je(e){return!!e&&"__xstatenode"in e}function wv(e){return!!e&&typeof e.send=="function"}var Sv=function(){var e=0;return function(){return e++,e.toString(16)}}();function ao(e,t){return Y(e)||typeof e=="number"?I({type:e},t):e}function ve(e,t){if(!Y(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=ao(e);return I({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function rt(e,t){var n=Ta(t).map(function(r){return typeof r=="undefined"||typeof r=="string"||Je(r)?{target:r,event:e}:I(I({},r),{event:e})});return n}function bv(e){if(!(e===void 0||e===lv))return Ne(e)}function Ua(e,t,n,r,i){var a=e.options.guards,s={state:i,cond:t,_event:r};if(t.type===$r)return((a==null?void 0:a[t.name])||t.predicate)(n,r.data,s);var u=a==null?void 0:a[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 Oa(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 en(e,t){return"".concat(e,":invocation[").concat(t,"]")}var Sn=ve({type:av});function Pr(e,t){return t&&t[e]||void 0}function xt(e,t){var n;if(Y(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=I(I({},e),{exec:r});else if(r){var i=r.type||e.type;n=I(I(I({},r),e),{type:i})}else n=e}return n}var bn=function(e,t){if(!e)return[];var n=wt(e)?e:[e];return n.map(function(r){return xt(r,t)})};function so(e){var t=xt(e);return I(I({id:Y(e)?e:t.id},t),{type:t.type})}function _v(e){return Y(e)?{type:Fn,event:e}:jn(e,{to:st.Internal})}function Cv(e){return{type:Fn,_event:ve(e.event)}}function jn(e,t){return{to:t?t.to:void 0,type:Ln,event:Q(e)?e:ao(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Q(e)?e.name:Ia(e)}}function Av(e,t,n,r){var i={_event:n},a=ve(Q(e.event)?e.event(t,n.data,i):e.event),s;if(Y(e.delay)){var u=r&&r[e.delay];s=Q(u)?u(t,n.data,i):u}else s=Q(e.delay)?e.delay(t,n.data,i):e.delay;var c=Q(e.to)?e.to(t,n.data,i):e.to;return I(I({},e),{to:c,_event:a,event:a.data,delay:s})}function Ev(e,t){return jn(e,I(I({},t),{to:st.Parent}))}function $v(){return Ev(oo)}var Iv=function(e,t,n){return I(I({},e),{value:Y(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Tv=function(e){return{type:Aa,sendId:e}};function Pv(e){var t=so(e);return{type:ee.Start,activity:t,exec:void 0}}function Nv(e){var t=Q(e)?e:so(e);return{type:ee.Stop,activity:t,exec:void 0}}function kv(e,t,n){var r=Q(e.activity)?e.activity(t,n.data):e.activity,i=typeof r=="string"?{id:r}:r,a={type:ee.Stop,activity:i};return a}var xv=function(e){return{type:Ar,assignment:e}};function Uv(e,t){var n=t?"#".concat(t):"";return"".concat(ee.After,"(").concat(e,")").concat(n)}function tn(e,t){var n="".concat(ee.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function hn(e,t){var n="".concat(ee.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function $t(e,t){var n="".concat(ee.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ov(e,t){return jn(function(n,r){return r},I(I({},t),{to:e}))}function Nr(e,t,n,r,i,a){a===void 0&&(a=!1);var s=J(a?[[],i]:Pa(i,function(f){return f.type===Ar}),2),u=s[0],c=s[1],d=u.length?Ai(n,r,u,t):n,l=a?[n]:void 0,h=ce(c.map(function(f){var p;switch(f.type){case Fn:return Cv(f);case Ln:var v=Av(f,d,r,e.options.delays);return v;case Ea:return Iv(f,d,r);case uv:{var g=f,m=(p=g.conds.find(function(x){var V=xa(x.cond,e.options.guards);return!V||Ua(e,V,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!m)return[];var S=J(Nr(e,t,d,r,bn(Ne(m),e.options.actions),a),2),w=S[0],b=S[1];return d=b,l==null||l.push(d),w}case cv:{var m=f.get(d,r.data);if(!m)return[];var _=J(Nr(e,t,d,r,bn(Ne(m),e.options.actions),a),2),C=_[0],$=_[1];return d=$,l==null||l.push(d),C}case ro:return kv(f,d,r);case Ar:{d=Ai(d,r,[f],t),l==null||l.push(d);break}default:var A=xt(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=I(I({},A),{exec:function(x){for(var V=[],B=1;B<arguments.length;B++)V[B-1]=arguments[B];E.apply(void 0,le([l[T]],J(V),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}var _n=[],It=function(e,t){_n.push(e);var n=t(e);return _n.pop(),n},Rv=function(e){return e(_n[_n.length-1])};function Ra(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[We]=function(){return this},t}function Vv(e,t,n,r){var i,a=Oa(e.src),s=(i=t==null?void 0:t.options.services)===null||i===void 0?void 0:i[a.type],u=e.data?wn(e.data,n,r):void 0,c=s?Va(s,e.id,u):Ra(e.id);return c.meta=e,c}function Va(e,t,n){var r=Ra(t);if(r.deferred=!0,Je(e)){var i=r.state=It(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return i}}return r}function Bv(e){try{return typeof e.send=="function"}catch{return!1}}function Dv(e){return Bv(e)&&"id"in e}function Mv(e){var t;return I((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[We]=function(){return this},t),e)}var Cn=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 Ba(e){var t=[e];return Cn(e)?t:t.concat(ce(ut(e).map(Ba)))}function at(e,t){var n,r,i,a,s,u,c,d,l=new Set(e),h=kr(l),f=new Set(t);try{for(var p=G(f),v=p.next();!v.done;v=p.next())for(var g=v.value,m=g.parent;m&&!f.has(m);)f.add(m),m=m.parent}catch(T){n={error:T}}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),b=w.next();!b.done;b=w.next()){var g=b.value;if(g.type==="compound"&&(!S.get(g)||!S.get(g).length))h.get(g)?h.get(g).forEach(function(x){return f.add(x)}):g.initialStateNodes.forEach(function(x){return f.add(x)});else if(g.type==="parallel")try{for(var _=(s=void 0,G(ut(g))),C=_.next();!C.done;C=_.next()){var $=C.value;$.type!=="history"&&(f.has($)||(f.add($),h.get($)?h.get($).forEach(function(x){return f.add(x)}):$.initialStateNodes.forEach(function(x){return f.add(x)})))}}catch(x){s={error:x}}finally{try{C&&!C.done&&(u=_.return)&&u.call(_)}finally{if(s)throw s.error}}}}catch(T){i={error:T}}finally{try{b&&!b.done&&(a=w.return)&&a.call(w)}finally{if(i)throw i.error}}try{for(var A=G(f),E=A.next();!E.done;E=A.next())for(var g=E.value,m=g.parent;m&&!f.has(m);)f.add(m),m=m.parent}catch(T){c={error:T}}finally{try{E&&!E.done&&(d=A.return)&&d.call(A)}finally{if(c)throw c.error}}return f}function Da(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(Cn(r))return r.key}else return{}}var i={};return n.forEach(function(a){i[a.key]=Da(a,t)}),i}function kr(e){var t,n,r=new Map;try{for(var i=G(e),a=i.next();!a.done;a=i.next()){var s=a.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{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Fv(e,t){var n=at([e],t);return Da(e,kr(n))}function mn(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function Lv(e){return le([],J(new Set(ce(le([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Pt(e,t){return t.type==="compound"?ut(t).some(function(n){return n.type==="final"&&mn(e,n)}):t.type==="parallel"?ut(t).every(function(n){return Pt(e,n)}):!1}function jv(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function Ei(e){return new Set(ce(e.map(function(t){return t.tags})))}function Ma(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(Y(e)||Y(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(i){return Ma(e[i],t[i])})}function zv(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function Gv(e,t){var n=e.exec,r=I(I({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Ue=function(){function e(t){var n=this,r;this.actions=[],this.activities=bi,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||bi,this.meta=jv(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 Lv(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=Sn;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=Sn;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="."),Y(t))return[t];var i=Object.keys(t);return i.concat.apply(i,le([],J(i.map(function(a){return r.toStrings(t[a],n).map(function(s){return a+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=no(t,["configuration","transitions","tags","machine"]);return I(I({},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;ka(!!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(i){return i.target!==void 0||i.actions.length})},e}(),Hv={deferEvents:!1},$i=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=I(I({},Hv),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,Kv=0,nn={bookId:function(){return"x:".concat(Kv++)},register:function(e,t){return sr.set(e,t),e},get:function(e){return sr.get(e)},free:function(e){sr.delete(e)}};function uo(){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 qv(){var e=uo();if(e&&"__xstate__"in e)return e.__xstate__}function Wv(e){if(!!uo()){var t=qv();t&&t.register(e)}}function Yv(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,i=[],a=!1,s=function(){if(!a){for(a=!0;i.length>0;){var d=i.shift();n=e.transition(n,d,c),r.forEach(function(l){return l.next(n)})}a=!1}},u=Mv({id:t.id,send:function(d){i.push(d),s()},getSnapshot:function(){return n},subscribe:function(d,l,h){var f=Tr(d,l,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},we;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(we||(we={}));var Jv=function(){function e(t,n){var r=this;n===void 0&&(n=e.defaultOptions),this.machine=t,this.scheduler=new $i,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=we.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(l,h){if(wt(l))return r.batch(l),r.state;var f=ve(ao(l,h));if(r.status===we.Stopped)return r.state;if(r.status!==we.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(l,h){var f=r.parent&&(h===st.Parent||r.parent.id===h),p=f?r.parent:Y(h)?r.children.get(h)||nn.get(h):wv(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(I(I({},l),{name:l.name===sv?"".concat($t(r.id)):l.name,origin:r.sessionId})):p.send(l.data)};var i=I(I({},e.defaultOptions),n),a=i.clock,s=i.logger,u=i.parent,c=i.id,d=c!==void 0?c:t.id;this.id=d,this.logger=s,this.clock=a,this.parent=u,this.options=i,this.scheduler=new $i({deferEvents:this.options.deferEvents}),this.sessionId=nn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:It(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,i;try{for(var a=G(t.actions),s=a.next();!s.done;s=a.next()){var u=s.value;this.exec(u,t,n)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,i,a,s,u,c,d,l,h=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(T){h.state.children[T.id]=T}),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(T){r={error:T}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}try{for(var g=G(this.listeners),m=g.next();!m.done;m=g.next()){var v=m.value;v(t,t.event)}}catch(T){a={error:T}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}try{for(var S=G(this.contextListeners),w=S.next();!w.done;w=S.next()){var b=w.value;b(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(T){u={error:T}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}var _=Pt(t.configuration||[],this.machine);if(this.state.configuration&&_){var C=t.configuration.find(function(T){return T.type==="final"&&T.parent===h.machine}),$=C&&C.doneData?wn(C.doneData,t.context,n):void 0;try{for(var A=G(this.doneListeners),E=A.next();!E.done;E=A.next()){var v=E.value;v(hn(this.id,$))}}catch(T){d={error:T}}finally{try{E&&!E.done&&(l=A.return)&&l.call(A)}finally{if(d)throw d.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===we.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var i=this;if(!t)return{unsubscribe:function(){}};var a,s=r;return typeof t=="function"?a=t:(a=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(a),this.status===we.Running&&a(this.state),s&&this.onDone(s),{unsubscribe:function(){a&&i.listeners.delete(a),s&&i.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===we.Running)return this;this.machine._init(),nn.register(this.sessionId,this),this.initialized=!0,this.status=we.Running;var r=t===void 0?this.initialState:It(this,function(){return zv(t)?n.machine.resolveState(t):n.machine.resolveState(Ue.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Sn)}),this},e.prototype.stop=function(){var t,n,r,i,a,s,u,c,d,l,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 g=G(this.stopListeners),m=g.next();!m.done;m=g.next()){var v=m.value;v(),this.stopListeners.delete(v)}}catch(E){r={error:E}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}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){a={error:E}}finally{try{w&&!w.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}try{for(var b=G(this.doneListeners),_=b.next();!_.done;_=b.next()){var v=_.value;this.doneListeners.delete(v)}}catch(E){u={error:E}}finally{try{_&&!_.done&&(c=b.return)&&c.call(b)}finally{if(u)throw u.error}}if(!this.initialized)return this;le([],J(this.state.configuration),!1).sort(function(E,T){return T.order-E.order}).forEach(function(E){var T,x;try{for(var V=G(E.definition.exit),B=V.next();!B.done;B=V.next()){var L=B.value;h.exec(L,h.state)}}catch(oe){T={error:oe}}finally{try{B&&!B.done&&(x=V.return)&&x.call(V)}finally{if(T)throw T.error}}}),this.children.forEach(function(E){Q(E.stop)&&E.stop()});try{for(var C=G(Object.keys(this.delayedEventsMap)),$=C.next();!$.done;$=C.next()){var A=$.value;this.clock.clearTimeout(this.delayedEventsMap[A])}}catch(E){d={error:E}}finally{try{$&&!$.done&&(l=C.return)&&l.call(C)}finally{if(d)throw d.error}}return this.scheduler.clear(),this.initialized=!1,this.status=we.Stopped,nn.free(this.sessionId),this},e.prototype.batch=function(t){var n=this;if(!(this.status===we.NotStarted&&this.options.deferEvents)){if(this.status!==we.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,i,a=n.state,s=!1,u=[],c=function(f){var p=ve(f);n.forward(p),a=It(n,function(){return n.machine.transition(a,p)}),u.push.apply(u,le([],J(a.actions.map(function(v){return Gv(v,a)})),!1)),s=s||!!a.changed};try{for(var d=G(t),l=d.next();!l.done;l=d.next()){var h=l.value;c(h)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}a.changed=s,a.actions=u,n.update(a,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(Si)===0&&!this.state.nextEvents.some(function(a){return a.indexOf(Si)===0}))throw r.data.data;var i=It(this,function(){return n.machine.transition(n.state,r)});return i},e.prototype.forward=function(t){var n,r;try{for(var i=G(this.forwardTo),a=i.next();!a.done;a=i.next()){var s=a.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{a&&!a.done&&(r=i.return)&&r.call(i)}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 i=n.context,a=n._event,s=t.exec||Pr(t.type,r),u=Q(s)?s:s?s.exec:t.exec;if(u)try{return u(i,a.data,{action:t,state:this.state,_event:a})}catch(_){throw this.parent&&this.parent.send({type:"xstate.error",data:_}),_}switch(t.type){case Ln: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 Aa:this.cancel(t.sendId);break;case Cr:{if(this.status!==we.Running)return;var d=t.activity;if(!this.state.activities[d.id||d.type])break;if(d.type===ee.Invoke){var l=Oa(d.src),h=this.machine.options.services?this.machine.options.services[l.type]:void 0,f=d.id,p=d.data,v="autoForward"in d?d.autoForward:!!d.forward;if(!h)return;var g=p?wn(p,i,a):void 0;if(typeof h=="string")return;var m=Q(h)?h(i,a.data,{data:g,src:l,meta:d.meta}):h;if(!m)return;var S=void 0;Je(m)&&(m=g?m.withContext(g):m,S={autoForward:v}),this.spawn(m,f,S)}else this.spawnActivity(d);break}case ro:{this.stopChild(t.activity.id);break}case Ea:var w=t.label,b=t.value;w?this.logger(w,b):this.logger(b);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(Ci(t))return this.spawnPromise(Promise.resolve(t),n);if(Q(t))return this.spawnCallback(t,n);if(Dv(t))return this.spawnActor(t,n);if(yv(t))return this.spawnObservable(t,n);if(Je(t))return this.spawnMachine(t,I(I({},r),{id:n}));if(gv(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 i=new e(t,I(I({},this.options),{parent:this,id:n.id||t.id})),a=I(I({},xr),n);a.sync&&i.onTransition(function(u){r.send(oo,{state:u,id:i.id})});var s=i;return this.children.set(i.id,s),a.autoForward&&this.forwardTo.add(i.id),i.onDone(function(u){r.removeChild(i.id),r.send(ve(u,{origin:i.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=Yv(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,i=this,a=!1,s;t.then(function(c){a||(s=c,i.removeChild(n),i.send(ve(hn(n,c),{origin:n})))},function(c){if(!a){i.removeChild(n);var d=$t(n,c);try{i.send(ve(d,{origin:n}))}catch{i.devTools&&i.devTools.send(d,i.state),i.machine.strict&&i.stop()}}});var u=(r={id:n,send:function(){},subscribe:function(c,d,l){var h=Tr(c,d,l),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(){a=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[We]=function(){return this},r);return this.children.set(n,u),u},e.prototype.spawnCallback=function(t,n){var r,i=this,a=!1,s=new Set,u=new Set,c,d=function(f){c=f,u.forEach(function(p){return p(f)}),!a&&i.send(ve(f,{origin:n}))},l;try{l=t(d,function(f){s.add(f)})}catch(f){this.send($t(n,f))}if(Ci(l))return this.spawnPromise(l,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(){a=!0,Q(l)&&l()},toJSON:function(){return{id:n}},getSnapshot:function(){return c}},r[We]=function(){return this},r);return this.children.set(n,h),h},e.prototype.spawnObservable=function(t,n){var r,i=this,a,s=t.subscribe(function(c){a=c,i.send(ve(c,{origin:n}))},function(c){i.removeChild(n),i.send(ve($t(n,c),{origin:n}))},function(){i.removeChild(n),i.send(ve(hn(n),{origin:n}))}),u=(r={id:n,send:function(){},subscribe:function(c,d,l){return t.subscribe(c,d,l)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return a},toJSON:function(){return{id:n}}},r[We]=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[We]=function(){return this},r))},e.prototype.attachDev=function(){var t=uo();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(I(I({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:I({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Wv(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[We]=function(){return this},e.prototype.getSnapshot=function(){return this.status===we.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=Fa,e}(),Zv=function(e){return Y(e)?I(I({},xr),{name:e}):I(I(I({},xr),{name:Sv()}),e)};function rn(e,t){var n=Zv(t);return Rv(function(r){if(!dv){var i=Je(e)||Q(e);ka(!!r||i,'Attempted to spawn an Actor (ID: "'.concat(Je(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return r?r.spawn(e,n.name,n):Va(e,n.name)})}function Fa(e,t){var n=new Jv(e,t);return n}function Qv(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function on(e){return I(I({type:Er},e),{toJSON:function(){e.onDone,e.onError;var t=no(e,["onDone","onError"]);return I(I({},t),{type:Er,src:Qv(e.src)})}})}var an="",Ur="#",ur="*",ot={},it=function(e){return e[0]===Ur},Xv=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ey=function(){function e(t,n,r,i){var a=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(Xv(),n),this.parent=i==null?void 0:i.parent,this.key=this.config.key||(i==null?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:$a),this.id=this.config.id||le([this.machine.key],J(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?Et(this.config.states,function(d,l){var h,f=new e(d,{},void 0,{parent:a,key:l});return Object.assign(a.idMap,I((h={},h[f.id]=f,h),f.idMap)),f}):ot;var u=0;function c(d){var l,h;d.order=u++;try{for(var f=G(ut(d)),p=f.next();!p.done;p=f.next()){var v=p.value;c(v)}}catch(g){l={error:g}}finally{try{p&&!p.done&&(h=f.return)&&h.call(f)}finally{if(l)throw l.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(d){var l=d.event;return l===an}):an in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Ne(this.config.entry||this.config.onEntry).map(function(d){return xt(d)}),this.onExit=Ne(this.config.exit||this.config.onExit).map(function(d){return xt(d)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Ne(this.config.invoke).map(function(d,l){var h,f;if(Je(d)){var p=en(a.id,l);return a.machine.options.services=I((h={},h[p]=d,h),a.machine.options.services),on({src:p,id:p})}else if(Y(d.src)){var p=d.id||en(a.id,l);return on(I(I({},d),{id:p,src:d.src}))}else if(Je(d.src)||Q(d.src)){var p=d.id||en(a.id,l);return a.machine.options.services=I((f={},f[p]=d.src,f),a.machine.options.services),on(I(I({id:p},d),{src:p}))}else{var v=d.src;return on(I(I({id:en(a.id,l)},d),{src:v}))}}),this.activities=Ne(this.config.activities).concat(this.invoke).map(function(d){return so(d)}),this.transition=this.transition.bind(this),this.tags=Ne(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Ba(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,a=r.activities,s=r.guards,u=r.services,c=r.delays;return new e(this.config,{actions:I(I({},i),t.actions),activities:I(I({},a),t.activities),guards:I(I({},s),t.guards),services:I(I({},u),t.services),delays:I(I({},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:Et(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===an,r=this.transitions.filter(function(i){var a=i.eventType===t;return n?a:a||i.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(a,s){var u=Q(a)?"".concat(t.id,":delay[").concat(s,"]"):a,c=Uv(u,t.id);return t.onEntry.push(jn(c,{delay:a})),t.onExit.push(Tv(c)),c},i=wt(n)?n.map(function(a,s){var u=r(a.delay,s);return I(I({},a),{event:u})}):ce(Object.keys(n).map(function(a,s){var u=n[a],c=Y(u)?{target:u}:u,d=isNaN(+a)?a:+a,l=r(d,s);return Ne(c).map(function(h){return I(I({},h),{event:l,delay:d})})}));return i.map(function(a){var s=a.delay;return I(I({},t.formatTransition(a)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var i=t instanceof Ue?t.value:Tt(t,this.delimiter);if(Y(i)){var a=this.getStateNode(i).initial;return a!==void 0?this.getStateNodes((n={},n[i]=a,n)):[this,this.states[i]]}var s=Object.keys(i),u=[this];return u.push.apply(u,le([],J(ce(s.map(function(c){return r.getStateNode(c).getStateNodes(i[c])}))),!1)),u},e.prototype.handles=function(t){var n=Ia(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ue?t:Ue.create(t),r=Array.from(at([],this.getStateNodes(n.value)));return new Ue(I(I({},n),{value:this.resolve(n.value),configuration:r,done:Pt(r,this),tags:Ei(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var i=this.getStateNode(t),a=i.next(n,r);return!a||!a.transitions.length?this.next(n,r):a},e.prototype.transitionCompoundNode=function(t,n,r){var i=Object.keys(t),a=this.getStateNode(i[0]),s=a._transition(t[i[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var i,a,s={};try{for(var u=G(Object.keys(t)),c=u.next();!c.done;c=u.next()){var d=c.value,l=t[d];if(!!l){var h=this.getStateNode(d),f=h._transition(l,n,r);f&&(s[d]=f)}}}catch(w){i={error:w}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}var p=Object.keys(s).map(function(w){return s[w]}),v=ce(p.map(function(w){return w.transitions})),g=p.some(function(w){return w.transitions.length>0});if(!g)return this.next(n,r);var m=ce(p.map(function(w){return w.entrySet})),S=ce(Object.keys(s).map(function(w){return s[w].configuration}));return{transitions:v,entrySet:m,exitSet:ce(p.map(function(w){return w.exitSet})),configuration:S,source:n,actions:ce(Object.keys(s).map(function(w){return s[w].actions}))}},e.prototype._transition=function(t,n,r){return Y(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,i,a=this,s=n.name,u=[],c=[],d;try{for(var l=G(this.getCandidates(s)),h=l.next();!h.done;h=l.next()){var f=h.value,p=f.cond,v=f.in,g=t.context,m=v?Y(v)&&it(v)?t.matches(Tt(this.getStateNodeById(v).path,this.delimiter)):io(Tt(v,this.delimiter),pv(this.path.slice(0,-2))(t.value)):!0,S=!1;try{S=!p||Ua(this.machine,p,g,n,t)}catch(C){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
30
  `).concat(C.message))}if(S&&m){f.target!==void 0&&(c=f.target),u.push.apply(u,le([],J(f.actions),!1)),d=f;break}}}catch(C){r={error:C}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}if(!!d){if(!c.length)return{transitions:[d],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=ce(c.map(function(C){return a.getRelativeStateNodes(C,t.historyValue)})),b=!!d.internal,_=b?[]:ce(w.map(function(C){return a.nodesFromChild(C)}));return{transitions:[d],entrySet:_,exitSet:b?[]:[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,i){var a,s,u,c,d=at([],i?this.getStateNodes(i.value):[this]),l=t.configuration.length?at(d,t.configuration):d;try{for(var h=G(l),f=h.next();!f.done;f=h.next()){var p=f.value;mn(d,p)||t.entrySet.push(p)}}catch(A){a={error:A}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}try{for(var v=G(d),g=v.next();!g.done;g=v.next()){var p=g.value;(!mn(l,p)||mn(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(A){u={error:A}}finally{try{g&&!g.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}var m=ce(t.entrySet.map(function(A){var E=[];if(A.type!=="final")return E;var T=A.parent;if(!T.parent)return E;E.push(tn(A.id,A.doneData),tn(T.id,A.doneData?wn(A.doneData,n,r):void 0));var x=T.parent;return x.type==="parallel"&&ut(x).every(function(V){return Pt(t.configuration,V)})&&E.push(tn(x.id)),E}));t.exitSet.sort(function(A,E){return E.order-A.order}),t.entrySet.sort(function(A,E){return A.order-E.order});var S=new Set(t.entrySet),w=new Set(t.exitSet),b=J([ce(Array.from(S).map(function(A){return le(le([],J(A.activities.map(function(E){return Pv(E)})),!1),J(A.onEntry),!1)})).concat(m.map(_v)),ce(Array.from(w).map(function(A){return le(le([],J(A.onExit),!1),J(A.activities.map(function(E){return Nv(E)})),!1)}))],2),_=b[0],C=b[1],$=bn(C.concat(t.actions).concat(_),this.machine.options.actions);return $},e.prototype.transition=function(t,n,r){t===void 0&&(t=this.initialState);var i=ve(n),a;if(t instanceof Ue)a=r===void 0?t:this.resolveState(Ue.from(t,r));else{var s=Y(t)?this.resolve(yn(this.getResolvedPath(t))):this.resolve(t),u=r!=null?r:this.machine.context;a=this.resolveState(Ue.from(s,u))}if(this.strict&&!this.events.includes(i.name)&&!mv(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var c=this._transition(a.value,a,i)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:a,actions:[]},d=at([],this.getStateNodes(a.value)),l=c.configuration.length?at(d,c.configuration):d;return c.configuration=le([],J(l),!1),this.resolveTransition(c,a,a.context,i)},e.prototype.resolveRaisedTransition=function(t,n,r){var i,a=t.actions;return t=this.transition(t,n),t._event=r,t.event=r.data,(i=t.actions).unshift.apply(i,le([],J(a),!1)),t},e.prototype.resolveTransition=function(t,n,r,i){var a,s,u=this;i===void 0&&(i=Sn);var c=t.configuration,d=!n||t.transitions.length>0,l=d?Fv(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,i,n),p=n?I({},n.activities):{};try{for(var v=G(f),g=v.next();!g.done;g=v.next()){var m=g.value;m.type===Cr?p[m.activity.id||m.activity.type]=m:m.type===ro&&(p[m.activity.id||m.activity.type]=!1)}}catch(de){a={error:de}}finally{try{g&&!g.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}var S=J(Nr(this,n,r,i,f,this.machine.config.preserveActionOrder),2),w=S[0],b=S[1],_=J(Pa(w,function(de){return de.type===Fn||de.type===Ln&&de.to===st.Internal}),2),C=_[0],$=_[1],A=w.filter(function(de){var Te;return de.type===Cr&&((Te=de.activity)===null||Te===void 0?void 0:Te.type)===Er}),E=A.reduce(function(de,Te){return de[Te.activity.id]=Vv(Te.activity,u.machine,b,i),de},n?I({},n.children):{}),T=d?t.configuration:n?n.configuration:[],x=Pt(T,this),V=new Ue({value:l||n.value,context:b,_event:i,_sessionid:n?n._sessionid:null,historyValue:l?h?vv(h,l):void 0:n?n.historyValue:void 0,history:!l||t.source?n:void 0,actions:l?$:[],activities:l?p:n?n.activities:{},events:[],configuration:T,transitions:t.transitions,children:E,done:x,tags:n==null?void 0:n.tags,machine:this}),B=r!==b;V.changed=i.name===oo||B;var L=V.history;L&&delete L.history;var oe=!x&&(this._transient||c.some(function(de){return de._transient}));if(!d&&(!oe||i.name===an))return V;var z=V;if(!x)for(oe&&(z=this.resolveRaisedTransition(z,{type:iv},i));C.length;){var me=C.shift();z=this.resolveRaisedTransition(z,me._event,i)}var Xe=z.changed||(L?!!z.actions.length||B||typeof L.value!=typeof z.value||!Ma(z.value,L.value):void 0);return z.changed=Xe,z.history=L,z.tags=Ei(z.configuration),z},e.prototype.getStateNode=function(t){if(it(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=it(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"&&it(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=Ir(t,this.delimiter).slice(),r=this;n.length;){var i=n.shift();if(!i.length)break;r=r.getStateNode(i)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||ot;switch(this.type){case"parallel":return Et(this.initialStateValue,function(a,s){return a?r.getStateNode(s).resolve(t[s]||a):ot});case"compound":if(Y(t)){var i=this.getStateNode(t);return i.type==="parallel"||i.type==="compound"?(n={},n[t]=i.initialStateValue,n):t}return Object.keys(t).length?Et(t,function(a,s){return a?r.getStateNode(s).resolve(a):ot}):this.initialStateValue||{};default:return t||ot}},e.prototype.getResolvedPath=function(t){if(it(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 Ir(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=_i(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=Cn(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;Y(n.target)?t=it(n.target)?yn(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(Cn(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=pn(this.initialStateValue);return ce(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=J(t),r=n[0],i=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var a=this.getStateNode(r);if(a.type==="history")return a.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(i)},e.prototype.historyValue=function(t){if(!!Object.keys(this.states).length)return{current:t||this.initialStateValue,states:_i(this.states,function(n,r){if(!t)return n.historyValue();var i=Y(t)?void 0:t[r];return n.historyValue(i||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 i=this.target;return i?ce(pn(i).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var a=hv(r.path,"states")(t).current;return Y(a)?[r.getStateNode(a)]:ce(pn(a).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=ce(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,i;if(this.__cache.events)return this.__cache.events;var a=this.states,s=new Set(this.ownEvents);if(a)try{for(var u=G(Object.keys(a)),c=u.next();!c.done;c=u.next()){var d=c.value,l=a[d];if(l.states)try{for(var h=(r=void 0,G(l.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&&(i=h.return)&&i.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(!Y(r))return r;var i=r[0]===n.delimiter;if(i&&!n.parent)return n.getStateNodeByPath(r.slice(1));var a=i?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(a);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
31
- `).concat(u.message))}else return n.getStateNodeByPath(a)})},e.prototype.formatTransition=function(t){var n=this,r=bv(t.target),i="internal"in t?t.internal:r?r.some(function(c){return Y(c)&&c[0]===n.delimiter}):!0,a=this.machine.options.guards,s=this.resolveTarget(r),u=I(I({},t),{actions:bn(Pe(t.actions)),cond:xa(t.cond,a),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return I(I({},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,i;if(!this.config.on)i=[];else if(Array.isArray(this.config.on))i=this.config.on;else{var a=this.config.on,s=ur,u=a[s],c=u===void 0?[]:u,d=no(a,[typeof s=="symbol"?s:s+""]);i=ce(Object.keys(d).map(function(w){var b=rt(w,d[w]);return b}).concat(rt(ur,c)))}var l=this.config.always?rt("",this.config.always):[],h=this.config.onDone?rt(String(tn(this.id)),this.config.onDone):[],f=ce(this.invoke.map(function(w){var b=[];return w.onDone&&b.push.apply(b,le([],J(rt(String(hn(w.id)),w.onDone)),!1)),w.onError&&b.push.apply(b,le([],J(rt(String($t(w.id)),w.onError)),!1)),b})),p=this.after,v=ce(le(le(le(le([],J(h),!1),J(f),!1),J(i),!1),J(l),!1).map(function(w){return Pe(w).map(function(b){return r.formatTransition(b)})}));try{for(var g=G(p),m=g.next();!m.done;m=g.next()){var S=m.value;v.push(S)}}catch(w){t={error:w}}finally{try{m&&!m.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return v},e}();function Ft(e,t){return new ey(e,t)}var xe=xv,co=$v,ty=Ov,K={},lo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
31
+ `).concat(u.message))}else return n.getStateNodeByPath(a)})},e.prototype.formatTransition=function(t){var n=this,r=bv(t.target),i="internal"in t?t.internal:r?r.some(function(c){return Y(c)&&c[0]===n.delimiter}):!0,a=this.machine.options.guards,s=this.resolveTarget(r),u=I(I({},t),{actions:bn(Ne(t.actions)),cond:xa(t.cond,a),target:s,source:this,internal:i,eventType:t.event,toJSON:function(){return I(I({},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,i;if(!this.config.on)i=[];else if(Array.isArray(this.config.on))i=this.config.on;else{var a=this.config.on,s=ur,u=a[s],c=u===void 0?[]:u,d=no(a,[typeof s=="symbol"?s:s+""]);i=ce(Object.keys(d).map(function(w){var b=rt(w,d[w]);return b}).concat(rt(ur,c)))}var l=this.config.always?rt("",this.config.always):[],h=this.config.onDone?rt(String(tn(this.id)),this.config.onDone):[],f=ce(this.invoke.map(function(w){var b=[];return w.onDone&&b.push.apply(b,le([],J(rt(String(hn(w.id)),w.onDone)),!1)),w.onError&&b.push.apply(b,le([],J(rt(String($t(w.id)),w.onError)),!1)),b})),p=this.after,v=ce(le(le(le(le([],J(h),!1),J(f),!1),J(i),!1),J(l),!1).map(function(w){return Ne(w).map(function(b){return r.formatTransition(b)})}));try{for(var g=G(p),m=g.next();!m.done;m=g.next()){var S=m.value;v.push(S)}}catch(w){t={error:w}}finally{try{m&&!m.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return v},e}();function Ft(e,t){return new ey(e,t)}var Pe=xv,co=$v,ty=Ov,K={},lo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
32
32
  Copyright (c) Microsoft Corporation.
33
33
 
34
34
  Permission to use, copy, modify, and/or distribute this software for any
@@ -41,7 +41,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
41
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
42
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
43
  PERFORMANCE OF THIS SOFTWARE.
44
- ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,d=arguments.length;c<d;c++){u=arguments[c];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])}return s},e.__assign.apply(this,arguments)};function t(a,s){var u={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&s.indexOf(c)<0&&(u[c]=a[c]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,c=Object.getOwnPropertySymbols(a);d<c.length;d++)s.indexOf(c[d])<0&&Object.prototype.propertyIsEnumerable.call(a,c[d])&&(u[c[d]]=a[c[d]]);return u}function n(a){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&a[s],c=0;if(u)return u.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(a,s){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var c=u.call(a),d,l=[],h;try{for(;(s===void 0||s-- >0)&&!(d=c.next()).done;)l.push(d.value)}catch(f){h={error:f}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return l}function i(a,s,u){if(u||arguments.length===2)for(var c=0,d=s.length,l;c<d;c++)(l||!(c in s))&&(l||(l=Array.prototype.slice.call(s,0,c)),l[c]=s[c]);return a.concat(l||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=i,e.__values=n})(lo);var fo={};(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={}))})(fo);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var he=fo,ny=he.ActionTypes.Start,ry=he.ActionTypes.Stop,oy=he.ActionTypes.Raise,iy=he.ActionTypes.Send,ay=he.ActionTypes.Cancel,sy=he.ActionTypes.NullEvent,uy=he.ActionTypes.Assign,cy=he.ActionTypes.After,ly=he.ActionTypes.DoneState,dy=he.ActionTypes.Log,fy=he.ActionTypes.Init,py=he.ActionTypes.Invoke,hy=he.ActionTypes.ErrorExecution,my=he.ActionTypes.ErrorPlatform,gy=he.ActionTypes.ErrorCustom,vy=he.ActionTypes.Update,yy=he.ActionTypes.Choose,wy=he.ActionTypes.Pure;fe.after=cy;fe.assign=uy;fe.cancel=ay;fe.choose=yy;fe.doneState=ly;fe.error=gy;fe.errorExecution=hy;fe.errorPlatform=my;fe.init=fy;fe.invoke=py;fe.log=dy;fe.nullEvent=sy;fe.pure=wy;fe.raise=oy;fe.send=iy;fe.start=ny;fe.stop=ry;fe.update=vy;var La={},St={};Object.defineProperty(St,"__esModule",{value:!0});var Sy=".",by={},_y="xstate.guard",Cy="";St.DEFAULT_GUARD_TYPE=_y;St.EMPTY_ACTIVITY_MAP=by;St.STATE_DELIMITER=Sy;St.TARGETLESS_KEY=Cy;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var Ay=!0;zn.IS_PRODUCTION=Ay;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=lo,n=St,r=zn,i;function a(y){return Object.keys(y)}function s(y,N,U){U===void 0&&(U=n.STATE_DELIMITER);var k=h(y,U),D=h(N,U);return me(D)?me(k)?D===k:!1:me(k)?k in D:Object.keys(k).every(function(M){return M in D?s(k[M],D[M]):!1})}function u(y){try{return me(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 me(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 d(y,N){try{return oe(y)?y:y.toString().split(N)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function l(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,N){if(l(y))return y.value;if(oe(y))return f(y);if(typeof y!="string")return y;var U=d(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),D=0;D<k.length;D++){var M=k[D];U[M]=N(y[M],M,y,D)}return U}function v(y,N,U){var k,D,M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ie=y[Z];!U(ie)||(M[Z]=N(ie,Z,y))}}catch(be){k={error:be}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}var g=function(y){return function(N){var U,k,D=N;try{for(var M=t.__values(y),j=M.next();!j.done;j=M.next()){var F=j.value;D=D[F]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(k=M.return)&&k.call(M)}finally{if(U)throw U.error}}return D}};function m(y,N){return function(U){var k,D,M=U;try{for(var j=t.__values(y),F=j.next();!F.done;F=j.next()){var Z=F.value;M=M[N][Z]}}catch(ie){k={error:ie}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}}function S(y){if(!y)return[[]];if(me(y))return[[y]];var N=b(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(D){return[U].concat(D)})}));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 D=t.__values(y),M=D.next();!M.done;M=D.next())for(var j=M.value,F=k,Z=0;Z<j.length;Z++){var ie=j[Z];if(Z===j.length-2){F[ie]=j[Z+1];break}F[ie]=F[ie]||{},F=F[ie]}}catch(be){N={error:be}}finally{try{M&&!M.done&&(U=D.return)&&U.call(D)}finally{if(N)throw N.error}}return k}function b(y){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(y),!1))}function _(y){return oe(y)?y:[y]}function C(y){return y===void 0?[]:_(y)}function $(y,N,U){var k,D;if(z(y))return y(N,U.data);var M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ie=y[Z];z(ie)?M[Z]=ie(N,U.data):M[Z]=ie}}catch(be){k={error:be}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}function A(y){return/^(done|error)\./.test(y)}function E(y){return!!(y instanceof Promise||y!==null&&(z(y)||typeof y=="object")&&z(y.then))}function T(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function x(y,N){var U,k,D=t.__read([[],[]],2),M=D[0],j=D[1];try{for(var F=t.__values(y),Z=F.next();!Z.done;Z=F.next()){var ie=Z.value;N(ie)?M.push(ie):j.push(ie)}}catch(be){U={error:be}}finally{try{Z&&!Z.done&&(k=F.return)&&k.call(F)}finally{if(U)throw U.error}}return[M,j]}function V(y,N){return p(y.states,function(U,k){if(!!U){var D=(me(N)?void 0:N[k])||(U?U.current:void 0);if(!!D)return{current:D,states:V(U,D)}}})}function B(y,N){return{current:N,states:V(y,N)}}function L(y,N,U,k){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var D=y&&U.reduce(function(M,j){var F,Z,ie=j.assignment,be={state:k,action:j,_event:N},te={};if(z(ie))te=ie(M,N.data,be);else try{for(var ae=t.__values(Object.keys(ie)),Ge=ae.next();!Ge.done;Ge=ae.next()){var Jt=Ge.value,rr=ie[Jt];te[Jt]=z(rr)?rr(M,N.data,be):rr}}catch(ks){F={error:ks}}finally{try{Ge&&!Ge.done&&(Z=ae.return)&&Z.call(ae)}finally{if(F)throw F.error}}return Object.assign({},M,te)},y);return D}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 oe(y){return Array.isArray(y)}function z(y){return typeof y=="function"}function me(y){return typeof y=="string"}function Xe(y,N){if(!!y)return me(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 de(y){try{return"subscribe"in y&&z(y.subscribe)}catch{return!1}}var Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xn=(i={},i[Te]=function(){return this},i[Symbol.observable]=function(){return this},i);function Gt(y){return!!y&&"__xstatenode"in y}function er(y){return!!y&&typeof y.send=="function"}var tr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Ht(y,N){return me(y)||typeof y=="number"?t.__assign({type:y},N):y}function Kt(y,N){if(!me(y)&&"$$type"in y&&y.$$type==="scxml")return y;var U=Ht(y);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},N)}function qt(y,N){var U=_(N).map(function(k){return typeof k=="undefined"||typeof k=="string"||Gt(k)?{target:k,event:y}:t.__assign(t.__assign({},k),{event:y})});return U}function _t(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return C(y)}function P(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 D=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(D))}}}function ye(y,N,U,k,D){var M=y.options.guards,j={state:D,cond:N,_event:k};if(N.type===n.DEFAULT_GUARD_TYPE)return((M==null?void 0:M[N.name])||N.predicate)(U,k.data,j);var F=M==null?void 0:M[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 Wt(y){return typeof y=="string"?{type:y}:y}function nr(y,N,U){if(typeof y=="object")return y;var k=function(){};return{next:y,error:N||k,complete:U||k}}function Yt(y,N){return"".concat(y,":invocation[").concat(N,"]")}e.createInvokeId=Yt,e.evaluateGuard=ye,e.flatten=b,e.getActionType=c,e.getEventType=u,e.interopSymbols=Xn,e.isActor=er,e.isArray=oe,e.isBehavior=T,e.isBuiltInEvent=A,e.isFunction=z,e.isMachine=Gt,e.isObservable=de,e.isPromiseLike=E,e.isStateLike=l,e.isString=me,e.keys=a,e.mapContext=$,e.mapFilterValues=v,e.mapValues=p,e.matchesState=s,e.nestedPath=m,e.normalizeTarget=_t,e.partition=x,e.path=g,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=P,e.symbolObservable=Te,e.toArray=C,e.toArrayStrict=_,e.toEventObject=Ht,e.toGuard=Xe,e.toInvokeSource=Wt,e.toObserver=nr,e.toSCXMLEvent=Kt,e.toStatePath=d,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=qt,e.uniqueId=tr,e.updateContext=L,e.updateHistoryStates=V,e.updateHistoryValue=B})(La);Object.defineProperty(K,"__esModule",{value:!0});var X=lo,Ie=fo,pe=fe,H=La,Ey=zn,$y=H.toSCXMLEvent({type:pe.init});function Or(e,t){return t&&t[e]||void 0}function Gn(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 i=r.type||e.type;n=X.__assign(X.__assign(X.__assign({},r),e),{type:i})}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 Gn(r,t)})};function po(e){var t=Gn(e);return X.__assign(X.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function Iy(e){return H.isString(e)?{type:pe.raise,event:e}:bt(e,{to:Ie.SpecialTargets.Internal})}function ja(e){return{type:pe.raise,_event:H.toSCXMLEvent(e.event)}}function bt(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 za(e,t,n,r){var i={_event:n},a=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,i):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,i):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,i):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,i):e.to;return X.__assign(X.__assign({},e),{to:c,_event:a,event:a.data,delay:s})}function ho(e,t){return bt(e,X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function Ty(e,t,n){return bt(t,X.__assign(X.__assign({},n),{to:e}))}function Py(){return ho(pe.update)}function Ny(e,t){return bt(e,X.__assign(X.__assign({},t),{to:function(n,r,i){var a=i._event;return a.origin}}))}var ky=function(e,t){return{context:e,event:t}};function xy(e,t){return e===void 0&&(e=ky),{type:pe.log,label:t,expr:e}}var Ga=function(e,t,n){return X.__assign(X.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Uy=function(e){return{type:pe.cancel,sendId:e}};function Oy(e){var t=po(e);return{type:Ie.ActionTypes.Start,activity:t,exec:void 0}}function Ry(e){var t=H.isFunction(e)?e:po(e);return{type:Ie.ActionTypes.Stop,activity:t,exec:void 0}}function Ha(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,i=typeof r=="string"?{id:r}:r,a={type:Ie.ActionTypes.Stop,activity:i};return a}var Vy=function(e){return{type:pe.assign,assignment:e}};function By(e){return typeof e=="object"&&"type"in e}function Dy(e,t){var n=t?"#".concat(t):"";return"".concat(Ie.ActionTypes.After,"(").concat(e,")").concat(n)}function My(e,t){var n="".concat(Ie.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Fy(e,t){var n="".concat(Ie.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ly(e,t){var n="".concat(Ie.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function jy(e){return{type:Ie.ActionTypes.Pure,get:e}}function zy(e,t){return bt(function(n,r){return r},X.__assign(X.__assign({},t),{to:e}))}function Gy(e,t){return ho(function(n,r,i){return{type:pe.error,data:H.isFunction(e)?e(n,r,i):e}},X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function Hy(e){return{type:Ie.ActionTypes.Choose,conds:e}}function Vr(e,t,n,r,i,a){a===void 0&&(a=!1);var s=X.__read(a?[[],i]:H.partition(i,function(f){return f.type===pe.assign}),2),u=s[0],c=s[1],d=u.length?H.updateContext(n,r,u,t):n,l=a?[n]:void 0,h=H.flatten(c.map(function(f){var p;switch(f.type){case pe.raise:return ja(f);case pe.send:var v=za(f,d,r,e.options.delays);return Ey.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 Ga(f,d,r);case pe.choose:{var g=f,m=(p=g.conds.find(function(x){var V=H.toGuard(x.cond,e.options.guards);return!V||H.evaluateGuard(e,V,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!m)return[];var S=X.__read(Vr(e,t,d,r,Rr(H.toArray(m),e.options.actions),a),2),w=S[0],b=S[1];return d=b,l==null||l.push(d),w}case pe.pure:{var m=f.get(d,r.data);if(!m)return[];var _=X.__read(Vr(e,t,d,r,Rr(H.toArray(m),e.options.actions),a),2),C=_[0],$=_[1];return d=$,l==null||l.push(d),C}case pe.stop:return Ha(f,d,r);case pe.assign:{d=H.updateContext(d,r,[f],t),l==null||l.push(d);break}default:var A=Gn(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=X.__assign(X.__assign({},A),{exec:function(x){for(var V=[],B=1;B<arguments.length;B++)V[B-1]=arguments[B];E.apply(void 0,X.__spreadArray([l[T]],X.__read(V),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}K.actionTypes=pe;K.after=Dy;var ue=K.assign=Vy;K.cancel=Uy;K.choose=Hy;K.done=My;K.doneInvoke=Fy;K.error=Ly;K.escalate=Gy;K.forwardTo=zy;K.getActionFunction=Or;K.initEvent=$y;K.isActionObject=By;K.log=xy;K.pure=jy;K.raise=Iy;K.resolveActions=Vr;K.resolveLog=Ga;K.resolveRaise=ja;K.resolveSend=za;K.resolveStop=Ha;K.respond=Ny;K.send=bt;K.sendParent=ho;K.sendTo=Ty;K.sendUpdate=Py;K.start=Oy;var Ky=K.stop=Ry;K.toActionObject=Gn;K.toActionObjects=Rr;K.toActivityDefinition=po;var sn=function(e){return Ky(e)},qy=ue({attributeToVerify:function(e){}}),Wy=ue({challengeName:function(e){}}),Yy=ue({requiredAttributes:function(e){}}),mo=ue({remoteError:function(e){return""}}),go=ue({formValues:function(e){return{}}}),vo=ue({touched:function(e){return{}}}),Jy=ue({unverifiedAttributes:function(e){}}),Zy=ue({username:function(e){}}),yo=ue({validationError:function(e){return{}}}),Qy=ue({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),Xy=ue({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}}),e1=ue({redirectIntent:function(e){return"confirmPasswordReset"}}),t1=ue({redirectIntent:function(e){return"confirmSignUp"}}),Ka=ue({authAttributes:function(e,t){var n,r,i=e.loginMechanisms[0];return{username:(n=e.formValues[i])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),wo=ue({validationError:function(e,t){return t.data}}),So=ue({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}}),n1=ue({unverifiedAttributes:function(e,t){return t.data.unverified}}),qa=ue({user:function(e,t){return t.data.user||t.data}}),r1=ue({username:function(e,t){return e.formValues.username}}),o1=ue({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),i1=ue({authAttributes:function(e,t){return{username:e.formValues.username}}}),bo=ue({formValues:function(e,t){var n,r=t.data,i=r.name,a=r.value;return R(R({},e.formValues),((n={})[i]=a,n))}}),_o=ue({formValues:function(e,t){return R(R({},e.formValues),t.data)}}),Co=ue({touched:function(e,t){var n,r=t.data.name;return R(R({},e.touched),((n={})["".concat(r)]=!0,n))}}),Wa=ue({formValues:function(e,t){var n,r,i=e.loginMechanisms[0],a=i===void 0?"username":i;if(!e.formValues.phone_number&&a!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",d="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),l=R(R({},s),((n={})[c]=d,n));return delete l.country_code,l}}),a1=ke,s1=Kr,u1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c1=/^\w*$/;function l1(e,t){if(a1(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||s1(e)?!0:c1.test(e)||!u1.test(e)||t!=null&&e in Object(t)}var Ao=l1,Ya=Jr,d1="Expected a function";function Eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(d1);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Eo.Cache||Ya),n}Eo.Cache=Ya;var f1=Eo,p1=f1,h1=500;function m1(e){var t=p1(e,function(r){return n.size===h1&&n.clear(),r}),n=t.cache;return t}var g1=m1,v1=g1,y1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w1=/\\(\\)?/g,S1=v1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(y1,function(n,r,i,a){t.push(i?a.replace(w1,"$1"):r||n)}),t}),b1=S1,Ii=Ot,_1=ta,C1=ke,A1=Kr,E1=1/0,Ti=Ii?Ii.prototype:void 0,Pi=Ti?Ti.toString:void 0;function Ja(e){if(typeof e=="string")return e;if(C1(e))return _1(e,Ja)+"";if(A1(e))return Pi?Pi.call(e):"";var t=e+"";return t=="0"&&1/e==-E1?"-0":t}var $1=Ja,I1=$1;function T1(e){return e==null?"":I1(e)}var P1=T1,N1=ke,k1=Ao,x1=b1,U1=P1;function O1(e,t){return N1(e)?e:k1(e,t)?[e]:x1(U1(e))}var Hn=O1,R1=Kr,V1=1/0;function B1(e){if(typeof e=="string"||R1(e))return e;var t=e+"";return t=="0"&&1/e==-V1?"-0":t}var Lt=B1,D1=Hn,M1=Lt;function F1(e,t){t=D1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[M1(t[n++])];return n&&n==r?e:void 0}var $o=F1,L1=$o;function j1(e,t,n){var r=e==null?void 0:L1(e,t);return r===void 0?n:r}var Za=j1,Ne=Za,z1=ia,G1=Mt,H1=Nn,K1=ke,q1=Rt,W1=tt.exports,Y1=Un,J1=xn,Z1="[object Map]",Q1="[object Set]",X1=Object.prototype,ew=X1.hasOwnProperty;function tw(e){if(e==null)return!0;if(q1(e)&&(K1(e)||typeof e=="string"||typeof e.splice=="function"||W1(e)||J1(e)||H1(e)))return!e.length;var t=G1(e);if(t==Z1||t==Q1)return!e.size;if(Y1(e))return!z1(e).length;for(var n in e)if(ew.call(e,n))return!1;return!0}var nw=tw,Br=nw,rw=Zr,ow=Vt;function iw(e,t,n){(n!==void 0&&!ow(e[t],n)||n===void 0&&!(t in e))&&rw(e,t,n)}var Qa=iw;function aw(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++i];if(n(a[c],c,a)===!1)break}return t}}var sw=aw,uw=sw,cw=uw(),lw=cw,dw=Rt,fw=Ke;function pw(e){return fw(e)&&dw(e)}var hw=pw,mw=pt,gw=eo,vw=Ke,yw="[object Object]",ww=Function.prototype,Sw=Object.prototype,Xa=ww.toString,bw=Sw.hasOwnProperty,_w=Xa.call(Object);function Cw(e){if(!vw(e)||mw(e)!=yw)return!1;var t=gw(e);if(t===null)return!0;var n=bw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Xa.call(n)==_w}var Aw=Cw;function Ew(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var es=Ew,$w=Bt,Iw=Dt;function Tw(e){return $w(e,Iw(e))}var Pw=Tw,Ni=Qa,Nw=vn.exports,kw=wa,xw=la,Uw=Sa,ki=Nn,xi=ke,Ow=hw,Rw=tt.exports,Vw=Gr,Bw=Fe,Dw=Aw,Mw=xn,Ui=es,Fw=Pw;function Lw(e,t,n,r,i,a,s){var u=Ui(e,n),c=Ui(t,n),d=s.get(c);if(d){Ni(e,n,d);return}var l=a?a(u,c,n+"",e,t,s):void 0,h=l===void 0;if(h){var f=xi(c),p=!f&&Rw(c),v=!f&&!p&&Mw(c);l=c,f||p||v?xi(u)?l=u:Ow(u)?l=xw(u):p?(h=!1,l=Nw(c,!0)):v?(h=!1,l=kw(c,!0)):l=[]:Dw(c)||ki(c)?(l=u,ki(u)?l=Fw(u):(!Bw(u)||Vw(u))&&(l=Uw(c))):h=!1}h&&(s.set(c,l),i(l,c,r,a,s),s.delete(c)),Ni(e,n,l)}var jw=Lw,zw=Mn,Gw=Qa,Hw=lw,Kw=jw,qw=Fe,Ww=Dt,Yw=es;function ts(e,t,n,r,i){e!==t&&Hw(t,function(a,s){if(i||(i=new zw),qw(a))Kw(e,t,s,n,ts,r,i);else{var u=r?r(Yw(e,s),a,s+"",e,t,i):void 0;u===void 0&&(u=a),Gw(e,s,u)}},Ww)}var Jw=ts;function Zw(e){return e}var Io=Zw;function Qw(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 Xw=Qw,eS=Xw,Oi=Math.max;function tS(e,t,n){return t=Oi(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Oi(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=r[i];return u[t]=n(s),eS(e,this,u)}}var nS=tS;function rS(e){return function(){return e}}var oS=rS,iS=oS,Ri=ca,aS=Io,sS=Ri?function(e,t){return Ri(e,"toString",{configurable:!0,enumerable:!1,value:iS(t),writable:!0})}:aS,uS=sS,cS=800,lS=16,dS=Date.now;function fS(e){var t=0,n=0;return function(){var r=dS(),i=lS-(r-n);if(n=r,i>0){if(++t>=cS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pS=fS,hS=uS,mS=pS,gS=mS(hS),vS=gS,yS=Io,wS=nS,SS=vS;function bS(e,t){return SS(wS(e,t,yS),e+"")}var _S=bS,CS=Vt,AS=Rt,ES=kn,$S=Fe;function IS(e,t,n){if(!$S(n))return!1;var r=typeof t;return(r=="number"?AS(n)&&ES(t,n.length):r=="string"&&t in n)?CS(n[t],e):!1}var TS=IS,PS=_S,NS=TS;function kS(e){return PS(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&NS(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}var xS=kS,US=Jw,OS=xS,RS=OS(function(e,t,n){US(e,t,n)}),VS=RS,To=function(e,t,n,r){return q(void 0,void 0,void 0,function(){var i,a;return W(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return i=s.sent(),a=VS.apply(void 0,Oe([{}],i,!1)),Br(a)?[2,Promise.resolve()]:[2,Promise.reject(a)]}})})},An={getAmplifyConfig:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Amplify.configure()]})})},getCurrentUser:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return q(this,void 0,void 0,function(){return W(this,function(r){return[2,re.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return q(this,void 0,void 0,function(){return W(this,function(i){return[2,re.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return q(this,void 0,void 0,function(){return W(this,function(r){switch(r.label){case 0:return[4,re.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return q(this,void 0,void 0,function(){return W(this,function(i){return[2,re.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return q(this,void 0,void 0,function(){var r,i,a,s;return W(this,function(u){return r=e.password,t.password&&n?(i=[],a=+(n==null?void 0:n.passwordPolicyMinLength),r.length<a&&i.push("Password must have at least ".concat(a," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||i.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||i.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||i.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":/[\W]/.test(r)||i.push("Password must have special characters")}}),[2,i.length!==0?{password:i}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return q(this,void 0,void 0,function(){var n,r,i,a;return W(this,function(s){return n=e.password,r=e.confirm_password,i=t.confirm_password,a=t.password,n||r?(n||r)&&n!==r&&(i&&a||(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 q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})}};function BS(e){var t=e.services;return Ft({initial:"init",id:"signInActor",states:{init:{always:[{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"}}},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:qy,clearChallengeName:Wy,clearRequiredAttributes:Yy,clearError:mo,clearFormValues:go,clearTouched:vo,clearUnverifiedAttributes:Jy,clearValidationError:yo,handleInput:bo,handleSubmit:_o,handleBlur:Co,parsePhoneNumber:Wa,setChallengeName:Qy,setConfirmResetPasswordIntent:e1,setConfirmSignUpIntent:t1,setRequiredAttributes:Xy,setCredentials:Ka,setFieldErrors:wo,setRemoteError:So,setUnverifiedAttributes:n1,setUser:qa,setUsernameAuthAttributes:i1,sendUpdate:co()},guards:{shouldConfirmSignIn:function(n,r){var i=Ne(r,"data.challengeName");return[He.SMS_MFA,He.SOFTWARE_TOKEN_MFA].includes(i)},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return Ne(r,"data.challengeName")===He.MFA_SETUP},shouldForceChangePassword:function(n,r){return Ne(r,"data.challengeName")===He.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var i=r.data,a=i.unverified,s=i.verified;return Br(s)&&!Br(a)}},services:{signIn:function(n){return q(this,void 0,void 0,function(){var r,i,a;return W(this,function(s){switch(s.label){case 0:return r=n.formValues,i=r.username,a=r.password,[4,t.handleSignIn({username:i,password:a})];case 1:return[2,s.sent()]}})})},confirmSignIn:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u;return W(this,function(c){switch(c.label){case 0:return i=n.challengeName,a=n.user,s=n.formValues.confirmation_code,i!==He.SMS_MFA&&i!==He.SOFTWARE_TOKEN_MFA||(u=i),[4,t.handleConfirmSignIn({user:a,code:s,mfaType:u})];case 1:return c.sent(),[4,re.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c,d,l,h,f;return W(this,function(p){switch(p.label){case 0:i=n.user,a=n.formValues,s=a.password,u=a.phone_number,c=a.country_code,d=aa(a,["password","confirm_password","phone_number","country_code"]),u&&(l="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),d=R(R({},d),{phone_number:l})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,re.Auth.completeNewPassword(i,s,d)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,re.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return q(this,void 0,void 0,function(){var i,a;return W(this,function(s){return i=n.user,a=n.formValues.confirmation_code,[2,re.Auth.verifyTotpToken(i,a)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=r.data.provider,[4,re.Auth.federatedSignIn({provider:i})];case 1:return[2,a.sent()]}})})},checkVerifiedContact:function(n,r){return q(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=n.user,[4,re.Auth.verifiedContact(i)];case 1:return[2,a.sent()]}})})},verifyUser:function(n,r){return q(this,void 0,void 0,function(){var i,a;return W(this,function(s){switch(s.label){case 0:return i=n.formValues.unverifiedAttr,[4,re.Auth.verifyCurrentUserAttribute(i)];case 1:return a=s.sent(),n.attributeToVerify=i,[2,a]}})})},confirmVerifyUser:function(n,r){return q(this,void 0,void 0,function(){var i,a;return W(this,function(s){switch(s.label){case 0:return i=n.attributeToVerify,a=n.formValues.confirmation_code,[4,re.Auth.verifyCurrentUserAttributeSubmit(i,a)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(i){return[2,To(n.formValues,n.touched,n.passwordSettings,[An.validateConfirmPassword])]})})}}})}var DS=Ft({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 re.Auth.signOut()}}});function MS(e){var t=e.services;return Ft({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:mo,clearFormValues:go,clearTouched:vo,clearUsername:Zy,clearValidationError:yo,handleInput:bo,handleSubmit:_o,handleBlur:Co,setFieldErrors:wo,setRemoteError:So,setUsername:r1,sendUpdate:co()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){var r,i;return q(this,void 0,void 0,function(){var a;return W(this,function(s){return a=(i=(r=n.formValues)===null||r===void 0?void 0:r.username)!==null&&i!==void 0?i:n.username,[2,t.handleForgotPassword(a)]})})},confirmResetPassword:function(n){return q(this,void 0,void 0,function(){var r,i,a,s;return W(this,function(u){return r=n.username,i=n.formValues,a=i.confirmation_code,s=i.password,[2,t.handleForgotPasswordSubmit({username:r,code:a,password:s})]})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(i){return[2,To(n.formValues,n.touched,n.passwordSettings,[An.validateConfirmPassword])]})})}}})}var FS="__lodash_hash_undefined__";function LS(e){return this.__data__.set(e,FS),this}var jS=LS;function zS(e){return this.__data__.has(e)}var GS=zS,HS=Jr,KS=jS,qS=GS;function En(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new HS;++t<n;)this.add(e[t])}En.prototype.add=En.prototype.push=KS;En.prototype.has=qS;var WS=En;function YS(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 JS=YS;function ZS(e,t){return e.has(t)}var QS=ZS,XS=WS,eb=JS,tb=QS,nb=1,rb=2;function ob(e,t,n,r,i,a){var s=n&nb,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var d=a.get(e),l=a.get(t);if(d&&l)return d==t&&l==e;var h=-1,f=!0,p=n&rb?new XS:void 0;for(a.set(e,t),a.set(t,e);++h<u;){var v=e[h],g=t[h];if(r)var m=s?r(g,v,h,t,e,a):r(v,g,h,e,t,a);if(m!==void 0){if(m)continue;f=!1;break}if(p){if(!eb(t,function(S,w){if(!tb(p,w)&&(v===S||i(v,S,n,r,a)))return p.push(w)})){f=!1;break}}else if(!(v===g||i(v,g,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ns=ob;function ib(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var ab=ib;function sb(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var ub=sb,Vi=Ot,Bi=ya,cb=Vt,lb=ns,db=ab,fb=ub,pb=1,hb=2,mb="[object Boolean]",gb="[object Date]",vb="[object Error]",yb="[object Map]",wb="[object Number]",Sb="[object RegExp]",bb="[object Set]",_b="[object String]",Cb="[object Symbol]",Ab="[object ArrayBuffer]",Eb="[object DataView]",Di=Vi?Vi.prototype:void 0,cr=Di?Di.valueOf:void 0;function $b(e,t,n,r,i,a,s){switch(n){case Eb:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ab:return!(e.byteLength!=t.byteLength||!a(new Bi(e),new Bi(t)));case mb:case gb:case wb:return cb(+e,+t);case vb:return e.name==t.name&&e.message==t.message;case Sb:case _b:return e==t+"";case yb:var u=db;case bb:var c=r&pb;if(u||(u=fb),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;r|=hb,s.set(e,t);var l=lb(u(e),u(t),r,i,a,s);return s.delete(e),l;case Cb:if(cr)return cr.call(e)==cr.call(t)}return!1}var Ib=$b,Mi=ma,Tb=1,Pb=Object.prototype,Nb=Pb.hasOwnProperty;function kb(e,t,n,r,i,a){var s=n&Tb,u=Mi(e),c=u.length,d=Mi(t),l=d.length;if(c!=l&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:Nb.call(t,f)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var g=!0;a.set(e,t),a.set(t,e);for(var m=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var b=s?r(w,S,f,t,e,a):r(S,w,f,e,t,a);if(!(b===void 0?S===w||i(S,w,n,r,a):b)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var _=e.constructor,C=t.constructor;_!=C&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof C=="function"&&C instanceof C)&&(g=!1)}return a.delete(e),a.delete(t),g}var xb=kb,lr=Mn,Ub=ns,Ob=Ib,Rb=xb,Fi=Mt,Li=ke,ji=tt.exports,Vb=xn,Bb=1,zi="[object Arguments]",Gi="[object Array]",un="[object Object]",Db=Object.prototype,Hi=Db.hasOwnProperty;function Mb(e,t,n,r,i,a){var s=Li(e),u=Li(t),c=s?Gi:Fi(e),d=u?Gi:Fi(t);c=c==zi?un:c,d=d==zi?un:d;var l=c==un,h=d==un,f=c==d;if(f&&ji(e)){if(!ji(t))return!1;s=!0,l=!1}if(f&&!l)return a||(a=new lr),s||Vb(e)?Ub(e,t,n,r,i,a):Ob(e,t,c,n,r,i,a);if(!(n&Bb)){var p=l&&Hi.call(e,"__wrapped__"),v=h&&Hi.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return a||(a=new lr),i(g,m,n,r,a)}}return f?(a||(a=new lr),Rb(e,t,n,r,i,a)):!1}var Fb=Mb,Lb=Fb,Ki=Ke;function rs(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ki(e)&&!Ki(t)?e!==e&&t!==t:Lb(e,t,n,r,rs,i)}var os=rs,jb=Mn,zb=os,Gb=1,Hb=2;function Kb(e,t,n,r){var i=n.length,a=i,s=!r;if(e==null)return!a;for(e=Object(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=n[i];var c=u[0],d=e[c],l=u[1];if(s&&u[2]){if(d===void 0&&!(c in e))return!1}else{var h=new jb;if(r)var f=r(d,l,c,e,t,h);if(!(f===void 0?zb(l,d,Gb|Hb,r,h):f))return!1}}return!0}var qb=Kb,Wb=Fe;function Yb(e){return e===e&&!Wb(e)}var is=Yb,Jb=is,Zb=On;function Qb(e){for(var t=Zb(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Jb(i)]}return t}var Xb=Qb;function e0(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var as=e0,t0=qb,n0=Xb,r0=as;function o0(e){var t=n0(e);return t.length==1&&t[0][2]?r0(t[0][0],t[0][1]):function(n){return n===e||t0(n,e,t)}}var i0=o0;function a0(e,t){return e!=null&&t in Object(e)}var s0=a0,u0=Hn,c0=Nn,l0=ke,d0=kn,f0=Hr,p0=Lt;function h0(e,t,n){t=u0(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=p0(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&f0(i)&&d0(s,i)&&(l0(e)||c0(e)))}var m0=h0,g0=s0,v0=m0;function y0(e,t){return e!=null&&v0(e,t,g0)}var w0=y0,S0=os,b0=Za,_0=w0,C0=Ao,A0=is,E0=as,$0=Lt,I0=1,T0=2;function P0(e,t){return C0(e)&&A0(t)?E0($0(e),t):function(n){var r=b0(n,e);return r===void 0&&r===t?_0(n,e):S0(t,r,I0|T0)}}var N0=P0;function k0(e){return function(t){return t==null?void 0:t[e]}}var x0=k0,U0=$o;function O0(e){return function(t){return U0(t,e)}}var R0=O0,V0=x0,B0=R0,D0=Ao,M0=Lt;function F0(e){return D0(e)?V0(M0(e)):B0(e)}var L0=F0,j0=i0,z0=N0,G0=Io,H0=ke,K0=L0;function q0(e){return typeof e=="function"?e:e==null?G0:typeof e=="object"?H0(e)?z0(e[0],e[1]):j0(e):K0(e)}var W0=q0,Y0=Qr,J0=Hn,Z0=kn,qi=Fe,Q0=Lt;function X0(e,t,n,r){if(!qi(e))return e;t=J0(t,e);for(var i=-1,a=t.length,s=a-1,u=e;u!=null&&++i<a;){var c=Q0(t[i]),d=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var l=u[c];d=r?r(l,c,u):void 0,d===void 0&&(d=qi(l)?l:Z0(t[i+1])?[]:{})}Y0(u,c,d),u=u[c]}return e}var e_=X0,t_=$o,n_=e_,r_=Hn;function o_(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],u=t_(e,s);n(u,s)&&n_(a,r_(s,e),u)}return a}var i_=o_,a_=ta,s_=W0,u_=i_,c_=ga;function l_(e,t){if(e==null)return{};var n=a_(c_(e),function(r){return[r]});return t=s_(t),u_(e,n,function(r,i){return t(r,i[0])})}var d_=l_;function f_(e){var t=e.services;return Ft({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:{invoke:{src:"signIn",onDone:{target:"#signUpActor.resolved",actions:"setUser"},onError:{target:"idle",actions:"setRemoteError"}}},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:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var i=n.authAttributes,a=i.username,s=i.password;return{user:Ne(r,"data.user")||n.user,authAttributes:{username:a,password:s}}}}}},{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:mo,clearFormValues:go,clearTouched:vo,clearValidationError:yo,handleInput:bo,handleSubmit:_o,handleBlur:Co,parsePhoneNumber:Wa,setCredentials:Ka,setFieldErrors:wo,setRemoteError:So,setCodeDeliveryDetails:o1,setUser:qa,sendUpdate:co()},services:{signIn:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c;return W(this,function(d){switch(d.label){case 0:return i=n.user,a=n.authAttributes,s=n.formValues,u=Ne(i,"username")||Ne(a,"username"),c=Ne(s,"password"),[4,re.Auth.signIn(u,c)];case 1:return[2,d.sent()]}})})},confirmSignUp:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c,d;return W(this,function(l){switch(l.label){case 0:return i=n.user,a=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=Ne(i,"username")||Ne(a,"username"),d=a.password,[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return l.sent(),[4,re.Auth.signIn(c,d)];case 2:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return q(this,void 0,void 0,function(){var i,a,s;return W(this,function(u){return i=n.user,a=n.authAttributes,s=Ne(i,"username")||Ne(a,"username"),[2,re.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=r.data.provider,[4,re.Auth.federatedSignIn({provider:i})];case 1:return[2,a.sent()]}})})},signUp:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c,d,l;return W(this,function(h){switch(h.label){case 0:return i=n.formValues,a=n.loginMechanisms,s=a[0],c=(u=i)[s===void 0?"username":s],d=u.password,l=d_(i,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:d,attributes:l})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(i){return[2,To(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function p_(){return Ft({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:An,actorRef:void 0},states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:"configure",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:"signUp.autoSignIn",actions:"setActorDoneData"}}},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":"signIn"}},authenticated:{on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_OUT:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:ty(function(e){return e.actorRef}),setUser:xe({user:function(e,t){return t.data}}),setActorDoneData:xe({actorDoneData:function(e,t){var n,r;return{authAttributes:R({},(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:xe({user:void 0}),clearActorDoneData:xe({actorDoneData:void 0}),applyAmplifyConfig:xe({config:function(e,t){var n,r,i,a,s,u,c,d,l,h=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(C){return C.toLowerCase()}))!==null&&r!==void 0?r:[],f=(a=(i=t.data.aws_cognito_verification_mechanisms)===null||i===void 0?void 0:i.map(function(C){return C.toLowerCase()}))!==null&&a!==void 0?a:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(C){return C.toLowerCase()}))!==null&&u!==void 0?u:[],v=(d=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&d!==void 0?d:[],g=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var m=e.config,S=m.loginMechanisms,w=m.signUpAttributes,b=m.socialProviders,_=m.initialState;return{loginMechanisms:S!=null?S:h,formFields:(l=h_(m.formFields))!==null&&l!==void 0?l:{},passwordSettings:g,signUpAttributes:w!=null?w:Array.from(new Set(Oe(Oe([],f,!0),p,!0))),socialProviders:b!=null?b:v.sort(),initialState:_}}}),spawnSignInActor:xe({actorRef:function(e,t){var n,r,i,a,s,u=e.services,c=BS({services:u}).withContext({authAttributes:(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes,user:e.user,intent:(r=e.actorDoneData)===null||r===void 0?void 0:r.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(a=e.config)===null||a===void 0?void 0:a.socialProviders,formFields:(s=e.config)===null||s===void 0?void 0:s.formFields});return rn(c,{name:"signInActor"})}}),spawnSignUpActor:xe({actorRef:function(e,t){var n,r,i,a,s,u,c,d=e.services,l=f_({services:d}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(i=e.actorDoneData)===null||i===void 0?void 0:i.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(a=e.config)===null||a===void 0?void 0:a.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 rn(l,{name:"signUpActor"})}}),spawnResetPasswordActor:xe({actorRef:function(e,t){var n,r,i,a,s=e.services,u=MS({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(i=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||i===void 0?void 0:i.username,formFields:(a=e.config)===null||a===void 0?void 0:a.formFields,validationError:{}});return rn(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:xe({actorRef:function(e){var t=DS.withContext({user:e.user});return rn(t,{name:"signOutActor"})}}),stopSignInActor:sn("signInActor"),stopSignUpActor:sn("signUpActor"),stopResetPasswordActor:sn("resetPasswordActor"),stopSignOutActor:sn("signOutActor"),configure:xe(function(e,t){var n=t.data,r=n.services,i=aa(n,["services"]);return{services:R(R({},An),r),config:i}})},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"}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function h_(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 i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$n.apply(this,arguments)},m_=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function g_(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function v_(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,i=t.context,a=t.guards,s=t.actions,u=t.activities,c=t.services,d=t.delays,l=t.state,h=m_(t,["context","guards","actions","activities","services","delays","state"]),f={context:i,guards:a,actions:s,activities:u,services:c,delays:d},p=r.withConfig(f,function(){return $n($n({},r.context),i)}),v=Fa(p,h).start(l?Ue.create(l):void 0),g;return o.onMounted(function(){n&&(g=v.subscribe(g_(n)))}),o.onBeforeUnmount(function(){v.stop(),g==null||g.unsubscribe()}),v}function y_(e){return"state"in e}var Wi=function(){};function w_(e){return"getSnapshot"in e?e.getSnapshot():y_(e)?e.state:void 0}function ss(e,t){t===void 0&&(t=w_);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),i=function(a){n.value.send(a)};return o.watch(n,function(a,s,u){r.value=t(a);var c=a.subscribe({next:function(d){return r.value=d},error:Wi,complete:Wi}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:i}}const us={error:"",hasValidationErrors:!1,isPending:!1,route:"",user:"",validationErrors:{val:""},codeDeliveryDetails:{val:""},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();let gn=o.reactive(or(Ct({},us),{send:"",state:""}));const Ce=e=>(e&&(Dr.value=e),ss(Dr.value)),S_=()=>(Yi(),o.watchEffect(()=>{Yi()}),gn),Ae=S_;function Yi(){if(!Dr.value)return;const{state:e,send:t}=Ce(),n=sa({send:t,state:e.value});for(const r of Object.keys(us))gn[r]=n[r];gn.send=t,gn.state=e}const cn=o.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:n}=Ce(),r=i=>{n({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(i,a)=>{const s=ge,u=Se;return o.openBlock(),o.createBlock(u,{class:"amplify-field-group__control federated-sign-in-button","data-fullwidth":"false",style:{"font-weight":"normal"},type:"button",onClick:r},{default:o.withCtx(()=>[o.createVNode(s,{class:"amplify-flex federated-sign-in-button-row",style:{"flex-direction":"row","justify-content":"center","align-items":"center"}},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3})]),_:3})}}}),b_=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),__={class:"amplify-text",style:{"align-self":"center"}},C_=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),A_={class:"amplify-text",style:{"align-self":"center"}},E_=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),$_={class:"amplify-text",style:{"align-self":"center"}},I_=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),T_={class:"amplify-text",style:{"align-self":"center"}},P_=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),Kn=o.defineComponent({setup(e){var S;const{state:t}=Ce(),n=$e(Ae),{route:r}=n(),{value:{context:i}}=t,a=(S=i==null?void 0:i.config)==null?void 0:S.socialProviders,s=a==null?void 0:a.includes("amazon"),u=a==null?void 0:a.includes("apple"),c=a==null?void 0:a.includes("facebook"),d=a==null?void 0:a.includes("google"),l=c||d||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),p=o.computed(()=>O(`Sign ${h} with Amazon`)),v=o.computed(()=>O(`Sign ${h} with Apple`)),g=o.computed(()=>O(`Sign ${h} with Facebook`)),m=o.computed(()=>O(`Sign ${h} with Google`));return(w,b)=>{const _=ge;return o.unref(l)?(o.openBlock(),o.createBlock(_,{key:0,class:"amplify-flex federated-sign-in-container",style:{"flex-direction":"column",padding:"0 0 1rem 0"}},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(cn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[b_,o.createElementVNode("p",__,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(cn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[C_,o.createElementVNode("p",A_,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(cn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[E_,o.createElementVNode("p",$_,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(d)?(o.openBlock(),o.createBlock(cn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[I_,o.createElementVNode("p",T_,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),P_]),_:1})):o.createCommentVNode("",!0)}}}),N_={},k_={"data-amplify-label":""};function x_(e,t){return o.openBlock(),o.createElementBlock("label",k_,[o.renderSlot(e.$slots,"default")])}var qn=Pn(N_,[["render",x_]]);const Wn=o.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,i)=>(o.openBlock(),o.createElementBlock("input",{onChange:i[0]||(i[0]=a=>n(a)),"data-amplify-input":""},null,32))}}),U_=["aria-label"],O_={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},R_=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),V_=[R_],B_={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},D_=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),M_=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),F_=[D_,M_],L_={inheritAttrs:!1},Po=o.defineComponent(or(Ct({},L_),{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=O("Show password"),r=O("Hide password"),i=o.ref("password"),a=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:d,ariainvalid:l,labelHidden:h,placeholder:f,required:p}=o.toRefs(t);let v=o.ref("");function g(){a.value=a.value===n?r:n,i.value=i.value==="password"?"text":"password"}const m=O((w=f==null?void 0:f.value)!=null?w:c.value),S=O(c.value);return(b,_)=>{const C=qn,$=Wn,A=ge;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:o.withCtx(()=>{var E;return[o.createVNode(C,{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(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var T;return[o.createVNode($,o.mergeProps(b.$attrs,{modelValue:o.unref(v),"onUpdate:modelValue":_[0]||(_[0]=x=>o.isRef(v)?v.value=x:v=x),class:"amplify-input amplify-field-group__control","aria-invalid":o.unref(l),id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(d),required:(T=o.unref(p))!=null?T:!0,placeholder:o.unref(m),type:i.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","required","placeholder","type"]),o.createVNode(A,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":a.value,class:"amplify-button amplify-field-group__control amplify-field__show-password","data-fullwidth":"false",type:"button",onClick:g},[i.value==="password"?(o.openBlock(),o.createElementBlock("svg",O_,V_)):(o.openBlock(),o.createElementBlock("svg",B_,F_))],8,U_)]),_:1})]}),_:1})]}),_:1})}}})),j_=["value","selected"],z_=o.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:n,selectValue:r}=e,i=a=>{t("update:selectValue",a.target.value)};return(a,s)=>(o.openBlock(),o.createElementBlock("select",{onChange:s[0]||(s[0]=u=>i(u))},[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(u,c)=>o.createElementVNode("option",{key:c,value:u,selected:u==r?!0:void 0},o.toDisplayString(u),9,j_)),64))],32))}}),G_=o.createTextVNode(o.toDisplayString("Country Code")),H_=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),K_=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{label:t,name:n,placeholder:r,autocomplete:i,labelHidden:a,required:s,dialCode:u,dialCodeList:c}=e,d=Math.floor(Math.random()*999999),l=Math.floor(Math.random()*999999);return(h,f)=>{const p=qn,v=z_,g=ge,m=Wn;return o.openBlock(),o.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":a}]},h.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t))]),_: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",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(l),class:"amplify-label amplify-visually-hidden"},h.$attrs),{default:o.withCtx(()=>[G_]),_:1},16,["for"]),o.createVNode(g,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(l),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:c,"select-value":u},null,8,["id"]),o.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:o.withCtx(()=>[H_]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+o.unref(d),autocomplete:i,name:n,required:s!=null?s:!0,type:e.type,placeholder:r},null,8,["id","required","type"])]),_:1})]),_:1})]),_:1})}}}),q_={key:2},cs=o.defineComponent({props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),i=$e(Ae),{validationErrors:a}=o.toRefs(i()),{type:s}=r.value,u=o.computed(()=>xl(a.value[n.value])),c=s==="password";return(d,l)=>{var h;return o.openBlock(),o.createElementBlock(o.Fragment,null,[c?(o.openBlock(),o.createBlock(Po,{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(a)[o.unref(n)]},null,8,["name","label","placeholder","required","label-hidden","autocomplete","ariainvalid"])):(o.openBlock(),o.createBlock(K_,{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",q_,[(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"},o.toDisplayString(o.unref(O)(f)),1))),128))])):o.createCommentVNode("",!0)],64)}}}),je=o.defineComponent({props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Ce();let i=[];return o.onBeforeMount(()=>{i=ov(n.value,r.value)}),(a,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),([u,c])=>(o.openBlock(),o.createBlock(cs,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),W_=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),Y_={"data-amplify-footer":""},No=o.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=$e(Ae)(),i=o.useAttrs(),a=o.computed(()=>Nl("Forgot your password? ")?O("Forgot your password? "):O("Forgot your password?")),s=o.computed(()=>O("Sign in")),u=o.computed(()=>O("Signing in")),{state:c,send:d}=Ce(),l=o.computed(()=>_e(c.value)),h=g=>{const{name:m,value:S}=g.target;d({type:"CHANGE",data:{name:m,value:S}})},f=g=>{i!=null&&i.onSignInSubmit?t("signInSubmit",g):p(g)},p=g=>{r.submitForm(Le(g))},v=()=>{i!=null&&i.onForgotPasswordClicked?t("forgotPasswordClicked"):d({type:"RESET_PASSWORD"})};return(g,m)=>{const S=Re,w=Ve,b=Se,_=ge,C=Be,$=De;return o.renderSlot(g.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.renderSlot(g.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{"data-amplify-authenticator-signin":"",onInput:h,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:A})=>[o.renderSlot(g.$slots,"form",{info:A,onSignInSubmit:f,onInput:h,onForgotPasswordClicked:v})]),default:o.withCtx(()=>[o.createVNode(Kn),o.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(S,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-flex",style:{"flex-direction":"column"}},{fieldSetI:o.withCtx(({slotData:A})=>[o.renderSlot(g.$slots,"signin-fields",{info:A})]),default:o.withCtx(()=>[W_,o.createVNode(je,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(l).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(l).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-field-group__control",fullwidth:!0,"data-loading":"false",variation:"primary",style:{"border-radius":"0x","font-weight":"normal"}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode($,null,{default:o.withCtx(()=>[o.renderSlot(g.$slots,"footer",{},()=>[o.createElementVNode("div",Y_,[o.createVNode(b,{onClick:v,class:"amplify-field-group__control","data-fullwidth":"true","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)),1)]),_:1})])])]),_:3})])}}}),ko=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(je,{route:"signUp"}))}}),xo=o.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const n=$e(Ae),r=n(),i=n(),{hasValidationErrors:a,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),d=o.computed(()=>O("Create Account")),l=v=>{let{checked:g,name:m,type:S,value:w}=v.target;S==="checkbox"&&!g&&(w=void 0),i.updateForm({name:m,value:w})};function h(v){const{name:g}=v.target;i.updateBlur({name:g})}const f=v=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",v):p(v)},p=v=>{i.submitForm(Le(v))};return(v,g)=>{const m=Re,S=Ve,w=Se,b=ge,_=Be,C=De;return o.renderSlot(v.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.renderSlot(v.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(_,{onInput:l,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(Kn),o.createVNode(b,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:$})=>[o.renderSlot(v.$slots,"signup-fields",{info:$})]),default:o.withCtx(()=>[o.createVNode(ko)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control","data-fullwidth":"true","data-loading":"false","data-variation":"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(v.$slots,"footer")]),_:3})])}}}),J_=o.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:n,label:r}=t,{active:i}=o.toRefs(t);return(a,s)=>{const u=ge;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(i)?0:-1,"data-state":o.unref(i)?"active":"inactive","aria-selected":o.unref(i)?"true":"false","aria-controls":`radix-id-${o.unref(n)}-8-content-0`,id:`radix-id-${o.unref(n)}-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(r)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),Z_={};function Q_(e,t){const n=ge;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",role:"tablist",style:{outline:"none"}},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs","data-indicator-position":"top",style:{gap:"0px","justify-content":"center"}},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var X_=Pn(Z_,[["render",Q_]]);const Ze=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var a,s;const r=t.default?t.default():[],i=t.headingI?t.headingI():[];if(((s=(a=i[0])==null?void 0:a.children)==null?void 0:s.length)===0)i[0].children=[o.h(`h${e.level}`,Ct({},n),[r])];else return()=>o.h(`h${e.level}`,Ct({"data-amplify-heading":""},n),[i[0]?o.h(i[0].children[0]):o.h(r[0])]);return()=>i}}),eC={};function tC(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=Pn(eC,[["render",tC]]);const Uo=o.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{isPending:i,error:a,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:d}=r();Ce();const l=o.computed(()=>{var $,A;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?O("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?O("We Texted You"):O("We Sent A Code")}),h=o.computed(()=>O("Resend Code")),f=o.computed(()=>O("Confirm")),p=O("Your code is on the way. To log in, enter the code we emailed to"),v=O("Your code is on the way. To log in, enter the code we texted to"),g=O("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),m=O("It may take a minute to arrive."),S=o.computed(()=>{var $,A,E,T;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?`${p} ${(A=s.value)==null?void 0:A.Destination}. ${m}`:((E=s.value)==null?void 0:E.DeliveryMedium)==="SMS"?`${v} ${(T=s.value)==null?void 0:T.Destination}. ${m}`:O(`${g}`)}),w=$=>{const{name:A,value:E}=$.target;c({name:A,value:E})},b=$=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",$):_($)},_=$=>{u(Le($))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):d()};return($,A)=>{const E=Ze,T=ls,x=Re,V=Ve,B=Se,L=De,oe=ge,z=Be;return o.renderSlot($.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps($.$attrs)),()=>[o.createVNode(oe,o.normalizeProps(o.guardReactiveProps($.$attrs)),{default:o.withCtx(()=>[o.createVNode(z,{onInput:w,onSubmit:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createVNode(oe,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.renderSlot($.$slots,"header",{},()=>[o.createVNode(E,{class:"amplify-heading",style:{"font-size":"1.5rem"},level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(T,{style:{"margin-bottom":"1rem"}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:o.unref(i)},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(L,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:o.withCtx(()=>[o.unref(a)?(o.openBlock(),o.createBlock(V,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(a))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot($.$slots,"footer",{onConfirmSignUpSubmit:b,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Oo=o.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:i}=Ce(),s=$e(Ae)(),u=o.computed(()=>_e(r.value)),c=u.value.context.challengeName;let d="SMS";c===He.SOFTWARE_TOKEN_MFA&&(d="TOTP");const l=`Confirm ${d} Code`,h=o.computed(()=>O("Back to Sign In")),f=o.computed(()=>O("Confirm")),p=S=>{const{name:w,value:b}=S.target;i({type:"CHANGE",data:{name:w,value:b}})},v=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):g(S)},g=S=>{s.submitForm(Le(S))},m=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(S,w)=>{const b=Ze,_=ge,C=Ve,$=Se,A=De,E=Re,T=Be;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(T,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(b,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l))]),_:1})]),o.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>{var x,V;return[(V=(x=o.unref(u))==null?void 0:x.context)!=null&&V.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var B,L;return[o.createTextVNode(o.toDisplayString(o.unref(O)((L=(B=o.unref(u))==null?void 0:B.context)==null?void 0:L.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode($,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-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($,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(m,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:m,onConfirmSignInSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var jt={},nC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ds={},Ee={};let Ro;const rC=[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];Ee.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};Ee.getSymbolTotalCodewords=function(t){return rC[t]};Ee.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ee.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ro=t};Ee.isKanjiModeEnabled=function(){return typeof Ro!="undefined"};Ee.toSJIS=function(t){return Ro(t)};var Yn={};(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,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(Yn);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 oC=fs;function zt(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)}zt.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};zt.prototype.get=function(e,t){return this.data[e*this.size+t]};zt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};zt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var iC=zt,ps={};(function(e){const t=Ee.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,a=t(r),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,u=[a-7];for(let c=1;c<i-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const i=[],a=e.getRowColCoords(r),s=a.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||i.push([a[u],a[c]]);return i}})(ps);var hs={};const aC=Ee.getSymbolSize,Ji=7;hs.getPositions=function(t){const n=aC(t);return[[0,0],[n-Ji,0],[0,n-Ji]]};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(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,u=0,c=0,d=null,l=null;for(let h=0;h<a;h++){u=c=0,d=l=null;for(let f=0;f<a;f++){let p=i.get(h,f);p===d?u++:(u>=5&&(s+=t.N1+(u-5)),d=p,u=1),p=i.get(f,h),p===l?c++:(c>=5&&(s+=t.N1+(c-5)),l=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let u=0;u<a-1;u++)for(let c=0;c<a-1;c++){const d=i.get(u,c)+i.get(u,c+1)+i.get(u+1,c)+i.get(u+1,c+1);(d===4||d===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,u=0,c=0;for(let d=0;d<a;d++){u=c=0;for(let l=0;l<a;l++)u=u<<1&2047|i.get(d,l),l>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|i.get(l,d),l>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let c=0;c<s;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function n(r,i,a){switch(r){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,a){const s=a.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)a.isReserved(c,u)||a.xor(c,u,n(i,c,u))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let d=0;d<s;d++){a(d),e.applyMask(d,i);const l=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(d,i),l<c&&(c=l,u=d)}return u}})(ms);var Jn={};const Ye=Yn,ln=[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],dn=[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];Jn.getBlocksCount=function(t,n){switch(n){case Ye.L:return ln[(t-1)*4+0];case Ye.M:return ln[(t-1)*4+1];case Ye.Q:return ln[(t-1)*4+2];case Ye.H:return ln[(t-1)*4+3];default:return}};Jn.getTotalCodewordsCount=function(t,n){switch(n){case Ye.L:return dn[(t-1)*4+0];case Ye.M:return dn[(t-1)*4+1];case Ye.Q:return dn[(t-1)*4+2];case Ye.H:return dn[(t-1)*4+3];default:return}};var gs={},Zn={};const Nt=new Uint8Array(512),In=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Nt[n]=t,In[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Nt[n]=Nt[n-255]})();Zn.log=function(t){if(t<1)throw new Error("log("+t+")");return In[t]};Zn.exp=function(t){return Nt[t]};Zn.mul=function(t,n){return t===0||n===0?0:Nt[In[t]+In[n]]};(function(e){const t=Zn;e.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<i.length;u++)a[s+u]^=t.mul(r[s],i[u]);return a},e.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const s=a[0];for(let c=0;c<i.length;c++)a[c]^=t.mul(i[c],s);let u=0;for(;u<a.length&&a[u]===0;)u++;a=a.slice(u)}return a},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(gs);const vs=gs;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=vs.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=vs.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(r,i),a}return r};var sC=Vo,ys={},Qe={},Bo={};Bo.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var ze={};const ws="[0-9]+",uC="[A-Z $%*+\\-./:]+";let Ut="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ut=Ut.replace(/u/g,"\\u");const cC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ut+`)(?:.|[\r
44
+ ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,c=1,d=arguments.length;c<d;c++){u=arguments[c];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])}return s},e.__assign.apply(this,arguments)};function t(a,s){var u={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&s.indexOf(c)<0&&(u[c]=a[c]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,c=Object.getOwnPropertySymbols(a);d<c.length;d++)s.indexOf(c[d])<0&&Object.prototype.propertyIsEnumerable.call(a,c[d])&&(u[c[d]]=a[c[d]]);return u}function n(a){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&a[s],c=0;if(u)return u.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&c>=a.length&&(a=void 0),{value:a&&a[c++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(a,s){var u=typeof Symbol=="function"&&a[Symbol.iterator];if(!u)return a;var c=u.call(a),d,l=[],h;try{for(;(s===void 0||s-- >0)&&!(d=c.next()).done;)l.push(d.value)}catch(f){h={error:f}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(h)throw h.error}}return l}function i(a,s,u){if(u||arguments.length===2)for(var c=0,d=s.length,l;c<d;c++)(l||!(c in s))&&(l||(l=Array.prototype.slice.call(s,0,c)),l[c]=s[c]);return a.concat(l||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=i,e.__values=n})(lo);var fo={};(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={}))})(fo);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var he=fo,ny=he.ActionTypes.Start,ry=he.ActionTypes.Stop,oy=he.ActionTypes.Raise,iy=he.ActionTypes.Send,ay=he.ActionTypes.Cancel,sy=he.ActionTypes.NullEvent,uy=he.ActionTypes.Assign,cy=he.ActionTypes.After,ly=he.ActionTypes.DoneState,dy=he.ActionTypes.Log,fy=he.ActionTypes.Init,py=he.ActionTypes.Invoke,hy=he.ActionTypes.ErrorExecution,my=he.ActionTypes.ErrorPlatform,gy=he.ActionTypes.ErrorCustom,vy=he.ActionTypes.Update,yy=he.ActionTypes.Choose,wy=he.ActionTypes.Pure;fe.after=cy;fe.assign=uy;fe.cancel=ay;fe.choose=yy;fe.doneState=ly;fe.error=gy;fe.errorExecution=hy;fe.errorPlatform=my;fe.init=fy;fe.invoke=py;fe.log=dy;fe.nullEvent=sy;fe.pure=wy;fe.raise=oy;fe.send=iy;fe.start=ny;fe.stop=ry;fe.update=vy;var La={},St={};Object.defineProperty(St,"__esModule",{value:!0});var Sy=".",by={},_y="xstate.guard",Cy="";St.DEFAULT_GUARD_TYPE=_y;St.EMPTY_ACTIVITY_MAP=by;St.STATE_DELIMITER=Sy;St.TARGETLESS_KEY=Cy;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var Ay=!0;zn.IS_PRODUCTION=Ay;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=lo,n=St,r=zn,i;function a(y){return Object.keys(y)}function s(y,N,U){U===void 0&&(U=n.STATE_DELIMITER);var k=h(y,U),D=h(N,U);return me(D)?me(k)?D===k:!1:me(k)?k in D:Object.keys(k).every(function(M){return M in D?s(k[M],D[M]):!1})}function u(y){try{return me(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 me(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 d(y,N){try{return oe(y)?y:y.toString().split(N)}catch{throw new Error("'".concat(y,"' is not a valid state path."))}}function l(y){return typeof y=="object"&&"value"in y&&"context"in y&&"event"in y&&"_event"in y}function h(y,N){if(l(y))return y.value;if(oe(y))return f(y);if(typeof y!="string")return y;var U=d(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),D=0;D<k.length;D++){var M=k[D];U[M]=N(y[M],M,y,D)}return U}function v(y,N,U){var k,D,M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ie=y[Z];!U(ie)||(M[Z]=N(ie,Z,y))}}catch(be){k={error:be}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}var g=function(y){return function(N){var U,k,D=N;try{for(var M=t.__values(y),j=M.next();!j.done;j=M.next()){var F=j.value;D=D[F]}}catch(Z){U={error:Z}}finally{try{j&&!j.done&&(k=M.return)&&k.call(M)}finally{if(U)throw U.error}}return D}};function m(y,N){return function(U){var k,D,M=U;try{for(var j=t.__values(y),F=j.next();!F.done;F=j.next()){var Z=F.value;M=M[N][Z]}}catch(ie){k={error:ie}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}}function S(y){if(!y)return[[]];if(me(y))return[[y]];var N=b(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(D){return[U].concat(D)})}));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 D=t.__values(y),M=D.next();!M.done;M=D.next())for(var j=M.value,F=k,Z=0;Z<j.length;Z++){var ie=j[Z];if(Z===j.length-2){F[ie]=j[Z+1];break}F[ie]=F[ie]||{},F=F[ie]}}catch(be){N={error:be}}finally{try{M&&!M.done&&(U=D.return)&&U.call(D)}finally{if(N)throw N.error}}return k}function b(y){var N;return(N=[]).concat.apply(N,t.__spreadArray([],t.__read(y),!1))}function _(y){return oe(y)?y:[y]}function C(y){return y===void 0?[]:_(y)}function $(y,N,U){var k,D;if(z(y))return y(N,U.data);var M={};try{for(var j=t.__values(Object.keys(y)),F=j.next();!F.done;F=j.next()){var Z=F.value,ie=y[Z];z(ie)?M[Z]=ie(N,U.data):M[Z]=ie}}catch(be){k={error:be}}finally{try{F&&!F.done&&(D=j.return)&&D.call(j)}finally{if(k)throw k.error}}return M}function A(y){return/^(done|error)\./.test(y)}function E(y){return!!(y instanceof Promise||y!==null&&(z(y)||typeof y=="object")&&z(y.then))}function T(y){return y!==null&&typeof y=="object"&&"transition"in y&&typeof y.transition=="function"}function x(y,N){var U,k,D=t.__read([[],[]],2),M=D[0],j=D[1];try{for(var F=t.__values(y),Z=F.next();!Z.done;Z=F.next()){var ie=Z.value;N(ie)?M.push(ie):j.push(ie)}}catch(be){U={error:be}}finally{try{Z&&!Z.done&&(k=F.return)&&k.call(F)}finally{if(U)throw U.error}}return[M,j]}function V(y,N){return p(y.states,function(U,k){if(!!U){var D=(me(N)?void 0:N[k])||(U?U.current:void 0);if(!!D)return{current:D,states:V(U,D)}}})}function B(y,N){return{current:N,states:V(y,N)}}function L(y,N,U,k){r.IS_PRODUCTION||e.warn(!!y,"Attempting to update undefined context");var D=y&&U.reduce(function(M,j){var F,Z,ie=j.assignment,be={state:k,action:j,_event:N},te={};if(z(ie))te=ie(M,N.data,be);else try{for(var ae=t.__values(Object.keys(ie)),Ge=ae.next();!Ge.done;Ge=ae.next()){var Jt=Ge.value,rr=ie[Jt];te[Jt]=z(rr)?rr(M,N.data,be):rr}}catch(ks){F={error:ks}}finally{try{Ge&&!Ge.done&&(Z=ae.return)&&Z.call(ae)}finally{if(F)throw F.error}}return Object.assign({},M,te)},y);return D}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 oe(y){return Array.isArray(y)}function z(y){return typeof y=="function"}function me(y){return typeof y=="string"}function Xe(y,N){if(!!y)return me(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 de(y){try{return"subscribe"in y&&z(y.subscribe)}catch{return!1}}var Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xn=(i={},i[Te]=function(){return this},i[Symbol.observable]=function(){return this},i);function Gt(y){return!!y&&"__xstatenode"in y}function er(y){return!!y&&typeof y.send=="function"}var tr=function(){var y=0;return function(){return y++,y.toString(16)}}();function Ht(y,N){return me(y)||typeof y=="number"?t.__assign({type:y},N):y}function Kt(y,N){if(!me(y)&&"$$type"in y&&y.$$type==="scxml")return y;var U=Ht(y);return t.__assign({name:U.type,data:U,$$type:"scxml",type:"external"},N)}function qt(y,N){var U=_(N).map(function(k){return typeof k=="undefined"||typeof k=="string"||Gt(k)?{target:k,event:y}:t.__assign(t.__assign({},k),{event:y})});return U}function _t(y){if(!(y===void 0||y===n.TARGETLESS_KEY))return C(y)}function P(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 D=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(D))}}}function ye(y,N,U,k,D){var M=y.options.guards,j={state:D,cond:N,_event:k};if(N.type===n.DEFAULT_GUARD_TYPE)return((M==null?void 0:M[N.name])||N.predicate)(U,k.data,j);var F=M==null?void 0:M[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 Wt(y){return typeof y=="string"?{type:y}:y}function nr(y,N,U){if(typeof y=="object")return y;var k=function(){};return{next:y,error:N||k,complete:U||k}}function Yt(y,N){return"".concat(y,":invocation[").concat(N,"]")}e.createInvokeId=Yt,e.evaluateGuard=ye,e.flatten=b,e.getActionType=c,e.getEventType=u,e.interopSymbols=Xn,e.isActor=er,e.isArray=oe,e.isBehavior=T,e.isBuiltInEvent=A,e.isFunction=z,e.isMachine=Gt,e.isObservable=de,e.isPromiseLike=E,e.isStateLike=l,e.isString=me,e.keys=a,e.mapContext=$,e.mapFilterValues=v,e.mapValues=p,e.matchesState=s,e.nestedPath=m,e.normalizeTarget=_t,e.partition=x,e.path=g,e.pathToStateValue=f,e.pathsToStateValue=w,e.reportUnhandledExceptionOnInvocation=P,e.symbolObservable=Te,e.toArray=C,e.toArrayStrict=_,e.toEventObject=Ht,e.toGuard=Xe,e.toInvokeSource=Wt,e.toObserver=nr,e.toSCXMLEvent=Kt,e.toStatePath=d,e.toStatePaths=S,e.toStateValue=h,e.toTransitionConfigArray=qt,e.uniqueId=tr,e.updateContext=L,e.updateHistoryStates=V,e.updateHistoryValue=B})(La);Object.defineProperty(K,"__esModule",{value:!0});var X=lo,Ie=fo,pe=fe,H=La,Ey=zn,$y=H.toSCXMLEvent({type:pe.init});function Or(e,t){return t&&t[e]||void 0}function Gn(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 i=r.type||e.type;n=X.__assign(X.__assign(X.__assign({},r),e),{type:i})}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 Gn(r,t)})};function po(e){var t=Gn(e);return X.__assign(X.__assign({id:H.isString(e)?e:t.id},t),{type:t.type})}function Iy(e){return H.isString(e)?{type:pe.raise,event:e}:bt(e,{to:Ie.SpecialTargets.Internal})}function ja(e){return{type:pe.raise,_event:H.toSCXMLEvent(e.event)}}function bt(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 za(e,t,n,r){var i={_event:n},a=H.toSCXMLEvent(H.isFunction(e.event)?e.event(t,n.data,i):e.event),s;if(H.isString(e.delay)){var u=r&&r[e.delay];s=H.isFunction(u)?u(t,n.data,i):u}else s=H.isFunction(e.delay)?e.delay(t,n.data,i):e.delay;var c=H.isFunction(e.to)?e.to(t,n.data,i):e.to;return X.__assign(X.__assign({},e),{to:c,_event:a,event:a.data,delay:s})}function ho(e,t){return bt(e,X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function Ty(e,t,n){return bt(t,X.__assign(X.__assign({},n),{to:e}))}function Py(){return ho(pe.update)}function Ny(e,t){return bt(e,X.__assign(X.__assign({},t),{to:function(n,r,i){var a=i._event;return a.origin}}))}var ky=function(e,t){return{context:e,event:t}};function xy(e,t){return e===void 0&&(e=ky),{type:pe.log,label:t,expr:e}}var Ga=function(e,t,n){return X.__assign(X.__assign({},e),{value:H.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Uy=function(e){return{type:pe.cancel,sendId:e}};function Oy(e){var t=po(e);return{type:Ie.ActionTypes.Start,activity:t,exec:void 0}}function Ry(e){var t=H.isFunction(e)?e:po(e);return{type:Ie.ActionTypes.Stop,activity:t,exec:void 0}}function Ha(e,t,n){var r=H.isFunction(e.activity)?e.activity(t,n.data):e.activity,i=typeof r=="string"?{id:r}:r,a={type:Ie.ActionTypes.Stop,activity:i};return a}var Vy=function(e){return{type:pe.assign,assignment:e}};function By(e){return typeof e=="object"&&"type"in e}function Dy(e,t){var n=t?"#".concat(t):"";return"".concat(Ie.ActionTypes.After,"(").concat(e,")").concat(n)}function My(e,t){var n="".concat(Ie.ActionTypes.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Fy(e,t){var n="".concat(Ie.ActionTypes.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ly(e,t){var n="".concat(Ie.ActionTypes.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function jy(e){return{type:Ie.ActionTypes.Pure,get:e}}function zy(e,t){return bt(function(n,r){return r},X.__assign(X.__assign({},t),{to:e}))}function Gy(e,t){return ho(function(n,r,i){return{type:pe.error,data:H.isFunction(e)?e(n,r,i):e}},X.__assign(X.__assign({},t),{to:Ie.SpecialTargets.Parent}))}function Hy(e){return{type:Ie.ActionTypes.Choose,conds:e}}function Vr(e,t,n,r,i,a){a===void 0&&(a=!1);var s=X.__read(a?[[],i]:H.partition(i,function(f){return f.type===pe.assign}),2),u=s[0],c=s[1],d=u.length?H.updateContext(n,r,u,t):n,l=a?[n]:void 0,h=H.flatten(c.map(function(f){var p;switch(f.type){case pe.raise:return ja(f);case pe.send:var v=za(f,d,r,e.options.delays);return Ey.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 Ga(f,d,r);case pe.choose:{var g=f,m=(p=g.conds.find(function(x){var V=H.toGuard(x.cond,e.options.guards);return!V||H.evaluateGuard(e,V,d,r,t)}))===null||p===void 0?void 0:p.actions;if(!m)return[];var S=X.__read(Vr(e,t,d,r,Rr(H.toArray(m),e.options.actions),a),2),w=S[0],b=S[1];return d=b,l==null||l.push(d),w}case pe.pure:{var m=f.get(d,r.data);if(!m)return[];var _=X.__read(Vr(e,t,d,r,Rr(H.toArray(m),e.options.actions),a),2),C=_[0],$=_[1];return d=$,l==null||l.push(d),C}case pe.stop:return Ha(f,d,r);case pe.assign:{d=H.updateContext(d,r,[f],t),l==null||l.push(d);break}default:var A=Gn(f,e.options.actions),E=A.exec;if(E&&l){var T=l.length-1;A=X.__assign(X.__assign({},A),{exec:function(x){for(var V=[],B=1;B<arguments.length;B++)V[B-1]=arguments[B];E.apply(void 0,X.__spreadArray([l[T]],X.__read(V),!1))}})}return A}}).filter(function(f){return!!f}));return[h,d]}K.actionTypes=pe;K.after=Dy;var ue=K.assign=Vy;K.cancel=Uy;K.choose=Hy;K.done=My;K.doneInvoke=Fy;K.error=Ly;K.escalate=Gy;K.forwardTo=zy;K.getActionFunction=Or;K.initEvent=$y;K.isActionObject=By;K.log=xy;K.pure=jy;K.raise=Iy;K.resolveActions=Vr;K.resolveLog=Ga;K.resolveRaise=ja;K.resolveSend=za;K.resolveStop=Ha;K.respond=Ny;K.send=bt;K.sendParent=ho;K.sendTo=Ty;K.sendUpdate=Py;K.start=Oy;var Ky=K.stop=Ry;K.toActionObject=Gn;K.toActionObjects=Rr;K.toActivityDefinition=po;var sn=function(e){return Ky(e)},qy=ue({attributeToVerify:function(e){}}),Wy=ue({challengeName:function(e){}}),Yy=ue({requiredAttributes:function(e){}}),mo=ue({remoteError:function(e){return""}}),go=ue({formValues:function(e){return{}}}),vo=ue({touched:function(e){return{}}}),Jy=ue({unverifiedAttributes:function(e){}}),Zy=ue({username:function(e){}}),yo=ue({validationError:function(e){return{}}}),Qy=ue({challengeName:function(e,t){var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),Xy=ue({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}}),e1=ue({redirectIntent:function(e){return"confirmPasswordReset"}}),t1=ue({redirectIntent:function(e){return"confirmSignUp"}}),Ka=ue({authAttributes:function(e,t){var n,r,i=e.loginMechanisms[0];return{username:(n=e.formValues[i])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),wo=ue({validationError:function(e,t){return t.data}}),So=ue({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}}),n1=ue({unverifiedAttributes:function(e,t){return t.data.unverified}}),qa=ue({user:function(e,t){return t.data.user||t.data}}),r1=ue({username:function(e,t){return e.formValues.username}}),o1=ue({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),i1=ue({authAttributes:function(e,t){return{username:e.formValues.username}}}),bo=ue({formValues:function(e,t){var n,r=t.data,i=r.name,a=r.value;return R(R({},e.formValues),((n={})[i]=a,n))}}),_o=ue({formValues:function(e,t){return R(R({},e.formValues),t.data)}}),Co=ue({touched:function(e,t){var n,r=t.data.name;return R(R({},e.touched),((n={})["".concat(r)]=!0,n))}}),Wa=ue({formValues:function(e,t){var n,r,i=e.loginMechanisms[0],a=i===void 0?"username":i;if(!e.formValues.phone_number&&a!=="phone_number")return e.formValues;var s=e.formValues,u=e.country_code,c=s.phone_number?"phone_number":"username",d="".concat((r=s.country_code)!==null&&r!==void 0?r:u).concat(s[c]).replace(/[^A-Z0-9+]/gi,""),l=R(R({},s),((n={})[c]=d,n));return delete l.country_code,l}}),a1=xe,s1=Kr,u1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c1=/^\w*$/;function l1(e,t){if(a1(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||s1(e)?!0:c1.test(e)||!u1.test(e)||t!=null&&e in Object(t)}var Ao=l1,Ya=Jr,d1="Expected a function";function Eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(d1);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Eo.Cache||Ya),n}Eo.Cache=Ya;var f1=Eo,p1=f1,h1=500;function m1(e){var t=p1(e,function(r){return n.size===h1&&n.clear(),r}),n=t.cache;return t}var g1=m1,v1=g1,y1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w1=/\\(\\)?/g,S1=v1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(y1,function(n,r,i,a){t.push(i?a.replace(w1,"$1"):r||n)}),t}),b1=S1,Ii=Ot,_1=ta,C1=xe,A1=Kr,E1=1/0,Ti=Ii?Ii.prototype:void 0,Pi=Ti?Ti.toString:void 0;function Ja(e){if(typeof e=="string")return e;if(C1(e))return _1(e,Ja)+"";if(A1(e))return Pi?Pi.call(e):"";var t=e+"";return t=="0"&&1/e==-E1?"-0":t}var $1=Ja,I1=$1;function T1(e){return e==null?"":I1(e)}var P1=T1,N1=xe,k1=Ao,x1=b1,U1=P1;function O1(e,t){return N1(e)?e:k1(e,t)?[e]:x1(U1(e))}var Hn=O1,R1=Kr,V1=1/0;function B1(e){if(typeof e=="string"||R1(e))return e;var t=e+"";return t=="0"&&1/e==-V1?"-0":t}var Lt=B1,D1=Hn,M1=Lt;function F1(e,t){t=D1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[M1(t[n++])];return n&&n==r?e:void 0}var $o=F1,L1=$o;function j1(e,t,n){var r=e==null?void 0:L1(e,t);return r===void 0?n:r}var Za=j1,ke=Za,z1=ia,G1=Mt,H1=Nn,K1=xe,q1=Rt,W1=tt.exports,Y1=Un,J1=xn,Z1="[object Map]",Q1="[object Set]",X1=Object.prototype,ew=X1.hasOwnProperty;function tw(e){if(e==null)return!0;if(q1(e)&&(K1(e)||typeof e=="string"||typeof e.splice=="function"||W1(e)||J1(e)||H1(e)))return!e.length;var t=G1(e);if(t==Z1||t==Q1)return!e.size;if(Y1(e))return!z1(e).length;for(var n in e)if(ew.call(e,n))return!1;return!0}var nw=tw,Br=nw,rw=Zr,ow=Vt;function iw(e,t,n){(n!==void 0&&!ow(e[t],n)||n===void 0&&!(t in e))&&rw(e,t,n)}var Qa=iw;function aw(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),u=s.length;u--;){var c=s[e?u:++i];if(n(a[c],c,a)===!1)break}return t}}var sw=aw,uw=sw,cw=uw(),lw=cw,dw=Rt,fw=Ke;function pw(e){return fw(e)&&dw(e)}var hw=pw,mw=pt,gw=eo,vw=Ke,yw="[object Object]",ww=Function.prototype,Sw=Object.prototype,Xa=ww.toString,bw=Sw.hasOwnProperty,_w=Xa.call(Object);function Cw(e){if(!vw(e)||mw(e)!=yw)return!1;var t=gw(e);if(t===null)return!0;var n=bw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Xa.call(n)==_w}var Aw=Cw;function Ew(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var es=Ew,$w=Bt,Iw=Dt;function Tw(e){return $w(e,Iw(e))}var Pw=Tw,Ni=Qa,Nw=vn.exports,kw=wa,xw=la,Uw=Sa,ki=Nn,xi=xe,Ow=hw,Rw=tt.exports,Vw=Gr,Bw=Fe,Dw=Aw,Mw=xn,Ui=es,Fw=Pw;function Lw(e,t,n,r,i,a,s){var u=Ui(e,n),c=Ui(t,n),d=s.get(c);if(d){Ni(e,n,d);return}var l=a?a(u,c,n+"",e,t,s):void 0,h=l===void 0;if(h){var f=xi(c),p=!f&&Rw(c),v=!f&&!p&&Mw(c);l=c,f||p||v?xi(u)?l=u:Ow(u)?l=xw(u):p?(h=!1,l=Nw(c,!0)):v?(h=!1,l=kw(c,!0)):l=[]:Dw(c)||ki(c)?(l=u,ki(u)?l=Fw(u):(!Bw(u)||Vw(u))&&(l=Uw(c))):h=!1}h&&(s.set(c,l),i(l,c,r,a,s),s.delete(c)),Ni(e,n,l)}var jw=Lw,zw=Mn,Gw=Qa,Hw=lw,Kw=jw,qw=Fe,Ww=Dt,Yw=es;function ts(e,t,n,r,i){e!==t&&Hw(t,function(a,s){if(i||(i=new zw),qw(a))Kw(e,t,s,n,ts,r,i);else{var u=r?r(Yw(e,s),a,s+"",e,t,i):void 0;u===void 0&&(u=a),Gw(e,s,u)}},Ww)}var Jw=ts;function Zw(e){return e}var Io=Zw;function Qw(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 Xw=Qw,eS=Xw,Oi=Math.max;function tS(e,t,n){return t=Oi(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Oi(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=r[i];return u[t]=n(s),eS(e,this,u)}}var nS=tS;function rS(e){return function(){return e}}var oS=rS,iS=oS,Ri=ca,aS=Io,sS=Ri?function(e,t){return Ri(e,"toString",{configurable:!0,enumerable:!1,value:iS(t),writable:!0})}:aS,uS=sS,cS=800,lS=16,dS=Date.now;function fS(e){var t=0,n=0;return function(){var r=dS(),i=lS-(r-n);if(n=r,i>0){if(++t>=cS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pS=fS,hS=uS,mS=pS,gS=mS(hS),vS=gS,yS=Io,wS=nS,SS=vS;function bS(e,t){return SS(wS(e,t,yS),e+"")}var _S=bS,CS=Vt,AS=Rt,ES=kn,$S=Fe;function IS(e,t,n){if(!$S(n))return!1;var r=typeof t;return(r=="number"?AS(n)&&ES(t,n.length):r=="string"&&t in n)?CS(n[t],e):!1}var TS=IS,PS=_S,NS=TS;function kS(e){return PS(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&NS(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}var xS=kS,US=Jw,OS=xS,RS=OS(function(e,t,n){US(e,t,n)}),VS=RS,To=function(e,t,n,r){return q(void 0,void 0,void 0,function(){var i,a;return W(this,function(s){switch(s.label){case 0:return[4,Promise.all(r.map(function(u){return u(e,t,n)}))];case 1:return i=s.sent(),a=VS.apply(void 0,Oe([{}],i,!1)),Br(a)?[2,Promise.resolve()]:[2,Promise.reject(a)]}})})},An={getAmplifyConfig:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Amplify.configure()]})})},getCurrentUser:function(){return q(this,void 0,void 0,function(){return W(this,function(e){return[2,re.Auth.currentAuthenticatedUser()]})})},handleSignUp:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.signUp(e)]})})},handleSignIn:function(e){var t=e.username,n=e.password;return q(this,void 0,void 0,function(){return W(this,function(r){return[2,re.Auth.signIn(t,n)]})})},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return q(this,void 0,void 0,function(){return W(this,function(i){return[2,re.Auth.confirmSignIn(t,n,r)]})})},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return q(this,void 0,void 0,function(){return W(this,function(r){switch(r.label){case 0:return[4,re.Auth.confirmSignUp(t,n)];case 1:return[2,r.sent()]}})})},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return q(this,void 0,void 0,function(){return W(this,function(i){return[2,re.Auth.forgotPasswordSubmit(t,n,r)]})})},handleForgotPassword:function(e){return q(this,void 0,void 0,function(){return W(this,function(t){return[2,re.Auth.forgotPassword(e)]})})},validateCustomSignUp:function(e,t){return q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})},validateFormPassword:function(e,t,n){return q(this,void 0,void 0,function(){var r,i,a,s;return W(this,function(u){return r=e.password,t.password&&n?(i=[],a=+(n==null?void 0:n.passwordPolicyMinLength),r.length<a&&i.push("Password must have at least ".concat(a," characters")),(s=n==null?void 0:n.passwordPolicyCharacters)==null||s.forEach(function(c){switch(c){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||i.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||i.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||i.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":/[\W]/.test(r)||i.push("Password must have special characters")}}),[2,i.length!==0?{password:i}:null]):[2,null]})})},validateConfirmPassword:function(e,t){return q(this,void 0,void 0,function(){var n,r,i,a;return W(this,function(s){return n=e.password,r=e.confirm_password,i=t.confirm_password,a=t.password,n||r?(n||r)&&n!==r&&(i&&a||(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 q(this,void 0,void 0,function(){return W(this,function(n){return[2]})})}};function BS(e){var t=e.services;return Ft({initial:"init",id:"signInActor",states:{init:{always:[{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"}}},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:qy,clearChallengeName:Wy,clearRequiredAttributes:Yy,clearError:mo,clearFormValues:go,clearTouched:vo,clearUnverifiedAttributes:Jy,clearValidationError:yo,handleInput:bo,handleSubmit:_o,handleBlur:Co,parsePhoneNumber:Wa,setChallengeName:Qy,setConfirmResetPasswordIntent:e1,setConfirmSignUpIntent:t1,setRequiredAttributes:Xy,setCredentials:Ka,setFieldErrors:wo,setRemoteError:So,setUnverifiedAttributes:n1,setUser:qa,setUsernameAuthAttributes:i1,sendUpdate:co()},guards:{shouldConfirmSignIn:function(n,r){var i=ke(r,"data.challengeName");return[He.SMS_MFA,He.SOFTWARE_TOKEN_MFA].includes(i)},shouldRedirectToConfirmSignUp:function(n,r){return r.data.code==="UserNotConfirmedException"},shouldRedirectToConfirmResetPassword:function(n,r){return r.data.code==="PasswordResetRequiredException"},shouldSetupTOTP:function(n,r){return ke(r,"data.challengeName")===He.MFA_SETUP},shouldForceChangePassword:function(n,r){return ke(r,"data.challengeName")===He.NEW_PASSWORD_REQUIRED},shouldRequestVerification:function(n,r){var i=r.data,a=i.unverified,s=i.verified;return Br(s)&&!Br(a)}},services:{signIn:function(n){return q(this,void 0,void 0,function(){var r,i,a;return W(this,function(s){switch(s.label){case 0:return r=n.formValues,i=r.username,a=r.password,[4,t.handleSignIn({username:i,password:a})];case 1:return[2,s.sent()]}})})},confirmSignIn:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u;return W(this,function(c){switch(c.label){case 0:return i=n.challengeName,a=n.user,s=n.formValues.confirmation_code,i!==He.SMS_MFA&&i!==He.SOFTWARE_TOKEN_MFA||(u=i),[4,t.handleConfirmSignIn({user:a,code:s,mfaType:u})];case 1:return c.sent(),[4,re.Auth.currentAuthenticatedUser()];case 2:return[2,c.sent()]}})})},forceNewPassword:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c,d,l,h,f;return W(this,function(p){switch(p.label){case 0:i=n.user,a=n.formValues,s=a.password,u=a.phone_number,c=a.country_code,d=aa(a,["password","confirm_password","phone_number","country_code"]),u&&(l="".concat(c).concat(u).replace(/[^A-Z0-9+]/gi,""),d=R(R({},d),{phone_number:l})),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,re.Auth.completeNewPassword(i,s,d)];case 2:return(h=p.sent()).challengeName?[2,h]:[2,re.Auth.currentAuthenticatedUser()];case 3:return f=p.sent(),[2,Promise.reject(f)];case 4:return[2]}})})},verifyTotpToken:function(n,r){return q(this,void 0,void 0,function(){var i,a;return W(this,function(s){return i=n.user,a=n.formValues.confirmation_code,[2,re.Auth.verifyTotpToken(i,a)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=r.data.provider,[4,re.Auth.federatedSignIn({provider:i})];case 1:return[2,a.sent()]}})})},checkVerifiedContact:function(n,r){return q(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=n.user,[4,re.Auth.verifiedContact(i)];case 1:return[2,a.sent()]}})})},verifyUser:function(n,r){return q(this,void 0,void 0,function(){var i,a;return W(this,function(s){switch(s.label){case 0:return i=n.formValues.unverifiedAttr,[4,re.Auth.verifyCurrentUserAttribute(i)];case 1:return a=s.sent(),n.attributeToVerify=i,[2,a]}})})},confirmVerifyUser:function(n,r){return q(this,void 0,void 0,function(){var i,a;return W(this,function(s){switch(s.label){case 0:return i=n.attributeToVerify,a=n.formValues.confirmation_code,[4,re.Auth.verifyCurrentUserAttributeSubmit(i,a)];case 1:return[2,s.sent()]}})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(i){return[2,To(n.formValues,n.touched,n.passwordSettings,[An.validateConfirmPassword])]})})}}})}var DS=Ft({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 re.Auth.signOut()}}});function MS(e){var t=e.services;return Ft({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:mo,clearFormValues:go,clearTouched:vo,clearUsername:Zy,clearValidationError:yo,handleInput:bo,handleSubmit:_o,handleBlur:Co,setFieldErrors:wo,setRemoteError:So,setUsername:r1,sendUpdate:co()},guards:{shouldAutoConfirmReset:function(n,r){return!(!n.intent||n.intent!=="confirmPasswordReset")}},services:{resetPassword:function(n){var r,i;return q(this,void 0,void 0,function(){var a;return W(this,function(s){return a=(i=(r=n.formValues)===null||r===void 0?void 0:r.username)!==null&&i!==void 0?i:n.username,[2,t.handleForgotPassword(a)]})})},confirmResetPassword:function(n){return q(this,void 0,void 0,function(){var r,i,a,s;return W(this,function(u){return r=n.username,i=n.formValues,a=i.confirmation_code,s=i.password,[2,t.handleForgotPasswordSubmit({username:r,code:a,password:s})]})})},validateFields:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(i){return[2,To(n.formValues,n.touched,n.passwordSettings,[An.validateConfirmPassword])]})})}}})}var FS="__lodash_hash_undefined__";function LS(e){return this.__data__.set(e,FS),this}var jS=LS;function zS(e){return this.__data__.has(e)}var GS=zS,HS=Jr,KS=jS,qS=GS;function En(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new HS;++t<n;)this.add(e[t])}En.prototype.add=En.prototype.push=KS;En.prototype.has=qS;var WS=En;function YS(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 JS=YS;function ZS(e,t){return e.has(t)}var QS=ZS,XS=WS,eb=JS,tb=QS,nb=1,rb=2;function ob(e,t,n,r,i,a){var s=n&nb,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var d=a.get(e),l=a.get(t);if(d&&l)return d==t&&l==e;var h=-1,f=!0,p=n&rb?new XS:void 0;for(a.set(e,t),a.set(t,e);++h<u;){var v=e[h],g=t[h];if(r)var m=s?r(g,v,h,t,e,a):r(v,g,h,e,t,a);if(m!==void 0){if(m)continue;f=!1;break}if(p){if(!eb(t,function(S,w){if(!tb(p,w)&&(v===S||i(v,S,n,r,a)))return p.push(w)})){f=!1;break}}else if(!(v===g||i(v,g,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var ns=ob;function ib(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var ab=ib;function sb(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var ub=sb,Vi=Ot,Bi=ya,cb=Vt,lb=ns,db=ab,fb=ub,pb=1,hb=2,mb="[object Boolean]",gb="[object Date]",vb="[object Error]",yb="[object Map]",wb="[object Number]",Sb="[object RegExp]",bb="[object Set]",_b="[object String]",Cb="[object Symbol]",Ab="[object ArrayBuffer]",Eb="[object DataView]",Di=Vi?Vi.prototype:void 0,cr=Di?Di.valueOf:void 0;function $b(e,t,n,r,i,a,s){switch(n){case Eb:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ab:return!(e.byteLength!=t.byteLength||!a(new Bi(e),new Bi(t)));case mb:case gb:case wb:return cb(+e,+t);case vb:return e.name==t.name&&e.message==t.message;case Sb:case _b:return e==t+"";case yb:var u=db;case bb:var c=r&pb;if(u||(u=fb),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;r|=hb,s.set(e,t);var l=lb(u(e),u(t),r,i,a,s);return s.delete(e),l;case Cb:if(cr)return cr.call(e)==cr.call(t)}return!1}var Ib=$b,Mi=ma,Tb=1,Pb=Object.prototype,Nb=Pb.hasOwnProperty;function kb(e,t,n,r,i,a){var s=n&Tb,u=Mi(e),c=u.length,d=Mi(t),l=d.length;if(c!=l&&!s)return!1;for(var h=c;h--;){var f=u[h];if(!(s?f in t:Nb.call(t,f)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var g=!0;a.set(e,t),a.set(t,e);for(var m=s;++h<c;){f=u[h];var S=e[f],w=t[f];if(r)var b=s?r(w,S,f,t,e,a):r(S,w,f,e,t,a);if(!(b===void 0?S===w||i(S,w,n,r,a):b)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var _=e.constructor,C=t.constructor;_!=C&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof C=="function"&&C instanceof C)&&(g=!1)}return a.delete(e),a.delete(t),g}var xb=kb,lr=Mn,Ub=ns,Ob=Ib,Rb=xb,Fi=Mt,Li=xe,ji=tt.exports,Vb=xn,Bb=1,zi="[object Arguments]",Gi="[object Array]",un="[object Object]",Db=Object.prototype,Hi=Db.hasOwnProperty;function Mb(e,t,n,r,i,a){var s=Li(e),u=Li(t),c=s?Gi:Fi(e),d=u?Gi:Fi(t);c=c==zi?un:c,d=d==zi?un:d;var l=c==un,h=d==un,f=c==d;if(f&&ji(e)){if(!ji(t))return!1;s=!0,l=!1}if(f&&!l)return a||(a=new lr),s||Vb(e)?Ub(e,t,n,r,i,a):Ob(e,t,c,n,r,i,a);if(!(n&Bb)){var p=l&&Hi.call(e,"__wrapped__"),v=h&&Hi.call(t,"__wrapped__");if(p||v){var g=p?e.value():e,m=v?t.value():t;return a||(a=new lr),i(g,m,n,r,a)}}return f?(a||(a=new lr),Rb(e,t,n,r,i,a)):!1}var Fb=Mb,Lb=Fb,Ki=Ke;function rs(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ki(e)&&!Ki(t)?e!==e&&t!==t:Lb(e,t,n,r,rs,i)}var os=rs,jb=Mn,zb=os,Gb=1,Hb=2;function Kb(e,t,n,r){var i=n.length,a=i,s=!r;if(e==null)return!a;for(e=Object(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=n[i];var c=u[0],d=e[c],l=u[1];if(s&&u[2]){if(d===void 0&&!(c in e))return!1}else{var h=new jb;if(r)var f=r(d,l,c,e,t,h);if(!(f===void 0?zb(l,d,Gb|Hb,r,h):f))return!1}}return!0}var qb=Kb,Wb=Fe;function Yb(e){return e===e&&!Wb(e)}var is=Yb,Jb=is,Zb=On;function Qb(e){for(var t=Zb(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Jb(i)]}return t}var Xb=Qb;function e0(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var as=e0,t0=qb,n0=Xb,r0=as;function o0(e){var t=n0(e);return t.length==1&&t[0][2]?r0(t[0][0],t[0][1]):function(n){return n===e||t0(n,e,t)}}var i0=o0;function a0(e,t){return e!=null&&t in Object(e)}var s0=a0,u0=Hn,c0=Nn,l0=xe,d0=kn,f0=Hr,p0=Lt;function h0(e,t,n){t=u0(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=p0(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&f0(i)&&d0(s,i)&&(l0(e)||c0(e)))}var m0=h0,g0=s0,v0=m0;function y0(e,t){return e!=null&&v0(e,t,g0)}var w0=y0,S0=os,b0=Za,_0=w0,C0=Ao,A0=is,E0=as,$0=Lt,I0=1,T0=2;function P0(e,t){return C0(e)&&A0(t)?E0($0(e),t):function(n){var r=b0(n,e);return r===void 0&&r===t?_0(n,e):S0(t,r,I0|T0)}}var N0=P0;function k0(e){return function(t){return t==null?void 0:t[e]}}var x0=k0,U0=$o;function O0(e){return function(t){return U0(t,e)}}var R0=O0,V0=x0,B0=R0,D0=Ao,M0=Lt;function F0(e){return D0(e)?V0(M0(e)):B0(e)}var L0=F0,j0=i0,z0=N0,G0=Io,H0=xe,K0=L0;function q0(e){return typeof e=="function"?e:e==null?G0:typeof e=="object"?H0(e)?z0(e[0],e[1]):j0(e):K0(e)}var W0=q0,Y0=Qr,J0=Hn,Z0=kn,qi=Fe,Q0=Lt;function X0(e,t,n,r){if(!qi(e))return e;t=J0(t,e);for(var i=-1,a=t.length,s=a-1,u=e;u!=null&&++i<a;){var c=Q0(t[i]),d=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var l=u[c];d=r?r(l,c,u):void 0,d===void 0&&(d=qi(l)?l:Z0(t[i+1])?[]:{})}Y0(u,c,d),u=u[c]}return e}var e_=X0,t_=$o,n_=e_,r_=Hn;function o_(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],u=t_(e,s);n(u,s)&&n_(a,r_(s,e),u)}return a}var i_=o_,a_=ta,s_=W0,u_=i_,c_=ga;function l_(e,t){if(e==null)return{};var n=a_(c_(e),function(r){return[r]});return t=s_(t),u_(e,n,function(r,i){return t(r,i[0])})}var d_=l_;function f_(e){var t=e.services;return Ft({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:{invoke:{src:"signIn",onDone:{target:"#signUpActor.resolved",actions:"setUser"},onError:{target:"idle",actions:"setRemoteError"}}},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:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(n,r){var i=n.authAttributes,a=i.username,s=i.password;return{user:ke(r,"data.user")||n.user,authAttributes:{username:a,password:s}}}}}},{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:mo,clearFormValues:go,clearTouched:vo,clearValidationError:yo,handleInput:bo,handleSubmit:_o,handleBlur:Co,parsePhoneNumber:Wa,setCredentials:Ka,setFieldErrors:wo,setRemoteError:So,setCodeDeliveryDetails:o1,setUser:qa,sendUpdate:co()},services:{signIn:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c;return W(this,function(d){switch(d.label){case 0:return i=n.user,a=n.authAttributes,s=n.formValues,u=ke(i,"username")||ke(a,"username"),c=ke(s,"password"),[4,re.Auth.signIn(u,c)];case 1:return[2,d.sent()]}})})},confirmSignUp:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c,d;return W(this,function(l){switch(l.label){case 0:return i=n.user,a=n.authAttributes,s=n.formValues,u=s.confirmation_code,c=ke(i,"username")||ke(a,"username"),d=a.password,[4,t.handleConfirmSignUp({username:c,code:u})];case 1:return l.sent(),[4,re.Auth.signIn(c,d)];case 2:return[2,l.sent()]}})})},resendConfirmationCode:function(n,r){return q(this,void 0,void 0,function(){var i,a,s;return W(this,function(u){return i=n.user,a=n.authAttributes,s=ke(i,"username")||ke(a,"username"),[2,re.Auth.resendSignUp(s)]})})},federatedSignIn:function(n,r){return q(this,void 0,void 0,function(){var i;return W(this,function(a){switch(a.label){case 0:return i=r.data.provider,[4,re.Auth.federatedSignIn({provider:i})];case 1:return[2,a.sent()]}})})},signUp:function(n,r){return q(this,void 0,void 0,function(){var i,a,s,u,c,d,l;return W(this,function(h){switch(h.label){case 0:return i=n.formValues,a=n.loginMechanisms,s=a[0],c=(u=i)[s===void 0?"username":s],d=u.password,l=d_(i,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:d,attributes:l})];case 1:return[2,h.sent()]}})})},validateSignUp:function(n,r){return q(this,void 0,void 0,function(){return W(this,function(i){return[2,To(n.formValues,n.touched,n.passwordSettings,[t.validateFormPassword,t.validateConfirmPassword,t.validatePreferredUsername,t.validateCustomSignUp])]})})}}})}function p_(){return Ft({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:An,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:"signUp.autoSignIn",actions:"setActorDoneData"}}},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:{on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_OUT:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:ty(function(e){return e.actorRef}),setUser:Pe({user:function(e,t){return t.data}}),setActorDoneData:Pe({actorDoneData:function(e,t){var n,r;return{authAttributes:R({},(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:Pe({user:void 0}),clearActorDoneData:Pe({actorDoneData:void 0}),applyAmplifyConfig:Pe({config:function(e,t){var n,r,i,a,s,u,c,d,l,h=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(function(C){return C.toLowerCase()}))!==null&&r!==void 0?r:[],f=(a=(i=t.data.aws_cognito_verification_mechanisms)===null||i===void 0?void 0:i.map(function(C){return C.toLowerCase()}))!==null&&a!==void 0?a:[],p=(u=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(function(C){return C.toLowerCase()}))!==null&&u!==void 0?u:[],v=(d=(c=t.data.aws_cognito_social_providers)===null||c===void 0?void 0:c.map(function(C){return C.toLowerCase()}))!==null&&d!==void 0?d:[],g=t.data.aws_cognito_password_protection_settings||{};h.length===0&&h.push("username");var m=e.config,S=m.loginMechanisms,w=m.signUpAttributes,b=m.socialProviders,_=m.initialState;return{loginMechanisms:S!=null?S:h,formFields:(l=h_(m.formFields))!==null&&l!==void 0?l:{},passwordSettings:g,signUpAttributes:w!=null?w:Array.from(new Set(Oe(Oe([],f,!0),p,!0))),socialProviders:b!=null?b:v.sort(),initialState:_}}}),spawnSignInActor:Pe({actorRef:function(e,t){var n,r,i,a,s,u=e.services,c=BS({services:u}).withContext({authAttributes:(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes,user:e.user,intent:(r=e.actorDoneData)===null||r===void 0?void 0:r.intent,country_code:"+1",formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(a=e.config)===null||a===void 0?void 0:a.socialProviders,formFields:(s=e.config)===null||s===void 0?void 0:s.formFields});return rn(c,{name:"signInActor"})}}),spawnSignUpActor:Pe({actorRef:function(e,t){var n,r,i,a,s,u,c,d=e.services,l=f_({services:d}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(i=e.actorDoneData)===null||i===void 0?void 0:i.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(a=e.config)===null||a===void 0?void 0:a.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 rn(l,{name:"signUpActor"})}}),spawnResetPasswordActor:Pe({actorRef:function(e,t){var n,r,i,a,s=e.services,u=MS({services:s}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(i=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||i===void 0?void 0:i.username,formFields:(a=e.config)===null||a===void 0?void 0:a.formFields,validationError:{}});return rn(u,{name:"resetPasswordActor"})}}),spawnSignOutActor:Pe({actorRef:function(e){var t=DS.withContext({user:e.user});return rn(t,{name:"signOutActor"})}}),stopSignInActor:sn("signInActor"),stopSignUpActor:sn("signUpActor"),stopResetPasswordActor:sn("resetPasswordActor"),stopSignOutActor:sn("signOutActor"),configure:Pe(function(e,t){var n=t.data,r=n.services,i=aa(n,["services"]);return{services:R(R({},An),r),config:i}}),setHasSetup:Pe({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"},shouldSetup:function(e){return e.hasSetup===!1}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function h_(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 i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$n.apply(this,arguments)},m_=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function g_(e,t,n){if(typeof e=="object")return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function v_(e,t,n){t===void 0&&(t={});var r=typeof e=="function"?e():e,i=t.context,a=t.guards,s=t.actions,u=t.activities,c=t.services,d=t.delays,l=t.state,h=m_(t,["context","guards","actions","activities","services","delays","state"]),f={context:i,guards:a,actions:s,activities:u,services:c,delays:d},p=r.withConfig(f,function(){return $n($n({},r.context),i)}),v=Fa(p,h).start(l?Ue.create(l):void 0),g;return o.onMounted(function(){n&&(g=v.subscribe(g_(n)))}),o.onBeforeUnmount(function(){v.stop(),g==null||g.unsubscribe()}),v}function y_(e){return"state"in e}var Wi=function(){};function w_(e){return"getSnapshot"in e?e.getSnapshot():y_(e)?e.state:void 0}function ss(e,t){t===void 0&&(t=w_);var n=o.isRef(e)?e:o.shallowRef(e),r=o.shallowRef(t(n.value)),i=function(a){n.value.send(a)};return o.watch(n,function(a,s,u){r.value=t(a);var c=a.subscribe({next:function(d){return r.value=d},error:Wi,complete:Wi}).unsubscribe;u(function(){return c()})},{immediate:!0}),{state:r,send:i}}const us={error:"",hasValidationErrors:!1,isPending:!1,route:"",user:"",validationErrors:{val:""},codeDeliveryDetails:{val:""},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();let gn=o.reactive(or(Ct({},us),{send:"",state:""}));const Ce=e=>(e&&(Dr.value=e),ss(Dr.value)),S_=()=>(Yi(),o.watchEffect(()=>{Yi()}),gn),Ae=S_;function Yi(){if(!Dr.value)return;const{state:e,send:t}=Ce(),n=sa({send:t,state:e.value});for(const r of Object.keys(us))gn[r]=n[r];gn.send=t,gn.state=e}const cn=o.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:n}=Ce(),r=i=>{n({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(i,a)=>{const s=ge,u=Se;return o.openBlock(),o.createBlock(u,{class:"amplify-field-group__control federated-sign-in-button","data-fullwidth":"false",style:{"font-weight":"normal"},type:"button",onClick:r},{default:o.withCtx(()=>[o.createVNode(s,{class:"amplify-flex federated-sign-in-button-row",style:{"flex-direction":"row","justify-content":"center","align-items":"center"}},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"default")]),_:3})]),_:3})}}}),b_=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),__={class:"amplify-text",style:{"align-self":"center"}},C_=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),A_={class:"amplify-text",style:{"align-self":"center"}},E_=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),$_={class:"amplify-text",style:{"align-self":"center"}},I_=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),T_={class:"amplify-text",style:{"align-self":"center"}},P_=o.createElementVNode("hr",{class:"amplify-divider amplify-divider--label","aria-orientation":"horizontal","data-size":"small","data-label":"or"},null,-1),Kn=o.defineComponent({setup(e){var S;const{state:t}=Ce(),n=$e(Ae),{route:r}=n(),{value:{context:i}}=t,a=(S=i==null?void 0:i.config)==null?void 0:S.socialProviders,s=a==null?void 0:a.includes("amazon"),u=a==null?void 0:a.includes("apple"),c=a==null?void 0:a.includes("facebook"),d=a==null?void 0:a.includes("google"),l=c||d||s||u,h=r==="signUp"?"Up":"In",f=o.computed(()=>gr),p=o.computed(()=>O(`Sign ${h} with Amazon`)),v=o.computed(()=>O(`Sign ${h} with Apple`)),g=o.computed(()=>O(`Sign ${h} with Facebook`)),m=o.computed(()=>O(`Sign ${h} with Google`));return(w,b)=>{const _=ge;return o.unref(l)?(o.openBlock(),o.createBlock(_,{key:0,class:"amplify-flex federated-sign-in-container",style:{"flex-direction":"column",padding:"0 0 1rem 0"}},{default:o.withCtx(()=>[o.unref(s)?(o.openBlock(),o.createBlock(cn,{key:0,provider:o.unref(f).Amazon},{default:o.withCtx(()=>[b_,o.createElementVNode("p",__,o.toDisplayString(o.unref(p)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(u)?(o.openBlock(),o.createBlock(cn,{key:1,provider:o.unref(f).Apple},{default:o.withCtx(()=>[C_,o.createElementVNode("p",A_,o.toDisplayString(o.unref(v)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(c)?(o.openBlock(),o.createBlock(cn,{key:2,provider:o.unref(f).Facebook},{default:o.withCtx(()=>[E_,o.createElementVNode("p",$_,o.toDisplayString(o.unref(g)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),o.unref(d)?(o.openBlock(),o.createBlock(cn,{key:3,provider:o.unref(f).Google},{default:o.withCtx(()=>[I_,o.createElementVNode("p",T_,o.toDisplayString(o.unref(m)),1)]),_:1},8,["provider"])):o.createCommentVNode("",!0),P_]),_:1})):o.createCommentVNode("",!0)}}}),N_={},k_={"data-amplify-label":""};function x_(e,t){return o.openBlock(),o.createElementBlock("label",k_,[o.renderSlot(e.$slots,"default")])}var qn=Pn(N_,[["render",x_]]);const Wn=o.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,i)=>(o.openBlock(),o.createElementBlock("input",{onChange:i[0]||(i[0]=a=>n(a)),"data-amplify-input":""},null,32))}}),U_=["aria-label"],O_={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},R_=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),V_=[R_],B_={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},D_=o.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),M_=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),F_=[D_,M_],L_={inheritAttrs:!1},Po=o.defineComponent(or(Ct({},L_),{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=O("Show password"),r=O("Hide password"),i=o.ref("password"),a=o.ref(n),s=Math.floor(Math.random()*999999),{name:u,label:c,autocomplete:d,ariainvalid:l,labelHidden:h,placeholder:f,required:p}=o.toRefs(t);let v=o.ref("");function g(){a.value=a.value===n?r:n,i.value=i.value==="password"?"text":"password"}const m=O((w=f==null?void 0:f.value)!=null?w:c.value),S=O(c.value);return(b,_)=>{const C=qn,$=Wn,A=ge;return o.openBlock(),o.createBlock(A,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:o.withCtx(()=>{var E;return[o.createVNode(C,{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(A,{class:"amplify-flex amplify-field-group"},{default:o.withCtx(()=>{var T;return[o.createVNode($,o.mergeProps(b.$attrs,{modelValue:o.unref(v),"onUpdate:modelValue":_[0]||(_[0]=x=>o.isRef(v)?v.value=x:v=x),class:"amplify-input amplify-field-group__control","aria-invalid":o.unref(l),id:"amplify-field-"+o.unref(s),"data-amplify-password":"true",name:o.unref(u),autocomplete:o.unref(d),required:(T=o.unref(p))!=null?T:!0,placeholder:o.unref(m),type:i.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","required","placeholder","type"]),o.createVNode(A,{class:"amplify-field-group__outer-end"},{default:o.withCtx(()=>[o.createElementVNode("button",{"aria-label":a.value,class:"amplify-button amplify-field-group__control amplify-field__show-password","data-fullwidth":"false",type:"button",onClick:g},[i.value==="password"?(o.openBlock(),o.createElementBlock("svg",O_,V_)):(o.openBlock(),o.createElementBlock("svg",B_,F_))],8,U_)]),_:1})]}),_:1})]}),_:1})}}})),j_=["value","selected"],z_=o.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:n,selectValue:r}=e,i=a=>{t("update:selectValue",a.target.value)};return(a,s)=>(o.openBlock(),o.createElementBlock("select",{onChange:s[0]||(s[0]=u=>i(u))},[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(u,c)=>o.createElementVNode("option",{key:c,value:u,selected:u==r?!0:void 0},o.toDisplayString(u),9,j_)),64))],32))}}),G_=o.createTextVNode(o.toDisplayString("Country Code")),H_=o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[o.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),K_=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{label:t,name:n,placeholder:r,autocomplete:i,labelHidden:a,required:s,dialCode:u,dialCodeList:c}=e,d=Math.floor(Math.random()*999999),l=Math.floor(Math.random()*999999);return(h,f)=>{const p=qn,v=z_,g=ge,m=Wn;return o.openBlock(),o.createBlock(g,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(d),class:["amplify-label",{"sr-only":a}]},h.$attrs),{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t))]),_: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",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(p,o.mergeProps({for:"amplify-field-"+o.unref(l),class:"amplify-label amplify-visually-hidden"},h.$attrs),{default:o.withCtx(()=>[G_]),_:1},16,["for"]),o.createVNode(g,{class:"amplify-select__wrapper"},{default:o.withCtx(()=>[o.createVNode(v,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+o.unref(l),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:c,"select-value":u},null,8,["id"]),o.createVNode(g,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:o.withCtx(()=>[H_]),_:1})]),_:1})]),_:1})):o.createCommentVNode("",!0)]),_:1}),o.createVNode(g,{class:"amplify-field-group__field-wrapper"},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+o.unref(d),autocomplete:i,name:n,required:s!=null?s:!0,type:e.type,placeholder:r},null,8,["id","required","type"])]),_:1})]),_:1})]),_:1})}}}),q_={key:2},cs=o.defineComponent({props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=o.toRefs(t),i=$e(Ae),{validationErrors:a}=o.toRefs(i()),{type:s}=r.value,u=o.computed(()=>xl(a.value[n.value])),c=s==="password";return(d,l)=>{var h;return o.openBlock(),o.createElementBlock(o.Fragment,null,[c?(o.openBlock(),o.createBlock(Po,{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(a)[o.unref(n)]},null,8,["name","label","placeholder","required","label-hidden","autocomplete","ariainvalid"])):(o.openBlock(),o.createBlock(K_,{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",q_,[(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"},o.toDisplayString(o.unref(O)(f)),1))),128))])):o.createCommentVNode("",!0)],64)}}}),je=o.defineComponent({props:{route:null},setup(e){const t=e,{route:n}=o.toRefs(t),{state:r}=Ce();let i=[];return o.onBeforeMount(()=>{i=ov(n.value,r.value)}),(a,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),([u,c])=>(o.openBlock(),o.createBlock(cs,{name:u,key:u,formField:c},null,8,["name","formField"]))),128))}}),W_=o.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),Y_={"data-amplify-footer":""},No=o.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=$e(Ae)(),i=o.useAttrs(),a=o.computed(()=>Nl("Forgot your password? ")?O("Forgot your password? "):O("Forgot your password?")),s=o.computed(()=>O("Sign in")),u=o.computed(()=>O("Signing in")),{state:c,send:d}=Ce(),l=o.computed(()=>_e(c.value)),h=g=>{const{name:m,value:S}=g.target;d({type:"CHANGE",data:{name:m,value:S}})},f=g=>{i!=null&&i.onSignInSubmit?t("signInSubmit",g):p(g)},p=g=>{r.submitForm(Le(g))},v=()=>{i!=null&&i.onForgotPasswordClicked?t("forgotPasswordClicked"):d({type:"RESET_PASSWORD"})};return(g,m)=>{const S=Re,w=Ve,b=Se,_=ge,C=Be,$=De;return o.renderSlot(g.$slots,"signInSlotI",o.normalizeProps(o.guardReactiveProps(g.$attrs)),()=>[o.renderSlot(g.$slots,"header"),o.createVNode(_,o.normalizeProps(o.guardReactiveProps(g.$attrs)),{default:o.withCtx(()=>[o.createVNode(C,{"data-amplify-authenticator-signin":"",onInput:h,onSubmit:o.withModifiers(f,["prevent"]),method:"post"},{formt:o.withCtx(({slotData:A})=>[o.renderSlot(g.$slots,"form",{info:A,onSignInSubmit:f,onInput:h,onForgotPasswordClicked:v})]),default:o.withCtx(()=>[o.createVNode(Kn),o.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(S,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-flex",style:{"flex-direction":"column"}},{fieldSetI:o.withCtx(({slotData:A})=>[o.renderSlot(g.$slots,"signin-fields",{info:A})]),default:o.withCtx(()=>[W_,o.createVNode(je,{route:"signIn"})]),_:3},8,["disabled"]),o.unref(l).context.remoteError?(o.openBlock(),o.createBlock(w,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(l).context.remoteError)),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(b,{disabled:o.unref(l).matches("signIn.submit"),class:"amplify-field-group__control",fullwidth:!0,"data-loading":"false",variation:"primary",style:{"border-radius":"0x","font-weight":"normal"}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l).matches("signIn.submit")?o.unref(u):o.unref(s)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode($,null,{default:o.withCtx(()=>[o.renderSlot(g.$slots,"footer",{},()=>[o.createElementVNode("div",Y_,[o.createVNode(b,{onClick:v,class:"amplify-field-group__control","data-fullwidth":"true","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)),1)]),_:1})])])]),_:3})])}}}),ko=o.defineComponent({setup(e){return(t,n)=>(o.openBlock(),o.createBlock(je,{route:"signUp"}))}}),xo=o.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const n=$e(Ae),r=n(),i=n(),{hasValidationErrors:a,isPending:s,error:u}=o.toRefs(r),c=o.useAttrs(),d=o.computed(()=>O("Create Account")),l=v=>{let{checked:g,name:m,type:S,value:w}=v.target;S==="checkbox"&&!g&&(w=void 0),i.updateForm({name:m,value:w})};function h(v){const{name:g}=v.target;i.updateBlur({name:g})}const f=v=>{c!=null&&c.onSignUpSubmit?t("signUpSubmit",v):p(v)},p=v=>{i.submitForm(Le(v))};return(v,g)=>{const m=Re,S=Ve,w=Se,b=ge,_=Be,C=De;return o.renderSlot(v.$slots,"signUpSlotI",o.normalizeProps(o.guardReactiveProps(v.$attrs)),()=>[o.renderSlot(v.$slots,"header"),o.createVNode(b,o.normalizeProps(o.guardReactiveProps(v.$attrs)),{default:o.withCtx(()=>[o.createVNode(_,{onInput:l,onBlurCapture:h,onSubmit:o.withModifiers(f,["prevent"])},{default:o.withCtx(()=>[o.createVNode(Kn),o.createVNode(b,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(m,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:o.unref(s)},{fieldSetI:o.withCtx(({slotData:$})=>[o.renderSlot(v.$slots,"signup-fields",{info:$})]),default:o.withCtx(()=>[o.createVNode(ko)]),_:3},8,["disabled"]),o.unref(u)?(o.openBlock(),o.createBlock(S,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(u))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(w,{class:"amplify-field-group__control","data-fullwidth":"true","data-loading":"false","data-variation":"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:o.unref(s)||o.unref(a)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(d)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),o.createVNode(C,null,{default:o.withCtx(()=>[o.renderSlot(v.$slots,"footer")]),_:3})])}}}),J_=o.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:n,label:r}=t,{active:i}=o.toRefs(t);return(a,s)=>{const u=ge;return o.openBlock(),o.createBlock(u,{tabindex:o.unref(i)?0:-1,"data-state":o.unref(i)?"active":"inactive","aria-selected":o.unref(i)?"true":"false","aria-controls":`radix-id-${o.unref(n)}-8-content-0`,id:`radix-id-${o.unref(n)}-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(r)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),Z_={};function Q_(e,t){const n=ge;return o.openBlock(),o.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",role:"tablist",style:{outline:"none"}},{default:o.withCtx(()=>[o.createVNode(n,{class:"amplify-flex amplify-tabs","data-indicator-position":"top",style:{gap:"0px","justify-content":"center"}},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var X_=Pn(Z_,[["render",Q_]]);const Ze=o.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var a,s;const r=t.default?t.default():[],i=t.headingI?t.headingI():[];if(((s=(a=i[0])==null?void 0:a.children)==null?void 0:s.length)===0)i[0].children=[o.h(`h${e.level}`,Ct({},n),[r])];else return()=>o.h(`h${e.level}`,Ct({"data-amplify-heading":""},n),[i[0]?o.h(i[0].children[0]):o.h(r[0])]);return()=>i}}),eC={};function tC(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=Pn(eC,[["render",tC]]);const Uo=o.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=o.useAttrs(),r=$e(Ae),{isPending:i,error:a,codeDeliveryDetails:s}=o.toRefs(r()),{submitForm:u,updateForm:c,resendCode:d}=r();Ce();const l=o.computed(()=>{var $,A;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?O("We Emailed You"):((A=s.value)==null?void 0:A.DeliveryMedium)==="SMS"?O("We Texted You"):O("We Sent A Code")}),h=o.computed(()=>O("Resend Code")),f=o.computed(()=>O("Confirm")),p=O("Your code is on the way. To log in, enter the code we emailed to"),v=O("Your code is on the way. To log in, enter the code we texted to"),g=O("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive."),m=O("It may take a minute to arrive."),S=o.computed(()=>{var $,A,E,T;return(($=s.value)==null?void 0:$.DeliveryMedium)==="EMAIL"?`${p} ${(A=s.value)==null?void 0:A.Destination}. ${m}`:((E=s.value)==null?void 0:E.DeliveryMedium)==="SMS"?`${v} ${(T=s.value)==null?void 0:T.Destination}. ${m}`:O(`${g}`)}),w=$=>{const{name:A,value:E}=$.target;c({name:A,value:E})},b=$=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",$):_($)},_=$=>{u(Le($))},C=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):d()};return($,A)=>{const E=Ze,T=ls,x=Re,V=Ve,B=Se,L=De,oe=ge,z=Be;return o.renderSlot($.$slots,"confirmSignUpSlotI",o.normalizeProps(o.guardReactiveProps($.$attrs)),()=>[o.createVNode(oe,o.normalizeProps(o.guardReactiveProps($.$attrs)),{default:o.withCtx(()=>[o.createVNode(z,{onInput:w,onSubmit:o.withModifiers(b,["prevent"])},{default:o.withCtx(()=>[o.createVNode(oe,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.renderSlot($.$slots,"header",{},()=>[o.createVNode(E,{class:"amplify-heading",style:{"font-size":"1.5rem"},level:3},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(l)),1)]),_:1})]),o.createVNode(T,{style:{"margin-bottom":"1rem"}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(S)),1)]),_:1}),o.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:o.unref(i)},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignUp"})]),_:1},8,["disabled"]),o.createVNode(L,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:o.withCtx(()=>[o.unref(a)?(o.openBlock(),o.createBlock(V,{key:0},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(O)(o.unref(a))),1)]),_:1})):o.createCommentVNode("",!0),o.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:o.unref(i)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(f)),1)]),_:1},8,["disabled"]),o.createVNode(B,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"default",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(C,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot($.$slots,"footer",{onConfirmSignUpSubmit:b,onLostCodeClicked:C})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Oo=o.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=o.useAttrs(),{state:r,send:i}=Ce(),s=$e(Ae)(),u=o.computed(()=>_e(r.value)),c=u.value.context.challengeName;let d="SMS";c===He.SOFTWARE_TOKEN_MFA&&(d="TOTP");const l=`Confirm ${d} Code`,h=o.computed(()=>O("Back to Sign In")),f=o.computed(()=>O("Confirm")),p=S=>{const{name:w,value:b}=S.target;i({type:"CHANGE",data:{name:w,value:b}})},v=S=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",S):g(S)},g=S=>{s.submitForm(Le(S))},m=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i({type:"SIGN_IN"})};return(S,w)=>{const b=Ze,_=ge,C=Ve,$=Se,A=De,E=Re,T=Be;return o.renderSlot(S.$slots,"confirmSignInSlotI",o.normalizeProps(o.guardReactiveProps(S.$attrs)),()=>[o.createVNode(_,o.normalizeProps(o.guardReactiveProps(S.$attrs)),{default:o.withCtx(()=>[o.createVNode(T,{"data-amplify-authenticator-confirmsignin":"",onInput:p,onSubmit:o.withModifiers(v,["prevent"])},{default:o.withCtx(()=>[o.createVNode(E,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:o.unref(u).matches("confirmSignIn.pending")},{default:o.withCtx(()=>[o.renderSlot(S.$slots,"header",{},()=>[o.createVNode(b,{level:3,class:"amplify-heading"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l))]),_:1})]),o.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>[o.createVNode(je,{route:"confirmSignIn"})]),_:1}),o.createVNode(A,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:o.withCtx(()=>{var x,V;return[(V=(x=o.unref(u))==null?void 0:x.context)!=null&&V.remoteError?(o.openBlock(),o.createBlock(C,{key:0},{default:o.withCtx(()=>{var B,L;return[o.createTextVNode(o.toDisplayString(o.unref(O)((L=(B=o.unref(u))==null?void 0:B.context)==null?void 0:L.remoteError)),1)]}),_:1})):o.createCommentVNode("",!0),o.createVNode($,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-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($,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:o.withModifiers(m,["prevent"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(h)),1)]),_:1},8,["onClick"]),o.renderSlot(S.$slots,"footer",{onBackToSignInClicked:m,onConfirmSignInSubmit:v})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var jt={},nC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ds={},Ee={};let Ro;const rC=[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];Ee.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};Ee.getSymbolTotalCodewords=function(t){return rC[t]};Ee.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ee.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ro=t};Ee.isKanjiModeEnabled=function(){return typeof Ro!="undefined"};Ee.toSJIS=function(t){return Ro(t)};var Yn={};(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,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(Yn);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 oC=fs;function zt(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)}zt.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};zt.prototype.get=function(e,t){return this.data[e*this.size+t]};zt.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};zt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var iC=zt,ps={};(function(e){const t=Ee.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,a=t(r),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,u=[a-7];for(let c=1;c<i-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const i=[],a=e.getRowColCoords(r),s=a.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||i.push([a[u],a[c]]);return i}})(ps);var hs={};const aC=Ee.getSymbolSize,Ji=7;hs.getPositions=function(t){const n=aC(t);return[[0,0],[n-Ji,0],[0,n-Ji]]};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(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,u=0,c=0,d=null,l=null;for(let h=0;h<a;h++){u=c=0,d=l=null;for(let f=0;f<a;f++){let p=i.get(h,f);p===d?u++:(u>=5&&(s+=t.N1+(u-5)),d=p,u=1),p=i.get(f,h),p===l?c++:(c>=5&&(s+=t.N1+(c-5)),l=p,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let u=0;u<a-1;u++)for(let c=0;c<a-1;c++){const d=i.get(u,c)+i.get(u,c+1)+i.get(u+1,c)+i.get(u+1,c+1);(d===4||d===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,u=0,c=0;for(let d=0;d<a;d++){u=c=0;for(let l=0;l<a;l++)u=u<<1&2047|i.get(d,l),l>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|i.get(l,d),l>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let c=0;c<s;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function n(r,i,a){switch(r){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,a){const s=a.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)a.isReserved(c,u)||a.xor(c,u,n(i,c,u))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let d=0;d<s;d++){a(d),e.applyMask(d,i);const l=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(d,i),l<c&&(c=l,u=d)}return u}})(ms);var Jn={};const Ye=Yn,ln=[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],dn=[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];Jn.getBlocksCount=function(t,n){switch(n){case Ye.L:return ln[(t-1)*4+0];case Ye.M:return ln[(t-1)*4+1];case Ye.Q:return ln[(t-1)*4+2];case Ye.H:return ln[(t-1)*4+3];default:return}};Jn.getTotalCodewordsCount=function(t,n){switch(n){case Ye.L:return dn[(t-1)*4+0];case Ye.M:return dn[(t-1)*4+1];case Ye.Q:return dn[(t-1)*4+2];case Ye.H:return dn[(t-1)*4+3];default:return}};var gs={},Zn={};const Nt=new Uint8Array(512),In=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Nt[n]=t,In[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Nt[n]=Nt[n-255]})();Zn.log=function(t){if(t<1)throw new Error("log("+t+")");return In[t]};Zn.exp=function(t){return Nt[t]};Zn.mul=function(t,n){return t===0||n===0?0:Nt[In[t]+In[n]]};(function(e){const t=Zn;e.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<i.length;u++)a[s+u]^=t.mul(r[s],i[u]);return a},e.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const s=a[0];for(let c=0;c<i.length;c++)a[c]^=t.mul(i[c],s);let u=0;for(;u<a.length&&a[u]===0;)u++;a=a.slice(u)}return a},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(gs);const vs=gs;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=vs.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=vs.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(r,i),a}return r};var sC=Vo,ys={},Qe={},Bo={};Bo.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var ze={};const ws="[0-9]+",uC="[A-Z $%*+\\-./:]+";let Ut="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ut=Ut.replace(/u/g,"\\u");const cC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ut+`)(?:.|[\r
45
45
  ]))+`;ze.KANJI=new RegExp(Ut,"g");ze.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ze.BYTE=new RegExp(cC,"g");ze.NUMERIC=new RegExp(ws,"g");ze.ALPHANUMERIC=new RegExp(uC,"g");const lC=new RegExp("^"+Ut+"$"),dC=new RegExp("^"+ws+"$"),fC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ze.testKanji=function(t){return lC.test(t)};ze.testNumeric=function(t){return dC.test(t)};ze.testAlphanumeric=function(t){return fC.test(t)};(function(e){const t=Bo,n=ze;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(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,s){if(e.isValid(a))return a;try{return r(a)}catch{return s}}})(Qe);(function(e){const t=Ee,n=Jn,r=Yn,i=Qe,a=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 g=1;g<=40;g++)if(p<=e.getCapacity(g,v,f))return g}function d(f,p){return i.getCharCountIndicator(f,p)+4}function l(f,p){let v=0;return f.forEach(function(g){v+=d(g.mode,p)+g.getBitsLength()}),v}function h(f,p){for(let v=1;v<=40;v++)if(l(f,v)<=e.getCapacity(v,p,i.MIXED))return v}e.from=function(p,v){return a.isValid(p)?parseInt(p,10):v},e.getCapacity=function(p,v,g){if(!a.isValid(p))throw new Error("Invalid QR Code version");typeof g=="undefined"&&(g=i.BYTE);const m=t.getSymbolTotalCodewords(p),S=n.getTotalCodewordsCount(p,v),w=(m-S)*8;if(g===i.MIXED)return w;const b=w-d(g,p);switch(g){case i.NUMERIC:return Math.floor(b/10*3);case i.ALPHANUMERIC:return Math.floor(b/11*2);case i.KANJI:return Math.floor(b/13);case i.BYTE:default:return Math.floor(b/8)}},e.getBestVersionForData=function(p,v){let g;const m=r.from(v,r.M);if(Array.isArray(p)){if(p.length>1)return h(p,m);if(p.length===0)return 1;g=p[0]}else g=p;return c(g.mode,g.getLength(),m)},e.getEncodedBits=function(p){if(!a.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 Ss={};const Mr=Ee,bs=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,pC=1<<14|1<<12|1<<10|1<<4|1<<1,Zi=Mr.getBCHDigit(bs);Ss.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;Mr.getBCHDigit(i)-Zi>=0;)i^=bs<<Mr.getBCHDigit(i)-Zi;return(r<<10|i)^pC};var _s={};const hC=Qe;function ct(e){this.mode=hC.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,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const a=this.data.length-n;a>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,a*3+1))};var mC=ct;const gC=Qe,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=gC.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 vC=lt,yC=function(t){for(var n=[],r=t.length,i=0;i<r;i++){var a=t.charCodeAt(i);if(a>=55296&&a<=56319&&r>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(a=(a-55296)*1024+s-56320+65536,i+=1)}if(a<128){n.push(a);continue}if(a<2048){n.push(a>>6|192),n.push(a&63|128);continue}if(a<55296||a>=57344&&a<65536){n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128);continue}if(a>=65536&&a<=1114111){n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(a&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const wC=yC,SC=Qe;function dt(e){this.mode=SC.BYTE,this.data=new Uint8Array(wC(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 bC=dt;const _C=Qe,CC=Ee;function ft(e){this.mode=_C.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=CC.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
46
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var AC=ft,Cs={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var a={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,d,l,h,f,p,v,g,m;!u.empty();){c=u.pop(),d=c.value,h=c.cost,f=n[d]||{};for(l in f)f.hasOwnProperty(l)&&(p=f[l],v=h+p,g=s[l],m=typeof s[l]=="undefined",(m||g>v)&&(s[l]=v,u.push(l,v),a[l]=d))}if(typeof i!="undefined"&&typeof s[i]=="undefined"){var S=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(S)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],a=r;a;)i.push(a),a=n[a];return i.reverse(),i},find_path:function(n,r,i){var a=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Cs);(function(e){const t=Qe,n=mC,r=vC,i=bC,a=AC,s=ze,u=Ee,c=Cs.exports;function d(S){return unescape(encodeURIComponent(S)).length}function l(S,w,b){const _=[];let C;for(;(C=S.exec(b))!==null;)_.push({data:C[0],index:C.index,mode:w,length:C[0].length});return _}function h(S){const w=l(s.NUMERIC,t.NUMERIC,S),b=l(s.ALPHANUMERIC,t.ALPHANUMERIC,S);let _,C;return u.isKanjiModeEnabled()?(_=l(s.BYTE,t.BYTE,S),C=l(s.KANJI,t.KANJI,S)):(_=l(s.BYTE_KANJI,t.BYTE,S),C=[]),w.concat(b,_,C).sort(function(A,E){return A.index-E.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.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 a.getBitsLength(S);case t.BYTE:return i.getBitsLength(S)}}function p(S){return S.reduce(function(w,b){const _=w.length-1>=0?w[w.length-1]:null;return _&&_.mode===b.mode?(w[w.length-1].data+=b.data,w):(w.push(b),w)},[])}function v(S){const w=[];for(let b=0;b<S.length;b++){const _=S[b];switch(_.mode){case t.NUMERIC:w.push([_,{data:_.data,mode:t.ALPHANUMERIC,length:_.length},{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.ALPHANUMERIC:w.push([_,{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.KANJI:w.push([_,{data:_.data,mode:t.BYTE,length:d(_.data)}]);break;case t.BYTE:w.push([{data:_.data,mode:t.BYTE,length:d(_.data)}])}}return w}function g(S,w){const b={},_={start:{}};let C=["start"];for(let $=0;$<S.length;$++){const A=S[$],E=[];for(let T=0;T<A.length;T++){const x=A[T],V=""+$+T;E.push(V),b[V]={node:x,lastCount:0},_[V]={};for(let B=0;B<C.length;B++){const L=C[B];b[L]&&b[L].node.mode===x.mode?(_[L][V]=f(b[L].lastCount+x.length,x.mode)-f(b[L].lastCount,x.mode),b[L].lastCount+=x.length):(b[L]&&(b[L].lastCount=x.length),_[L][V]=f(x.length,x.mode)+4+t.getCharCountIndicator(x.mode,w))}}C=E}for(let $=0;$<C.length;$++)_[C[$]].end=0;return{map:_,table:b}}function m(S,w){let b;const _=t.getBestModeForData(S);if(b=t.from(w,_),b!==t.BYTE&&b.bit<_.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(b)+`.
47
47
  Suggested mode is: `+t.toString(_));switch(b===t.KANJI&&!u.isKanjiModeEnabled()&&(b=t.BYTE),b){case t.NUMERIC:return new n(S);case t.ALPHANUMERIC:return new r(S);case t.KANJI:return new a(S);case t.BYTE:return new i(S)}}e.fromArray=function(w){return w.reduce(function(b,_){return typeof _=="string"?b.push(m(_,null)):_.data&&b.push(m(_.data,_.mode)),b},[])},e.fromString=function(w,b){const _=h(w,u.isKanjiModeEnabled()),C=v(_),$=g(C,b),A=c.find_path($.map,"start","end"),E=[];for(let T=1;T<A.length-1;T++)E.push($.table[A[T]].node);return e.fromArray(p(E))},e.rawSplit=function(w){return e.fromArray(h(w,u.isKanjiModeEnabled()))}})(_s);const Qn=Ee,fr=Yn,EC=oC,$C=iC,IC=ps,TC=hs,Fr=ms,Lr=Jn,PC=sC,Tn=ys,NC=Ss,kC=Qe,pr=_s;function xC(e,t){const n=e.size,r=TC.getPositions(t);for(let i=0;i<r.length;i++){const a=r[i][0],s=r[i][1];for(let u=-1;u<=7;u++)if(!(a+u<=-1||n<=a+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(a+u,s+c,!0,!0):e.set(a+u,s+c,!1,!0))}}function UC(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 OC(e,t){const n=IC.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],a=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(i+s,a+u,!0,!0):e.set(i+s,a+u,!1,!0)}}function RC(e,t){const n=e.size,r=Tn.getEncodedBits(t);let i,a,s;for(let u=0;u<18;u++)i=Math.floor(u/3),a=u%3+n-8-3,s=(r>>u&1)===1,e.set(i,a,s,!0),e.set(a,i,s,!0)}function hr(e,t,n){const r=e.size,i=NC.getEncodedBits(t,n);let a,s;for(a=0;a<15;a++)s=(i>>a&1)===1,a<6?e.set(a,8,s,!0):a<8?e.set(a+1,8,s,!0):e.set(r-15+a,8,s,!0),a<8?e.set(8,r-a-1,s,!0):a<9?e.set(8,15-a-1+1,s,!0):e.set(8,15-a-1,s,!0);e.set(r-8,8,1,!0)}function VC(e,t){const n=e.size;let r=-1,i=n-1,a=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(i,u-c)){let d=!1;s<t.length&&(d=(t[s]>>>a&1)===1),e.set(i,u-c,d),a--,a===-1&&(s++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function BC(e,t,n){const r=new EC;n.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),kC.getCharCountIndicator(c.mode,e)),c.write(r)});const i=Qn.getSymbolTotalCodewords(e),a=Lr.getTotalCodewordsCount(e,t),s=(i-a)*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 DC(r,e,t)}function DC(e,t,n){const r=Qn.getSymbolTotalCodewords(t),i=Lr.getTotalCodewordsCount(t,n),a=r-i,s=Lr.getBlocksCount(t,n),u=r%s,c=s-u,d=Math.floor(r/s),l=Math.floor(a/s),h=l+1,f=d-l,p=new PC(f);let v=0;const g=new Array(s),m=new Array(s);let S=0;const w=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const E=A<c?l:h;g[A]=w.slice(v,v+E),m[A]=p.encode(g[A]),v+=E,S=Math.max(S,E)}const b=new Uint8Array(r);let _=0,C,$;for(C=0;C<S;C++)for($=0;$<s;$++)C<g[$].length&&(b[_++]=g[$][C]);for(C=0;C<f;C++)for($=0;$<s;$++)b[_++]=m[$][C];return b}function MC(e,t,n,r){let i;if(Array.isArray(e))i=pr.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){const l=pr.rawSplit(e);d=Tn.getBestVersionForData(l,n)}i=pr.fromString(e,d||40)}else throw new Error("Invalid data");const a=Tn.getBestVersionForData(i,n);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=a;else if(t<a)throw new Error(`