@aws-amplify/ui-vue 2.0.8 → 2.0.9

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 Js=Object.defineProperty,Qs=Object.defineProperties;var el=Object.getOwnPropertyDescriptors;var Fa=Object.getOwnPropertySymbols;var tl=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable;var Da=(e,t,r)=>t in e?Js(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$e=(e,t)=>{for(var r in t||(t={}))tl.call(t,r)&&Da(e,r,t[r]);if(Fa)for(var r of Fa(t))rl.call(t,r)&&Da(e,r,t[r]);return e},Zr=(e,t)=>Qs(e,el(t));Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var n=require("vue"),ae=require("aws-amplify"),Tt=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r};const nl={};function al(e,t){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default")])}var pe=Tt(nl,[["render",al]]);const Oe=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"fieldSetI",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("fieldset",n.mergeProps(r.$attrs,{"data-amplify-fieldset":""}),[n.renderSlot(r.$slots,"default")],16)])}}),Ce=n.defineComponent({props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null},setup(e){const{type:t,fullWidth:r,size:a,variation:o,fontWeight:i}=e;return(s,u)=>n.renderSlot(s.$slots,"buttont",n.normalizeProps(n.guardReactiveProps(s.$attrs)),()=>[n.createElementVNode("button",n.mergeProps({class:"amplify-button",type:t,style:{fontWeight:i},"data-fullwidth":r,"data-size":a,"data-fontWeight":i,"data-variation":o},s.$attrs,{"data-amplify-button":""}),[n.renderSlot(s.$slots,"default")],16)])}}),ol={key:0,class:"amplify-flex amplify-alert","data-variation":"error",style:{"align-items":"center","justify-content":"space-between"},role:"alert"},il={class:"amplify-flex",style:{"align-items":"center"}},sl=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),ll=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),Ve={setup(e){const t=n.ref(!0);function r(){t.value=!1}return(a,o)=>{const i=Ce;return t.value?(n.openBlock(),n.createElementBlock("div",ol,[n.createElementVNode("div",il,[sl,n.createElementVNode("div",null,[n.renderSlot(a.$slots,"default")])]),n.createVNode(i,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"link",type:"button",onClick:r},{default:n.withCtx(()=>[ll]),_:1})])):n.createCommentVNode("",!0)}}},Ue=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"formt",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("form",n.mergeProps({"data-amplify-form":""},r.$attrs),[n.renderSlot(r.$slots,"default")],16)])}}),Me=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"footert",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("footer",n.normalizeProps(n.guardReactiveProps(r.$attrs)),[n.renderSlot(r.$slots,"default")],16)])}});var Xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ul(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),t}function cl(e,t,r,a){for(var o=e.length,i=r+(a?1:-1);a?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var dl=cl;function fl(e){return e!==e}var vl=fl;function pl(e,t,r){for(var a=r-1,o=e.length;++a<o;)if(e[a]===t)return a;return-1}var ml=pl,hl=dl,gl=vl,yl=ml;function bl(e,t,r){return t===t?yl(e,t,r):hl(e,gl,r)}var Cl=bl,wl=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,Oa=wl,_l=Oa,Sl=typeof self=="object"&&self&&self.Object===Object&&self,xl=_l||Sl||Function("return this")(),Le=xl,El=Le,Al=El.Symbol,Jt=Al,Va=Jt,Ua=Object.prototype,Il=Ua.hasOwnProperty,Nl=Ua.toString,Pt=Va?Va.toStringTag:void 0;function Tl(e){var t=Il.call(e,Pt),r=e[Pt];try{e[Pt]=void 0;var a=!0}catch{}var o=Nl.call(e);return a&&(t?e[Pt]=r:delete e[Pt]),o}var Pl=Tl,$l=Object.prototype,Bl=$l.toString;function kl(e){return Bl.call(e)}var Rl=kl,Ma=Jt,Fl=Pl,Dl=Rl,Ol="[object Null]",Vl="[object Undefined]",La=Ma?Ma.toStringTag:void 0;function Ul(e){return e==null?e===void 0?Vl:Ol:La&&La in Object(e)?Fl(e):Dl(e)}var et=Ul;function Ml(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ze=Ml,Ll=et,zl=ze,jl="[object AsyncFunction]",Gl="[object Function]",Wl="[object GeneratorFunction]",Hl="[object Proxy]";function Kl(e){if(!zl(e))return!1;var t=Ll(e);return t==Gl||t==Wl||t==jl||t==Hl}var Xr=Kl,ql=9007199254740991;function Yl(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ql}var Jr=Yl,Zl=Xr,Xl=Jr;function Jl(e){return e!=null&&Xl(e.length)&&!Zl(e)}var at=Jl,Ql=Array.isArray,Be=Ql;function eu(e){return e!=null&&typeof e=="object"}var Ye=eu,tu=et,ru=Be,nu=Ye,au="[object String]";function ou(e){return typeof e=="string"||!ru(e)&&nu(e)&&tu(e)==au}var iu=ou,su=/\s/;function lu(e){for(var t=e.length;t--&&su.test(e.charAt(t)););return t}var uu=lu,cu=uu,du=/^\s+/;function fu(e){return e&&e.slice(0,cu(e)+1).replace(du,"")}var vu=fu,pu=et,mu=Ye,hu="[object Symbol]";function gu(e){return typeof e=="symbol"||mu(e)&&pu(e)==hu}var Qt=gu,yu=vu,za=ze,bu=Qt,ja=0/0,Cu=/^[-+]0x[0-9a-f]+$/i,wu=/^0b[01]+$/i,_u=/^0o[0-7]+$/i,Su=parseInt;function xu(e){if(typeof e=="number")return e;if(bu(e))return ja;if(za(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=za(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yu(e);var r=wu.test(e);return r||_u.test(e)?Su(e.slice(2),r?2:8):Cu.test(e)?ja:+e}var Eu=xu,Au=Eu,Ga=1/0,Iu=17976931348623157e292;function Nu(e){if(!e)return e===0?e:0;if(e=Au(e),e===Ga||e===-Ga){var t=e<0?-1:1;return t*Iu}return e===e?e:0}var Tu=Nu,Pu=Tu;function $u(e){var t=Pu(e),r=t%1;return t===t?r?t-r:t:0}var Bu=$u;function ku(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var Qr=ku,Ru=Qr;function Fu(e,t){return Ru(t,function(r){return e[r]})}var Du=Fu;function Ou(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var Vu=Ou,Uu=et,Mu=Ye,Lu="[object Arguments]";function zu(e){return Mu(e)&&Uu(e)==Lu}var ju=zu,Wa=ju,Gu=Ye,Ha=Object.prototype,Wu=Ha.hasOwnProperty,Hu=Ha.propertyIsEnumerable,Ku=Wa(function(){return arguments}())?Wa:function(e){return Gu(e)&&Wu.call(e,"callee")&&!Hu.call(e,"callee")},er=Ku,ot={exports:{}};function qu(){return!1}var Yu=qu;(function(e,t){var r=Le,a=Yu,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||a;e.exports=c})(ot,ot.exports);var Zu=9007199254740991,Xu=/^(?:0|[1-9]\d*)$/;function Ju(e,t){var r=typeof e;return t=t==null?Zu:t,!!t&&(r=="number"||r!="symbol"&&Xu.test(e))&&e>-1&&e%1==0&&e<t}var tr=Ju,Qu=et,ec=Jr,tc=Ye,rc="[object Arguments]",nc="[object Array]",ac="[object Boolean]",oc="[object Date]",ic="[object Error]",sc="[object Function]",lc="[object Map]",uc="[object Number]",cc="[object Object]",dc="[object RegExp]",fc="[object Set]",vc="[object String]",pc="[object WeakMap]",mc="[object ArrayBuffer]",hc="[object DataView]",gc="[object Float32Array]",yc="[object Float64Array]",bc="[object Int8Array]",Cc="[object Int16Array]",wc="[object Int32Array]",_c="[object Uint8Array]",Sc="[object Uint8ClampedArray]",xc="[object Uint16Array]",Ec="[object Uint32Array]",te={};te[gc]=te[yc]=te[bc]=te[Cc]=te[wc]=te[_c]=te[Sc]=te[xc]=te[Ec]=!0;te[rc]=te[nc]=te[mc]=te[ac]=te[hc]=te[oc]=te[ic]=te[sc]=te[lc]=te[uc]=te[cc]=te[dc]=te[fc]=te[vc]=te[pc]=!1;function Ac(e){return tc(e)&&ec(e.length)&&!!te[Qu(e)]}var Ic=Ac;function Nc(e){return function(t){return e(t)}}var Tc=Nc,en={exports:{}};(function(e,t){var r=Oa,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i&&r.process,u=function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(en,en.exports);var Pc=Ic,$c=Tc,Ka=en.exports,qa=Ka&&Ka.isTypedArray,Bc=qa?$c(qa):Pc,rr=Bc,kc=Vu,Rc=er,Fc=Be,Dc=ot.exports,Oc=tr,Vc=rr,Uc=Object.prototype,Mc=Uc.hasOwnProperty;function Lc(e,t){var r=Fc(e),a=!r&&Rc(e),o=!r&&!a&&Dc(e),i=!r&&!a&&!o&&Vc(e),s=r||a||o||i,u=s?kc(e.length,String):[],l=u.length;for(var c in e)(t||Mc.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Oc(c,l)))&&u.push(c);return u}var Ya=Lc,zc=Object.prototype;function jc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zc;return e===r}var nr=jc;function Gc(e,t){return function(r){return e(t(r))}}var Za=Gc,Wc=Za,Hc=Wc(Object.keys,Object),Kc=Hc,qc=nr,Yc=Kc,Zc=Object.prototype,Xc=Zc.hasOwnProperty;function Jc(e){if(!qc(e))return Yc(e);var t=[];for(var r in Object(e))Xc.call(e,r)&&r!="constructor"&&t.push(r);return t}var Xa=Jc,Qc=Ya,ed=Xa,td=at;function rd(e){return td(e)?Qc(e):ed(e)}var tn=rd,nd=Du,ad=tn;function od(e){return e==null?[]:nd(e,ad(e))}var id=od,sd=Cl,ld=at,ud=iu,cd=Bu,dd=id,fd=Math.max;function vd(e,t,r,a){e=ld(e)?e:dd(e),r=r&&!a?cd(r):0;var o=e.length;return r<0&&(r=fd(o+r,0)),ud(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&sd(e,t,r)>-1}var pd=vd;/*! *****************************************************************************
1
+ "use strict";var tl=Object.defineProperty,rl=Object.defineProperties;var nl=Object.getOwnPropertyDescriptors;var Da=Object.getOwnPropertySymbols;var al=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable;var Oa=(e,t,r)=>t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$e=(e,t)=>{for(var r in t||(t={}))al.call(t,r)&&Oa(e,r,t[r]);if(Da)for(var r of Da(t))ol.call(t,r)&&Oa(e,r,t[r]);return e},Xr=(e,t)=>rl(e,nl(t));Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var n=require("vue"),ae=require("aws-amplify"),Pt=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r};const il={};function sl(e,t){return n.openBlock(),n.createElementBlock("div",null,[n.renderSlot(e.$slots,"default")])}var pe=Pt(il,[["render",sl]]);const Oe=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"fieldSetI",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("fieldset",n.mergeProps(r.$attrs,{"data-amplify-fieldset":""}),[n.renderSlot(r.$slots,"default")],16)])}}),Ce=n.defineComponent({props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null},setup(e){const{type:t,fullWidth:r,size:a,variation:o,fontWeight:i}=e;return(s,u)=>n.renderSlot(s.$slots,"buttont",n.normalizeProps(n.guardReactiveProps(s.$attrs)),()=>[n.createElementVNode("button",n.mergeProps({class:"amplify-button",type:t,style:{fontWeight:i},"data-fullwidth":r,"data-size":a,"data-fontWeight":i,"data-variation":o},s.$attrs,{"data-amplify-button":""}),[n.renderSlot(s.$slots,"default")],16)])}}),ll={key:0,class:"amplify-flex amplify-alert","data-variation":"error",style:{"align-items":"center","justify-content":"space-between"},role:"alert"},ul={class:"amplify-flex",style:{"align-items":"center"}},cl=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),dl=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24",fill:"currentColor"},[n.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),Ve={setup(e){const t=n.ref(!0);function r(){t.value=!1}return(a,o)=>{const i=Ce;return t.value?(n.openBlock(),n.createElementBlock("div",ll,[n.createElementVNode("div",ul,[cl,n.createElementVNode("div",null,[n.renderSlot(a.$slots,"default")])]),n.createVNode(i,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"link",type:"button",onClick:r},{default:n.withCtx(()=>[dl]),_:1})])):n.createCommentVNode("",!0)}}},Ue=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"formt",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("form",n.mergeProps({"data-amplify-form":""},r.$attrs),[n.renderSlot(r.$slots,"default")],16)])}}),Me=n.defineComponent({setup(e){let t=n.useSlots();return(r,a)=>n.renderSlot(r.$slots,"footert",n.mergeProps(r.$attrs,{slotData:n.unref(t).default&&n.unref(t).default()}),()=>[n.createElementVNode("footer",n.normalizeProps(n.guardReactiveProps(r.$attrs)),[n.renderSlot(r.$slots,"default")],16)])}});var Xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function fl(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),t}function vl(e,t,r,a){for(var o=e.length,i=r+(a?1:-1);a?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var pl=vl;function ml(e){return e!==e}var hl=ml;function gl(e,t,r){for(var a=r-1,o=e.length;++a<o;)if(e[a]===t)return a;return-1}var yl=gl,bl=pl,Cl=hl,wl=yl;function Sl(e,t,r){return t===t?wl(e,t,r):bl(e,Cl,r)}var _l=Sl,xl=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,Va=xl,El=Va,Al=typeof self=="object"&&self&&self.Object===Object&&self,Il=El||Al||Function("return this")(),Le=Il,Nl=Le,Pl=Nl.Symbol,Jt=Pl,Ua=Jt,Ma=Object.prototype,Tl=Ma.hasOwnProperty,$l=Ma.toString,Tt=Ua?Ua.toStringTag:void 0;function kl(e){var t=Tl.call(e,Tt),r=e[Tt];try{e[Tt]=void 0;var a=!0}catch{}var o=$l.call(e);return a&&(t?e[Tt]=r:delete e[Tt]),o}var Bl=kl,Fl=Object.prototype,Rl=Fl.toString;function Dl(e){return Rl.call(e)}var Ol=Dl,La=Jt,Vl=Bl,Ul=Ol,Ml="[object Null]",Ll="[object Undefined]",za=La?La.toStringTag:void 0;function zl(e){return e==null?e===void 0?Ll:Ml:za&&za in Object(e)?Vl(e):Ul(e)}var tt=zl;function jl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ze=jl,Gl=tt,Wl=ze,Hl="[object AsyncFunction]",Kl="[object Function]",ql="[object GeneratorFunction]",Yl="[object Proxy]";function Zl(e){if(!Wl(e))return!1;var t=Gl(e);return t==Kl||t==ql||t==Hl||t==Yl}var Jr=Zl,Xl=9007199254740991;function Jl(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xl}var Qr=Jl,Ql=Jr,eu=Qr;function tu(e){return e!=null&&eu(e.length)&&!Ql(e)}var at=tu,ru=Array.isArray,ke=ru;function nu(e){return e!=null&&typeof e=="object"}var Ye=nu,au=tt,ou=ke,iu=Ye,su="[object String]";function lu(e){return typeof e=="string"||!ou(e)&&iu(e)&&au(e)==su}var uu=lu,cu=/\s/;function du(e){for(var t=e.length;t--&&cu.test(e.charAt(t)););return t}var fu=du,vu=fu,pu=/^\s+/;function mu(e){return e&&e.slice(0,vu(e)+1).replace(pu,"")}var hu=mu,gu=tt,yu=Ye,bu="[object Symbol]";function Cu(e){return typeof e=="symbol"||yu(e)&&gu(e)==bu}var Qt=Cu,wu=hu,ja=ze,Su=Qt,Ga=0/0,_u=/^[-+]0x[0-9a-f]+$/i,xu=/^0b[01]+$/i,Eu=/^0o[0-7]+$/i,Au=parseInt;function Iu(e){if(typeof e=="number")return e;if(Su(e))return Ga;if(ja(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ja(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wu(e);var r=xu.test(e);return r||Eu.test(e)?Au(e.slice(2),r?2:8):_u.test(e)?Ga:+e}var Nu=Iu,Pu=Nu,Wa=1/0,Tu=17976931348623157e292;function $u(e){if(!e)return e===0?e:0;if(e=Pu(e),e===Wa||e===-Wa){var t=e<0?-1:1;return t*Tu}return e===e?e:0}var ku=$u,Bu=ku;function Fu(e){var t=Bu(e),r=t%1;return t===t?r?t-r:t:0}var Ru=Fu;function Du(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}var en=Du,Ou=en;function Vu(e,t){return Ou(t,function(r){return e[r]})}var Uu=Vu;function Mu(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var Lu=Mu,zu=tt,ju=Ye,Gu="[object Arguments]";function Wu(e){return ju(e)&&zu(e)==Gu}var Hu=Wu,Ha=Hu,Ku=Ye,Ka=Object.prototype,qu=Ka.hasOwnProperty,Yu=Ka.propertyIsEnumerable,Zu=Ha(function(){return arguments}())?Ha:function(e){return Ku(e)&&qu.call(e,"callee")&&!Yu.call(e,"callee")},er=Zu,ot={exports:{}};function Xu(){return!1}var Ju=Xu;(function(e,t){var r=Le,a=Ju,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||a;e.exports=c})(ot,ot.exports);var Qu=9007199254740991,ec=/^(?:0|[1-9]\d*)$/;function tc(e,t){var r=typeof e;return t=t==null?Qu:t,!!t&&(r=="number"||r!="symbol"&&ec.test(e))&&e>-1&&e%1==0&&e<t}var tr=tc,rc=tt,nc=Qr,ac=Ye,oc="[object Arguments]",ic="[object Array]",sc="[object Boolean]",lc="[object Date]",uc="[object Error]",cc="[object Function]",dc="[object Map]",fc="[object Number]",vc="[object Object]",pc="[object RegExp]",mc="[object Set]",hc="[object String]",gc="[object WeakMap]",yc="[object ArrayBuffer]",bc="[object DataView]",Cc="[object Float32Array]",wc="[object Float64Array]",Sc="[object Int8Array]",_c="[object Int16Array]",xc="[object Int32Array]",Ec="[object Uint8Array]",Ac="[object Uint8ClampedArray]",Ic="[object Uint16Array]",Nc="[object Uint32Array]",te={};te[Cc]=te[wc]=te[Sc]=te[_c]=te[xc]=te[Ec]=te[Ac]=te[Ic]=te[Nc]=!0;te[oc]=te[ic]=te[yc]=te[sc]=te[bc]=te[lc]=te[uc]=te[cc]=te[dc]=te[fc]=te[vc]=te[pc]=te[mc]=te[hc]=te[gc]=!1;function Pc(e){return ac(e)&&nc(e.length)&&!!te[rc(e)]}var Tc=Pc;function $c(e){return function(t){return e(t)}}var kc=$c,tn={exports:{}};(function(e,t){var r=Va,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i&&r.process,u=function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(tn,tn.exports);var Bc=Tc,Fc=kc,qa=tn.exports,Ya=qa&&qa.isTypedArray,Rc=Ya?Fc(Ya):Bc,rr=Rc,Dc=Lu,Oc=er,Vc=ke,Uc=ot.exports,Mc=tr,Lc=rr,zc=Object.prototype,jc=zc.hasOwnProperty;function Gc(e,t){var r=Vc(e),a=!r&&Oc(e),o=!r&&!a&&Uc(e),i=!r&&!a&&!o&&Lc(e),s=r||a||o||i,u=s?Dc(e.length,String):[],l=u.length;for(var c in e)(t||jc.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Mc(c,l)))&&u.push(c);return u}var Za=Gc,Wc=Object.prototype;function Hc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Wc;return e===r}var nr=Hc;function Kc(e,t){return function(r){return e(t(r))}}var Xa=Kc,qc=Xa,Yc=qc(Object.keys,Object),Zc=Yc,Xc=nr,Jc=Zc,Qc=Object.prototype,ed=Qc.hasOwnProperty;function td(e){if(!Xc(e))return Jc(e);var t=[];for(var r in Object(e))ed.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ja=td,rd=Za,nd=Ja,ad=at;function od(e){return ad(e)?rd(e):nd(e)}var rn=od,id=Uu,sd=rn;function ld(e){return e==null?[]:id(e,sd(e))}var ud=ld,cd=_l,dd=at,fd=uu,vd=Ru,pd=ud,md=Math.max;function hd(e,t,r,a){e=dd(e)?e:pd(e),r=r&&!a?vd(r):0;var o=e.length;return r<0&&(r=md(o+r,0)),fd(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&cd(e,t,r)>-1}var gd=hd;/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,10 +11,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
11
  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
- ***************************************************************************** */var I=function(){return I=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},I.apply(this,arguments)};function rn(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}function de(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var Ja=".",Qa={},nn="xstate.guard",md="",it=!0;function re(e){return Object.keys(e)}function an(e,t,r){r===void 0&&(r=Ja);var a=$t(e,r),o=$t(t,r);return H(o)?H(a)?o===a:!1:H(a)?a in o:re(a).every(function(i){return i in o?an(a[i],o[i]):!1})}function eo(e){try{return H(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function on(e,t){try{return lt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function hd(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function $t(e,t){if(hd(e))return e.value;if(lt(e))return ar(e);if(typeof e!="string")return e;var r=on(e,t);return ar(r)}function ar(e){if(e.length===1)return e[0];for(var t={},r=t,a=0;a<e.length-1;a++)a===e.length-2?r[e[a]]=e[a+1]:(r[e[a]]={},r=r[e[a]]);return t}function Bt(e,t){for(var r={},a=re(e),o=0;o<a.length;o++){var i=a[o];r[i]=t(e[i],i,e,o)}return r}function to(e,t,r){var a,o,i={};try{for(var s=W(re(e)),u=s.next();!u.done;u=s.next()){var l=u.value,c=e[l];!r(c)||(i[l]=t(c,l,e))}}catch(d){a={error:d}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}var gd=function(e){return function(t){var r,a,o=t;try{for(var i=W(e),s=i.next();!s.done;s=i.next()){var u=s.value;o=o[u]}}catch(l){r={error:l}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return o}};function yd(e,t){return function(r){var a,o,i=r;try{for(var s=W(e),u=s.next();!u.done;u=s.next()){var l=u.value;i=i[t][l]}}catch(c){a={error:c}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}}function or(e){if(!e)return[[]];if(H(e))return[[e]];var t=oe(re(e).map(function(r){var a=e[r];return typeof a!="string"&&(!a||!Object.keys(a).length)?[[r]]:or(e[r]).map(function(o){return[r].concat(o)})}));return t}function oe(e){var t;return(t=[]).concat.apply(t,de([],J(e),!1))}function ro(e){return lt(e)?e:[e]}function ke(e){return e===void 0?[]:ro(e)}function ir(e,t,r){var a,o;if(Z(e))return e(t,r.data);var i={};try{for(var s=W(Object.keys(e)),u=s.next();!u.done;u=s.next()){var l=u.value,c=e[l];Z(c)?i[l]=c(t,r.data):i[l]=c}}catch(d){a={error:d}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}function bd(e){return/^(done|error)\./.test(e)}function no(e){return!!(e instanceof Promise||e!==null&&(Z(e)||typeof e=="object")&&Z(e.then))}function Cd(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function ao(e,t){var r,a,o=J([[],[]],2),i=o[0],s=o[1];try{for(var u=W(e),l=u.next();!l.done;l=u.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(d){r={error:d}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return[i,s]}function oo(e,t){return Bt(e.states,function(r,a){if(!!r){var o=(H(t)?void 0:t[a])||(r?r.current:void 0);if(!!o)return{current:o,states:oo(r,o)}}})}function wd(e,t){return{current:t,states:oo(e,t)}}function io(e,t,r,a){var o=e&&r.reduce(function(i,s){var u,l,c=s.assignment,d={state:a,action:s,_event:t},v={};if(Z(c))v=c(i,t.data,d);else try{for(var f=W(re(c)),p=f.next();!p.done;p=f.next()){var m=p.value,g=c[m];v[m]=Z(g)?g(i,t.data,d):g}}catch(b){u={error:b}}finally{try{p&&!p.done&&(l=f.return)&&l.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,v)},e);return o}var st=function(){};function lt(e){return Array.isArray(e)}function Z(e){return typeof e=="function"}function H(e){return typeof e=="string"}function so(e,t){if(!!e)return H(e)?{type:nn,name:e,predicate:t?t[e]:void 0}:Z(e)?{type:nn,name:e.name,predicate:e}:e}function _d(e){try{return"subscribe"in e&&Z(e.subscribe)}catch{return!1}}var Sd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function He(e){try{return"__xstatenode"in e}catch{return!1}}function xd(e){return!!e&&typeof e.send=="function"}var Ed=function(){var e=0;return function(){return e++,e.toString(16)}}();function sn(e,t){return H(e)||typeof e=="number"?I({type:e},t):e}function ge(e,t){if(!H(e)&&"$$type"in e&&e.$$type==="scxml")return e;var r=sn(e);return I({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function ut(e,t){var r=ro(t).map(function(a){return typeof a=="undefined"||typeof a=="string"||He(a)?{target:a,event:e}:I(I({},a),{event:e})});return r}function Ad(e){if(!(e===void 0||e===md))return ke(e)}function lo(e,t,r,a,o){var i=e.options.guards,s={state:o,cond:t,_event:a};if(t.type===nn)return((i==null?void 0:i[t.name])||t.predicate)(r,a.data,s);var u=i[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(r,a.data,s)}function uo(e){return typeof e=="string"?{type:e}:e}function co(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}var Q;(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"})(Q||(Q={}));var ct;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(ct||(ct={}));var ln=Q.Start,un=Q.Stop,sr=Q.Raise,lr=Q.Send,fo=Q.Cancel,Id=Q.NullEvent,cn=Q.Assign;Q.After;Q.DoneState;var vo=Q.Log,Nd=Q.Init,dn=Q.Invoke;Q.ErrorExecution;var po=Q.ErrorPlatform,Td=Q.ErrorCustom,fn=Q.Update,Pd=Q.Choose,$d=Q.Pure,ur=ge({type:Nd});function vn(e,t){return t&&t[e]||void 0}function kt(e,t){var r;if(H(e)||typeof e=="number"){var a=vn(e,t);Z(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(Z(e))r={type:e.name||e.toString(),exec:e};else{var a=vn(e.type,t);if(Z(a))r=I(I({},e),{exec:a});else if(a){var o=a.type||e.type;r=I(I(I({},a),e),{type:o})}else r=e}return r}var cr=function(e,t){if(!e)return[];var r=lt(e)?e:[e];return r.map(function(a){return kt(a,t)})};function pn(e){var t=kt(e);return I(I({id:H(e)?e:t.id},t),{type:t.type})}function Bd(e){return H(e)?{type:sr,event:e}:dr(e,{to:ct.Internal})}function kd(e){return{type:sr,_event:ge(e.event)}}function dr(e,t){return{to:t?t.to:void 0,type:lr,event:Z(e)?e:sn(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Z(e)?e.name:eo(e)}}function Rd(e,t,r,a){var o={_event:r},i=ge(Z(e.event)?e.event(t,r.data,o):e.event),s;if(H(e.delay)){var u=a&&a[e.delay];s=Z(u)?u(t,r.data,o):u}else s=Z(e.delay)?e.delay(t,r.data,o):e.delay;var l=Z(e.to)?e.to(t,r.data,o):e.to;return I(I({},e),{to:l,_event:i,event:i.data,delay:s})}function Fd(e,t){return dr(e,I(I({},t),{to:ct.Parent}))}function Y(){return Fd(fn)}var Dd=function(e,t,r){return I(I({},e),{value:H(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},Od=function(e){return{type:fo,sendId:e}};function Vd(e){var t=pn(e);return{type:Q.Start,activity:t,exec:void 0}}function Ud(e){var t=Z(e)?e:pn(e);return{type:Q.Stop,activity:t,exec:void 0}}function Md(e,t,r){var a=Z(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:Q.Stop,activity:o};return i}var tt=function(e){return{type:cn,assignment:e}};function Ld(e,t){var r=t?"#".concat(t):"";return"".concat(Q.After,"(").concat(e,")").concat(r)}function fr(e,t){var r="".concat(Q.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function vr(e,t){var r="".concat(Q.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Rt(e,t){var r="".concat(Q.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function zd(e,t){return dr(function(r,a){return a},I(I({},t),{to:e}))}function mn(e,t,r,a,o,i){i===void 0&&(i=!1);var s=J(i?[[],o]:ao(o,function(f){return f.type===cn}),2),u=s[0],l=s[1],c=u.length?io(r,a,u,t):r,d=i?[r]:void 0,v=oe(l.map(function(f){var p;switch(f.type){case sr:return kd(f);case lr:var m=Rd(f,c,a,e.options.delays);return m;case vo:return Dd(f,c,a);case Pd:{var g=f,b=(p=g.conds.find(function(F){var O=so(F.cond,e.options.guards);return!O||lo(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!b)return[];var y=J(mn(e,t,c,a,cr(ke(b),e.options.actions),i),2),h=y[0],w=y[1];return c=w,d==null||d.push(c),h}case $d:{var b=f.get(c,a.data);if(!b)return[];var _=J(mn(e,t,c,a,cr(ke(b),e.options.actions),i),2),S=_[0],N=_[1];return c=N,d==null||d.push(c),S}case un:return Md(f,c,a);case cn:{c=io(c,a,[f],t),d==null||d.push(c);break}default:var A=kt(f,e.options.actions),x=A.exec;if(x&&d){var P=d.length-1;A=I(I({},A),{exec:function(F){for(var O=[],D=1;D<arguments.length;D++)O[D-1]=arguments[D];x.apply(void 0,de([d[P]],J(O),!1))}})}return A}}).filter(function(f){return!!f}));return[v,c]}var pr=function(e){return e.type==="atomic"||e.type==="final"};function dt(e){return re(e.states).map(function(t){return e.states[t]})}function mo(e){var t=[e];return pr(e)?t:t.concat(oe(dt(e).map(mo)))}function ft(e,t){var r,a,o,i,s,u,l,c,d=new Set(e),v=hn(d),f=new Set(t);try{for(var p=W(f),m=p.next();!m.done;m=p.next())for(var g=m.value,b=g.parent;b&&!f.has(b);)f.add(b),b=b.parent}catch(P){r={error:P}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}var y=hn(f);try{for(var h=W(f),w=h.next();!w.done;w=h.next()){var g=w.value;if(g.type==="compound"&&(!y.get(g)||!y.get(g).length))v.get(g)?v.get(g).forEach(function(F){return f.add(F)}):g.initialStateNodes.forEach(function(F){return f.add(F)});else if(g.type==="parallel")try{for(var _=(s=void 0,W(dt(g))),S=_.next();!S.done;S=_.next()){var N=S.value;N.type!=="history"&&(f.has(N)||(f.add(N),v.get(N)?v.get(N).forEach(function(F){return f.add(F)}):N.initialStateNodes.forEach(function(F){return f.add(F)})))}}catch(F){s={error:F}}finally{try{S&&!S.done&&(u=_.return)&&u.call(_)}finally{if(s)throw s.error}}}}catch(P){o={error:P}}finally{try{w&&!w.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}try{for(var A=W(f),x=A.next();!x.done;x=A.next())for(var g=x.value,b=g.parent;b&&!f.has(b);)f.add(b),b=b.parent}catch(P){l={error:P}}finally{try{x&&!x.done&&(c=A.return)&&c.call(A)}finally{if(l)throw l.error}}return f}function ho(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var a=r[0];if(a){if(pr(a))return a.key}else return{}}var o={};return r.forEach(function(i){o[i.key]=ho(i,t)}),o}function hn(e){var t,r,a=new Map;try{for(var o=W(e),i=o.next();!i.done;i=o.next()){var s=i.value;a.has(s)||a.set(s,[]),s.parent&&(a.has(s.parent)||a.set(s.parent,[]),a.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a}function jd(e,t){var r=ft([e],t);return ho(e,hn(r))}function mr(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function Gd(e){return de([],J(new Set(oe(de([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Ft(e,t){return t.type==="compound"?dt(t).some(function(r){return r.type==="final"&&mr(e,r)}):t.type==="parallel"?dt(t).every(function(r){return Ft(e,r)}):!1}function Wd(e){return e===void 0&&(e=[]),e.reduce(function(t,r){return r.meta!==void 0&&(t[r.id]=r.meta),t},{})}function go(e){return new Set(oe(e.map(function(t){return t.tags})))}function yo(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(H(e)||H(t))return e===t;var r=re(e),a=re(t);return r.length===a.length&&r.every(function(o){return yo(e[o],t[o])})}function Hd(e){return H(e)?!1:"value"in e&&"history"in e}function Kd(e,t){var r=e.exec,a=I(I({},e),{exec:r!==void 0?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return a}var Ze=function(){function e(t){var r=this,a;this.actions=[],this.activities=Qa,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||Qa,this.meta=Wd(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=(a=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&a!==void 0?a:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return Gd(r.configuration)}})}return e.from=function(t,r){if(t instanceof e)return t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var a=ur;return new e({value:t,context:r,_event:a,_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,r){if(t instanceof e){if(!t.actions.length)return t;var a=ur;return new e({value:t.value,context:r,_event:a,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,r)},e.prototype.toStrings=function(t,r){var a=this;if(t===void 0&&(t=this.value),r===void 0&&(r="."),H(t))return[t];var o=re(t);return o.concat.apply(o,de([],J(o.map(function(i){return a.toStrings(t[i],r).map(function(s){return i+r+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var r=t.tags;t.machine;var a=rn(t,["configuration","transitions","tags","machine"]);return I(I({},a),{tags:Array.from(r)})},e.prototype.matches=function(t){return an(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var r;return st(!!this.machine),!!((r=this.machine)===null||r===void 0?void 0:r.transition(this,t).changed)},e}(),hr=[],Dt=function(e,t){hr.push(e);var r=t(e);return hr.pop(),r},qd=function(e){return e(hr[hr.length-1])};function bo(e){return{id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}}}function Yd(e,t,r,a){var o,i=uo(e.src),s=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],u=e.data?ir(e.data,r,a):void 0,l=s?Co(s,e.id,u):bo(e.id);return l.meta=e,l}function Co(e,t,r){var a=bo(t);if(a.deferred=!0,He(e)){var o=a.state=Dt(void 0,function(){return(r?e.withContext(r):e).initialState});a.getSnapshot=function(){return o}}return a}function Zd(e){try{return typeof e.send=="function"}catch{return!1}}function Xd(e){return Zd(e)&&"id"in e}function Jd(e){return I({subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},e)}function Qd(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function gr(e){return I(I({type:dn},e),{toJSON:function(){e.onDone,e.onError;var t=rn(e,["onDone","onError"]);return I(I({},t),{type:dn,src:Qd(e.src)})}})}var vt="",gn="#",Ot="*",pt={},mt=function(e){return e[0]===gn},ef=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},tf=function(e,t,r){var a=r.slice(0,-1).some(function(i){return!("cond"in i)&&!("in"in i)&&(H(i.target)||He(i.target))}),o=t===vt?"the transient event":"event '".concat(t,"'");st(!a,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},rf=function(){function e(t,r,a){var o=this;a===void 0&&(a="context"in t?t.context:void 0);var i;this.config=t,this._context=a,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(ef(),r),this.parent=this.options._parent,this.key=this.config.key||this.options._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:Ja),this.id=this.config.id||de([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&&re(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(i=this.config.schema)!==null&&i!==void 0?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Bt(this.config.states,function(l,c){var d,v=new e(l,{_parent:o,_key:c});return Object.assign(o.idMap,I((d={},d[v.id]=v,d),v.idMap)),v}):pt;var s=0;function u(l){var c,d;l.order=s++;try{for(var v=W(dt(l)),f=v.next();!f.done;f=v.next()){var p=f.value;u(p)}}catch(m){c={error:m}}finally{try{f&&!f.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}}u(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(l){var c=l.event;return c===vt}):vt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=ke(this.config.entry||this.config.onEntry).map(function(l){return kt(l)}),this.onExit=ke(this.config.exit||this.config.onExit).map(function(l){return kt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=ke(this.config.invoke).map(function(l,c){var d,v;if(He(l))return o.machine.options.services=I((d={},d[l.id]=l,d),o.machine.options.services),gr({src:l.id,id:l.id});if(H(l.src))return gr(I(I({},l),{id:l.id||l.src,src:l.src}));if(He(l.src)||Z(l.src)){var f="".concat(o.id,":invocation[").concat(c,"]");return o.machine.options.services=I((v={},v[f]=l.src,v),o.machine.options.services),gr(I(I({id:f},l),{src:f}))}else{var p=l.src;return gr(I(I({id:p.type},l),{src:p}))}}),this.activities=ke(this.config.activities).concat(this.invoke).map(function(l){return pn(l)}),this.transition=this.transition.bind(this),this.tags=ke(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||mo(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,r){var a=this.options,o=a.actions,i=a.activities,s=a.guards,u=a.services,l=a.delays;return new e(this.config,{actions:I(I({},o),t.actions),activities:I(I({},i),t.activities),guards:I(I({},s),t.guards),services:I(I({},u),t.services),delays:I(I({},l),t.delays)},r!=null?r:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Z(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:Bt(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(r,a){return r[a.eventType]=r[a.eventType]||[],r[a.eventType].push(a),r},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var r=t===vt,a=this.transitions.filter(function(o){var i=o.eventType===t;return r?i:i||o.eventType===Ot});return this.__cache.candidates[t]=a,a},e.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var a=function(i,s){var u=Z(i)?"".concat(t.id,":delay[").concat(s,"]"):i,l=Ld(u,t.id);return t.onEntry.push(dr(l,{delay:i})),t.onExit.push(Od(l)),l},o=lt(r)?r.map(function(i,s){var u=a(i.delay,s);return I(I({},i),{event:u})}):oe(re(r).map(function(i,s){var u=r[i],l=H(u)?{target:u}:u,c=isNaN(+i)?i:+i,d=a(c,s);return ke(l).map(function(v){return I(I({},v),{event:d,delay:c})})}));return o.map(function(i){var s=i.delay;return I(I({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var r,a=this;if(!t)return[];var o=t instanceof Ze?t.value:$t(t,this.delimiter);if(H(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes((r={},r[o]=i,r)):[this,this.states[o]]}var s=re(o),u=s.map(function(l){return a.getStateNode(l)});return u.push(this),u.concat(s.reduce(function(l,c){var d=a.getStateNode(c).getStateNodes(o[c]);return l.concat(d)},[]))},e.prototype.handles=function(t){var r=eo(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=Array.from(ft([],this.getStateNodes(t.value)));return new Ze(I(I({},t),{value:this.resolve(t.value),configuration:r,done:Ft(r,this),tags:go(r)}))},e.prototype.transitionLeafNode=function(t,r,a){var o=this.getStateNode(t),i=o.next(r,a);return!i||!i.transitions.length?this.next(r,a):i},e.prototype.transitionCompoundNode=function(t,r,a){var o=re(t),i=this.getStateNode(o[0]),s=i._transition(t[o[0]],r,a);return!s||!s.transitions.length?this.next(r,a):s},e.prototype.transitionParallelNode=function(t,r,a){var o,i,s={};try{for(var u=W(re(t)),l=u.next();!l.done;l=u.next()){var c=l.value,d=t[c];if(!!d){var v=this.getStateNode(c),f=v._transition(d,r,a);f&&(s[c]=f)}}}catch(h){o={error:h}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}var p=re(s).map(function(h){return s[h]}),m=oe(p.map(function(h){return h.transitions})),g=p.some(function(h){return h.transitions.length>0});if(!g)return this.next(r,a);var b=oe(p.map(function(h){return h.entrySet})),y=oe(re(s).map(function(h){return s[h].configuration}));return{transitions:m,entrySet:b,exitSet:oe(p.map(function(h){return h.exitSet})),configuration:y,source:r,actions:oe(re(s).map(function(h){return s[h].actions}))}},e.prototype._transition=function(t,r,a){return H(t)?this.transitionLeafNode(t,r,a):re(t).length===1?this.transitionCompoundNode(t,r,a):this.transitionParallelNode(t,r,a)},e.prototype.next=function(t,r){var a,o,i=this,s=r.name,u=[],l=[],c;try{for(var d=W(this.getCandidates(s)),v=d.next();!v.done;v=d.next()){var f=v.value,p=f.cond,m=f.in,g=t.context,b=m?H(m)&&mt(m)?t.matches($t(this.getStateNodeById(m).path,this.delimiter)):an($t(m,this.delimiter),gd(this.path.slice(0,-2))(t.value)):!0,y=!1;try{y=!p||lo(this.machine,p,g,r,t)}catch(S){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
15
- `).concat(S.message))}if(y&&b){f.target!==void 0&&(l=f.target),u.push.apply(u,de([],J(f.actions),!1)),c=f;break}}}catch(S){a={error:S}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}if(!!c){if(!l.length)return{transitions:[c],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var h=oe(l.map(function(S){return i.getRelativeStateNodes(S,t.historyValue)})),w=!!c.internal,_=w?[]:oe(h.map(function(S){return i.nodesFromChild(S)}));return{transitions:[c],entrySet:_,exitSet:w?[]:[this],configuration:h,source:t,actions:u}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var r=[],a=t;a&&a!==this;)r.push(a),a=a.parent;return r.push(this),r},e.prototype.escapes=function(t){if(this===t)return!1;for(var r=this.parent;r;){if(r===t)return!1;r=r.parent}return!0},e.prototype.getActions=function(t,r,a,o){var i,s,u,l,c=ft([],o?this.getStateNodes(o.value):[this]),d=t.configuration.length?ft(c,t.configuration):c;try{for(var v=W(d),f=v.next();!f.done;f=v.next()){var p=f.value;mr(c,p)||t.entrySet.push(p)}}catch(A){i={error:A}}finally{try{f&&!f.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}try{for(var m=W(c),g=m.next();!g.done;g=m.next()){var p=g.value;(!mr(d,p)||mr(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(A){u={error:A}}finally{try{g&&!g.done&&(l=m.return)&&l.call(m)}finally{if(u)throw u.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var b=oe(t.entrySet.map(function(A){var x=[];if(A.type!=="final")return x;var P=A.parent;if(!P.parent)return x;x.push(fr(A.id,A.doneData),fr(P.id,A.doneData?ir(A.doneData,r,a):void 0));var F=P.parent;return F.type==="parallel"&&dt(F).every(function(O){return Ft(t.configuration,O)})&&x.push(fr(F.id)),x}));t.exitSet.sort(function(A,x){return x.order-A.order}),t.entrySet.sort(function(A,x){return A.order-x.order});var y=new Set(t.entrySet),h=new Set(t.exitSet),w=J([oe(Array.from(y).map(function(A){return de(de([],J(A.activities.map(function(x){return Vd(x)})),!1),J(A.onEntry),!1)})).concat(b.map(Bd)),oe(Array.from(h).map(function(A){return de(de([],J(A.onExit),!1),J(A.activities.map(function(x){return Ud(x)})),!1)}))],2),_=w[0],S=w[1],N=cr(S.concat(t.actions).concat(_),this.machine.options.actions);return N},e.prototype.transition=function(t,r,a){t===void 0&&(t=this.initialState);var o=ge(r),i;if(t instanceof Ze)i=a===void 0?t:this.resolveState(Ze.from(t,a));else{var s=H(t)?this.resolve(ar(this.getResolvedPath(t))):this.resolve(t),u=a!=null?a:this.machine.context;i=this.resolveState(Ze.from(s,u))}if(!it&&o.name===Ot)throw new Error("An event cannot have the wildcard type ('".concat(Ot,"')"));if(this.strict&&!this.events.includes(o.name)&&!bd(o.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(o.name,"'"));var l=this._transition(i.value,i,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},c=ft([],this.getStateNodes(i.value)),d=l.configuration.length?ft(c,l.configuration):c;return l.configuration=de([],J(d),!1),this.resolveTransition(l,i,o)},e.prototype.resolveRaisedTransition=function(t,r,a){var o,i=t.actions;return t=this.transition(t,r),t._event=a,t.event=a.data,(o=t.actions).unshift.apply(o,de([],J(i),!1)),t},e.prototype.resolveTransition=function(t,r,a,o){var i,s,u=this;a===void 0&&(a=ur),o===void 0&&(o=this.machine.context);var l=t.configuration,c=!r||t.transitions.length>0,d=c?jd(this.machine,l):void 0,v=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,f=r?r.context:o,p=this.getActions(t,f,a,r),m=r?I({},r.activities):{};try{for(var g=W(p),b=g.next();!b.done;b=g.next()){var y=b.value;y.type===ln?m[y.activity.id||y.activity.type]=y:y.type===un&&(m[y.activity.id||y.activity.type]=!1)}}catch(ue){i={error:ue}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}var h=J(mn(this,r,f,a,p,this.machine.config.preserveActionOrder),2),w=h[0],_=h[1],S=J(ao(w,function(ue){return ue.type===sr||ue.type===lr&&ue.to===ct.Internal}),2),N=S[0],A=S[1],x=w.filter(function(ue){var xe;return ue.type===ln&&((xe=ue.activity)===null||xe===void 0?void 0:xe.type)===dn}),P=x.reduce(function(ue,xe){return ue[xe.activity.id]=Yd(xe.activity,u.machine,_,a),ue},r?I({},r.children):{}),F=d?t.configuration:r?r.configuration:[],O=Ft(F,this),D=new Ze({value:d||r.value,context:_,_event:a,_sessionid:r?r._sessionid:null,historyValue:d?v?wd(v,d):void 0:r?r.historyValue:void 0,history:!d||t.source?r:void 0,actions:d?A:[],activities:d?m:r?r.activities:{},events:[],configuration:F,transitions:t.transitions,children:P,done:O,tags:r==null?void 0:r.tags,machine:this}),z=f!==_;D.changed=a.name===fn||z;var ve=D.history;ve&&delete ve.history;var qe=!O&&(this._transient||l.some(function(ue){return ue._transient}));if(!c&&(!qe||a.name===vt))return D;var le=D;if(!O)for(qe&&(le=this.resolveRaisedTransition(le,{type:Id},a));N.length;){var Ge=N.shift();le=this.resolveRaisedTransition(le,Ge._event,a)}var Te=le.changed||(ve?!!le.actions.length||z||typeof ve.value!=typeof le.value||!yo(le.value,ve.value):void 0);return le.changed=Te,le.history=ve,le.tags=go(le.configuration),le},e.prototype.getStateNode=function(t){if(mt(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var r=this.states[t];if(!r)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return r},e.prototype.getStateNodeById=function(t){var r=mt(t)?t.slice(gn.length):t;if(r===this.id)return this;var a=this.machine.idMap[r];if(!a)throw new Error("Child state node '#".concat(r,"' does not exist on machine '").concat(this.id,"'"));return a},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&mt(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var r=on(t,this.delimiter).slice(),a=this;r.length;){var o=r.shift();if(!o.length)break;a=a.getStateNode(o)}return a},e.prototype.resolve=function(t){var r,a=this;if(!t)return this.initialStateValue||pt;switch(this.type){case"parallel":return Bt(this.initialStateValue,function(i,s){return i?a.getStateNode(s).resolve(t[s]||i):pt});case"compound":if(H(t)){var o=this.getStateNode(t);return o.type==="parallel"||o.type==="compound"?(r={},r[t]=o.initialStateValue,r):t}return re(t).length?Bt(t,function(i,s){return i?a.getStateNode(s).resolve(i):pt}):this.initialStateValue||{};default:return t||pt}},e.prototype.getResolvedPath=function(t){if(mt(t)){var r=this.machine.idMap[t.slice(gn.length)];if(!r)throw new Error("Unable to find state node '".concat(t,"'"));return r.path}return on(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var r;if(this.type==="parallel")r=to(this.states,function(a){return a.initialStateValue||pt},function(a){return a.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));r=pr(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,r){var a=this.getStateNodes(t);return this.resolveTransition({configuration:a,entrySet:a,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,r)},Object.defineProperty(e.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var r=this.config;H(r.target)?t=mt(r.target)?ar(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target:t=r.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,r,a){return a===void 0&&(a=!0),a?t.type==="history"?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(pr(this))return[this];if(this.type==="compound"&&!this.initial)return it||st(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=or(this.initialStateValue);return oe(r.map(function(a){return t.getFromRelativePath(a)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=J(t),a=r[0],o=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(a,"' from node with no states"));var i=this.getStateNode(a);if(i.type==="history")return i.resolveHistory();if(!this.states[a])throw new Error("Child state '".concat(a,"' does not exist on '").concat(this.id,"'"));return this.states[a].getFromRelativePath(o)},e.prototype.historyValue=function(t){if(!!re(this.states).length)return{current:t||this.initialStateValue,states:to(this.states,function(r,a){if(!t)return r.historyValue();var o=H(t)?void 0:t[a];return r.historyValue(o||r.initialStateValue)},function(r){return!r.history})}},e.prototype.resolveHistory=function(t){var r=this;if(this.type!=="history")return[this];var a=this.parent;if(!t){var o=this.target;return o?oe(or(o).map(function(s){return a.getFromRelativePath(s)})):a.initialStateNodes}var i=yd(a.path,"states")(t).current;return H(i)?[a.getStateNode(i)]:oe(or(i).map(function(s){return r.history==="deep"?a.getFromRelativePath(s):[a.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,r=oe(re(this.states).map(function(a){return t.states[a].stateIds}));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,r,a,o;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var u=W(re(i)),l=u.next();!l.done;l=u.next()){var c=l.value,d=i[c];if(d.states)try{for(var v=(a=void 0,W(d.events)),f=v.next();!f.done;f=v.next()){var p=f.value;s.add("".concat(p))}}catch(m){a={error:m}}finally{try{f&&!f.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}}catch(m){t={error:m}}finally{try{l&&!l.done&&(r=u.return)&&r.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(r){return!(!r.target&&!r.actions.length&&r.internal)}).map(function(r){return r.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var r=this;if(t!==void 0)return t.map(function(a){if(!H(a))return a;var o=a[0]===r.delimiter;if(o&&!r.parent)return r.getStateNodeByPath(a.slice(1));var i=o?r.key+a:a;if(r.parent)try{var s=r.parent.getStateNodeByPath(i);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(r.id,`':
16
- `).concat(u.message))}else return r.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var r=this,a=Ad(t.target),o="internal"in t?t.internal:a?a.some(function(l){return H(l)&&l[0]===r.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(a),u=I(I({},t),{actions:cr(ke(t.actions)),cond:so(t.cond,i),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return I(I({},u),{target:u.target?u.target.map(function(l){return"#".concat(l.id)}):void 0,source:"#".concat(r.id)})}});return u},e.prototype.formatTransitions=function(){var t,r,a=this,o;if(!this.config.on)o=[];else if(Array.isArray(this.config.on))o=this.config.on;else{var i=this.config.on,s=Ot,u=i[s],l=u===void 0?[]:u,c=rn(i,[typeof s=="symbol"?s:s+""]);o=oe(re(c).map(function(h){!it&&h===vt&&st(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(a.id,'".'));var w=ut(h,c[h]);return it||tf(a,h,w),w}).concat(ut(Ot,l)))}var d=this.config.always?ut("",this.config.always):[],v=this.config.onDone?ut(String(fr(this.id)),this.config.onDone):[];it||st(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=oe(this.invoke.map(function(h){var w=[];return h.onDone&&w.push.apply(w,de([],J(ut(String(vr(h.id)),h.onDone)),!1)),h.onError&&w.push.apply(w,de([],J(ut(String(Rt(h.id)),h.onError)),!1)),w})),p=this.after,m=oe(de(de(de(de([],J(v),!1),J(f),!1),J(o),!1),J(d),!1).map(function(h){return ke(h).map(function(w){return a.formatTransition(w)})}));try{for(var g=W(p),b=g.next();!b.done;b=g.next()){var y=b.value;m.push(y)}}catch(h){t={error:h}}finally{try{b&&!b.done&&(r=g.return)&&r.call(g)}finally{if(t)throw t.error}}return m},e}();function Vt(e,t){return new rf(e,t)}var nf={deferEvents:!1},wo=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=I(I({},nf),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(r){throw this.clear(),r}finally{this.processingEvent=!1}},e}(),yn=new Map,af=0,yr={bookId:function(){return"x:".concat(af++)},register:function(e,t){return yn.set(e,t),e},get:function(e){return yn.get(e)},free:function(e){yn.delete(e)}};function bn(){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 of(){var e=bn();if(e&&"__xstate__"in e)return e.__xstate__}function sf(e){if(!!bn()){var t=of();t&&t.register(e)}}function lf(e,t){t===void 0&&(t={});var r=e.initialState,a=new Set,o=[],i=!1,s=function(){if(!i){for(i=!0;o.length>0;){var c=o.shift();r=e.transition(r,c,l),a.forEach(function(d){return d.next(r)})}i=!1}},u=Jd({id:t.id,send:function(c){o.push(c),s()},getSnapshot:function(){return r},subscribe:function(c,d,v){var f=co(c,d,v);return a.add(f),f.next(r),{unsubscribe:function(){a.delete(f)}}}}),l={parent:t.parent,self:u,id:t.id||"anonymous",observers:a};return r=e.start?e.start(l):r,u}var Cn={sync:!1,autoForward:!1},_e;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(_e||(_e={}));var uf=function(){function e(t,r){var a=this;r===void 0&&(r=e.defaultOptions),this.machine=t,this.scheduler=new wo,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=_e.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,v){if(lt(d))return a.batch(d),a.state;var f=ge(sn(d,v));if(a.status===_e.Stopped)return a.state;if(a.status!==_e.Running&&!a.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(a.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
17
- Event: `).concat(JSON.stringify(f.data)));return a.scheduler.schedule(function(){a.forward(f);var p=a.nextState(f);a.update(p,f)}),a._state},this.sendTo=function(d,v){var f=a.parent&&(v===ct.Parent||a.parent.id===v),p=f?a.parent:H(v)?a.children.get(v)||yr.get(v):xd(v)?v:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(v,"' from service '").concat(a.id,"'."));return}"machine"in p?p.send(I(I({},d),{name:d.name===Td?"".concat(Rt(a.id)):d.name,origin:a.sessionId})):p.send(d.data)};var o=I(I({},e.defaultOptions),r),i=o.clock,s=o.logger,u=o.parent,l=o.id,c=l!==void 0?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=u,this.options=o,this.scheduler=new wo({deferEvents:this.options.deferEvents}),this.sessionId=yr.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Dt(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,r){var a,o;try{for(var i=W(t.actions),s=i.next();!s.done;s=i.next()){var u=s.value;this.exec(u,t,r)}}catch(l){a={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(a)throw a.error}}},e.prototype.update=function(t,r){var a,o,i,s,u,l,c,d,v=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function(P){v.state.children[P.id]=P}),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var f=W(this.eventListeners),p=f.next();!p.done;p=f.next()){var m=p.value;m(t.event)}}catch(P){a={error:P}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var g=W(this.listeners),b=g.next();!b.done;b=g.next()){var m=b.value;m(t,t.event)}}catch(P){i={error:P}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}try{for(var y=W(this.contextListeners),h=y.next();!h.done;h=y.next()){var w=h.value;w(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(P){u={error:P}}finally{try{h&&!h.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}var _=Ft(t.configuration||[],this.machine);if(this.state.configuration&&_){var S=t.configuration.find(function(P){return P.type==="final"&&P.parent===v.machine}),N=S&&S.doneData?ir(S.doneData,t.context,r):void 0;try{for(var A=W(this.doneListeners),x=A.next();!x.done;x=A.next()){var m=x.value;m(vr(this.id,N))}}catch(P){c={error:P}}finally{try{x&&!x.done&&(d=A.return)&&d.call(A)}finally{if(c)throw c.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===_e.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,r,a){var o=this;if(!t)return{unsubscribe:function(){}};var i,s=a;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===_e.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&o.listeners.delete(i),s&&o.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 r=this;if(this.status===_e.Running)return this;yr.register(this.sessionId,this),this.initialized=!0,this.status=_e.Running;var a=t===void 0?this.initialState:Dt(this,function(){return Hd(t)?r.machine.resolveState(t):r.machine.resolveState(Ze.from(t,r.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){r.update(a,ur)}),this},e.prototype.stop=function(){var t,r,a,o,i,s,u,l,c,d,v=this;try{for(var f=W(this.listeners),p=f.next();!p.done;p=f.next()){var m=p.value;this.listeners.delete(m)}}catch(x){t={error:x}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}try{for(var g=W(this.stopListeners),b=g.next();!b.done;b=g.next()){var m=b.value;m(),this.stopListeners.delete(m)}}catch(x){a={error:x}}finally{try{b&&!b.done&&(o=g.return)&&o.call(g)}finally{if(a)throw a.error}}try{for(var y=W(this.contextListeners),h=y.next();!h.done;h=y.next()){var m=h.value;this.contextListeners.delete(m)}}catch(x){i={error:x}}finally{try{h&&!h.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}try{for(var w=W(this.doneListeners),_=w.next();!_.done;_=w.next()){var m=_.value;this.doneListeners.delete(m)}}catch(x){u={error:x}}finally{try{_&&!_.done&&(l=w.return)&&l.call(w)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.state.configuration.forEach(function(x){var P,F;try{for(var O=W(x.definition.exit),D=O.next();!D.done;D=O.next()){var z=D.value;v.exec(z,v.state)}}catch(ve){P={error:ve}}finally{try{D&&!D.done&&(F=O.return)&&F.call(O)}finally{if(P)throw P.error}}}),this.children.forEach(function(x){Z(x.stop)&&x.stop()});try{for(var S=W(re(this.delayedEventsMap)),N=S.next();!N.done;N=S.next()){var A=N.value;this.clock.clearTimeout(this.delayedEventsMap[A])}}catch(x){c={error:x}}finally{try{N&&!N.done&&(d=S.return)&&d.call(S)}finally{if(c)throw c.error}}return this.scheduler.clear(),this.initialized=!1,this.status=_e.Stopped,yr.free(this.sessionId),this},e.prototype.batch=function(t){var r=this;if(!(this.status===_e.NotStarted&&this.options.deferEvents)){if(this.status!==_e.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 a,o,i=r.state,s=!1,u=[],l=function(f){var p=ge(f);r.forward(p),i=Dt(r,function(){return r.machine.transition(i,p)}),u.push.apply(u,de([],J(i.actions.map(function(m){return Kd(m,i)})),!1)),s=s||!!i.changed};try{for(var c=W(t),d=c.next();!d.done;d=c.next()){var v=d.value;l(v)}}catch(f){a={error:f}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}i.changed=s,i.actions=u,r.update(i,ge(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var r=this,a=ge(t);if(a.name.indexOf(po)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(po)===0}))throw a.data.data;var o=Dt(this,function(){return r.machine.transition(r.state,a)});return o},e.prototype.forward=function(t){var r,a;try{for(var o=W(this.forwardTo),i=o.next();!i.done;i=o.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(l){r={error:l}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}},e.prototype.defer=function(t){var r=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?r.sendTo(t._event,t.to):r.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,r,a){a===void 0&&(a=this.machine.options.actions);var o=r.context,i=r._event,s=t.exec||vn(t.type,a),u=Z(s)?s:s?s.exec:t.exec;if(u)try{return u(o,i.data,{action:t,state:this.state,_event:i})}catch(_){throw this.parent&&this.parent.send({type:"xstate.error",data:_}),_}switch(t.type){case lr:var l=t;if(typeof l.delay=="number"){this.defer(l);return}else l.to?this.sendTo(l._event,l.to):this.send(l._event);break;case fo:this.cancel(t.sendId);break;case ln:{var c=t.activity;if(!this.state.activities[c.id||c.type])break;if(c.type===Q.Invoke){var d=uo(c.src),v=this.machine.options.services?this.machine.options.services[d.type]:void 0,f=c.id,p=c.data,m="autoForward"in c?c.autoForward:!!c.forward;if(!v)return;var g=p?ir(p,o,i):void 0;if(typeof v=="string")return;var b=Z(v)?v(o,i.data,{data:g,src:d,meta:c.meta}):v;if(!b)return;var y=void 0;He(b)&&(b=g?b.withContext(g):b,y={autoForward:m}),this.spawn(b,f,y)}else this.spawnActivity(c);break}case un:{this.stopChild(t.activity.id);break}case vo:var h=t.label,w=t.value;h?this.logger(h,w):this.logger(w);break}},e.prototype.removeChild=function(t){var r;this.children.delete(t),this.forwardTo.delete(t),(r=this.state)===null||r===void 0||delete r.children[t]},e.prototype.stopChild=function(t){var r=this.children.get(t);!r||(this.removeChild(t),Z(r.stop)&&r.stop())},e.prototype.spawn=function(t,r,a){if(no(t))return this.spawnPromise(Promise.resolve(t),r);if(Z(t))return this.spawnCallback(t,r);if(Xd(t))return this.spawnActor(t,r);if(_d(t))return this.spawnObservable(t,r);if(He(t))return this.spawnMachine(t,I(I({},a),{id:r}));if(Cd(t))return this.spawnBehavior(t,r);throw new Error('Unable to spawn entity "'.concat(r,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,r){var a=this;r===void 0&&(r={});var o=new e(t,I(I({},this.options),{parent:this,id:r.id||t.id})),i=I(I({},Cn),r);i.sync&&o.onTransition(function(u){a.send(fn,{state:u,id:o.id})});var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(u){a.removeChild(o.id),a.send(ge(u,{origin:o.id}))}).start(),s},e.prototype.spawnBehavior=function(t,r){var a=lf(t,{id:r,parent:this});return this.children.set(r,a),a},e.prototype.spawnPromise=function(t,r){var a=this,o=!1,i;t.then(function(u){o||(i=u,a.removeChild(r),a.send(ge(vr(r,u),{origin:r})))},function(u){if(!o){a.removeChild(r);var l=Rt(r,u);try{a.send(ge(l,{origin:r}))}catch{a.devTools&&a.devTools.send(l,a.state),a.machine.strict&&a.stop()}}});var s={id:r,send:function(){},subscribe:function(u,l,c){var d=co(u,l,c),v=!1;return t.then(function(f){v||(d.next(f),!v&&d.complete())},function(f){v||d.error(f)}),{unsubscribe:function(){return v=!0}}},stop:function(){o=!0},toJSON:function(){return{id:r}},getSnapshot:function(){return i}};return this.children.set(r,s),s},e.prototype.spawnCallback=function(t,r){var a=this,o=!1,i=new Set,s=new Set,u,l=function(v){u=v,s.forEach(function(f){return f(v)}),!o&&a.send(ge(v,{origin:r}))},c;try{c=t(l,function(v){i.add(v)})}catch(v){this.send(Rt(r,v))}if(no(c))return this.spawnPromise(c,r);var d={id:r,send:function(v){return i.forEach(function(f){return f(v)})},subscribe:function(v){return s.add(v),{unsubscribe:function(){s.delete(v)}}},stop:function(){o=!0,Z(c)&&c()},toJSON:function(){return{id:r}},getSnapshot:function(){return u}};return this.children.set(r,d),d},e.prototype.spawnObservable=function(t,r){var a=this,o,i=t.subscribe(function(u){o=u,a.send(ge(u,{origin:r}))},function(u){a.removeChild(r),a.send(ge(Rt(r,u),{origin:r}))},function(){a.removeChild(r),a.send(ge(vr(r),{origin:r}))}),s={id:r,send:function(){},subscribe:function(u,l,c){return t.subscribe(u,l,c)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return o},toJSON:function(){return{id:r}}};return this.children.set(r,s),s},e.prototype.spawnActor=function(t,r){return this.children.set(r,t),t},e.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!r){var a=r(this.state.context,t);this.spawnEffect(t.id,a)}},e.prototype.spawnEffect=function(t,r){this.children.set(t,{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})},e.prototype.attachDev=function(){var t=bn();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var r=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(I(I({name:this.id,autoPause:!0,stateSanitizer:function(a){return{value:a.value,context:a.context,actions:a.actions}}},r),{features:I({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}sf(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Sd]=function(){return this},e.prototype.getSnapshot=function(){return this.status===_e.NotStarted?this.initialState:this._state},e.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(r,a){return setTimeout(r,a)},clearTimeout:function(r){return clearTimeout(r)}},logger:t.console.log.bind(console),devTools:!1}}(typeof self!="undefined"?self:global),e.interpret=_o,e}(),cf=function(e){return H(e)?I(I({},Cn),{name:e}):I(I(I({},Cn),{name:Ed()}),e)};function br(e,t){var r=cf(t);return qd(function(a){if(!it){var o=He(e)||Z(e);st(!!a||o,'Attempted to spawn an Actor (ID: "'.concat(He(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return a?a.spawn(e,r.name,r):Co(e,r.name)})}function _o(e,t){var r=new uf(e,t);return r}var X={},wn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
14
+ ***************************************************************************** */var I=function(){return I=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},I.apply(this,arguments)};function nn(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(s)throw s.error}}return i}function de(e,t,r){if(r||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var Qa=".",eo={},an="xstate.guard",yd="",it=!0;function re(e){return Object.keys(e)}function on(e,t,r){r===void 0&&(r=Qa);var a=$t(e,r),o=$t(t,r);return H(o)?H(a)?o===a:!1:H(a)?a in o:re(a).every(function(i){return i in o?on(a[i],o[i]):!1})}function to(e){try{return H(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function sn(e,t){try{return lt(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function bd(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function $t(e,t){if(bd(e))return e.value;if(lt(e))return ar(e);if(typeof e!="string")return e;var r=sn(e,t);return ar(r)}function ar(e){if(e.length===1)return e[0];for(var t={},r=t,a=0;a<e.length-1;a++)a===e.length-2?r[e[a]]=e[a+1]:(r[e[a]]={},r=r[e[a]]);return t}function kt(e,t){for(var r={},a=re(e),o=0;o<a.length;o++){var i=a[o];r[i]=t(e[i],i,e,o)}return r}function ro(e,t,r){var a,o,i={};try{for(var s=W(re(e)),u=s.next();!u.done;u=s.next()){var l=u.value,c=e[l];!r(c)||(i[l]=t(c,l,e))}}catch(d){a={error:d}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}var Cd=function(e){return function(t){var r,a,o=t;try{for(var i=W(e),s=i.next();!s.done;s=i.next()){var u=s.value;o=o[u]}}catch(l){r={error:l}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}return o}};function wd(e,t){return function(r){var a,o,i=r;try{for(var s=W(e),u=s.next();!u.done;u=s.next()){var l=u.value;i=i[t][l]}}catch(c){a={error:c}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}}function or(e){if(!e)return[[]];if(H(e))return[[e]];var t=oe(re(e).map(function(r){var a=e[r];return typeof a!="string"&&(!a||!Object.keys(a).length)?[[r]]:or(e[r]).map(function(o){return[r].concat(o)})}));return t}function oe(e){var t;return(t=[]).concat.apply(t,de([],J(e),!1))}function no(e){return lt(e)?e:[e]}function Be(e){return e===void 0?[]:no(e)}function ir(e,t,r){var a,o;if(Z(e))return e(t,r.data);var i={};try{for(var s=W(Object.keys(e)),u=s.next();!u.done;u=s.next()){var l=u.value,c=e[l];Z(c)?i[l]=c(t,r.data):i[l]=c}}catch(d){a={error:d}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}return i}function Sd(e){return/^(done|error)\./.test(e)}function ao(e){return!!(e instanceof Promise||e!==null&&(Z(e)||typeof e=="object")&&Z(e.then))}function _d(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function oo(e,t){var r,a,o=J([[],[]],2),i=o[0],s=o[1];try{for(var u=W(e),l=u.next();!l.done;l=u.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(d){r={error:d}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return[i,s]}function io(e,t){return kt(e.states,function(r,a){if(!!r){var o=(H(t)?void 0:t[a])||(r?r.current:void 0);if(!!o)return{current:o,states:io(r,o)}}})}function xd(e,t){return{current:t,states:io(e,t)}}function so(e,t,r,a){var o=e&&r.reduce(function(i,s){var u,l,c=s.assignment,d={state:a,action:s,_event:t},v={};if(Z(c))v=c(i,t.data,d);else try{for(var f=W(re(c)),p=f.next();!p.done;p=f.next()){var h=p.value,g=c[h];v[h]=Z(g)?g(i,t.data,d):g}}catch(b){u={error:b}}finally{try{p&&!p.done&&(l=f.return)&&l.call(f)}finally{if(u)throw u.error}}return Object.assign({},i,v)},e);return o}var st=function(){};function lt(e){return Array.isArray(e)}function Z(e){return typeof e=="function"}function H(e){return typeof e=="string"}function lo(e,t){if(!!e)return H(e)?{type:an,name:e,predicate:t?t[e]:void 0}:Z(e)?{type:an,name:e.name,predicate:e}:e}function Ed(e){try{return"subscribe"in e&&Z(e.subscribe)}catch{return!1}}var Ad=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function He(e){try{return"__xstatenode"in e}catch{return!1}}function Id(e){return!!e&&typeof e.send=="function"}var Nd=function(){var e=0;return function(){return e++,e.toString(16)}}();function ln(e,t){return H(e)||typeof e=="number"?I({type:e},t):e}function ge(e,t){if(!H(e)&&"$$type"in e&&e.$$type==="scxml")return e;var r=ln(e);return I({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function ut(e,t){var r=no(t).map(function(a){return typeof a=="undefined"||typeof a=="string"||He(a)?{target:a,event:e}:I(I({},a),{event:e})});return r}function Pd(e){if(!(e===void 0||e===yd))return Be(e)}function uo(e,t,r,a,o){var i=e.options.guards,s={state:o,cond:t,_event:a};if(t.type===an)return((i==null?void 0:i[t.name])||t.predicate)(r,a.data,s);var u=i[t.type];if(!u)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return u(r,a.data,s)}function co(e){return typeof e=="string"?{type:e}:e}function fo(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}var Q;(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"})(Q||(Q={}));var ct;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(ct||(ct={}));var un=Q.Start,cn=Q.Stop,sr=Q.Raise,lr=Q.Send,vo=Q.Cancel,Td=Q.NullEvent,dn=Q.Assign;Q.After;Q.DoneState;var po=Q.Log,$d=Q.Init,fn=Q.Invoke;Q.ErrorExecution;var mo=Q.ErrorPlatform,kd=Q.ErrorCustom,vn=Q.Update,Bd=Q.Choose,Fd=Q.Pure,ur=ge({type:$d});function pn(e,t){return t&&t[e]||void 0}function Bt(e,t){var r;if(H(e)||typeof e=="number"){var a=pn(e,t);Z(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(Z(e))r={type:e.name||e.toString(),exec:e};else{var a=pn(e.type,t);if(Z(a))r=I(I({},e),{exec:a});else if(a){var o=a.type||e.type;r=I(I(I({},a),e),{type:o})}else r=e}return r}var cr=function(e,t){if(!e)return[];var r=lt(e)?e:[e];return r.map(function(a){return Bt(a,t)})};function mn(e){var t=Bt(e);return I(I({id:H(e)?e:t.id},t),{type:t.type})}function Rd(e){return H(e)?{type:sr,event:e}:dr(e,{to:ct.Internal})}function Dd(e){return{type:sr,_event:ge(e.event)}}function dr(e,t){return{to:t?t.to:void 0,type:lr,event:Z(e)?e:ln(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Z(e)?e.name:to(e)}}function Od(e,t,r,a){var o={_event:r},i=ge(Z(e.event)?e.event(t,r.data,o):e.event),s;if(H(e.delay)){var u=a&&a[e.delay];s=Z(u)?u(t,r.data,o):u}else s=Z(e.delay)?e.delay(t,r.data,o):e.delay;var l=Z(e.to)?e.to(t,r.data,o):e.to;return I(I({},e),{to:l,_event:i,event:i.data,delay:s})}function Vd(e,t){return dr(e,I(I({},t),{to:ct.Parent}))}function Y(){return Vd(vn)}var Ud=function(e,t,r){return I(I({},e),{value:H(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},Md=function(e){return{type:vo,sendId:e}};function Ld(e){var t=mn(e);return{type:Q.Start,activity:t,exec:void 0}}function zd(e){var t=Z(e)?e:mn(e);return{type:Q.Stop,activity:t,exec:void 0}}function jd(e,t,r){var a=Z(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:Q.Stop,activity:o};return i}var Ze=function(e){return{type:dn,assignment:e}};function Gd(e,t){var r=t?"#".concat(t):"";return"".concat(Q.After,"(").concat(e,")").concat(r)}function fr(e,t){var r="".concat(Q.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function vr(e,t){var r="".concat(Q.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Ft(e,t){var r="".concat(Q.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Wd(e,t){return dr(function(r,a){return a},I(I({},t),{to:e}))}function hn(e,t,r,a,o,i){i===void 0&&(i=!1);var s=J(i?[[],o]:oo(o,function(f){return f.type===dn}),2),u=s[0],l=s[1],c=u.length?so(r,a,u,t):r,d=i?[r]:void 0,v=oe(l.map(function(f){var p;switch(f.type){case sr:return Dd(f);case lr:var h=Od(f,c,a,e.options.delays);return h;case po:return Ud(f,c,a);case Bd:{var g=f,b=(p=g.conds.find(function(R){var O=lo(R.cond,e.options.guards);return!O||uo(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!b)return[];var y=J(hn(e,t,c,a,cr(Be(b),e.options.actions),i),2),m=y[0],w=y[1];return c=w,d==null||d.push(c),m}case Fd:{var b=f.get(c,a.data);if(!b)return[];var S=J(hn(e,t,c,a,cr(Be(b),e.options.actions),i),2),_=S[0],N=S[1];return c=N,d==null||d.push(c),_}case cn:return jd(f,c,a);case dn:{c=so(c,a,[f],t),d==null||d.push(c);break}default:var x=Bt(f,e.options.actions),A=x.exec;if(A&&d){var $=d.length-1;x=I(I({},x),{exec:function(R){for(var O=[],D=1;D<arguments.length;D++)O[D-1]=arguments[D];A.apply(void 0,de([d[$]],J(O),!1))}})}return x}}).filter(function(f){return!!f}));return[v,c]}var pr=function(e){return e.type==="atomic"||e.type==="final"};function dt(e){return re(e.states).map(function(t){return e.states[t]})}function ho(e){var t=[e];return pr(e)?t:t.concat(oe(dt(e).map(ho)))}function ft(e,t){var r,a,o,i,s,u,l,c,d=new Set(e),v=gn(d),f=new Set(t);try{for(var p=W(f),h=p.next();!h.done;h=p.next())for(var g=h.value,b=g.parent;b&&!f.has(b);)f.add(b),b=b.parent}catch($){r={error:$}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}var y=gn(f);try{for(var m=W(f),w=m.next();!w.done;w=m.next()){var g=w.value;if(g.type==="compound"&&(!y.get(g)||!y.get(g).length))v.get(g)?v.get(g).forEach(function(R){return f.add(R)}):g.initialStateNodes.forEach(function(R){return f.add(R)});else if(g.type==="parallel")try{for(var S=(s=void 0,W(dt(g))),_=S.next();!_.done;_=S.next()){var N=_.value;N.type!=="history"&&(f.has(N)||(f.add(N),v.get(N)?v.get(N).forEach(function(R){return f.add(R)}):N.initialStateNodes.forEach(function(R){return f.add(R)})))}}catch(R){s={error:R}}finally{try{_&&!_.done&&(u=S.return)&&u.call(S)}finally{if(s)throw s.error}}}}catch($){o={error:$}}finally{try{w&&!w.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var x=W(f),A=x.next();!A.done;A=x.next())for(var g=A.value,b=g.parent;b&&!f.has(b);)f.add(b),b=b.parent}catch($){l={error:$}}finally{try{A&&!A.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}return f}function go(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var a=r[0];if(a){if(pr(a))return a.key}else return{}}var o={};return r.forEach(function(i){o[i.key]=go(i,t)}),o}function gn(e){var t,r,a=new Map;try{for(var o=W(e),i=o.next();!i.done;i=o.next()){var s=i.value;a.has(s)||a.set(s,[]),s.parent&&(a.has(s.parent)||a.set(s.parent,[]),a.get(s.parent).push(s))}}catch(u){t={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a}function Hd(e,t){var r=ft([e],t);return go(e,gn(r))}function mr(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function Kd(e){return de([],J(new Set(oe(de([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Rt(e,t){return t.type==="compound"?dt(t).some(function(r){return r.type==="final"&&mr(e,r)}):t.type==="parallel"?dt(t).every(function(r){return Rt(e,r)}):!1}function qd(e){return e===void 0&&(e=[]),e.reduce(function(t,r){return r.meta!==void 0&&(t[r.id]=r.meta),t},{})}function yo(e){return new Set(oe(e.map(function(t){return t.tags})))}function bo(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(H(e)||H(t))return e===t;var r=re(e),a=re(t);return r.length===a.length&&r.every(function(o){return bo(e[o],t[o])})}function Yd(e){return H(e)?!1:"value"in e&&"history"in e}function Zd(e,t){var r=e.exec,a=I(I({},e),{exec:r!==void 0?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return a}var Xe=function(){function e(t){var r=this,a;this.actions=[],this.activities=eo,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||eo,this.meta=qd(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=(a=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&a!==void 0?a:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return Kd(r.configuration)}})}return e.from=function(t,r){if(t instanceof e)return t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var a=ur;return new e({value:t,context:r,_event:a,_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,r){if(t instanceof e){if(!t.actions.length)return t;var a=ur;return new e({value:t.value,context:r,_event:a,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,r)},e.prototype.toStrings=function(t,r){var a=this;if(t===void 0&&(t=this.value),r===void 0&&(r="."),H(t))return[t];var o=re(t);return o.concat.apply(o,de([],J(o.map(function(i){return a.toStrings(t[i],r).map(function(s){return i+r+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var r=t.tags;t.machine;var a=nn(t,["configuration","transitions","tags","machine"]);return I(I({},a),{tags:Array.from(r)})},e.prototype.matches=function(t){return on(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var r;return st(!!this.machine),!!((r=this.machine)===null||r===void 0?void 0:r.transition(this,t).changed)},e}(),hr=[],Dt=function(e,t){hr.push(e);var r=t(e);return hr.pop(),r},Xd=function(e){return e(hr[hr.length-1])};function Co(e){return{id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}}}function Jd(e,t,r,a){var o,i=co(e.src),s=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],u=e.data?ir(e.data,r,a):void 0,l=s?wo(s,e.id,u):Co(e.id);return l.meta=e,l}function wo(e,t,r){var a=Co(t);if(a.deferred=!0,He(e)){var o=a.state=Dt(void 0,function(){return(r?e.withContext(r):e).initialState});a.getSnapshot=function(){return o}}return a}function Qd(e){try{return typeof e.send=="function"}catch{return!1}}function ef(e){return Qd(e)&&"id"in e}function tf(e){return I({subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},e)}function rf(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function gr(e){return I(I({type:fn},e),{toJSON:function(){e.onDone,e.onError;var t=nn(e,["onDone","onError"]);return I(I({},t),{type:fn,src:rf(e.src)})}})}var vt="",yn="#",Ot="*",pt={},mt=function(e){return e[0]===yn},nf=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},af=function(e,t,r){var a=r.slice(0,-1).some(function(i){return!("cond"in i)&&!("in"in i)&&(H(i.target)||He(i.target))}),o=t===vt?"the transient event":"event '".concat(t,"'");st(!a,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},of=function(){function e(t,r,a){var o=this;a===void 0&&(a="context"in t?t.context:void 0);var i;this.config=t,this._context=a,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(nf(),r),this.parent=this.options._parent,this.key=this.config.key||this.options._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:Qa),this.id=this.config.id||de([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&&re(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(i=this.config.schema)!==null&&i!==void 0?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?kt(this.config.states,function(l,c){var d,v=new e(l,{_parent:o,_key:c});return Object.assign(o.idMap,I((d={},d[v.id]=v,d),v.idMap)),v}):pt;var s=0;function u(l){var c,d;l.order=s++;try{for(var v=W(dt(l)),f=v.next();!f.done;f=v.next()){var p=f.value;u(p)}}catch(h){c={error:h}}finally{try{f&&!f.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}}u(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(l){var c=l.event;return c===vt}):vt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=Be(this.config.entry||this.config.onEntry).map(function(l){return Bt(l)}),this.onExit=Be(this.config.exit||this.config.onExit).map(function(l){return Bt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=Be(this.config.invoke).map(function(l,c){var d,v;if(He(l))return o.machine.options.services=I((d={},d[l.id]=l,d),o.machine.options.services),gr({src:l.id,id:l.id});if(H(l.src))return gr(I(I({},l),{id:l.id||l.src,src:l.src}));if(He(l.src)||Z(l.src)){var f="".concat(o.id,":invocation[").concat(c,"]");return o.machine.options.services=I((v={},v[f]=l.src,v),o.machine.options.services),gr(I(I({id:f},l),{src:f}))}else{var p=l.src;return gr(I(I({id:p.type},l),{src:p}))}}),this.activities=Be(this.config.activities).concat(this.invoke).map(function(l){return mn(l)}),this.transition=this.transition.bind(this),this.tags=Be(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||ho(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,r){var a=this.options,o=a.actions,i=a.activities,s=a.guards,u=a.services,l=a.delays;return new e(this.config,{actions:I(I({},o),t.actions),activities:I(I({},i),t.activities),guards:I(I({},s),t.guards),services:I(I({},u),t.services),delays:I(I({},l),t.delays)},r!=null?r:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Z(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:kt(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(r,a){return r[a.eventType]=r[a.eventType]||[],r[a.eventType].push(a),r},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var r=t===vt,a=this.transitions.filter(function(o){var i=o.eventType===t;return r?i:i||o.eventType===Ot});return this.__cache.candidates[t]=a,a},e.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var a=function(i,s){var u=Z(i)?"".concat(t.id,":delay[").concat(s,"]"):i,l=Gd(u,t.id);return t.onEntry.push(dr(l,{delay:i})),t.onExit.push(Md(l)),l},o=lt(r)?r.map(function(i,s){var u=a(i.delay,s);return I(I({},i),{event:u})}):oe(re(r).map(function(i,s){var u=r[i],l=H(u)?{target:u}:u,c=isNaN(+i)?i:+i,d=a(c,s);return Be(l).map(function(v){return I(I({},v),{event:d,delay:c})})}));return o.map(function(i){var s=i.delay;return I(I({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var r,a=this;if(!t)return[];var o=t instanceof Xe?t.value:$t(t,this.delimiter);if(H(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes((r={},r[o]=i,r)):[this,this.states[o]]}var s=re(o),u=s.map(function(l){return a.getStateNode(l)});return u.push(this),u.concat(s.reduce(function(l,c){var d=a.getStateNode(c).getStateNodes(o[c]);return l.concat(d)},[]))},e.prototype.handles=function(t){var r=to(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=Array.from(ft([],this.getStateNodes(t.value)));return new Xe(I(I({},t),{value:this.resolve(t.value),configuration:r,done:Rt(r,this),tags:yo(r)}))},e.prototype.transitionLeafNode=function(t,r,a){var o=this.getStateNode(t),i=o.next(r,a);return!i||!i.transitions.length?this.next(r,a):i},e.prototype.transitionCompoundNode=function(t,r,a){var o=re(t),i=this.getStateNode(o[0]),s=i._transition(t[o[0]],r,a);return!s||!s.transitions.length?this.next(r,a):s},e.prototype.transitionParallelNode=function(t,r,a){var o,i,s={};try{for(var u=W(re(t)),l=u.next();!l.done;l=u.next()){var c=l.value,d=t[c];if(!!d){var v=this.getStateNode(c),f=v._transition(d,r,a);f&&(s[c]=f)}}}catch(m){o={error:m}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}var p=re(s).map(function(m){return s[m]}),h=oe(p.map(function(m){return m.transitions})),g=p.some(function(m){return m.transitions.length>0});if(!g)return this.next(r,a);var b=oe(p.map(function(m){return m.entrySet})),y=oe(re(s).map(function(m){return s[m].configuration}));return{transitions:h,entrySet:b,exitSet:oe(p.map(function(m){return m.exitSet})),configuration:y,source:r,actions:oe(re(s).map(function(m){return s[m].actions}))}},e.prototype._transition=function(t,r,a){return H(t)?this.transitionLeafNode(t,r,a):re(t).length===1?this.transitionCompoundNode(t,r,a):this.transitionParallelNode(t,r,a)},e.prototype.next=function(t,r){var a,o,i=this,s=r.name,u=[],l=[],c;try{for(var d=W(this.getCandidates(s)),v=d.next();!v.done;v=d.next()){var f=v.value,p=f.cond,h=f.in,g=t.context,b=h?H(h)&&mt(h)?t.matches($t(this.getStateNodeById(h).path,this.delimiter)):on($t(h,this.delimiter),Cd(this.path.slice(0,-2))(t.value)):!0,y=!1;try{y=!p||uo(this.machine,p,g,r,t)}catch(_){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
15
+ `).concat(_.message))}if(y&&b){f.target!==void 0&&(l=f.target),u.push.apply(u,de([],J(f.actions),!1)),c=f;break}}}catch(_){a={error:_}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}if(!!c){if(!l.length)return{transitions:[c],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var m=oe(l.map(function(_){return i.getRelativeStateNodes(_,t.historyValue)})),w=!!c.internal,S=w?[]:oe(m.map(function(_){return i.nodesFromChild(_)}));return{transitions:[c],entrySet:S,exitSet:w?[]:[this],configuration:m,source:t,actions:u}}},e.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var r=[],a=t;a&&a!==this;)r.push(a),a=a.parent;return r.push(this),r},e.prototype.escapes=function(t){if(this===t)return!1;for(var r=this.parent;r;){if(r===t)return!1;r=r.parent}return!0},e.prototype.getActions=function(t,r,a,o){var i,s,u,l,c=ft([],o?this.getStateNodes(o.value):[this]),d=t.configuration.length?ft(c,t.configuration):c;try{for(var v=W(d),f=v.next();!f.done;f=v.next()){var p=f.value;mr(c,p)||t.entrySet.push(p)}}catch(x){i={error:x}}finally{try{f&&!f.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}try{for(var h=W(c),g=h.next();!g.done;g=h.next()){var p=g.value;(!mr(d,p)||mr(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(x){u={error:x}}finally{try{g&&!g.done&&(l=h.return)&&l.call(h)}finally{if(u)throw u.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var b=oe(t.entrySet.map(function(x){var A=[];if(x.type!=="final")return A;var $=x.parent;if(!$.parent)return A;A.push(fr(x.id,x.doneData),fr($.id,x.doneData?ir(x.doneData,r,a):void 0));var R=$.parent;return R.type==="parallel"&&dt(R).every(function(O){return Rt(t.configuration,O)})&&A.push(fr(R.id)),A}));t.exitSet.sort(function(x,A){return A.order-x.order}),t.entrySet.sort(function(x,A){return x.order-A.order});var y=new Set(t.entrySet),m=new Set(t.exitSet),w=J([oe(Array.from(y).map(function(x){return de(de([],J(x.activities.map(function(A){return Ld(A)})),!1),J(x.onEntry),!1)})).concat(b.map(Rd)),oe(Array.from(m).map(function(x){return de(de([],J(x.onExit),!1),J(x.activities.map(function(A){return zd(A)})),!1)}))],2),S=w[0],_=w[1],N=cr(_.concat(t.actions).concat(S),this.machine.options.actions);return N},e.prototype.transition=function(t,r,a){t===void 0&&(t=this.initialState);var o=ge(r),i;if(t instanceof Xe)i=a===void 0?t:this.resolveState(Xe.from(t,a));else{var s=H(t)?this.resolve(ar(this.getResolvedPath(t))):this.resolve(t),u=a!=null?a:this.machine.context;i=this.resolveState(Xe.from(s,u))}if(!it&&o.name===Ot)throw new Error("An event cannot have the wildcard type ('".concat(Ot,"')"));if(this.strict&&!this.events.includes(o.name)&&!Sd(o.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(o.name,"'"));var l=this._transition(i.value,i,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:i,actions:[]},c=ft([],this.getStateNodes(i.value)),d=l.configuration.length?ft(c,l.configuration):c;return l.configuration=de([],J(d),!1),this.resolveTransition(l,i,o)},e.prototype.resolveRaisedTransition=function(t,r,a){var o,i=t.actions;return t=this.transition(t,r),t._event=a,t.event=a.data,(o=t.actions).unshift.apply(o,de([],J(i),!1)),t},e.prototype.resolveTransition=function(t,r,a,o){var i,s,u=this;a===void 0&&(a=ur),o===void 0&&(o=this.machine.context);var l=t.configuration,c=!r||t.transitions.length>0,d=c?Hd(this.machine,l):void 0,v=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,f=r?r.context:o,p=this.getActions(t,f,a,r),h=r?I({},r.activities):{};try{for(var g=W(p),b=g.next();!b.done;b=g.next()){var y=b.value;y.type===un?h[y.activity.id||y.activity.type]=y:y.type===cn&&(h[y.activity.id||y.activity.type]=!1)}}catch(ue){i={error:ue}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}var m=J(hn(this,r,f,a,p,this.machine.config.preserveActionOrder),2),w=m[0],S=m[1],_=J(oo(w,function(ue){return ue.type===sr||ue.type===lr&&ue.to===ct.Internal}),2),N=_[0],x=_[1],A=w.filter(function(ue){var xe;return ue.type===un&&((xe=ue.activity)===null||xe===void 0?void 0:xe.type)===fn}),$=A.reduce(function(ue,xe){return ue[xe.activity.id]=Jd(xe.activity,u.machine,S,a),ue},r?I({},r.children):{}),R=d?t.configuration:r?r.configuration:[],O=Rt(R,this),D=new Xe({value:d||r.value,context:S,_event:a,_sessionid:r?r._sessionid:null,historyValue:d?v?xd(v,d):void 0:r?r.historyValue:void 0,history:!d||t.source?r:void 0,actions:d?x:[],activities:d?h:r?r.activities:{},events:[],configuration:R,transitions:t.transitions,children:$,done:O,tags:r==null?void 0:r.tags,machine:this}),z=f!==S;D.changed=a.name===vn||z;var ve=D.history;ve&&delete ve.history;var qe=!O&&(this._transient||l.some(function(ue){return ue._transient}));if(!c&&(!qe||a.name===vt))return D;var le=D;if(!O)for(qe&&(le=this.resolveRaisedTransition(le,{type:Td},a));N.length;){var Ge=N.shift();le=this.resolveRaisedTransition(le,Ge._event,a)}var Pe=le.changed||(ve?!!le.actions.length||z||typeof ve.value!=typeof le.value||!bo(le.value,ve.value):void 0);return le.changed=Pe,le.history=ve,le.tags=yo(le.configuration),le},e.prototype.getStateNode=function(t){if(mt(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var r=this.states[t];if(!r)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return r},e.prototype.getStateNodeById=function(t){var r=mt(t)?t.slice(yn.length):t;if(r===this.id)return this;var a=this.machine.idMap[r];if(!a)throw new Error("Child state node '#".concat(r,"' does not exist on machine '").concat(this.id,"'"));return a},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&mt(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var r=sn(t,this.delimiter).slice(),a=this;r.length;){var o=r.shift();if(!o.length)break;a=a.getStateNode(o)}return a},e.prototype.resolve=function(t){var r,a=this;if(!t)return this.initialStateValue||pt;switch(this.type){case"parallel":return kt(this.initialStateValue,function(i,s){return i?a.getStateNode(s).resolve(t[s]||i):pt});case"compound":if(H(t)){var o=this.getStateNode(t);return o.type==="parallel"||o.type==="compound"?(r={},r[t]=o.initialStateValue,r):t}return re(t).length?kt(t,function(i,s){return i?a.getStateNode(s).resolve(i):pt}):this.initialStateValue||{};default:return t||pt}},e.prototype.getResolvedPath=function(t){if(mt(t)){var r=this.machine.idMap[t.slice(yn.length)];if(!r)throw new Error("Unable to find state node '".concat(t,"'"));return r.path}return sn(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var r;if(this.type==="parallel")r=ro(this.states,function(a){return a.initialStateValue||pt},function(a){return a.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));r=pr(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,r){var a=this.getStateNodes(t);return this.resolveTransition({configuration:a,entrySet:a,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,r)},Object.defineProperty(e.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var r=this.config;H(r.target)?t=mt(r.target)?ar(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target:t=r.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,r,a){return a===void 0&&(a=!0),a?t.type==="history"?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(pr(this))return[this];if(this.type==="compound"&&!this.initial)return it||st(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=or(this.initialStateValue);return oe(r.map(function(a){return t.getFromRelativePath(a)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=J(t),a=r[0],o=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(a,"' from node with no states"));var i=this.getStateNode(a);if(i.type==="history")return i.resolveHistory();if(!this.states[a])throw new Error("Child state '".concat(a,"' does not exist on '").concat(this.id,"'"));return this.states[a].getFromRelativePath(o)},e.prototype.historyValue=function(t){if(!!re(this.states).length)return{current:t||this.initialStateValue,states:ro(this.states,function(r,a){if(!t)return r.historyValue();var o=H(t)?void 0:t[a];return r.historyValue(o||r.initialStateValue)},function(r){return!r.history})}},e.prototype.resolveHistory=function(t){var r=this;if(this.type!=="history")return[this];var a=this.parent;if(!t){var o=this.target;return o?oe(or(o).map(function(s){return a.getFromRelativePath(s)})):a.initialStateNodes}var i=wd(a.path,"states")(t).current;return H(i)?[a.getStateNode(i)]:oe(or(i).map(function(s){return r.history==="deep"?a.getFromRelativePath(s):[a.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,r=oe(re(this.states).map(function(a){return t.states[a].stateIds}));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,r,a,o;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var u=W(re(i)),l=u.next();!l.done;l=u.next()){var c=l.value,d=i[c];if(d.states)try{for(var v=(a=void 0,W(d.events)),f=v.next();!f.done;f=v.next()){var p=f.value;s.add("".concat(p))}}catch(h){a={error:h}}finally{try{f&&!f.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}}catch(h){t={error:h}}finally{try{l&&!l.done&&(r=u.return)&&r.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(r){return!(!r.target&&!r.actions.length&&r.internal)}).map(function(r){return r.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var r=this;if(t!==void 0)return t.map(function(a){if(!H(a))return a;var o=a[0]===r.delimiter;if(o&&!r.parent)return r.getStateNodeByPath(a.slice(1));var i=o?r.key+a:a;if(r.parent)try{var s=r.parent.getStateNodeByPath(i);return s}catch(u){throw new Error("Invalid transition definition for state node '".concat(r.id,`':
16
+ `).concat(u.message))}else return r.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var r=this,a=Pd(t.target),o="internal"in t?t.internal:a?a.some(function(l){return H(l)&&l[0]===r.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(a),u=I(I({},t),{actions:cr(Be(t.actions)),cond:lo(t.cond,i),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return I(I({},u),{target:u.target?u.target.map(function(l){return"#".concat(l.id)}):void 0,source:"#".concat(r.id)})}});return u},e.prototype.formatTransitions=function(){var t,r,a=this,o;if(!this.config.on)o=[];else if(Array.isArray(this.config.on))o=this.config.on;else{var i=this.config.on,s=Ot,u=i[s],l=u===void 0?[]:u,c=nn(i,[typeof s=="symbol"?s:s+""]);o=oe(re(c).map(function(m){!it&&m===vt&&st(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(a.id,'".'));var w=ut(m,c[m]);return it||af(a,m,w),w}).concat(ut(Ot,l)))}var d=this.config.always?ut("",this.config.always):[],v=this.config.onDone?ut(String(fr(this.id)),this.config.onDone):[];it||st(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=oe(this.invoke.map(function(m){var w=[];return m.onDone&&w.push.apply(w,de([],J(ut(String(vr(m.id)),m.onDone)),!1)),m.onError&&w.push.apply(w,de([],J(ut(String(Ft(m.id)),m.onError)),!1)),w})),p=this.after,h=oe(de(de(de(de([],J(v),!1),J(f),!1),J(o),!1),J(d),!1).map(function(m){return Be(m).map(function(w){return a.formatTransition(w)})}));try{for(var g=W(p),b=g.next();!b.done;b=g.next()){var y=b.value;h.push(y)}}catch(m){t={error:m}}finally{try{b&&!b.done&&(r=g.return)&&r.call(g)}finally{if(t)throw t.error}}return h},e}();function Vt(e,t){return new of(e,t)}var sf={deferEvents:!1},So=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=I(I({},sf),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(r){throw this.clear(),r}finally{this.processingEvent=!1}},e}(),bn=new Map,lf=0,yr={bookId:function(){return"x:".concat(lf++)},register:function(e,t){return bn.set(e,t),e},get:function(e){return bn.get(e)},free:function(e){bn.delete(e)}};function Cn(){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 uf(){var e=Cn();if(e&&"__xstate__"in e)return e.__xstate__}function cf(e){if(!!Cn()){var t=uf();t&&t.register(e)}}function df(e,t){t===void 0&&(t={});var r=e.initialState,a=new Set,o=[],i=!1,s=function(){if(!i){for(i=!0;o.length>0;){var c=o.shift();r=e.transition(r,c,l),a.forEach(function(d){return d.next(r)})}i=!1}},u=tf({id:t.id,send:function(c){o.push(c),s()},getSnapshot:function(){return r},subscribe:function(c,d,v){var f=fo(c,d,v);return a.add(f),f.next(r),{unsubscribe:function(){a.delete(f)}}}}),l={parent:t.parent,self:u,id:t.id||"anonymous",observers:a};return r=e.start?e.start(l):r,u}var wn={sync:!1,autoForward:!1},Se;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Se||(Se={}));var ff=function(){function e(t,r){var a=this;r===void 0&&(r=e.defaultOptions),this.machine=t,this.scheduler=new So,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Se.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,v){if(lt(d))return a.batch(d),a.state;var f=ge(ln(d,v));if(a.status===Se.Stopped)return a.state;if(a.status!==Se.Running&&!a.options.deferEvents)throw new Error('Event "'.concat(f.name,'" was sent to uninitialized service "').concat(a.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
17
+ Event: `).concat(JSON.stringify(f.data)));return a.scheduler.schedule(function(){a.forward(f);var p=a.nextState(f);a.update(p,f)}),a._state},this.sendTo=function(d,v){var f=a.parent&&(v===ct.Parent||a.parent.id===v),p=f?a.parent:H(v)?a.children.get(v)||yr.get(v):Id(v)?v:void 0;if(!p){if(!f)throw new Error("Unable to send event to child '".concat(v,"' from service '").concat(a.id,"'."));return}"machine"in p?p.send(I(I({},d),{name:d.name===kd?"".concat(Ft(a.id)):d.name,origin:a.sessionId})):p.send(d.data)};var o=I(I({},e.defaultOptions),r),i=o.clock,s=o.logger,u=o.parent,l=o.id,c=l!==void 0?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=u,this.options=o,this.scheduler=new So({deferEvents:this.options.deferEvents}),this.sessionId=yr.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Dt(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,r){var a,o;try{for(var i=W(t.actions),s=i.next();!s.done;s=i.next()){var u=s.value;this.exec(u,t,r)}}catch(l){a={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(a)throw a.error}}},e.prototype.update=function(t,r){var a,o,i,s,u,l,c,d,v=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach(function($){v.state.children[$.id]=$}),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var f=W(this.eventListeners),p=f.next();!p.done;p=f.next()){var h=p.value;h(t.event)}}catch($){a={error:$}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var g=W(this.listeners),b=g.next();!b.done;b=g.next()){var h=b.value;h(t,t.event)}}catch($){i={error:$}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}try{for(var y=W(this.contextListeners),m=y.next();!m.done;m=y.next()){var w=m.value;w(this.state.context,this.state.history?this.state.history.context:void 0)}}catch($){u={error:$}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}var S=Rt(t.configuration||[],this.machine);if(this.state.configuration&&S){var _=t.configuration.find(function($){return $.type==="final"&&$.parent===v.machine}),N=_&&_.doneData?ir(_.doneData,t.context,r):void 0;try{for(var x=W(this.doneListeners),A=x.next();!A.done;A=x.next()){var h=A.value;h(vr(this.id,N))}}catch($){c={error:$}}finally{try{A&&!A.done&&(d=x.return)&&d.call(x)}finally{if(c)throw c.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Se.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,r,a){var o=this;if(!t)return{unsubscribe:function(){}};var i,s=a;return typeof t=="function"?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===Se.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&o.listeners.delete(i),s&&o.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 r=this;if(this.status===Se.Running)return this;yr.register(this.sessionId,this),this.initialized=!0,this.status=Se.Running;var a=t===void 0?this.initialState:Dt(this,function(){return Yd(t)?r.machine.resolveState(t):r.machine.resolveState(Xe.from(t,r.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){r.update(a,ur)}),this},e.prototype.stop=function(){var t,r,a,o,i,s,u,l,c,d,v=this;try{for(var f=W(this.listeners),p=f.next();!p.done;p=f.next()){var h=p.value;this.listeners.delete(h)}}catch(A){t={error:A}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}try{for(var g=W(this.stopListeners),b=g.next();!b.done;b=g.next()){var h=b.value;h(),this.stopListeners.delete(h)}}catch(A){a={error:A}}finally{try{b&&!b.done&&(o=g.return)&&o.call(g)}finally{if(a)throw a.error}}try{for(var y=W(this.contextListeners),m=y.next();!m.done;m=y.next()){var h=m.value;this.contextListeners.delete(h)}}catch(A){i={error:A}}finally{try{m&&!m.done&&(s=y.return)&&s.call(y)}finally{if(i)throw i.error}}try{for(var w=W(this.doneListeners),S=w.next();!S.done;S=w.next()){var h=S.value;this.doneListeners.delete(h)}}catch(A){u={error:A}}finally{try{S&&!S.done&&(l=w.return)&&l.call(w)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.state.configuration.forEach(function(A){var $,R;try{for(var O=W(A.definition.exit),D=O.next();!D.done;D=O.next()){var z=D.value;v.exec(z,v.state)}}catch(ve){$={error:ve}}finally{try{D&&!D.done&&(R=O.return)&&R.call(O)}finally{if($)throw $.error}}}),this.children.forEach(function(A){Z(A.stop)&&A.stop()});try{for(var _=W(re(this.delayedEventsMap)),N=_.next();!N.done;N=_.next()){var x=N.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(A){c={error:A}}finally{try{N&&!N.done&&(d=_.return)&&d.call(_)}finally{if(c)throw c.error}}return this.scheduler.clear(),this.initialized=!1,this.status=Se.Stopped,yr.free(this.sessionId),this},e.prototype.batch=function(t){var r=this;if(!(this.status===Se.NotStarted&&this.options.deferEvents)){if(this.status!==Se.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var a,o,i=r.state,s=!1,u=[],l=function(f){var p=ge(f);r.forward(p),i=Dt(r,function(){return r.machine.transition(i,p)}),u.push.apply(u,de([],J(i.actions.map(function(h){return Zd(h,i)})),!1)),s=s||!!i.changed};try{for(var c=W(t),d=c.next();!d.done;d=c.next()){var v=d.value;l(v)}}catch(f){a={error:f}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}i.changed=s,i.actions=u,r.update(i,ge(t[t.length-1]))})},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var r=this,a=ge(t);if(a.name.indexOf(mo)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(mo)===0}))throw a.data.data;var o=Dt(this,function(){return r.machine.transition(r.state,a)});return o},e.prototype.forward=function(t){var r,a;try{for(var o=W(this.forwardTo),i=o.next();!i.done;i=o.next()){var s=i.value,u=this.children.get(s);if(!u)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));u.send(t)}}catch(l){r={error:l}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}},e.prototype.defer=function(t){var r=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?r.sendTo(t._event,t.to):r.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,r,a){a===void 0&&(a=this.machine.options.actions);var o=r.context,i=r._event,s=t.exec||pn(t.type,a),u=Z(s)?s:s?s.exec:t.exec;if(u)try{return u(o,i.data,{action:t,state:this.state,_event:i})}catch(S){throw this.parent&&this.parent.send({type:"xstate.error",data:S}),S}switch(t.type){case lr:var l=t;if(typeof l.delay=="number"){this.defer(l);return}else l.to?this.sendTo(l._event,l.to):this.send(l._event);break;case vo:this.cancel(t.sendId);break;case un:{var c=t.activity;if(!this.state.activities[c.id||c.type])break;if(c.type===Q.Invoke){var d=co(c.src),v=this.machine.options.services?this.machine.options.services[d.type]:void 0,f=c.id,p=c.data,h="autoForward"in c?c.autoForward:!!c.forward;if(!v)return;var g=p?ir(p,o,i):void 0;if(typeof v=="string")return;var b=Z(v)?v(o,i.data,{data:g,src:d,meta:c.meta}):v;if(!b)return;var y=void 0;He(b)&&(b=g?b.withContext(g):b,y={autoForward:h}),this.spawn(b,f,y)}else this.spawnActivity(c);break}case cn:{this.stopChild(t.activity.id);break}case po:var m=t.label,w=t.value;m?this.logger(m,w):this.logger(w);break}},e.prototype.removeChild=function(t){var r;this.children.delete(t),this.forwardTo.delete(t),(r=this.state)===null||r===void 0||delete r.children[t]},e.prototype.stopChild=function(t){var r=this.children.get(t);!r||(this.removeChild(t),Z(r.stop)&&r.stop())},e.prototype.spawn=function(t,r,a){if(ao(t))return this.spawnPromise(Promise.resolve(t),r);if(Z(t))return this.spawnCallback(t,r);if(ef(t))return this.spawnActor(t,r);if(Ed(t))return this.spawnObservable(t,r);if(He(t))return this.spawnMachine(t,I(I({},a),{id:r}));if(_d(t))return this.spawnBehavior(t,r);throw new Error('Unable to spawn entity "'.concat(r,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,r){var a=this;r===void 0&&(r={});var o=new e(t,I(I({},this.options),{parent:this,id:r.id||t.id})),i=I(I({},wn),r);i.sync&&o.onTransition(function(u){a.send(vn,{state:u,id:o.id})});var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(u){a.removeChild(o.id),a.send(ge(u,{origin:o.id}))}).start(),s},e.prototype.spawnBehavior=function(t,r){var a=df(t,{id:r,parent:this});return this.children.set(r,a),a},e.prototype.spawnPromise=function(t,r){var a=this,o=!1,i;t.then(function(u){o||(i=u,a.removeChild(r),a.send(ge(vr(r,u),{origin:r})))},function(u){if(!o){a.removeChild(r);var l=Ft(r,u);try{a.send(ge(l,{origin:r}))}catch{a.devTools&&a.devTools.send(l,a.state),a.machine.strict&&a.stop()}}});var s={id:r,send:function(){},subscribe:function(u,l,c){var d=fo(u,l,c),v=!1;return t.then(function(f){v||(d.next(f),!v&&d.complete())},function(f){v||d.error(f)}),{unsubscribe:function(){return v=!0}}},stop:function(){o=!0},toJSON:function(){return{id:r}},getSnapshot:function(){return i}};return this.children.set(r,s),s},e.prototype.spawnCallback=function(t,r){var a=this,o=!1,i=new Set,s=new Set,u,l=function(v){u=v,s.forEach(function(f){return f(v)}),!o&&a.send(ge(v,{origin:r}))},c;try{c=t(l,function(v){i.add(v)})}catch(v){this.send(Ft(r,v))}if(ao(c))return this.spawnPromise(c,r);var d={id:r,send:function(v){return i.forEach(function(f){return f(v)})},subscribe:function(v){return s.add(v),{unsubscribe:function(){s.delete(v)}}},stop:function(){o=!0,Z(c)&&c()},toJSON:function(){return{id:r}},getSnapshot:function(){return u}};return this.children.set(r,d),d},e.prototype.spawnObservable=function(t,r){var a=this,o,i=t.subscribe(function(u){o=u,a.send(ge(u,{origin:r}))},function(u){a.removeChild(r),a.send(ge(Ft(r,u),{origin:r}))},function(){a.removeChild(r),a.send(ge(vr(r),{origin:r}))}),s={id:r,send:function(){},subscribe:function(u,l,c){return t.subscribe(u,l,c)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return o},toJSON:function(){return{id:r}}};return this.children.set(r,s),s},e.prototype.spawnActor=function(t,r){return this.children.set(r,t),t},e.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!!r){var a=r(this.state.context,t);this.spawnEffect(t.id,a)}},e.prototype.spawnEffect=function(t,r){this.children.set(t,{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})},e.prototype.attachDev=function(){var t=Cn();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var r=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(I(I({name:this.id,autoPause:!0,stateSanitizer:function(a){return{value:a.value,context:a.context,actions:a.actions}}},r),{features:I({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}cf(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Ad]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Se.NotStarted?this.initialState:this._state},e.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(r,a){return setTimeout(r,a)},clearTimeout:function(r){return clearTimeout(r)}},logger:t.console.log.bind(console),devTools:!1}}(typeof self!="undefined"?self:global),e.interpret=_o,e}(),vf=function(e){return H(e)?I(I({},wn),{name:e}):I(I(I({},wn),{name:Nd()}),e)};function br(e,t){var r=vf(t);return Xd(function(a){if(!it){var o=He(e)||Z(e);st(!!a||o,'Attempted to spawn an Actor (ID: "'.concat(He(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return a?a.spawn(e,r.name,r):wo(e,r.name)})}function _o(e,t){var r=new ff(e,t);return r}var X={},Sn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
18
18
  Copyright (c) Microsoft Corporation.
19
19
 
20
20
  Permission to use, copy, modify, and/or distribute this software for any
@@ -27,7 +27,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
27
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
28
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
29
  PERFORMANCE OF THIS SOFTWARE.
30
- ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,l=1,c=arguments.length;l<c;l++){u=arguments[l];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},e.__assign.apply(this,arguments)};function t(i,s){var u={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&s.indexOf(l)<0&&(u[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(i);c<l.length;c++)s.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(i,l[c])&&(u[l[c]]=i[l[c]]);return u}function r(i){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&i[s],l=0;if(u)return u.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var l=u.call(i),c,d=[],v;try{for(;(s===void 0||s-- >0)&&!(c=l.next()).done;)d.push(c.value)}catch(f){v={error:f}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(v)throw v.error}}return d}function o(i,s,u){if(u||arguments.length===2)for(var l=0,c=s.length,d;l<c;l++)(d||!(l in s))&&(d||(d=Array.prototype.slice.call(s,0,l)),d[l]=s[l]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=a,e.__rest=t,e.__spreadArray=o,e.__values=r})(wn);var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});var df=!0;Cr.IS_PRODUCTION=df;var So={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});var ff=".",vf={},pf="xstate.guard",mf="";ht.DEFAULT_GUARD_TYPE=pf;ht.EMPTY_ACTIVITY_MAP=vf;ht.STATE_DELIMITER=ff;ht.TARGETLESS_KEY=mf;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=wn,r=ht,a=Cr;function o(C){return Object.keys(C)}function i(C,B,R){R===void 0&&(R=r.STATE_DELIMITER);var k=c(C,R),M=c(B,R);return z(M)?z(k)?M===k:!1:z(k)?k in M:o(k).every(function(L){return L in M?i(k[L],M[L]):!1})}function s(C){try{return z(C)||typeof C=="number"?"".concat(C):C.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function u(C,B){try{return O(C)?C:C.toString().split(B)}catch{throw new Error("'".concat(C,"' is not a valid state path."))}}function l(C){return typeof C=="object"&&"value"in C&&"context"in C&&"event"in C&&"_event"in C}function c(C,B){if(l(C))return C.value;if(O(C))return d(C);if(typeof C!="string")return C;var R=u(C,B);return d(R)}function d(C){if(C.length===1)return C[0];for(var B={},R=B,k=0;k<C.length-1;k++)k===C.length-2?R[C[k]]=C[k+1]:(R[C[k]]={},R=R[C[k]]);return B}function v(C,B){for(var R={},k=o(C),M=0;M<k.length;M++){var L=k[M];R[L]=B(C[L],L,C,M)}return R}function f(C,B,R){var k,M,L={};try{for(var q=t.__values(o(C)),G=q.next();!G.done;G=q.next()){var ne=G.value,ce=C[ne];!R(ce)||(L[ne]=B(ce,ne,C))}}catch(Pe){k={error:Pe}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(k)throw k.error}}return L}var p=function(C){return function(B){var R,k,M=B;try{for(var L=t.__values(C),q=L.next();!q.done;q=L.next()){var G=q.value;M=M[G]}}catch(ne){R={error:ne}}finally{try{q&&!q.done&&(k=L.return)&&k.call(L)}finally{if(R)throw R.error}}return M}};function m(C,B){return function(R){var k,M,L=R;try{for(var q=t.__values(C),G=q.next();!G.done;G=q.next()){var ne=G.value;L=L[B][ne]}}catch(ce){k={error:ce}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(k)throw k.error}}return L}}function g(C){if(!C)return[[]];if(z(C))return[[C]];var B=b(o(C).map(function(R){var k=C[R];return typeof k!="string"&&(!k||!Object.keys(k).length)?[[R]]:g(C[R]).map(function(M){return[R].concat(M)})}));return B}function b(C){var B;return(B=[]).concat.apply(B,t.__spreadArray([],t.__read(C),!1))}function y(C){return O(C)?C:[C]}function h(C){return C===void 0?[]:y(C)}function w(C,B,R){var k,M;if(D(C))return C(B,R.data);var L={};try{for(var q=t.__values(Object.keys(C)),G=q.next();!G.done;G=q.next()){var ne=G.value,ce=C[ne];D(ce)?L[ne]=ce(B,R.data):L[ne]=ce}}catch(Pe){k={error:Pe}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(k)throw k.error}}return L}function _(C){return/^(done|error)\./.test(C)}function S(C){return!!(C instanceof Promise||C!==null&&(D(C)||typeof C=="object")&&D(C.then))}function N(C){return C!==null&&typeof C=="object"&&"transition"in C&&typeof C.transition=="function"}function A(C,B){var R,k,M=t.__read([[],[]],2),L=M[0],q=M[1];try{for(var G=t.__values(C),ne=G.next();!ne.done;ne=G.next()){var ce=ne.value;B(ce)?L.push(ce):q.push(ce)}}catch(Pe){R={error:Pe}}finally{try{ne&&!ne.done&&(k=G.return)&&k.call(G)}finally{if(R)throw R.error}}return[L,q]}function x(C,B){return v(C.states,function(R,k){if(!!R){var M=(z(B)?void 0:B[k])||(R?R.current:void 0);if(!!M)return{current:M,states:x(R,M)}}})}function P(C,B){return{current:B,states:x(C,B)}}function F(C,B,R,k){a.IS_PRODUCTION||e.warn(!!C,"Attempting to update undefined context");var M=C&&R.reduce(function(L,q){var G,ne,ce=q.assignment,Pe={state:k,action:q,_event:B},V={};if(D(ce))V=ce(L,B.data,Pe);else try{for(var U=t.__values(o(ce)),We=U.next();!We.done;We=U.next()){var Zt=We.value,Yr=ce[Zt];V[Zt]=D(Yr)?Yr(L,B.data,Pe):Yr}}catch(Xs){G={error:Xs}}finally{try{We&&!We.done&&(ne=U.return)&&ne.call(U)}finally{if(G)throw G.error}}return Object.assign({},L,V)},C);return M}e.warn=function(){},a.IS_PRODUCTION||(e.warn=function(C,B){var R=C instanceof Error?C:void 0;if(!(!R&&C)&&console!==void 0){var k=["Warning: ".concat(B)];R&&k.push(R),console.warn.apply(console,k)}});function O(C){return Array.isArray(C)}function D(C){return typeof C=="function"}function z(C){return typeof C=="string"}function ve(C,B){if(!!C)return z(C)?{type:r.DEFAULT_GUARD_TYPE,name:C,predicate:B?B[C]:void 0}:D(C)?{type:r.DEFAULT_GUARD_TYPE,name:C.name,predicate:C}:C}function qe(C){try{return"subscribe"in C&&D(C.subscribe)}catch{return!1}}var le=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ge(C){try{return"__xstatenode"in C}catch{return!1}}function Te(C){return!!C&&typeof C.send=="function"}var ue=function(){var C=0;return function(){return C++,C.toString(16)}}();function xe(C,B){return z(C)||typeof C=="number"?t.__assign({type:C},B):C}function Kt(C,B){if(!z(C)&&"$$type"in C&&C.$$type==="scxml")return C;var R=xe(C);return t.__assign({name:R.type,data:R,$$type:"scxml",type:"external"},B)}function Nt(C,B){var R=y(B).map(function(k){return typeof k=="undefined"||typeof k=="string"||Ge(k)?{target:k,event:C}:t.__assign(t.__assign({},k),{event:C})});return R}function $(C){if(!(C===void 0||C===r.TARGETLESS_KEY))return h(C)}function be(C,B,R){if(!a.IS_PRODUCTION){var k=C.stack?" Stacktrace was '".concat(C.stack,"'"):"";if(C===B)console.error("Missing onError handler for invocation '".concat(R,"', error was '").concat(C,"'.").concat(k));else{var M=B.stack?" Stacktrace was '".concat(B.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(R,"'. ")+"Original error: '".concat(C,"'. ").concat(k," Current error is '").concat(B,"'.").concat(M))}}}function qt(C,B,R,k,M){var L=C.options.guards,q={state:M,cond:B,_event:k};if(B.type===r.DEFAULT_GUARD_TYPE)return((L==null?void 0:L[B.name])||B.predicate)(R,k.data,q);var G=L[B.type];if(!G)throw new Error("Guard '".concat(B.type,"' is not implemented on machine '").concat(C.id,"'."));return G(R,k.data,q)}function qr(C){return typeof C=="string"?{type:C}:C}function Yt(C,B,R){if(typeof C=="object")return C;var k=function(){};return{next:C,error:B||k,complete:R||k}}e.evaluateGuard=qt,e.flatten=b,e.getEventType=s,e.isActor=Te,e.isArray=O,e.isBehavior=N,e.isBuiltInEvent=_,e.isFunction=D,e.isMachine=Ge,e.isObservable=qe,e.isPromiseLike=S,e.isStateLike=l,e.isString=z,e.keys=o,e.mapContext=w,e.mapFilterValues=f,e.mapValues=v,e.matchesState=i,e.nestedPath=m,e.normalizeTarget=$,e.partition=A,e.path=p,e.pathToStateValue=d,e.reportUnhandledExceptionOnInvocation=be,e.symbolObservable=le,e.toArray=h,e.toArrayStrict=y,e.toEventObject=xe,e.toGuard=ve,e.toInvokeSource=qr,e.toObserver=Yt,e.toSCXMLEvent=Kt,e.toStatePath=u,e.toStatePaths=g,e.toStateValue=c,e.toTransitionConfigArray=Nt,e.uniqueId=ue,e.updateContext=F,e.updateHistoryStates=x,e.updateHistoryValue=P})(So);var _n={};(function(e){Object.defineProperty(e,"__esModule",{value:!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={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(_n);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=_n,hf=me.ActionTypes.Start,gf=me.ActionTypes.Stop,yf=me.ActionTypes.Raise,bf=me.ActionTypes.Send,Cf=me.ActionTypes.Cancel,wf=me.ActionTypes.NullEvent,_f=me.ActionTypes.Assign,Sf=me.ActionTypes.After,xf=me.ActionTypes.DoneState,Ef=me.ActionTypes.Log,Af=me.ActionTypes.Init,If=me.ActionTypes.Invoke,Nf=me.ActionTypes.ErrorExecution,Tf=me.ActionTypes.ErrorPlatform,Pf=me.ActionTypes.ErrorCustom,$f=me.ActionTypes.Update,Bf=me.ActionTypes.Choose,kf=me.ActionTypes.Pure;fe.after=Sf;fe.assign=_f;fe.cancel=Cf;fe.choose=Bf;fe.doneState=xf;fe.error=Pf;fe.errorExecution=Nf;fe.errorPlatform=Tf;fe.init=Af;fe.invoke=If;fe.log=Ef;fe.nullEvent=wf;fe.pure=kf;fe.raise=yf;fe.send=bf;fe.start=hf;fe.stop=gf;fe.update=$f;Object.defineProperty(X,"__esModule",{value:!0});var ee=wn,Rf=Cr,K=So,Ee=_n,he=fe,Ff=K.toSCXMLEvent({type:he.init});function Sn(e,t){return t&&t[e]||void 0}function wr(e,t){var r;if(K.isString(e)||typeof e=="number"){var a=Sn(e,t);K.isFunction(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(K.isFunction(e))r={type:e.name||e.toString(),exec:e};else{var a=Sn(e.type,t);if(K.isFunction(a))r=ee.__assign(ee.__assign({},e),{exec:a});else if(a){var o=a.type||e.type;r=ee.__assign(ee.__assign(ee.__assign({},a),e),{type:o})}else r=e}return r}var xn=function(e,t){if(!e)return[];var r=K.isArray(e)?e:[e];return r.map(function(a){return wr(a,t)})};function En(e){var t=wr(e);return ee.__assign(ee.__assign({id:K.isString(e)?e:t.id},t),{type:t.type})}function Df(e){return K.isString(e)?{type:he.raise,event:e}:Ut(e,{to:Ee.SpecialTargets.Internal})}function xo(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function Ut(e,t){return{to:t?t.to:void 0,type:he.send,event:K.isFunction(e)?e:K.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:K.isFunction(e)?e.name:K.getEventType(e)}}function Eo(e,t,r,a){var o={_event:r},i=K.toSCXMLEvent(K.isFunction(e.event)?e.event(t,r.data,o):e.event),s;if(K.isString(e.delay)){var u=a&&a[e.delay];s=K.isFunction(u)?u(t,r.data,o):u}else s=K.isFunction(e.delay)?e.delay(t,r.data,o):e.delay;var l=K.isFunction(e.to)?e.to(t,r.data,o):e.to;return ee.__assign(ee.__assign({},e),{to:l,_event:i,event:i.data,delay:s})}function An(e,t){return Ut(e,ee.__assign(ee.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function Of(){return An(he.update)}function Vf(e,t){return Ut(e,ee.__assign(ee.__assign({},t),{to:function(r,a,o){var i=o._event;return i.origin}}))}var Uf=function(e,t){return{context:e,event:t}};function Mf(e,t){return e===void 0&&(e=Uf),{type:he.log,label:t,expr:e}}var Ao=function(e,t,r){return ee.__assign(ee.__assign({},e),{value:K.isString(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},Lf=function(e){return{type:he.cancel,sendId:e}};function zf(e){var t=En(e);return{type:Ee.ActionTypes.Start,activity:t,exec:void 0}}function jf(e){var t=K.isFunction(e)?e:En(e);return{type:Ee.ActionTypes.Stop,activity:t,exec:void 0}}function Io(e,t,r){var a=K.isFunction(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:Ee.ActionTypes.Stop,activity:o};return i}var Gf=function(e){return{type:he.assign,assignment:e}};function Wf(e,t){var r=t?"#".concat(t):"";return"".concat(Ee.ActionTypes.After,"(").concat(e,")").concat(r)}function Hf(e,t){var r="".concat(Ee.ActionTypes.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Kf(e,t){var r="".concat(Ee.ActionTypes.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function qf(e,t){var r="".concat(Ee.ActionTypes.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Yf(e){return{type:Ee.ActionTypes.Pure,get:e}}function Zf(e,t){return Ut(function(r,a){return a},ee.__assign(ee.__assign({},t),{to:e}))}function Xf(e,t){return An(function(r,a,o){return{type:he.error,data:K.isFunction(e)?e(r,a,o):e}},ee.__assign(ee.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function Jf(e){return{type:Ee.ActionTypes.Choose,conds:e}}function In(e,t,r,a,o,i){i===void 0&&(i=!1);var s=ee.__read(i?[[],o]:K.partition(o,function(f){return f.type===he.assign}),2),u=s[0],l=s[1],c=u.length?K.updateContext(r,a,u,t):r,d=i?[r]:void 0,v=K.flatten(l.map(function(f){var p;switch(f.type){case he.raise:return xo(f);case he.send:var m=Eo(f,c,a,e.options.delays);return Rf.IS_PRODUCTION||K.warn(!K.isString(f.delay)||typeof m.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),m;case he.log:return Ao(f,c,a);case he.choose:{var g=f,b=(p=g.conds.find(function(F){var O=K.toGuard(F.cond,e.options.guards);return!O||K.evaluateGuard(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!b)return[];var y=ee.__read(In(e,t,c,a,xn(K.toArray(b),e.options.actions),i),2),h=y[0],w=y[1];return c=w,d==null||d.push(c),h}case he.pure:{var b=f.get(c,a.data);if(!b)return[];var _=ee.__read(In(e,t,c,a,xn(K.toArray(b),e.options.actions),i),2),S=_[0],N=_[1];return c=N,d==null||d.push(c),S}case he.stop:return Io(f,c,a);case he.assign:{c=K.updateContext(c,a,[f],t),d==null||d.push(c);break}default:var A=wr(f,e.options.actions),x=A.exec;if(x&&d){var P=d.length-1;A=ee.__assign(ee.__assign({},A),{exec:function(F){for(var O=[],D=1;D<arguments.length;D++)O[D-1]=arguments[D];x.apply(void 0,ee.__spreadArray([d[P]],ee.__read(O),!1))}})}return A}}).filter(function(f){return!!f}));return[v,c]}X.after=Wf;var se=X.assign=Gf;X.cancel=Lf;X.choose=Jf;X.done=Hf;X.doneInvoke=Kf;X.error=qf;X.escalate=Xf;X.forwardTo=Zf;X.getActionFunction=Sn;X.initEvent=Ff;X.log=Mf;X.pure=Yf;X.raise=Df;X.resolveActions=In;X.resolveLog=Ao;X.resolveRaise=xo;X.resolveSend=Eo;X.resolveStop=Io;X.respond=Vf;X.send=Ut;X.sendParent=An;X.sendUpdate=Of;X.start=zf;var Qf=X.stop=jf;X.toActionObject=wr;X.toActionObjects=xn;X.toActivityDefinition=En;var ev=Be,tv=Qt,rv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nv=/^\w*$/;function av(e,t){if(ev(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tv(e)?!0:nv.test(e)||!rv.test(e)||t!=null&&e in Object(t)}var Nn=av,ov=Le,iv=ov["__core-js_shared__"],sv=iv,Tn=sv,No=function(){var e=/[^.]+$/.exec(Tn&&Tn.keys&&Tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lv(e){return!!No&&No in e}var uv=lv,cv=Function.prototype,dv=cv.toString;function fv(e){if(e!=null){try{return dv.call(e)}catch{}try{return e+""}catch{}}return""}var To=fv,vv=Xr,pv=uv,mv=ze,hv=To,gv=/[\\^$.*+?()[\]{}|]/g,yv=/^\[object .+?Constructor\]$/,bv=Function.prototype,Cv=Object.prototype,wv=bv.toString,_v=Cv.hasOwnProperty,Sv=RegExp("^"+wv.call(_v).replace(gv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xv(e){if(!mv(e)||pv(e))return!1;var t=vv(e)?Sv:yv;return t.test(hv(e))}var Ev=xv;function Av(e,t){return e==null?void 0:e[t]}var Iv=Av,Nv=Ev,Tv=Iv;function Pv(e,t){var r=Tv(e,t);return Nv(r)?r:void 0}var rt=Pv,$v=rt,Bv=$v(Object,"create"),_r=Bv,Po=_r;function kv(){this.__data__=Po?Po(null):{},this.size=0}var Rv=kv;function Fv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Dv=Fv,Ov=_r,Vv="__lodash_hash_undefined__",Uv=Object.prototype,Mv=Uv.hasOwnProperty;function Lv(e){var t=this.__data__;if(Ov){var r=t[e];return r===Vv?void 0:r}return Mv.call(t,e)?t[e]:void 0}var zv=Lv,jv=_r,Gv=Object.prototype,Wv=Gv.hasOwnProperty;function Hv(e){var t=this.__data__;return jv?t[e]!==void 0:Wv.call(t,e)}var Kv=Hv,qv=_r,Yv="__lodash_hash_undefined__";function Zv(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qv&&t===void 0?Yv:t,this}var Xv=Zv,Jv=Rv,Qv=Dv,ep=zv,tp=Kv,rp=Xv;function gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}gt.prototype.clear=Jv;gt.prototype.delete=Qv;gt.prototype.get=ep;gt.prototype.has=tp;gt.prototype.set=rp;var np=gt;function ap(){this.__data__=[],this.size=0}var op=ap;function ip(e,t){return e===t||e!==e&&t!==t}var Mt=ip,sp=Mt;function lp(e,t){for(var r=e.length;r--;)if(sp(e[r][0],t))return r;return-1}var Sr=lp,up=Sr,cp=Array.prototype,dp=cp.splice;function fp(e){var t=this.__data__,r=up(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():dp.call(t,r,1),--this.size,!0}var vp=fp,pp=Sr;function mp(e){var t=this.__data__,r=pp(t,e);return r<0?void 0:t[r][1]}var hp=mp,gp=Sr;function yp(e){return gp(this.__data__,e)>-1}var bp=yp,Cp=Sr;function wp(e,t){var r=this.__data__,a=Cp(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var _p=wp,Sp=op,xp=vp,Ep=hp,Ap=bp,Ip=_p;function yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}yt.prototype.clear=Sp;yt.prototype.delete=xp;yt.prototype.get=Ep;yt.prototype.has=Ap;yt.prototype.set=Ip;var xr=yt,Np=rt,Tp=Le,Pp=Np(Tp,"Map"),Pn=Pp,$o=np,$p=xr,Bp=Pn;function kp(){this.size=0,this.__data__={hash:new $o,map:new(Bp||$p),string:new $o}}var Rp=kp;function Fp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Dp=Fp,Op=Dp;function Vp(e,t){var r=e.__data__;return Op(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Er=Vp,Up=Er;function Mp(e){var t=Up(this,e).delete(e);return this.size-=t?1:0,t}var Lp=Mp,zp=Er;function jp(e){return zp(this,e).get(e)}var Gp=jp,Wp=Er;function Hp(e){return Wp(this,e).has(e)}var Kp=Hp,qp=Er;function Yp(e,t){var r=qp(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var Zp=Yp,Xp=Rp,Jp=Lp,Qp=Gp,em=Kp,tm=Zp;function bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}bt.prototype.clear=Xp;bt.prototype.delete=Jp;bt.prototype.get=Qp;bt.prototype.has=em;bt.prototype.set=tm;var $n=bt,Bo=$n,rm="Expected a function";function Bn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rm);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,a);return r.cache=i.set(o,s)||i,s};return r.cache=new(Bn.Cache||Bo),r}Bn.Cache=Bo;var nm=Bn,am=nm,om=500;function im(e){var t=am(e,function(a){return r.size===om&&r.clear(),a}),r=t.cache;return t}var sm=im,lm=sm,um=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cm=/\\(\\)?/g,dm=lm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(um,function(r,a,o,i){t.push(o?i.replace(cm,"$1"):a||r)}),t}),fm=dm,ko=Jt,vm=Qr,pm=Be,mm=Qt,hm=1/0,Ro=ko?ko.prototype:void 0,Fo=Ro?Ro.toString:void 0;function Do(e){if(typeof e=="string")return e;if(pm(e))return vm(e,Do)+"";if(mm(e))return Fo?Fo.call(e):"";var t=e+"";return t=="0"&&1/e==-hm?"-0":t}var gm=Do,ym=gm;function bm(e){return e==null?"":ym(e)}var kn=bm,Cm=Be,wm=Nn,_m=fm,Sm=kn;function xm(e,t){return Cm(e)?e:wm(e,t)?[e]:_m(Sm(e))}var Ar=xm,Em=Qt,Am=1/0;function Im(e){if(typeof e=="string"||Em(e))return e;var t=e+"";return t=="0"&&1/e==-Am?"-0":t}var Lt=Im,Nm=Ar,Tm=Lt;function Pm(e,t){t=Nm(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Tm(t[r++])];return r&&r==a?e:void 0}var Rn=Pm,$m=Rn;function Bm(e,t,r){var a=e==null?void 0:$m(e,t);return a===void 0?r:a}var Ae=Bm,km=rt,Rm=Le,Fm=km(Rm,"DataView"),Dm=Fm,Om=rt,Vm=Le,Um=Om(Vm,"Promise"),Mm=Um,Lm=rt,zm=Le,jm=Lm(zm,"Set"),Gm=jm,Wm=rt,Hm=Le,Km=Wm(Hm,"WeakMap"),qm=Km,Fn=Dm,Dn=Pn,On=Mm,Vn=Gm,Un=qm,Oo=et,Ct=To,Vo="[object Map]",Ym="[object Object]",Uo="[object Promise]",Mo="[object Set]",Lo="[object WeakMap]",zo="[object DataView]",Zm=Ct(Fn),Xm=Ct(Dn),Jm=Ct(On),Qm=Ct(Vn),eh=Ct(Un),nt=Oo;(Fn&&nt(new Fn(new ArrayBuffer(1)))!=zo||Dn&&nt(new Dn)!=Vo||On&&nt(On.resolve())!=Uo||Vn&&nt(new Vn)!=Mo||Un&&nt(new Un)!=Lo)&&(nt=function(e){var t=Oo(e),r=t==Ym?e.constructor:void 0,a=r?Ct(r):"";if(a)switch(a){case Zm:return zo;case Xm:return Vo;case Jm:return Uo;case Qm:return Mo;case eh:return Lo}return t});var jo=nt,th=Xa,rh=jo,nh=er,ah=Be,oh=at,ih=ot.exports,sh=nr,lh=rr,uh="[object Map]",ch="[object Set]",dh=Object.prototype,fh=dh.hasOwnProperty;function vh(e){if(e==null)return!0;if(oh(e)&&(ah(e)||typeof e=="string"||typeof e.splice=="function"||ih(e)||lh(e)||nh(e)))return!e.length;var t=rh(e);if(t==uh||t==ch)return!e.size;if(sh(e))return!th(e).length;for(var r in e)if(fh.call(e,r))return!1;return!0}var Mn=vh,ph=xr;function mh(){this.__data__=new ph,this.size=0}var hh=mh;function gh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var yh=gh;function bh(e){return this.__data__.get(e)}var Ch=bh;function wh(e){return this.__data__.has(e)}var _h=wh,Sh=xr,xh=Pn,Eh=$n,Ah=200;function Ih(e,t){var r=this.__data__;if(r instanceof Sh){var a=r.__data__;if(!xh||a.length<Ah-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Eh(a)}return r.set(e,t),this.size=r.size,this}var Nh=Ih,Th=xr,Ph=hh,$h=yh,Bh=Ch,kh=_h,Rh=Nh;function wt(e){var t=this.__data__=new Th(e);this.size=t.size}wt.prototype.clear=Ph;wt.prototype.delete=$h;wt.prototype.get=Bh;wt.prototype.has=kh;wt.prototype.set=Rh;var Ln=wt,Fh=rt,Dh=function(){try{var e=Fh(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Go=Dh,Wo=Go;function Oh(e,t,r){t=="__proto__"&&Wo?Wo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var zn=Oh,Vh=zn,Uh=Mt;function Mh(e,t,r){(r!==void 0&&!Uh(e[t],r)||r===void 0&&!(t in e))&&Vh(e,t,r)}var Ho=Mh;function Lh(e){return function(t,r,a){for(var o=-1,i=Object(t),s=a(t),u=s.length;u--;){var l=s[e?u:++o];if(r(i[l],l,i)===!1)break}return t}}var zh=Lh,jh=zh,Gh=jh(),Wh=Gh,jn={exports:{}};(function(e,t){var r=Le,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function l(c,d){if(d)return c.slice();var v=c.length,f=u?u(v):new c.constructor(v);return c.copy(f),f}e.exports=l})(jn,jn.exports);var Hh=Le,Kh=Hh.Uint8Array,Ko=Kh,qo=Ko;function qh(e){var t=new e.constructor(e.byteLength);return new qo(t).set(new qo(e)),t}var Yh=qh,Zh=Yh;function Xh(e,t){var r=t?Zh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Jh=Xh;function Qh(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var eg=Qh,tg=ze,Yo=Object.create,rg=function(){function e(){}return function(t){if(!tg(t))return{};if(Yo)return Yo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),ng=rg,ag=Za,og=ag(Object.getPrototypeOf,Object),Gn=og,ig=ng,sg=Gn,lg=nr;function ug(e){return typeof e.constructor=="function"&&!lg(e)?ig(sg(e)):{}}var cg=ug,dg=at,fg=Ye;function vg(e){return fg(e)&&dg(e)}var pg=vg,mg=et,hg=Gn,gg=Ye,yg="[object Object]",bg=Function.prototype,Cg=Object.prototype,Zo=bg.toString,wg=Cg.hasOwnProperty,_g=Zo.call(Object);function Sg(e){if(!gg(e)||mg(e)!=yg)return!1;var t=hg(e);if(t===null)return!0;var r=wg.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Zo.call(r)==_g}var xg=Sg;function Eg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xo=Eg,Ag=zn,Ig=Mt,Ng=Object.prototype,Tg=Ng.hasOwnProperty;function Pg(e,t,r){var a=e[t];(!(Tg.call(e,t)&&Ig(a,r))||r===void 0&&!(t in e))&&Ag(e,t,r)}var Jo=Pg,$g=Jo,Bg=zn;function kg(e,t,r,a){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],l=a?a(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),o?Bg(r,u,l):$g(r,u,l)}return r}var Rg=kg;function Fg(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Dg=Fg,Og=ze,Vg=nr,Ug=Dg,Mg=Object.prototype,Lg=Mg.hasOwnProperty;function zg(e){if(!Og(e))return Ug(e);var t=Vg(e),r=[];for(var a in e)a=="constructor"&&(t||!Lg.call(e,a))||r.push(a);return r}var jg=zg,Gg=Ya,Wg=jg,Hg=at;function Kg(e){return Hg(e)?Gg(e,!0):Wg(e)}var Wn=Kg,qg=Rg,Yg=Wn;function Zg(e){return qg(e,Yg(e))}var Xg=Zg,Qo=Ho,Jg=jn.exports,Qg=Jh,e0=eg,t0=cg,ei=er,ti=Be,r0=pg,n0=ot.exports,a0=Xr,o0=ze,i0=xg,s0=rr,ri=Xo,l0=Xg;function u0(e,t,r,a,o,i,s){var u=ri(e,r),l=ri(t,r),c=s.get(l);if(c){Qo(e,r,c);return}var d=i?i(u,l,r+"",e,t,s):void 0,v=d===void 0;if(v){var f=ti(l),p=!f&&n0(l),m=!f&&!p&&s0(l);d=l,f||p||m?ti(u)?d=u:r0(u)?d=e0(u):p?(v=!1,d=Jg(l,!0)):m?(v=!1,d=Qg(l,!0)):d=[]:i0(l)||ei(l)?(d=u,ei(u)?d=l0(u):(!o0(u)||a0(u))&&(d=t0(l))):v=!1}v&&(s.set(l,d),o(d,l,a,i,s),s.delete(l)),Qo(e,r,d)}var c0=u0,d0=Ln,f0=Ho,v0=Wh,p0=c0,m0=ze,h0=Wn,g0=Xo;function ni(e,t,r,a,o){e!==t&&v0(t,function(i,s){if(o||(o=new d0),m0(i))p0(e,t,s,r,ni,a,o);else{var u=a?a(g0(e,s),i,s+"",e,t,o):void 0;u===void 0&&(u=i),f0(e,s,u)}},h0)}var y0=ni;function b0(e){return e}var Hn=b0;function C0(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var w0=C0,_0=w0,ai=Math.max;function S0(e,t,r){return t=ai(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=ai(a.length-t,0),s=Array(i);++o<i;)s[o]=a[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=a[o];return u[t]=r(s),_0(e,this,u)}}var x0=S0;function E0(e){return function(){return e}}var A0=E0,I0=A0,oi=Go,N0=Hn,T0=oi?function(e,t){return oi(e,"toString",{configurable:!0,enumerable:!1,value:I0(t),writable:!0})}:N0,P0=T0,$0=800,B0=16,k0=Date.now;function R0(e){var t=0,r=0;return function(){var a=k0(),o=B0-(a-r);if(r=a,o>0){if(++t>=$0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var F0=R0,D0=P0,O0=F0,V0=O0(D0),U0=V0,M0=Hn,L0=x0,z0=U0;function j0(e,t){return z0(L0(e,t,M0),e+"")}var G0=j0,W0=Mt,H0=at,K0=tr,q0=ze;function Y0(e,t,r){if(!q0(r))return!1;var a=typeof t;return(a=="number"?H0(r)&&K0(t,r.length):a=="string"&&t in r)?W0(r[t],e):!1}var Z0=Y0,X0=G0,J0=Z0;function Q0(e){return X0(function(t,r){var a=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&J0(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++a<o;){var u=r[a];u&&e(t,u,a,i)}return t})}var ey=Q0,ty=y0,ry=ey,ny=ry(function(e,t,r){ty(e,t,r)}),ay=ny,oy="__lodash_hash_undefined__";function iy(e){return this.__data__.set(e,oy),this}var sy=iy;function ly(e){return this.__data__.has(e)}var uy=ly,cy=$n,dy=sy,fy=uy;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new cy;++t<r;)this.add(e[t])}Ir.prototype.add=Ir.prototype.push=dy;Ir.prototype.has=fy;var vy=Ir;function py(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var my=py;function hy(e,t){return e.has(t)}var gy=hy,yy=vy,by=my,Cy=gy,wy=1,_y=2;function Sy(e,t,r,a,o,i){var s=r&wy,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var v=-1,f=!0,p=r&_y?new yy:void 0;for(i.set(e,t),i.set(t,e);++v<u;){var m=e[v],g=t[v];if(a)var b=s?a(g,m,v,t,e,i):a(m,g,v,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!by(t,function(y,h){if(!Cy(p,h)&&(m===y||o(m,y,r,a,i)))return p.push(h)})){f=!1;break}}else if(!(m===g||o(m,g,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ii=Sy;function xy(e){var t=-1,r=Array(e.size);return e.forEach(function(a,o){r[++t]=[o,a]}),r}var Ey=xy;function Ay(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Iy=Ay,si=Jt,li=Ko,Ny=Mt,Ty=ii,Py=Ey,$y=Iy,By=1,ky=2,Ry="[object Boolean]",Fy="[object Date]",Dy="[object Error]",Oy="[object Map]",Vy="[object Number]",Uy="[object RegExp]",My="[object Set]",Ly="[object String]",zy="[object Symbol]",jy="[object ArrayBuffer]",Gy="[object DataView]",ui=si?si.prototype:void 0,Kn=ui?ui.valueOf:void 0;function Wy(e,t,r,a,o,i,s){switch(r){case Gy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case jy:return!(e.byteLength!=t.byteLength||!i(new li(e),new li(t)));case Ry:case Fy:case Vy:return Ny(+e,+t);case Dy:return e.name==t.name&&e.message==t.message;case Uy:case Ly:return e==t+"";case Oy:var u=Py;case My:var l=a&By;if(u||(u=$y),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;a|=ky,s.set(e,t);var d=Ty(u(e),u(t),a,o,i,s);return s.delete(e),d;case zy:if(Kn)return Kn.call(e)==Kn.call(t)}return!1}var Hy=Wy;function Ky(e,t){for(var r=-1,a=t.length,o=e.length;++r<a;)e[o+r]=t[r];return e}var ci=Ky,qy=ci,Yy=Be;function Zy(e,t,r){var a=t(e);return Yy(e)?a:qy(a,r(e))}var di=Zy;function Xy(e,t){for(var r=-1,a=e==null?0:e.length,o=0,i=[];++r<a;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}var Jy=Xy;function Qy(){return[]}var fi=Qy,e1=Jy,t1=fi,r1=Object.prototype,n1=r1.propertyIsEnumerable,vi=Object.getOwnPropertySymbols,a1=vi?function(e){return e==null?[]:(e=Object(e),e1(vi(e),function(t){return n1.call(e,t)}))}:t1,pi=a1,o1=di,i1=pi,s1=tn;function l1(e){return o1(e,s1,i1)}var u1=l1,mi=u1,c1=1,d1=Object.prototype,f1=d1.hasOwnProperty;function v1(e,t,r,a,o,i){var s=r&c1,u=mi(e),l=u.length,c=mi(t),d=c.length;if(l!=d&&!s)return!1;for(var v=l;v--;){var f=u[v];if(!(s?f in t:f1.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var b=s;++v<l;){f=u[v];var y=e[f],h=t[f];if(a)var w=s?a(h,y,f,t,e,i):a(y,h,f,e,t,i);if(!(w===void 0?y===h||o(y,h,r,a,i):w)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(g=!1)}return i.delete(e),i.delete(t),g}var p1=v1,qn=Ln,m1=ii,h1=Hy,g1=p1,hi=jo,gi=Be,yi=ot.exports,y1=rr,b1=1,bi="[object Arguments]",Ci="[object Array]",Nr="[object Object]",C1=Object.prototype,wi=C1.hasOwnProperty;function w1(e,t,r,a,o,i){var s=gi(e),u=gi(t),l=s?Ci:hi(e),c=u?Ci:hi(t);l=l==bi?Nr:l,c=c==bi?Nr:c;var d=l==Nr,v=c==Nr,f=l==c;if(f&&yi(e)){if(!yi(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new qn),s||y1(e)?m1(e,t,r,a,o,i):h1(e,t,l,r,a,o,i);if(!(r&b1)){var p=d&&wi.call(e,"__wrapped__"),m=v&&wi.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,b=m?t.value():t;return i||(i=new qn),o(g,b,r,a,i)}}return f?(i||(i=new qn),g1(e,t,r,a,o,i)):!1}var _1=w1,S1=_1,_i=Ye;function Si(e,t,r,a,o){return e===t?!0:e==null||t==null||!_i(e)&&!_i(t)?e!==e&&t!==t:S1(e,t,r,a,Si,o)}var xi=Si,x1=Ln,E1=xi,A1=1,I1=2;function N1(e,t,r,a){var o=r.length,i=o,s=!a;if(e==null)return!i;for(e=Object(e);o--;){var u=r[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){u=r[o];var l=u[0],c=e[l],d=u[1];if(s&&u[2]){if(c===void 0&&!(l in e))return!1}else{var v=new x1;if(a)var f=a(c,d,l,e,t,v);if(!(f===void 0?E1(d,c,A1|I1,a,v):f))return!1}}return!0}var T1=N1,P1=ze;function $1(e){return e===e&&!P1(e)}var Ei=$1,B1=Ei,k1=tn;function R1(e){for(var t=k1(e),r=t.length;r--;){var a=t[r],o=e[a];t[r]=[a,o,B1(o)]}return t}var F1=R1;function D1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ai=D1,O1=T1,V1=F1,U1=Ai;function M1(e){var t=V1(e);return t.length==1&&t[0][2]?U1(t[0][0],t[0][1]):function(r){return r===e||O1(r,e,t)}}var L1=M1;function z1(e,t){return e!=null&&t in Object(e)}var j1=z1,G1=Ar,W1=er,H1=Be,K1=tr,q1=Jr,Y1=Lt;function Z1(e,t,r){t=G1(t,e);for(var a=-1,o=t.length,i=!1;++a<o;){var s=Y1(t[a]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++a!=o?i:(o=e==null?0:e.length,!!o&&q1(o)&&K1(s,o)&&(H1(e)||W1(e)))}var X1=Z1,J1=j1,Q1=X1;function eb(e,t){return e!=null&&Q1(e,t,J1)}var tb=eb,rb=xi,nb=Ae,ab=tb,ob=Nn,ib=Ei,sb=Ai,lb=Lt,ub=1,cb=2;function db(e,t){return ob(e)&&ib(t)?sb(lb(e),t):function(r){var a=nb(r,e);return a===void 0&&a===t?ab(r,e):rb(t,a,ub|cb)}}var fb=db;function vb(e){return function(t){return t==null?void 0:t[e]}}var pb=vb,mb=Rn;function hb(e){return function(t){return mb(t,e)}}var gb=hb,yb=pb,bb=gb,Cb=Nn,wb=Lt;function _b(e){return Cb(e)?yb(wb(e)):bb(e)}var Sb=_b,xb=L1,Eb=fb,Ab=Hn,Ib=Be,Nb=Sb;function Tb(e){return typeof e=="function"?e:e==null?Ab:typeof e=="object"?Ib(e)?Eb(e[0],e[1]):xb(e):Nb(e)}var Pb=Tb,$b=Jo,Bb=Ar,kb=tr,Ii=ze,Rb=Lt;function Fb(e,t,r,a){if(!Ii(e))return e;t=Bb(t,e);for(var o=-1,i=t.length,s=i-1,u=e;u!=null&&++o<i;){var l=Rb(t[o]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=s){var d=u[l];c=a?a(d,l,u):void 0,c===void 0&&(c=Ii(d)?d:kb(t[o+1])?[]:{})}$b(u,l,c),u=u[l]}return e}var Db=Fb,Ob=Rn,Vb=Db,Ub=Ar;function Mb(e,t,r){for(var a=-1,o=t.length,i={};++a<o;){var s=t[a],u=Ob(e,s);r(u,s)&&Vb(i,Ub(s,e),u)}return i}var Lb=Mb,zb=ci,jb=Gn,Gb=pi,Wb=fi,Hb=Object.getOwnPropertySymbols,Kb=Hb?function(e){for(var t=[];e;)zb(t,Gb(e)),e=jb(e);return t}:Wb,qb=Kb,Yb=di,Zb=qb,Xb=Wn;function Jb(e){return Yb(e,Xb,Zb)}var Qb=Jb,eC=Qr,tC=Pb,rC=Lb,nC=Qb;function aC(e,t){if(e==null)return{};var r=eC(nC(e),function(a){return[a]});return t=tC(t),rC(e,r,function(a,o){return t(a,o[0])})}var oC=aC;/*! *****************************************************************************
30
+ ***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var u,l=1,c=arguments.length;l<c;l++){u=arguments[l];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},e.__assign.apply(this,arguments)};function t(i,s){var u={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&s.indexOf(l)<0&&(u[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(i);c<l.length;c++)s.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(i,l[c])&&(u[l[c]]=i[l[c]]);return u}function r(i){var s=typeof Symbol=="function"&&Symbol.iterator,u=s&&i[s],l=0;if(u)return u.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(i,s){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var l=u.call(i),c,d=[],v;try{for(;(s===void 0||s-- >0)&&!(c=l.next()).done;)d.push(c.value)}catch(f){v={error:f}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(v)throw v.error}}return d}function o(i,s,u){if(u||arguments.length===2)for(var l=0,c=s.length,d;l<c;l++)(d||!(l in s))&&(d||(d=Array.prototype.slice.call(s,0,l)),d[l]=s[l]);return i.concat(d||Array.prototype.slice.call(s))}e.__read=a,e.__rest=t,e.__spreadArray=o,e.__values=r})(Sn);var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});var pf=!0;Cr.IS_PRODUCTION=pf;var xo={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});var mf=".",hf={},gf="xstate.guard",yf="";ht.DEFAULT_GUARD_TYPE=gf;ht.EMPTY_ACTIVITY_MAP=hf;ht.STATE_DELIMITER=mf;ht.TARGETLESS_KEY=yf;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Sn,r=ht,a=Cr;function o(C){return Object.keys(C)}function i(C,k,F){F===void 0&&(F=r.STATE_DELIMITER);var B=c(C,F),M=c(k,F);return z(M)?z(B)?M===B:!1:z(B)?B in M:o(B).every(function(L){return L in M?i(B[L],M[L]):!1})}function s(C){try{return z(C)||typeof C=="number"?"".concat(C):C.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function u(C,k){try{return O(C)?C:C.toString().split(k)}catch{throw new Error("'".concat(C,"' is not a valid state path."))}}function l(C){return typeof C=="object"&&"value"in C&&"context"in C&&"event"in C&&"_event"in C}function c(C,k){if(l(C))return C.value;if(O(C))return d(C);if(typeof C!="string")return C;var F=u(C,k);return d(F)}function d(C){if(C.length===1)return C[0];for(var k={},F=k,B=0;B<C.length-1;B++)B===C.length-2?F[C[B]]=C[B+1]:(F[C[B]]={},F=F[C[B]]);return k}function v(C,k){for(var F={},B=o(C),M=0;M<B.length;M++){var L=B[M];F[L]=k(C[L],L,C,M)}return F}function f(C,k,F){var B,M,L={};try{for(var q=t.__values(o(C)),G=q.next();!G.done;G=q.next()){var ne=G.value,ce=C[ne];!F(ce)||(L[ne]=k(ce,ne,C))}}catch(Te){B={error:Te}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(B)throw B.error}}return L}var p=function(C){return function(k){var F,B,M=k;try{for(var L=t.__values(C),q=L.next();!q.done;q=L.next()){var G=q.value;M=M[G]}}catch(ne){F={error:ne}}finally{try{q&&!q.done&&(B=L.return)&&B.call(L)}finally{if(F)throw F.error}}return M}};function h(C,k){return function(F){var B,M,L=F;try{for(var q=t.__values(C),G=q.next();!G.done;G=q.next()){var ne=G.value;L=L[k][ne]}}catch(ce){B={error:ce}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(B)throw B.error}}return L}}function g(C){if(!C)return[[]];if(z(C))return[[C]];var k=b(o(C).map(function(F){var B=C[F];return typeof B!="string"&&(!B||!Object.keys(B).length)?[[F]]:g(C[F]).map(function(M){return[F].concat(M)})}));return k}function b(C){var k;return(k=[]).concat.apply(k,t.__spreadArray([],t.__read(C),!1))}function y(C){return O(C)?C:[C]}function m(C){return C===void 0?[]:y(C)}function w(C,k,F){var B,M;if(D(C))return C(k,F.data);var L={};try{for(var q=t.__values(Object.keys(C)),G=q.next();!G.done;G=q.next()){var ne=G.value,ce=C[ne];D(ce)?L[ne]=ce(k,F.data):L[ne]=ce}}catch(Te){B={error:Te}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(B)throw B.error}}return L}function S(C){return/^(done|error)\./.test(C)}function _(C){return!!(C instanceof Promise||C!==null&&(D(C)||typeof C=="object")&&D(C.then))}function N(C){return C!==null&&typeof C=="object"&&"transition"in C&&typeof C.transition=="function"}function x(C,k){var F,B,M=t.__read([[],[]],2),L=M[0],q=M[1];try{for(var G=t.__values(C),ne=G.next();!ne.done;ne=G.next()){var ce=ne.value;k(ce)?L.push(ce):q.push(ce)}}catch(Te){F={error:Te}}finally{try{ne&&!ne.done&&(B=G.return)&&B.call(G)}finally{if(F)throw F.error}}return[L,q]}function A(C,k){return v(C.states,function(F,B){if(!!F){var M=(z(k)?void 0:k[B])||(F?F.current:void 0);if(!!M)return{current:M,states:A(F,M)}}})}function $(C,k){return{current:k,states:A(C,k)}}function R(C,k,F,B){a.IS_PRODUCTION||e.warn(!!C,"Attempting to update undefined context");var M=C&&F.reduce(function(L,q){var G,ne,ce=q.assignment,Te={state:B,action:q,_event:k},V={};if(D(ce))V=ce(L,k.data,Te);else try{for(var U=t.__values(o(ce)),We=U.next();!We.done;We=U.next()){var Zt=We.value,Zr=ce[Zt];V[Zt]=D(Zr)?Zr(L,k.data,Te):Zr}}catch(el){G={error:el}}finally{try{We&&!We.done&&(ne=U.return)&&ne.call(U)}finally{if(G)throw G.error}}return Object.assign({},L,V)},C);return M}e.warn=function(){},a.IS_PRODUCTION||(e.warn=function(C,k){var F=C instanceof Error?C:void 0;if(!(!F&&C)&&console!==void 0){var B=["Warning: ".concat(k)];F&&B.push(F),console.warn.apply(console,B)}});function O(C){return Array.isArray(C)}function D(C){return typeof C=="function"}function z(C){return typeof C=="string"}function ve(C,k){if(!!C)return z(C)?{type:r.DEFAULT_GUARD_TYPE,name:C,predicate:k?k[C]:void 0}:D(C)?{type:r.DEFAULT_GUARD_TYPE,name:C.name,predicate:C}:C}function qe(C){try{return"subscribe"in C&&D(C.subscribe)}catch{return!1}}var le=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ge(C){try{return"__xstatenode"in C}catch{return!1}}function Pe(C){return!!C&&typeof C.send=="function"}var ue=function(){var C=0;return function(){return C++,C.toString(16)}}();function xe(C,k){return z(C)||typeof C=="number"?t.__assign({type:C},k):C}function Kt(C,k){if(!z(C)&&"$$type"in C&&C.$$type==="scxml")return C;var F=xe(C);return t.__assign({name:F.type,data:F,$$type:"scxml",type:"external"},k)}function Nt(C,k){var F=y(k).map(function(B){return typeof B=="undefined"||typeof B=="string"||Ge(B)?{target:B,event:C}:t.__assign(t.__assign({},B),{event:C})});return F}function T(C){if(!(C===void 0||C===r.TARGETLESS_KEY))return m(C)}function be(C,k,F){if(!a.IS_PRODUCTION){var B=C.stack?" Stacktrace was '".concat(C.stack,"'"):"";if(C===k)console.error("Missing onError handler for invocation '".concat(F,"', error was '").concat(C,"'.").concat(B));else{var M=k.stack?" Stacktrace was '".concat(k.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(F,"'. ")+"Original error: '".concat(C,"'. ").concat(B," Current error is '").concat(k,"'.").concat(M))}}}function qt(C,k,F,B,M){var L=C.options.guards,q={state:M,cond:k,_event:B};if(k.type===r.DEFAULT_GUARD_TYPE)return((L==null?void 0:L[k.name])||k.predicate)(F,B.data,q);var G=L[k.type];if(!G)throw new Error("Guard '".concat(k.type,"' is not implemented on machine '").concat(C.id,"'."));return G(F,B.data,q)}function Yr(C){return typeof C=="string"?{type:C}:C}function Yt(C,k,F){if(typeof C=="object")return C;var B=function(){};return{next:C,error:k||B,complete:F||B}}e.evaluateGuard=qt,e.flatten=b,e.getEventType=s,e.isActor=Pe,e.isArray=O,e.isBehavior=N,e.isBuiltInEvent=S,e.isFunction=D,e.isMachine=Ge,e.isObservable=qe,e.isPromiseLike=_,e.isStateLike=l,e.isString=z,e.keys=o,e.mapContext=w,e.mapFilterValues=f,e.mapValues=v,e.matchesState=i,e.nestedPath=h,e.normalizeTarget=T,e.partition=x,e.path=p,e.pathToStateValue=d,e.reportUnhandledExceptionOnInvocation=be,e.symbolObservable=le,e.toArray=m,e.toArrayStrict=y,e.toEventObject=xe,e.toGuard=ve,e.toInvokeSource=Yr,e.toObserver=Yt,e.toSCXMLEvent=Kt,e.toStatePath=u,e.toStatePaths=g,e.toStateValue=c,e.toTransitionConfigArray=Nt,e.uniqueId=ue,e.updateContext=R,e.updateHistoryStates=A,e.updateHistoryValue=$})(xo);var _n={};(function(e){Object.defineProperty(e,"__esModule",{value:!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={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(e.SpecialTargets||(e.SpecialTargets={}))})(_n);var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var me=_n,bf=me.ActionTypes.Start,Cf=me.ActionTypes.Stop,wf=me.ActionTypes.Raise,Sf=me.ActionTypes.Send,_f=me.ActionTypes.Cancel,xf=me.ActionTypes.NullEvent,Ef=me.ActionTypes.Assign,Af=me.ActionTypes.After,If=me.ActionTypes.DoneState,Nf=me.ActionTypes.Log,Pf=me.ActionTypes.Init,Tf=me.ActionTypes.Invoke,$f=me.ActionTypes.ErrorExecution,kf=me.ActionTypes.ErrorPlatform,Bf=me.ActionTypes.ErrorCustom,Ff=me.ActionTypes.Update,Rf=me.ActionTypes.Choose,Df=me.ActionTypes.Pure;fe.after=Af;fe.assign=Ef;fe.cancel=_f;fe.choose=Rf;fe.doneState=If;fe.error=Bf;fe.errorExecution=$f;fe.errorPlatform=kf;fe.init=Pf;fe.invoke=Tf;fe.log=Nf;fe.nullEvent=xf;fe.pure=Df;fe.raise=wf;fe.send=Sf;fe.start=bf;fe.stop=Cf;fe.update=Ff;Object.defineProperty(X,"__esModule",{value:!0});var ee=Sn,Of=Cr,K=xo,Ee=_n,he=fe,Vf=K.toSCXMLEvent({type:he.init});function xn(e,t){return t&&t[e]||void 0}function wr(e,t){var r;if(K.isString(e)||typeof e=="number"){var a=xn(e,t);K.isFunction(a)?r={type:e,exec:a}:a?r=a:r={type:e,exec:void 0}}else if(K.isFunction(e))r={type:e.name||e.toString(),exec:e};else{var a=xn(e.type,t);if(K.isFunction(a))r=ee.__assign(ee.__assign({},e),{exec:a});else if(a){var o=a.type||e.type;r=ee.__assign(ee.__assign(ee.__assign({},a),e),{type:o})}else r=e}return r}var En=function(e,t){if(!e)return[];var r=K.isArray(e)?e:[e];return r.map(function(a){return wr(a,t)})};function An(e){var t=wr(e);return ee.__assign(ee.__assign({id:K.isString(e)?e:t.id},t),{type:t.type})}function Uf(e){return K.isString(e)?{type:he.raise,event:e}:Ut(e,{to:Ee.SpecialTargets.Internal})}function Eo(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function Ut(e,t){return{to:t?t.to:void 0,type:he.send,event:K.isFunction(e)?e:K.toEventObject(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:K.isFunction(e)?e.name:K.getEventType(e)}}function Ao(e,t,r,a){var o={_event:r},i=K.toSCXMLEvent(K.isFunction(e.event)?e.event(t,r.data,o):e.event),s;if(K.isString(e.delay)){var u=a&&a[e.delay];s=K.isFunction(u)?u(t,r.data,o):u}else s=K.isFunction(e.delay)?e.delay(t,r.data,o):e.delay;var l=K.isFunction(e.to)?e.to(t,r.data,o):e.to;return ee.__assign(ee.__assign({},e),{to:l,_event:i,event:i.data,delay:s})}function In(e,t){return Ut(e,ee.__assign(ee.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function Mf(){return In(he.update)}function Lf(e,t){return Ut(e,ee.__assign(ee.__assign({},t),{to:function(r,a,o){var i=o._event;return i.origin}}))}var zf=function(e,t){return{context:e,event:t}};function jf(e,t){return e===void 0&&(e=zf),{type:he.log,label:t,expr:e}}var Io=function(e,t,r){return ee.__assign(ee.__assign({},e),{value:K.isString(e.expr)?e.expr:e.expr(t,r.data,{_event:r})})},Gf=function(e){return{type:he.cancel,sendId:e}};function Wf(e){var t=An(e);return{type:Ee.ActionTypes.Start,activity:t,exec:void 0}}function Hf(e){var t=K.isFunction(e)?e:An(e);return{type:Ee.ActionTypes.Stop,activity:t,exec:void 0}}function No(e,t,r){var a=K.isFunction(e.activity)?e.activity(t,r.data):e.activity,o=typeof a=="string"?{id:a}:a,i={type:Ee.ActionTypes.Stop,activity:o};return i}var Kf=function(e){return{type:he.assign,assignment:e}};function qf(e,t){var r=t?"#".concat(t):"";return"".concat(Ee.ActionTypes.After,"(").concat(e,")").concat(r)}function Yf(e,t){var r="".concat(Ee.ActionTypes.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Zf(e,t){var r="".concat(Ee.ActionTypes.DoneInvoke,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Xf(e,t){var r="".concat(Ee.ActionTypes.ErrorPlatform,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function Jf(e){return{type:Ee.ActionTypes.Pure,get:e}}function Qf(e,t){return Ut(function(r,a){return a},ee.__assign(ee.__assign({},t),{to:e}))}function ev(e,t){return In(function(r,a,o){return{type:he.error,data:K.isFunction(e)?e(r,a,o):e}},ee.__assign(ee.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function tv(e){return{type:Ee.ActionTypes.Choose,conds:e}}function Nn(e,t,r,a,o,i){i===void 0&&(i=!1);var s=ee.__read(i?[[],o]:K.partition(o,function(f){return f.type===he.assign}),2),u=s[0],l=s[1],c=u.length?K.updateContext(r,a,u,t):r,d=i?[r]:void 0,v=K.flatten(l.map(function(f){var p;switch(f.type){case he.raise:return Eo(f);case he.send:var h=Ao(f,c,a,e.options.delays);return Of.IS_PRODUCTION||K.warn(!K.isString(f.delay)||typeof h.delay=="number","No delay reference for delay expression '".concat(f.delay,"' was found on machine '").concat(e.id,"'")),h;case he.log:return Io(f,c,a);case he.choose:{var g=f,b=(p=g.conds.find(function(R){var O=K.toGuard(R.cond,e.options.guards);return!O||K.evaluateGuard(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!b)return[];var y=ee.__read(Nn(e,t,c,a,En(K.toArray(b),e.options.actions),i),2),m=y[0],w=y[1];return c=w,d==null||d.push(c),m}case he.pure:{var b=f.get(c,a.data);if(!b)return[];var S=ee.__read(Nn(e,t,c,a,En(K.toArray(b),e.options.actions),i),2),_=S[0],N=S[1];return c=N,d==null||d.push(c),_}case he.stop:return No(f,c,a);case he.assign:{c=K.updateContext(c,a,[f],t),d==null||d.push(c);break}default:var x=wr(f,e.options.actions),A=x.exec;if(A&&d){var $=d.length-1;x=ee.__assign(ee.__assign({},x),{exec:function(R){for(var O=[],D=1;D<arguments.length;D++)O[D-1]=arguments[D];A.apply(void 0,ee.__spreadArray([d[$]],ee.__read(O),!1))}})}return x}}).filter(function(f){return!!f}));return[v,c]}X.after=qf;var se=X.assign=Kf;X.cancel=Gf;X.choose=tv;X.done=Yf;X.doneInvoke=Zf;X.error=Xf;X.escalate=ev;X.forwardTo=Qf;X.getActionFunction=xn;X.initEvent=Vf;X.log=jf;X.pure=Jf;X.raise=Uf;X.resolveActions=Nn;X.resolveLog=Io;X.resolveRaise=Eo;X.resolveSend=Ao;X.resolveStop=No;X.respond=Lf;X.send=Ut;X.sendParent=In;X.sendUpdate=Mf;X.start=Wf;var rv=X.stop=Hf;X.toActionObject=wr;X.toActionObjects=En;X.toActivityDefinition=An;var nv=ke,av=Qt,ov=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iv=/^\w*$/;function sv(e,t){if(nv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||av(e)?!0:iv.test(e)||!ov.test(e)||t!=null&&e in Object(t)}var Pn=sv,lv=Le,uv=lv["__core-js_shared__"],cv=uv,Tn=cv,Po=function(){var e=/[^.]+$/.exec(Tn&&Tn.keys&&Tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dv(e){return!!Po&&Po in e}var fv=dv,vv=Function.prototype,pv=vv.toString;function mv(e){if(e!=null){try{return pv.call(e)}catch{}try{return e+""}catch{}}return""}var To=mv,hv=Jr,gv=fv,yv=ze,bv=To,Cv=/[\\^$.*+?()[\]{}|]/g,wv=/^\[object .+?Constructor\]$/,Sv=Function.prototype,_v=Object.prototype,xv=Sv.toString,Ev=_v.hasOwnProperty,Av=RegExp("^"+xv.call(Ev).replace(Cv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Iv(e){if(!yv(e)||gv(e))return!1;var t=hv(e)?Av:wv;return t.test(bv(e))}var Nv=Iv;function Pv(e,t){return e==null?void 0:e[t]}var Tv=Pv,$v=Nv,kv=Tv;function Bv(e,t){var r=kv(e,t);return $v(r)?r:void 0}var rt=Bv,Fv=rt,Rv=Fv(Object,"create"),Sr=Rv,$o=Sr;function Dv(){this.__data__=$o?$o(null):{},this.size=0}var Ov=Dv;function Vv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Uv=Vv,Mv=Sr,Lv="__lodash_hash_undefined__",zv=Object.prototype,jv=zv.hasOwnProperty;function Gv(e){var t=this.__data__;if(Mv){var r=t[e];return r===Lv?void 0:r}return jv.call(t,e)?t[e]:void 0}var Wv=Gv,Hv=Sr,Kv=Object.prototype,qv=Kv.hasOwnProperty;function Yv(e){var t=this.__data__;return Hv?t[e]!==void 0:qv.call(t,e)}var Zv=Yv,Xv=Sr,Jv="__lodash_hash_undefined__";function Qv(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xv&&t===void 0?Jv:t,this}var ep=Qv,tp=Ov,rp=Uv,np=Wv,ap=Zv,op=ep;function gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}gt.prototype.clear=tp;gt.prototype.delete=rp;gt.prototype.get=np;gt.prototype.has=ap;gt.prototype.set=op;var ip=gt;function sp(){this.__data__=[],this.size=0}var lp=sp;function up(e,t){return e===t||e!==e&&t!==t}var Mt=up,cp=Mt;function dp(e,t){for(var r=e.length;r--;)if(cp(e[r][0],t))return r;return-1}var _r=dp,fp=_r,vp=Array.prototype,pp=vp.splice;function mp(e){var t=this.__data__,r=fp(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():pp.call(t,r,1),--this.size,!0}var hp=mp,gp=_r;function yp(e){var t=this.__data__,r=gp(t,e);return r<0?void 0:t[r][1]}var bp=yp,Cp=_r;function wp(e){return Cp(this.__data__,e)>-1}var Sp=wp,_p=_r;function xp(e,t){var r=this.__data__,a=_p(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var Ep=xp,Ap=lp,Ip=hp,Np=bp,Pp=Sp,Tp=Ep;function yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}yt.prototype.clear=Ap;yt.prototype.delete=Ip;yt.prototype.get=Np;yt.prototype.has=Pp;yt.prototype.set=Tp;var xr=yt,$p=rt,kp=Le,Bp=$p(kp,"Map"),$n=Bp,ko=ip,Fp=xr,Rp=$n;function Dp(){this.size=0,this.__data__={hash:new ko,map:new(Rp||Fp),string:new ko}}var Op=Dp;function Vp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Up=Vp,Mp=Up;function Lp(e,t){var r=e.__data__;return Mp(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Er=Lp,zp=Er;function jp(e){var t=zp(this,e).delete(e);return this.size-=t?1:0,t}var Gp=jp,Wp=Er;function Hp(e){return Wp(this,e).get(e)}var Kp=Hp,qp=Er;function Yp(e){return qp(this,e).has(e)}var Zp=Yp,Xp=Er;function Jp(e,t){var r=Xp(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var Qp=Jp,em=Op,tm=Gp,rm=Kp,nm=Zp,am=Qp;function bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}bt.prototype.clear=em;bt.prototype.delete=tm;bt.prototype.get=rm;bt.prototype.has=nm;bt.prototype.set=am;var kn=bt,Bo=kn,om="Expected a function";function Bn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(om);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,a);return r.cache=i.set(o,s)||i,s};return r.cache=new(Bn.Cache||Bo),r}Bn.Cache=Bo;var im=Bn,sm=im,lm=500;function um(e){var t=sm(e,function(a){return r.size===lm&&r.clear(),a}),r=t.cache;return t}var cm=um,dm=cm,fm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vm=/\\(\\)?/g,pm=dm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fm,function(r,a,o,i){t.push(o?i.replace(vm,"$1"):a||r)}),t}),mm=pm,Fo=Jt,hm=en,gm=ke,ym=Qt,bm=1/0,Ro=Fo?Fo.prototype:void 0,Do=Ro?Ro.toString:void 0;function Oo(e){if(typeof e=="string")return e;if(gm(e))return hm(e,Oo)+"";if(ym(e))return Do?Do.call(e):"";var t=e+"";return t=="0"&&1/e==-bm?"-0":t}var Cm=Oo,wm=Cm;function Sm(e){return e==null?"":wm(e)}var Fn=Sm,_m=ke,xm=Pn,Em=mm,Am=Fn;function Im(e,t){return _m(e)?e:xm(e,t)?[e]:Em(Am(e))}var Ar=Im,Nm=Qt,Pm=1/0;function Tm(e){if(typeof e=="string"||Nm(e))return e;var t=e+"";return t=="0"&&1/e==-Pm?"-0":t}var Lt=Tm,$m=Ar,km=Lt;function Bm(e,t){t=$m(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[km(t[r++])];return r&&r==a?e:void 0}var Rn=Bm,Fm=Rn;function Rm(e,t,r){var a=e==null?void 0:Fm(e,t);return a===void 0?r:a}var Ae=Rm,Dm=rt,Om=Le,Vm=Dm(Om,"DataView"),Um=Vm,Mm=rt,Lm=Le,zm=Mm(Lm,"Promise"),jm=zm,Gm=rt,Wm=Le,Hm=Gm(Wm,"Set"),Km=Hm,qm=rt,Ym=Le,Zm=qm(Ym,"WeakMap"),Xm=Zm,Dn=Um,On=$n,Vn=jm,Un=Km,Mn=Xm,Vo=tt,Ct=To,Uo="[object Map]",Jm="[object Object]",Mo="[object Promise]",Lo="[object Set]",zo="[object WeakMap]",jo="[object DataView]",Qm=Ct(Dn),eh=Ct(On),th=Ct(Vn),rh=Ct(Un),nh=Ct(Mn),nt=Vo;(Dn&&nt(new Dn(new ArrayBuffer(1)))!=jo||On&&nt(new On)!=Uo||Vn&&nt(Vn.resolve())!=Mo||Un&&nt(new Un)!=Lo||Mn&&nt(new Mn)!=zo)&&(nt=function(e){var t=Vo(e),r=t==Jm?e.constructor:void 0,a=r?Ct(r):"";if(a)switch(a){case Qm:return jo;case eh:return Uo;case th:return Mo;case rh:return Lo;case nh:return zo}return t});var Go=nt,ah=Ja,oh=Go,ih=er,sh=ke,lh=at,uh=ot.exports,ch=nr,dh=rr,fh="[object Map]",vh="[object Set]",ph=Object.prototype,mh=ph.hasOwnProperty;function hh(e){if(e==null)return!0;if(lh(e)&&(sh(e)||typeof e=="string"||typeof e.splice=="function"||uh(e)||dh(e)||ih(e)))return!e.length;var t=oh(e);if(t==fh||t==vh)return!e.size;if(ch(e))return!ah(e).length;for(var r in e)if(mh.call(e,r))return!1;return!0}var Ln=hh,gh=xr;function yh(){this.__data__=new gh,this.size=0}var bh=yh;function Ch(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var wh=Ch;function Sh(e){return this.__data__.get(e)}var _h=Sh;function xh(e){return this.__data__.has(e)}var Eh=xh,Ah=xr,Ih=$n,Nh=kn,Ph=200;function Th(e,t){var r=this.__data__;if(r instanceof Ah){var a=r.__data__;if(!Ih||a.length<Ph-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Nh(a)}return r.set(e,t),this.size=r.size,this}var $h=Th,kh=xr,Bh=bh,Fh=wh,Rh=_h,Dh=Eh,Oh=$h;function wt(e){var t=this.__data__=new kh(e);this.size=t.size}wt.prototype.clear=Bh;wt.prototype.delete=Fh;wt.prototype.get=Rh;wt.prototype.has=Dh;wt.prototype.set=Oh;var zn=wt,Vh=rt,Uh=function(){try{var e=Vh(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wo=Uh,Ho=Wo;function Mh(e,t,r){t=="__proto__"&&Ho?Ho(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var jn=Mh,Lh=jn,zh=Mt;function jh(e,t,r){(r!==void 0&&!zh(e[t],r)||r===void 0&&!(t in e))&&Lh(e,t,r)}var Ko=jh;function Gh(e){return function(t,r,a){for(var o=-1,i=Object(t),s=a(t),u=s.length;u--;){var l=s[e?u:++o];if(r(i[l],l,i)===!1)break}return t}}var Wh=Gh,Hh=Wh,Kh=Hh(),qh=Kh,Gn={exports:{}};(function(e,t){var r=Le,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function l(c,d){if(d)return c.slice();var v=c.length,f=u?u(v):new c.constructor(v);return c.copy(f),f}e.exports=l})(Gn,Gn.exports);var Yh=Le,Zh=Yh.Uint8Array,qo=Zh,Yo=qo;function Xh(e){var t=new e.constructor(e.byteLength);return new Yo(t).set(new Yo(e)),t}var Jh=Xh,Qh=Jh;function eg(e,t){var r=t?Qh(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var tg=eg;function rg(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var ng=rg,ag=ze,Zo=Object.create,og=function(){function e(){}return function(t){if(!ag(t))return{};if(Zo)return Zo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),ig=og,sg=Xa,lg=sg(Object.getPrototypeOf,Object),Wn=lg,ug=ig,cg=Wn,dg=nr;function fg(e){return typeof e.constructor=="function"&&!dg(e)?ug(cg(e)):{}}var vg=fg,pg=at,mg=Ye;function hg(e){return mg(e)&&pg(e)}var gg=hg,yg=tt,bg=Wn,Cg=Ye,wg="[object Object]",Sg=Function.prototype,_g=Object.prototype,Xo=Sg.toString,xg=_g.hasOwnProperty,Eg=Xo.call(Object);function Ag(e){if(!Cg(e)||yg(e)!=wg)return!1;var t=bg(e);if(t===null)return!0;var r=xg.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Xo.call(r)==Eg}var Ig=Ag;function Ng(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Jo=Ng,Pg=jn,Tg=Mt,$g=Object.prototype,kg=$g.hasOwnProperty;function Bg(e,t,r){var a=e[t];(!(kg.call(e,t)&&Tg(a,r))||r===void 0&&!(t in e))&&Pg(e,t,r)}var Qo=Bg,Fg=Qo,Rg=jn;function Dg(e,t,r,a){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],l=a?a(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),o?Rg(r,u,l):Fg(r,u,l)}return r}var Og=Dg;function Vg(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Ug=Vg,Mg=ze,Lg=nr,zg=Ug,jg=Object.prototype,Gg=jg.hasOwnProperty;function Wg(e){if(!Mg(e))return zg(e);var t=Lg(e),r=[];for(var a in e)a=="constructor"&&(t||!Gg.call(e,a))||r.push(a);return r}var Hg=Wg,Kg=Za,qg=Hg,Yg=at;function Zg(e){return Yg(e)?Kg(e,!0):qg(e)}var Hn=Zg,Xg=Og,Jg=Hn;function Qg(e){return Xg(e,Jg(e))}var e0=Qg,ei=Ko,t0=Gn.exports,r0=tg,n0=ng,a0=vg,ti=er,ri=ke,o0=gg,i0=ot.exports,s0=Jr,l0=ze,u0=Ig,c0=rr,ni=Jo,d0=e0;function f0(e,t,r,a,o,i,s){var u=ni(e,r),l=ni(t,r),c=s.get(l);if(c){ei(e,r,c);return}var d=i?i(u,l,r+"",e,t,s):void 0,v=d===void 0;if(v){var f=ri(l),p=!f&&i0(l),h=!f&&!p&&c0(l);d=l,f||p||h?ri(u)?d=u:o0(u)?d=n0(u):p?(v=!1,d=t0(l,!0)):h?(v=!1,d=r0(l,!0)):d=[]:u0(l)||ti(l)?(d=u,ti(u)?d=d0(u):(!l0(u)||s0(u))&&(d=a0(l))):v=!1}v&&(s.set(l,d),o(d,l,a,i,s),s.delete(l)),ei(e,r,d)}var v0=f0,p0=zn,m0=Ko,h0=qh,g0=v0,y0=ze,b0=Hn,C0=Jo;function ai(e,t,r,a,o){e!==t&&h0(t,function(i,s){if(o||(o=new p0),y0(i))g0(e,t,s,r,ai,a,o);else{var u=a?a(C0(e,s),i,s+"",e,t,o):void 0;u===void 0&&(u=i),m0(e,s,u)}},b0)}var w0=ai;function S0(e){return e}var Kn=S0;function _0(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var x0=_0,E0=x0,oi=Math.max;function A0(e,t,r){return t=oi(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=oi(a.length-t,0),s=Array(i);++o<i;)s[o]=a[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=a[o];return u[t]=r(s),E0(e,this,u)}}var I0=A0;function N0(e){return function(){return e}}var P0=N0,T0=P0,ii=Wo,$0=Kn,k0=ii?function(e,t){return ii(e,"toString",{configurable:!0,enumerable:!1,value:T0(t),writable:!0})}:$0,B0=k0,F0=800,R0=16,D0=Date.now;function O0(e){var t=0,r=0;return function(){var a=D0(),o=R0-(a-r);if(r=a,o>0){if(++t>=F0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var V0=O0,U0=B0,M0=V0,L0=M0(U0),z0=L0,j0=Kn,G0=I0,W0=z0;function H0(e,t){return W0(G0(e,t,j0),e+"")}var K0=H0,q0=Mt,Y0=at,Z0=tr,X0=ze;function J0(e,t,r){if(!X0(r))return!1;var a=typeof t;return(a=="number"?Y0(r)&&Z0(t,r.length):a=="string"&&t in r)?q0(r[t],e):!1}var Q0=J0,ey=K0,ty=Q0;function ry(e){return ey(function(t,r){var a=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&ty(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++a<o;){var u=r[a];u&&e(t,u,a,i)}return t})}var ny=ry,ay=w0,oy=ny,iy=oy(function(e,t,r){ay(e,t,r)}),sy=iy,ly="__lodash_hash_undefined__";function uy(e){return this.__data__.set(e,ly),this}var cy=uy;function dy(e){return this.__data__.has(e)}var fy=dy,vy=kn,py=cy,my=fy;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new vy;++t<r;)this.add(e[t])}Ir.prototype.add=Ir.prototype.push=py;Ir.prototype.has=my;var hy=Ir;function gy(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var yy=gy;function by(e,t){return e.has(t)}var Cy=by,wy=hy,Sy=yy,_y=Cy,xy=1,Ey=2;function Ay(e,t,r,a,o,i){var s=r&xy,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var v=-1,f=!0,p=r&Ey?new wy:void 0;for(i.set(e,t),i.set(t,e);++v<u;){var h=e[v],g=t[v];if(a)var b=s?a(g,h,v,t,e,i):a(h,g,v,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Sy(t,function(y,m){if(!_y(p,m)&&(h===y||o(h,y,r,a,i)))return p.push(m)})){f=!1;break}}else if(!(h===g||o(h,g,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var si=Ay;function Iy(e){var t=-1,r=Array(e.size);return e.forEach(function(a,o){r[++t]=[o,a]}),r}var Ny=Iy;function Py(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Ty=Py,li=Jt,ui=qo,$y=Mt,ky=si,By=Ny,Fy=Ty,Ry=1,Dy=2,Oy="[object Boolean]",Vy="[object Date]",Uy="[object Error]",My="[object Map]",Ly="[object Number]",zy="[object RegExp]",jy="[object Set]",Gy="[object String]",Wy="[object Symbol]",Hy="[object ArrayBuffer]",Ky="[object DataView]",ci=li?li.prototype:void 0,qn=ci?ci.valueOf:void 0;function qy(e,t,r,a,o,i,s){switch(r){case Ky:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hy:return!(e.byteLength!=t.byteLength||!i(new ui(e),new ui(t)));case Oy:case Vy:case Ly:return $y(+e,+t);case Uy:return e.name==t.name&&e.message==t.message;case zy:case Gy:return e==t+"";case My:var u=By;case jy:var l=a&Ry;if(u||(u=Fy),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;a|=Dy,s.set(e,t);var d=ky(u(e),u(t),a,o,i,s);return s.delete(e),d;case Wy:if(qn)return qn.call(e)==qn.call(t)}return!1}var Yy=qy;function Zy(e,t){for(var r=-1,a=t.length,o=e.length;++r<a;)e[o+r]=t[r];return e}var di=Zy,Xy=di,Jy=ke;function Qy(e,t,r){var a=t(e);return Jy(e)?a:Xy(a,r(e))}var fi=Qy;function e1(e,t){for(var r=-1,a=e==null?0:e.length,o=0,i=[];++r<a;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}var t1=e1;function r1(){return[]}var vi=r1,n1=t1,a1=vi,o1=Object.prototype,i1=o1.propertyIsEnumerable,pi=Object.getOwnPropertySymbols,s1=pi?function(e){return e==null?[]:(e=Object(e),n1(pi(e),function(t){return i1.call(e,t)}))}:a1,mi=s1,l1=fi,u1=mi,c1=rn;function d1(e){return l1(e,c1,u1)}var f1=d1,hi=f1,v1=1,p1=Object.prototype,m1=p1.hasOwnProperty;function h1(e,t,r,a,o,i){var s=r&v1,u=hi(e),l=u.length,c=hi(t),d=c.length;if(l!=d&&!s)return!1;for(var v=l;v--;){var f=u[v];if(!(s?f in t:m1.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var b=s;++v<l;){f=u[v];var y=e[f],m=t[f];if(a)var w=s?a(m,y,f,t,e,i):a(y,m,f,e,t,i);if(!(w===void 0?y===m||o(y,m,r,a,i):w)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var S=e.constructor,_=t.constructor;S!=_&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return i.delete(e),i.delete(t),g}var g1=h1,Yn=zn,y1=si,b1=Yy,C1=g1,gi=Go,yi=ke,bi=ot.exports,w1=rr,S1=1,Ci="[object Arguments]",wi="[object Array]",Nr="[object Object]",_1=Object.prototype,Si=_1.hasOwnProperty;function x1(e,t,r,a,o,i){var s=yi(e),u=yi(t),l=s?wi:gi(e),c=u?wi:gi(t);l=l==Ci?Nr:l,c=c==Ci?Nr:c;var d=l==Nr,v=c==Nr,f=l==c;if(f&&bi(e)){if(!bi(t))return!1;s=!0,d=!1}if(f&&!d)return i||(i=new Yn),s||w1(e)?y1(e,t,r,a,o,i):b1(e,t,l,r,a,o,i);if(!(r&S1)){var p=d&&Si.call(e,"__wrapped__"),h=v&&Si.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,b=h?t.value():t;return i||(i=new Yn),o(g,b,r,a,i)}}return f?(i||(i=new Yn),C1(e,t,r,a,o,i)):!1}var E1=x1,A1=E1,_i=Ye;function xi(e,t,r,a,o){return e===t?!0:e==null||t==null||!_i(e)&&!_i(t)?e!==e&&t!==t:A1(e,t,r,a,xi,o)}var Ei=xi,I1=zn,N1=Ei,P1=1,T1=2;function $1(e,t,r,a){var o=r.length,i=o,s=!a;if(e==null)return!i;for(e=Object(e);o--;){var u=r[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){u=r[o];var l=u[0],c=e[l],d=u[1];if(s&&u[2]){if(c===void 0&&!(l in e))return!1}else{var v=new I1;if(a)var f=a(c,d,l,e,t,v);if(!(f===void 0?N1(d,c,P1|T1,a,v):f))return!1}}return!0}var k1=$1,B1=ze;function F1(e){return e===e&&!B1(e)}var Ai=F1,R1=Ai,D1=rn;function O1(e){for(var t=D1(e),r=t.length;r--;){var a=t[r],o=e[a];t[r]=[a,o,R1(o)]}return t}var V1=O1;function U1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ii=U1,M1=k1,L1=V1,z1=Ii;function j1(e){var t=L1(e);return t.length==1&&t[0][2]?z1(t[0][0],t[0][1]):function(r){return r===e||M1(r,e,t)}}var G1=j1;function W1(e,t){return e!=null&&t in Object(e)}var H1=W1,K1=Ar,q1=er,Y1=ke,Z1=tr,X1=Qr,J1=Lt;function Q1(e,t,r){t=K1(t,e);for(var a=-1,o=t.length,i=!1;++a<o;){var s=J1(t[a]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++a!=o?i:(o=e==null?0:e.length,!!o&&X1(o)&&Z1(s,o)&&(Y1(e)||q1(e)))}var eb=Q1,tb=H1,rb=eb;function nb(e,t){return e!=null&&rb(e,t,tb)}var ab=nb,ob=Ei,ib=Ae,sb=ab,lb=Pn,ub=Ai,cb=Ii,db=Lt,fb=1,vb=2;function pb(e,t){return lb(e)&&ub(t)?cb(db(e),t):function(r){var a=ib(r,e);return a===void 0&&a===t?sb(r,e):ob(t,a,fb|vb)}}var mb=pb;function hb(e){return function(t){return t==null?void 0:t[e]}}var gb=hb,yb=Rn;function bb(e){return function(t){return yb(t,e)}}var Cb=bb,wb=gb,Sb=Cb,_b=Pn,xb=Lt;function Eb(e){return _b(e)?wb(xb(e)):Sb(e)}var Ab=Eb,Ib=G1,Nb=mb,Pb=Kn,Tb=ke,$b=Ab;function kb(e){return typeof e=="function"?e:e==null?Pb:typeof e=="object"?Tb(e)?Nb(e[0],e[1]):Ib(e):$b(e)}var Bb=kb,Fb=Qo,Rb=Ar,Db=tr,Ni=ze,Ob=Lt;function Vb(e,t,r,a){if(!Ni(e))return e;t=Rb(t,e);for(var o=-1,i=t.length,s=i-1,u=e;u!=null&&++o<i;){var l=Ob(t[o]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=s){var d=u[l];c=a?a(d,l,u):void 0,c===void 0&&(c=Ni(d)?d:Db(t[o+1])?[]:{})}Fb(u,l,c),u=u[l]}return e}var Ub=Vb,Mb=Rn,Lb=Ub,zb=Ar;function jb(e,t,r){for(var a=-1,o=t.length,i={};++a<o;){var s=t[a],u=Mb(e,s);r(u,s)&&Lb(i,zb(s,e),u)}return i}var Gb=jb,Wb=di,Hb=Wn,Kb=mi,qb=vi,Yb=Object.getOwnPropertySymbols,Zb=Yb?function(e){for(var t=[];e;)Wb(t,Kb(e)),e=Hb(e);return t}:qb,Xb=Zb,Jb=fi,Qb=Xb,eC=Hn;function tC(e){return Jb(e,eC,Qb)}var rC=tC,nC=en,aC=Bb,oC=Gb,iC=rC;function sC(e,t){if(e==null)return{};var r=nC(iC(e),function(a){return[a]});return t=aC(t),oC(e,r,function(a,o){return t(a,o[0])})}var lC=sC;/*! *****************************************************************************
31
31
  Copyright (c) Microsoft Corporation.
32
32
 
33
33
  Permission to use, copy, modify, and/or distribute this software for any
@@ -40,15 +40,15 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
40
40
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
41
41
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42
42
  PERFORMANCE OF THIS SOFTWARE.
43
- ***************************************************************************** */var Ie=function(){return Ie=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ie.apply(this,arguments)};function iC(e){return e.toLowerCase()}var sC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],lC=/[^A-Z0-9]+/gi;function uC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?sC:r,o=t.stripRegexp,i=o===void 0?lC:o,s=t.transform,u=s===void 0?iC:s,l=t.delimiter,c=l===void 0?" ":l,d=Ni(Ni(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Ni(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function Yn(e,t){var r=e.charAt(0),a=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+a:""+r.toUpperCase()+a}function Ti(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function Pi(e,t){return t===void 0&&(t={}),uC(e,Ie({delimiter:"",transform:Yn},t))}function $i(e,t){return t===0?e.toLowerCase():Yn(e,t)}function cC(e,t){return t===0?e.toLowerCase():Ti(e)}function dC(e,t){return t===void 0&&(t={}),Pi(e,Ie({transform:$i},t))}function fC(e){return e.toLowerCase()}var vC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],pC=/[^A-Z0-9]+/gi;function mC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?vC:r,o=t.stripRegexp,i=o===void 0?pC:o,s=t.transform,u=s===void 0?fC:s,l=t.delimiter,c=l===void 0?" ":l,d=Bi(Bi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Bi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function hC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function ki(e){return hC(e.toLowerCase())}function Ri(e,t){return t===void 0&&(t={}),mC(e,Ie({delimiter:" ",transform:ki},t))}function gC(e){return e.toLowerCase()}var yC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],bC=/[^A-Z0-9]+/gi;function Zn(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?yC:r,o=t.stripRegexp,i=o===void 0?bC:o,s=t.transform,u=s===void 0?gC:s,l=t.delimiter,c=l===void 0?" ":l,d=Fi(Fi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Fi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function CC(e){return e.toUpperCase()}function wC(e,t){return t===void 0&&(t={}),Zn(e,Ie({delimiter:"_",transform:CC},t))}function _C(e){return e.toLowerCase()}var SC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],xC=/[^A-Z0-9]+/gi;function EC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?SC:r,o=t.stripRegexp,i=o===void 0?xC:o,s=t.transform,u=s===void 0?_C:s,l=t.delimiter,c=l===void 0?" ":l,d=Di(Di(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Di(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function Tr(e,t){return t===void 0&&(t={}),EC(e,Ie({delimiter:"."},t))}function AC(e,t){return t===void 0&&(t={}),Ri(e,Ie({delimiter:"-"},t))}function IC(e,t){return t===void 0&&(t={}),Tr(e,Ie({delimiter:"-"},t))}function NC(e,t){return t===void 0&&(t={}),Tr(e,Ie({delimiter:"/"},t))}function TC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Oi(e,t){var r=e.toLowerCase();return t===0?TC(r):r}function PC(e,t){return t===void 0&&(t={}),Zn(e,Ie({delimiter:" ",transform:Oi},t))}function $C(e,t){return t===void 0&&(t={}),Tr(e,Ie({delimiter:"_"},t))}var BC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",camelCaseTransform:$i,camelCaseTransformMerge:cC,camelCase:dC,capitalCaseTransform:ki,capitalCase:Ri,constantCase:wC,dotCase:Tr,headerCase:AC,noCase:Zn,paramCase:IC,pascalCaseTransform:Yn,pascalCaseTransformMerge:Ti,pascalCase:Pi,pathCase:NC,sentenceCaseTransform:Oi,sentenceCase:PC,snakeCase:$C}),kC=ul(BC);const Pr=kC,RC=function(e,t,r){return Object.keys(e||{}).reduce((a,o)=>{let i=e[o];return t(a,i,o,e)},r)},Xn=function(e,t){Object.keys(e||{}).forEach(r=>{let a=e[r];t(a,r)})},FC=function(e){return Object.assign(new e.constructor,e)},$r=function(e){if(e==null||typeof e!="object")return e;if(e instanceof Array)return e.reduce((t,r,a)=>(t[a]=$r(r),t),[]);if(e instanceof Object)return Object.keys(e||{}).reduce((t,r)=>(t[r]=$r(e[r]),t),{})},Vi=function(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")},DC=function(e){return typeof e=="string"||e instanceof String},OC=function(e){return Array.isArray(e)},VC=function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length};function UC(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const MC=function(e,t){if(typeof t!="function")throw"filter is not a function";return typeof e=="undefined"?[]:e.filter(t)},LC=function(){let e=Array.prototype.slice.call(arguments);return e.unshift({}),Object.assign(...e)},zC=function(e,...t){var r=new Set(t);for(let a=e.length-1;a>=0;a--)r.has(e[a])&&e.splice(a,1)},jC=function(e){return e?e[0].toUpperCase()+e.substr(1):""},Ui=function(e,t){return Vi(t)?Object.keys(t).every(r=>Ui(e[r],t[r])):e==t},GC=function(e){let t=$r(e);return a=>Ui(a,t)},WC={transform:Pr.camelCaseTransformMerge},HC=function(e,t){return(r,a)=>e(r,Object.assign({},WC,t,a))};var Mi={each:Xn,forEach:Xn,forIn:Xn,keys:Object.keys,clone:FC,cloneDeep:$r,extend:Object.assign,isString:DC,isArray:OC,isObject:Vi,isPlainObject:UC,isEmpty:VC,filter:MC,reduce:RC,assign:LC,upperFirst:jC,camelCase:HC(Pr.camelCase),snakeCase:Pr.snakeCase,kebabCase:Pr.paramCase,pull:zC,matches:GC},Br=Mi;function Li(e,t,r){if(e==null)return{};var a,o,i,s,u,l,c=e[0]||{},d=1,v=e.length;for(r=r||[],typeof c!="object"&&(c={});d<v;d++)if((u=e[d])!=null){for(s in u)if(!!u.hasOwnProperty(s)&&s!=="__proto__"&&(a=c[s],i=u[s],c!==i))if(i&&(Br.isPlainObject(i)||(o=Br.isArray(i)))){o?(o=!1,l=a&&Br.isArray(a)?a:[]):l=a&&Br.isPlainObject(a)?a:{};var f=r.slice(0);f.push(s),c[s]=Li([l,i],t,f)}else i!==void 0&&(a!=null&&typeof t=="function"&&t({target:c,copy:u,path:r,key:s}),c[s]=i)}return c}var KC=Li,zi=Mi;function ji(e,t){t=t||[];for(var r in e)e.hasOwnProperty(r)&&(zi.isPlainObject(e[r])&&"value"in e[r]?t.push(e[r]):zi.isPlainObject(e[r])&&ji(e[r],t));return t}var Gi=ji;function qC(e,t,r,a){var o=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}var YC=qC;function ZC(e){return function(t){return e==null?void 0:e[t]}}var XC=ZC,JC=XC,QC={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ew=JC(QC),tw=ew,rw=tw,nw=kn,aw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ow="\\u0300-\\u036f",iw="\\ufe20-\\ufe2f",sw="\\u20d0-\\u20ff",lw=ow+iw+sw,uw="["+lw+"]",cw=RegExp(uw,"g");function dw(e){return e=nw(e),e&&e.replace(aw,rw).replace(cw,"")}var fw=dw,vw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function pw(e){return e.match(vw)||[]}var mw=pw,hw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function gw(e){return hw.test(e)}var yw=gw,Wi="\\ud800-\\udfff",bw="\\u0300-\\u036f",Cw="\\ufe20-\\ufe2f",ww="\\u20d0-\\u20ff",_w=bw+Cw+ww,Hi="\\u2700-\\u27bf",Ki="a-z\\xdf-\\xf6\\xf8-\\xff",Sw="\\xac\\xb1\\xd7\\xf7",xw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ew="\\u2000-\\u206f",Aw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qi="A-Z\\xc0-\\xd6\\xd8-\\xde",Iw="\\ufe0e\\ufe0f",Yi=Sw+xw+Ew+Aw,Zi="['\u2019]",Xi="["+Yi+"]",Nw="["+_w+"]",Ji="\\d+",Tw="["+Hi+"]",Qi="["+Ki+"]",es="[^"+Wi+Yi+Ji+Hi+Ki+qi+"]",Pw="\\ud83c[\\udffb-\\udfff]",$w="(?:"+Nw+"|"+Pw+")",Bw="[^"+Wi+"]",ts="(?:\\ud83c[\\udde6-\\uddff]){2}",rs="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="["+qi+"]",kw="\\u200d",ns="(?:"+Qi+"|"+es+")",Rw="(?:"+_t+"|"+es+")",as="(?:"+Zi+"(?:d|ll|m|re|s|t|ve))?",os="(?:"+Zi+"(?:D|LL|M|RE|S|T|VE))?",is=$w+"?",ss="["+Iw+"]?",Fw="(?:"+kw+"(?:"+[Bw,ts,rs].join("|")+")"+ss+is+")*",Dw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ow="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vw=ss+is+Fw,Uw="(?:"+[Tw,ts,rs].join("|")+")"+Vw,Mw=RegExp([_t+"?"+Qi+"+"+as+"(?="+[Xi,_t,"$"].join("|")+")",Rw+"+"+os+"(?="+[Xi,_t+ns,"$"].join("|")+")",_t+"?"+ns+"+"+as,_t+"+"+os,Ow,Dw,Ji,Uw].join("|"),"g");function Lw(e){return e.match(Mw)||[]}var zw=Lw,jw=mw,Gw=yw,Ww=kn,Hw=zw;function Kw(e,t,r){return e=Ww(e),t=r?void 0:t,t===void 0?Gw(e)?Hw(e):jw(e):e.match(t)||[]}var qw=Kw,Yw=YC,Zw=fw,Xw=qw,Jw="['\u2019]",Qw=RegExp(Jw,"g");function e_(e){return function(t){return Yw(Xw(Zw(t).replace(Qw,"")),e,"")}}var t_=e_,r_=t_,n_=r_(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),a_=n_;const o_={opening_character:"{",closing_character:"}",separator:"."};var i_=o_;const s_=i_;function l_(e={}){const t=Object.assign({},s_,e);return new RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")}var u_=l_;const c_=u_;function ls(e,t={}){const r=t instanceof RegExp?t:c_(t);if(typeof e=="string")return r.test(e);if(typeof e=="object"){let a=!1;for(const o in e)if(e.hasOwnProperty(o)){const i=e[o];if(ls(i,t)){a=!0;break}}return a}return!1}var d_=ls,f_=Object.defineProperty,v_=Object.defineProperties,p_=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,m_=Object.prototype.hasOwnProperty,h_=Object.prototype.propertyIsEnumerable,cs=(e,t,r)=>t in e?f_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ie=(e,t)=>{for(var r in t||(t={}))m_.call(t,r)&&cs(e,r,t[r]);if(us)for(var r of us(t))h_.call(t,r)&&cs(e,r,t[r]);return e},kr=(e,t)=>v_(e,p_(t)),g_=(e,t)=>()=>(e&&(t=e(e=0)),t),j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E=g_(()=>{}),y_=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}}}),b_=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}}}),C_=j((e,t)=>{E(),t.exports={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.tertiary.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.tertiary.value}"},color:{value:"{colors.font.inverse.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}}},menu:{borderWidth:{value:0},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{borderWidth:{value:0},borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}}}}),w_=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}}}),__=j((e,t)=>{E(),t.exports={cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}}},icon:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),S_=j((e,t)=>{E(),t.exports={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}}}),x_=j((e,t)=>{E(),t.exports={height:{value:"100%"}}}),E_=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}}}),A_=j((e,t)=>{E(),t.exports={display:{value:"block"},backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},width:{value:"100%"},item:{marginTop:{value:"1px"},boxShadow:{value:"{shadows.small.value}"},borderBottomLeftRadius:{value:"{radii.medium.value}"},borderBottomRightRadius:{value:"{radii.medium.value}"},borderTopLeftRadius:{value:"{radii.medium.value}"},borderTopRightRadius:{value:"{radii.medium.value}"},borderStartStartRadius:{value:"{radii.medium.value}"},borderStartEndRadius:{value:"{radii.medium.value}"},borderEndStartRadius:{value:"{radii.medium.value}"},borderEndEndRadius:{value:"{radii.medium.value}"},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},header:{boxShadow:{value:{offsetX:"0",offsetY:"1px",blurRadius:"0",color:"{colors.overlay.20.value}"}}},trigger:{minHeight:{value:"3rem"},paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},alignItems:{value:"center"},justifyContent:{value:"space-between"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}}},content:{paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},text:{color:{value:"{colors.font.secondary.value}"},paddingBlockStart:{value:"{space.medium.value}"},paddingBlockEnd:{value:"{space.medium.value}"}},_open:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}},_closed:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},icon:{transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}}),I_=j((e,t)=>{E(),t.exports={gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}}}),N_=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderBlockEnd:{value:"{borderWidths.small.value} solid {colors.border.primary.value}"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.focus.value}"}}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.error.value}"}}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.error.value}"}}}}}}),T_=j((e,t)=>{E(),t.exports={gap:{value:0},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}}}),P_=j((e,t)=>{E(),t.exports={error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}}}),$_=j((e,t)=>{E(),t.exports={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}}}),B_=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1.25},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}}}}),k_=j((e,t)=>{E(),t.exports={lineHeight:{value:1},height:{value:"1em"}}}),R_=j((e,t)=>{E(),t.exports={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}}}),F_=j((e,t)=>{E(),t.exports={active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}}}),D_=j((e,t)=>{E(),t.exports={width:{value:"{fontSizes.xxl.value}"},height:{value:"{fontSizes.xxl.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},height:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{height:{value:"{fontSizes.xxxs.value}"},strokeWidth:{value:"{fontSizes.xxxs.value}"}},large:{height:{value:"{fontSizes.xs.value}"},strokeWidth:{value:"{fontSizes.xs.value}"}}}}}),O_=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:0},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}}}),V_=j((e,t)=>{E(),t.exports={current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}}}),U_=j((e,t)=>{E(),t.exports={}}),M_=j((e,t)=>{E(),t.exports={borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}}}),L_=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.white.value}"},backgroundColor:{value:"{colors.white.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.brand.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),z_=j((e,t)=>{E(),t.exports={large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.brand.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}}}),j_=j((e,t)=>{E(),t.exports={paddingInlineEnd:{value:"{space.xxl.value}"},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"}},option:{backgroundColor:{value:"{colors.background.primary.value}"}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"}},large:{minWidth:{value:"7.5rem"}}}}),G_=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"}}}),W_=j((e,t)=>{E(),t.exports={paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.small.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"3px",color:"{colors.border.focus.value}"}}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}}}),H_=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"},input:{textAlign:{value:"center"}}}}),K_=j((e,t)=>{E(),t.exports={disabled:{opacity:{value:"{opacities.60.value}"}},focused:{shadow:{value:"{shadows.small.value}"}},label:{padding:{value:"{space.xs.value}"}},large:{font:{size:{value:"{fontSizes.large.value}"}}},small:{font:{size:{value:"{fontSizes.small.value}"}}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.brand.primary.60.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"}}}}),q_=j((e,t)=>{E(),t.exports={borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}}}),Y_=j((e,t)=>{E(),t.exports={backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{color:{value:"{colors.font.hover.value}"}},_focus:{color:{value:"{colors.font.focus.value}"}},_active:{color:{value:"{colors.font.interactive.value}"},borderColor:{value:"{colors.font.interactive.value}"},backgroundColor:{value:"transparent"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}}}}}),Z_=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}}}),X_=j((e,t)=>{E(),t.exports={borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.overlay.50.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.secondary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.overlay.50.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.background.tertiary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.white.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"}},_hover:{borderColor:{value:"{colors.brand.primary.60.value}"},backgroundColor:{value:"{colors.brand.primary.60.value}"}}}},link:{color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"}}}}}}),J_=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}}),Q_=j((e,t)=>{E(),t.exports={alert:y_(),badge:b_(),button:C_(),card:w_(),checkbox:__(),checkboxfield:S_(),countrycodeselect:x_(),divider:E_(),expander:A_(),field:I_(),fieldcontrol:N_(),fieldgroup:T_(),fieldmessages:P_(),flex:$_(),heading:B_(),icon:k_(),image:R_(),link:F_(),loader:D_(),menu:O_(),pagination:V_(),phonenumberfield:U_(),placeholder:M_(),radio:L_(),rating:z_(),select:j_(),selectfield:G_(),sliderfield:W_(),stepperfield:H_(),switchfield:K_(),table:q_(),tabs:Y_(),text:Z_(),togglebutton:X_(),togglebuttongroup:J_()}});E();E();E();E();E();var ds=(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",e))(ds||{}),Jn=["username","email","phone_number"];E();var ye={birthdate:{label:"Birthdate",placeholder:"Birthdate",type:"date",autocomplete:"bday"},confirmation_code:{label:"Confirmation Code",placeholder:"Code",type:"text",autocomplete:"one-time-code"},email:{label:"Email",type:"email",placeholder:"Email",autocomplete:"username"},family_name:{label:"Family Name",placeholder:"Family Name",type:"text",autocomplete:"family-name"},given_name:{label:"Given Name",placeholder:"Given Name",type:"text",autocomplete:"given-name"},middle_name:{label:"Middle Name",placeholder:"Middle Name",type:"text",autocomplete:"additional-name"},name:{label:"Name",placeholder:"Name",type:"text",autocomplete:"name"},nickname:{label:"Nickname",placeholder:"Nickname",type:"text",autocomplete:"tel"},password:{label:"Password",placeholder:"Password",type:"password",autocomplete:"password"},phone_number:{label:"Phone Number",placeholder:"Phone",type:"tel",autocomplete:"tel"},preferred_username:{label:"Preferred Username",placeholder:"Preferred Username",type:"text"},profile:{label:"Profile",placeholder:"Profile",type:"url",autocomplete:"url"},website:{label:"Website",placeholder:"Website",type:"url",autocomplete:"url"},username:{label:"Username",type:"text",placeholder:"Username",autocomplete:"username"}},fs=(e=>(e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google",e))(fs||{}),vs=(e,t)=>{var r,a,o,i,s;let u=(r=e.config)==null?void 0:r.loginMechanisms,l=(o=(a=e.actorRef)==null?void 0:a.context)==null?void 0:o.validationError.username;if(Jn.includes(t))return{label:ye[t].label,type:ye[t].type,error:l};let c="text",d=u.filter(v=>pd(Jn,v)).map(v=>{var f,p;return(p=(f=ye[v])==null?void 0:f.label)!=null?p:ye.username.label}).join(" or ");return u.length===1&&(c=(s=(i=ye[u[0]])==null?void 0:i.type)!=null?s:"text"),{label:d,type:c,error:l}},Re=e=>{var t;return(t=e.context.actorRef)==null?void 0:t.getSnapshot()},zt=e=>{var t;return(t=Re(e))==null?void 0:t.context},eS=e=>{let t=r=>a=>e({type:r,data:a});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")}},tS=e=>{var t,r;let a=(t=e.context)==null?void 0:t.user,o=Re(e),i=zt(e),s=i==null?void 0:i.remoteError,u=ie({},i==null?void 0:i.validationError),l=i==null?void 0:i.codeDeliveryDetails,c=Object.keys(u).length>0,d=e.hasTag("pending")||((r=Re(e))==null?void 0:r.hasTag("pending")),v=(()=>{switch(!0){case e.matches("idle"):return"idle";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(o==null?void 0:o.matches("confirmSignUp")):return"confirmSignUp";case(o==null?void 0:o.matches("confirmSignIn")):return"confirmSignIn";case(o==null?void 0:o.matches("setupTOTP")):return"setupTOTP";case(o==null?void 0:o.matches("signIn")):return"signIn";case(o==null?void 0:o.matches("signUp")):return"signUp";case(o==null?void 0:o.matches("forceNewPassword")):return"forceNewPassword";case(o==null?void 0:o.matches("resetPassword")):return"resetPassword";case(o==null?void 0:o.matches("confirmResetPassword")):return"confirmResetPassword";case(o==null?void 0:o.matches("verifyUser")):return"verifyUser";case(o==null?void 0:o.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}})();return{error:s,hasValidationErrors:c,isPending:d,route:v,user:a,validationErrors:u,codeDeliveryDetails:l}},ps=({send:e,state:t})=>{let r=eS(e),a=tS(t);return ie(ie({},r),a)};E();E();E();var ms=["+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"];E();E();E();E();var rS={"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"};E();var nS={"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"};E();var aS={"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",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","Confirmation Code":"C\xF3digo de confirmaci\xF3n","Create a new account":"Crear una cuenta nueva",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","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","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo","Sign In":"Iniciar sesi\xF3n","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta",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"};E();var oS={"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"};E();var iS={"Account recovery requires verified contact information":"Ripristino del conto richiede un account verificati","An account with the given email already exists.":"Un account con questa email esiste gi\xE0.","Back to Sign In":"Torna alla Accesso","Change Password":"Cambia la password",Code:"Codice",Confirm:"Conferma","Confirm a Code":"Codice Conferma","Confirm Password":"Conferma la password","Confirm Sign In":"Conferma di applicazione","Confirm Sign Up":"Registrazione Conferma","Confirmation Code":"Codice di verifica","Create a new account":"Creare un nuovo account","Create account":"Registrati","Create Account":"Crea account",Email:"E-mail","Enter your password":"Inserire la 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":"Utilizzo non valido Telefonummern formattare un numero nel formato :. 12.345.678,9 mille","Lost your code?":"Perso codice?","New Password":"Nuova password",or:"o","No account? ":"Nessun account?",Password:"Password","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Phone Number":"Numero di telefono","Resend Code":"Codice Rispedisci","Reset password":"Ripristina password","Reset your password":"Resetta password","Send Code":"Invia codice","Sign in":"Accesso","Sign In":"Accesso","Sign in to your account":"Accedi con il tuo account a","Sign Out":"Esci","Sign Up":"Iscriviti",Skip:"Salta",Submit:"Sottoscrivi","User already exists":"Questo utente esiste gi\xE0","User does not exist":"Questo utente non esiste",Username:"Nome utente","Username cannot be empty":"Nome utente non pu\xF2 essere vuoto",Verify:"Verifica","Verify Contact":"Contatto verifica"};E();var sS={"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
44
- +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"};E();var lS={"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"};E();var uS={"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"};E();var cS={"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"};E();var dS={"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"};E();var fS={"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":"\u6539\u53D8\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"};E();var vS={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"};ie({},rS);ie({},nS);ie({},aS);ie({},oS);ie({},iS);ie({},sS);ie({},lS);ie({},uS);ie({},cS);ie({},dS);ie({},fS);var pS=ie({},vS);ie({},pS);function T(e){return ae.I18n.get(e)}function mS(e){return ae.I18n.get(e)!==e}E();E();E();var Rr=e=>Qf(e),hS=se({attributeToVerify:e=>{}}),gS=se({challengeName:e=>{}}),Qn=se({remoteError:e=>""}),ea=se({formValues:e=>({})}),ta=se({touched:e=>({})}),yS=se({unverifiedAttributes:e=>{}}),bS=se({username:e=>{}}),ra=se({validationError:e=>({})}),CS=se({challengeName:(e,t)=>{var r;return(r=t.data)==null?void 0:r.challengeName}}),wS=se({redirectIntent:e=>"confirmPasswordReset"}),_S=se({redirectIntent:e=>"confirmSignUp"}),hs=se({authAttributes:(e,t)=>{var r,a;let[o]=e.loginMechanisms,i=(r=e.formValues[o])!=null?r:e.formValues.username,s=(a=e.formValues)==null?void 0:a.password;return{username:i,password:s}}}),na=se({validationError:(e,t)=>t.data}),aa=se({remoteError:(e,t)=>{var r;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((r=t.data)==null?void 0:r.message)||t.data}}),SS=se({unverifiedAttributes:(e,t)=>t.data.unverified}),gs=se({user:(e,t)=>t.data.user||t.data}),xS=se({username:(e,t)=>e.formValues.username}),ES=se({codeDeliveryDetails:(e,t)=>t.data.codeDeliveryDetails}),AS=se({authAttributes:(e,t)=>({username:e.formValues.username})}),oa=se({formValues:(e,t)=>{let{name:r,value:a}=t.data;return kr(ie({},e.formValues),{[r]:a})}}),ia=se({touched:(e,t)=>{let{name:r}=t.data;return kr(ie({},e.touched),{[`${r}`]:!0})}});E();E();E();var sa=async(e,t,r)=>{let a=await Promise.all(r.map(i=>i(e,t))),o=ay({},...a);return Mn(o)?Promise.resolve():Promise.reject(o)};E();var la={async getAmplifyConfig(){return ae.Amplify.configure()},async getCurrentUser(){return ae.Auth.currentAuthenticatedUser()},async handleSignUp(e){return ae.Auth.signUp(e)},async handleSignIn({username:e,password:t}){return ae.Auth.signIn(e,t)},async handleConfirmSignIn({user:e,code:t,mfaType:r}){return ae.Auth.confirmSignIn(e,t,r)},async handleConfirmSignUp({username:e,code:t}){return await ae.Auth.confirmSignUp(e,t)},async handleForgotPasswordSubmit({username:e,code:t,password:r}){return ae.Auth.forgotPasswordSubmit(e,t,r)},async handleForgotPassword(e){return ae.Auth.forgotPassword(e)},async validateCustomSignUp(e,t){},async validateConfirmPassword(e,t){let{password:r,confirm_password:a}=e,{confirm_password:o,password:i}=t;if(!r&&!a)return null;if((r||a)&&r!==a&&(o&&i||r.length>=6&&a.length>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){}};function IS({services:e}){return Vt({initial:"init",id:"signInActor",states:{init:{always:[{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["clearError",Y()],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"],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",Y()],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:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName"]},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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:Y(),on:{SUBMIT:"validate"}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:[Y(),"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:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["setUser","clearChallengeName"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"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:Y(),on:{SUBMIT:"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:t=>({user:t.user})},rejected:{type:"final",data:(t,r)=>({intent:t.redirectIntent,authAttributes:t.authAttributes})}}},{actions:{clearAttributeToVerify:hS,clearChallengeName:gS,clearError:Qn,clearFormValues:ea,clearTouched:ta,clearUnverifiedAttributes:yS,clearValidationError:ra,handleInput:oa,handleBlur:ia,setChallengeName:CS,setConfirmResetPasswordIntent:wS,setConfirmSignUpIntent:_S,setCredentials:hs,setFieldErrors:na,setRemoteError:aa,setUnverifiedAttributes:SS,setUser:gs,setUsernameAuthAttributes:AS},guards:{shouldConfirmSignIn:(t,r)=>{let a=Ae(r,"data.challengeName");return["SMS_MFA","SOFTWARE_TOKEN_MFA"].includes(a)},shouldRedirectToConfirmSignUp:(t,r)=>r.data.code==="UserNotConfirmedException",shouldRedirectToConfirmResetPassword:(t,r)=>r.data.code==="PasswordResetRequiredException",shouldSetupTOTP:(t,r)=>Ae(r,"data.challengeName")==="MFA_SETUP",shouldForceChangePassword:(t,r)=>Ae(r,"data.challengeName")==="NEW_PASSWORD_REQUIRED",shouldRequestVerification:(t,r)=>{let{unverified:a,verified:o}=r.data;return Mn(o)&&!Mn(a)}},services:{async signIn(t){let r=t.formValues,{country_code:a,username:o,password:i}=r;return await e.handleSignIn({username:(a!=null?a:"")+o,password:i})},async confirmSignIn(t,r){let{challengeName:a,user:o}=t,{confirmation_code:i}=t.formValues,s;return(a==="SMS_MFA"||a==="SOFTWARE_TOKEN_MFA")&&(s=a),await e.handleConfirmSignIn({user:o,code:i,mfaType:s})},async forceNewPassword(t,r){let{user:a,formValues:o}=t,{password:i}=o;return ae.Auth.completeNewPassword(a,i)},async verifyTotpToken(t,r){let{user:a}=t,{confirmation_code:o}=t.formValues;return ae.Auth.verifyTotpToken(a,o)},async federatedSignIn(t,r){let{provider:a}=r.data;return await ae.Auth.federatedSignIn({provider:a})},async checkVerifiedContact(t,r){let{user:a}=t;return await ae.Auth.verifiedContact(a)},async verifyUser(t,r){let{unverifiedAttr:a}=t.formValues,o=await ae.Auth.verifyCurrentUserAttribute(a);return t.attributeToVerify=a,o},async confirmVerifyUser(t,r){let{attributeToVerify:a}=t,{confirmation_code:o}=t.formValues;return await ae.Auth.verifyCurrentUserAttributeSubmit(a,o)},async validateFields(t,r){return sa(t.formValues,t.touched,[la.validateConfirmPassword])}}})}E();var NS=Vt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>ae.Auth.signOut()}});E();function TS({services:e}){return Vt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:[Y(),"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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:Qn,clearFormValues:ea,clearTouched:ta,clearUsername:bS,clearValidationError:ra,handleInput:oa,handleBlur:ia,setFieldErrors:na,setRemoteError:aa,setUsername:xS},guards:{shouldAutoConfirmReset:(t,r)=>!!(t.intent&&t.intent==="confirmPasswordReset")},services:{async resetPassword(t){var r,a;let o=(a=(r=t.formValues)==null?void 0:r.username)!=null?a:t.username;return e.handleForgotPassword(o)},async confirmResetPassword(t){let{username:r}=t,{confirmation_code:a,password:o}=t.formValues;return e.handleForgotPasswordSubmit({username:r,code:a,password:o})},async validateFields(t,r){return sa(t.formValues,t.touched,[la.validateConfirmPassword])}}})}E();function PS({services:e}){return Vt({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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:Y(),invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:[Y(),"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:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:Y(),invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:(t,r)=>{let{username:a,password:o}=t.authAttributes;return{user:Ae(r,"data.user")||t.user,authAttributes:{username:a,password:o}}}}}},{guards:{isUserAlreadyConfirmed:(t,r)=>r.data.message==="User is already confirmed.",shouldInitConfirmSignUp:t=>t.intent&&t.intent==="confirmSignUp",shouldSkipConfirm:(t,r)=>r.data.userConfirmed},actions:{clearError:Qn,clearFormValues:ea,clearTouched:ta,clearValidationError:ra,handleInput:oa,handleBlur:ia,setCredentials:hs,setFieldErrors:na,setRemoteError:aa,setCodeDeliveryDetails:ES,setUser:gs},services:{async signIn(t,r){let{user:a,authAttributes:o,formValues:i}=t,s=Ae(a,"username")||Ae(o,"username"),u=Ae(i,"password");return await ae.Auth.signIn(s,u)},async confirmSignUp(t,r){let{user:a,authAttributes:o,formValues:i}=t,{confirmation_code:s}=i,u=Ae(a,"username")||Ae(o,"username"),{password:l}=o;return await e.handleConfirmSignUp({username:u,code:s}),await ae.Auth.signIn(u,l)},async resendConfirmationCode(t,r){let{user:a,authAttributes:o}=t,i=Ae(a,"username")||Ae(o,"username");return ae.Auth.resendSignUp(i)},async federatedSignIn(t,r){let{provider:a}=r.data;return await ae.Auth.federatedSignIn({provider:a})},async signUp(t,r){let{formValues:a,loginMechanisms:o}=t,[i]=o!=null?o:["username"],s;a.phone_number&&(s=`${a.country_code}${a.phone_number}`.replace(/[^A-Z0-9+]/gi,""));let u=i==="phone_number"?s:a[i],{password:l}=a,c=oC(a,(d,v)=>{switch(v){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return v.startsWith("custom:")}});return await e.handleSignUp({username:u,password:l,attributes:kr(ie({},c),{phone_number:s})})},async validateSignUp(t,r){return sa(t.formValues,t.touched,[e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}}})}var ys="+1";function $S({initialState:e="signIn",loginMechanisms:t,signUpAttributes:r,socialProviders:a,services:o}){let i=ie(ie({},la),o);return Vt({id:"authenticator",initial:"idle",context:{user:void 0,config:{loginMechanisms:t,signUpAttributes:r,socialProviders:a},actorRef:void 0},states:{idle:{invoke:[{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:e},{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig"}}]},signIn:{entry:"spawnSignInActor",exit:Rr("signInActor"),on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",cond:"shouldRedirectToSignUp"},{target:"resetPassword",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setUser"}]}},signUp:{entry:"spawnSignUpActor",exit:Rr("signUpActor"),on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"idle",actions:"setUser"}}},resetPassword:{entry:"spawnResetPasswordActor",exit:Rr("resetPasswordActor"),on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":"signIn"}},signOut:{entry:"spawnSignOutActor",exit:[Rr("signOutActor"),"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:zd(s=>s.actorRef),setUser:tt({user:(s,u)=>u.data.user||u.data}),clearUser:tt({user:void 0}),applyAmplifyConfig:tt({config(s,u){var l,c,d,v,f,p,m,g;let b=(c=(l=u.data.aws_cognito_username_attributes)==null?void 0:l.map(_=>_.toLowerCase()))!=null?c:[],y=(v=(d=u.data.aws_cognito_verification_mechanisms)==null?void 0:d.map(_=>_.toLowerCase()))!=null?v:[],h=(p=(f=u.data.aws_cognito_signup_attributes)==null?void 0:f.map(_=>_.toLowerCase()))!=null?p:[],w=(g=(m=u.data.aws_cognito_social_providers)==null?void 0:m.map(_=>_.toLowerCase()))!=null?g:[];return b.length===0&&b.push("username"),{loginMechanisms:t!=null?t:b,signUpAttributes:r!=null?r:Array.from(new Set([...y,...h])),socialProviders:a!=null?a:w.sort()}}}),spawnSignInActor:tt({actorRef:(s,u)=>{var l,c,d,v,f;let p=IS({services:i}).withContext({authAttributes:(l=u.data)==null?void 0:l.authAttributes,user:(c=u.data)==null?void 0:c.user,intent:(d=u.data)==null?void 0:d.intent,country_code:ys,formValues:{},touched:{},validationError:{},loginMechanisms:(v=s.config)==null?void 0:v.loginMechanisms,socialProviders:(f=s.config)==null?void 0:f.socialProviders});return br(p,{name:"signInActor"})}}),spawnSignUpActor:tt({actorRef:(s,u)=>{var l,c,d,v,f;let p=PS({services:i}).withContext({authAttributes:(c=(l=u.data)==null?void 0:l.authAttributes)!=null?c:{},country_code:ys,intent:(d=u.data)==null?void 0:d.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(v=s.config)==null?void 0:v.loginMechanisms,socialProviders:(f=s.config)==null?void 0:f.socialProviders});return br(p,{name:"signUpActor"})}}),spawnResetPasswordActor:tt({actorRef:(s,u)=>{var l,c,d;let v=TS({services:i}).withContext({formValues:{},touched:{},intent:(l=u.data)==null?void 0:l.intent,username:(d=(c=u.data)==null?void 0:c.authAttributes)==null?void 0:d.username,validationError:{}});return br(v,{name:"resetPasswordActor"})}}),spawnSignOutActor:tt({actorRef:s=>{let u=NS.withContext({user:s.user});return br(u,{name:"signOutActor"})}})},guards:{shouldRedirectToSignUp:(s,u)=>{var l;return((l=u.data)==null?void 0:l.intent)?u.data.intent==="confirmSignUp":!1},shouldRedirectToResetPassword:(s,u)=>{var l;return((l=u.data)==null?void 0:l.intent)?u.data.intent==="confirmPasswordReset":!1}},services:i})}E();E();E();E();E();var BS={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var kS={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 6%, 70%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},brand:{primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.font.tertiary.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.brand.primary.80.value}"},hover:{value:"{colors.brand.primary.90.value}"},focus:{value:"{colors.brand.primary.100.value}"},active:{value:"{colors.brand.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.20.value}"},warning:{value:"{colors.orange.20.value}"},error:{value:"{colors.red.20.value}"},success:{value:"{colors.green.20.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},focus:{value:"{colors.brand.primary.100.value}"},error:{value:"{colors.red.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}};E();var RS={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
43
+ ***************************************************************************** */var Ie=function(){return Ie=Object.assign||function(t){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ie.apply(this,arguments)};function uC(e){return e.toLowerCase()}var cC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],dC=/[^A-Z0-9]+/gi;function fC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?cC:r,o=t.stripRegexp,i=o===void 0?dC:o,s=t.transform,u=s===void 0?uC:s,l=t.delimiter,c=l===void 0?" ":l,d=Pi(Pi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Pi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function Zn(e,t){var r=e.charAt(0),a=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+a:""+r.toUpperCase()+a}function Ti(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function $i(e,t){return t===void 0&&(t={}),fC(e,Ie({delimiter:"",transform:Zn},t))}function ki(e,t){return t===0?e.toLowerCase():Zn(e,t)}function vC(e,t){return t===0?e.toLowerCase():Ti(e)}function pC(e,t){return t===void 0&&(t={}),$i(e,Ie({transform:ki},t))}function mC(e){return e.toLowerCase()}var hC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],gC=/[^A-Z0-9]+/gi;function yC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?hC:r,o=t.stripRegexp,i=o===void 0?gC:o,s=t.transform,u=s===void 0?mC:s,l=t.delimiter,c=l===void 0?" ":l,d=Bi(Bi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Bi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function bC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Fi(e){return bC(e.toLowerCase())}function Ri(e,t){return t===void 0&&(t={}),yC(e,Ie({delimiter:" ",transform:Fi},t))}function CC(e){return e.toLowerCase()}var wC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],SC=/[^A-Z0-9]+/gi;function Xn(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?wC:r,o=t.stripRegexp,i=o===void 0?SC:o,s=t.transform,u=s===void 0?CC:s,l=t.delimiter,c=l===void 0?" ":l,d=Di(Di(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Di(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function _C(e){return e.toUpperCase()}function xC(e,t){return t===void 0&&(t={}),Xn(e,Ie({delimiter:"_",transform:_C},t))}function EC(e){return e.toLowerCase()}var AC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],IC=/[^A-Z0-9]+/gi;function NC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,a=r===void 0?AC:r,o=t.stripRegexp,i=o===void 0?IC:o,s=t.transform,u=s===void 0?EC:s,l=t.delimiter,c=l===void 0?" ":l,d=Oi(Oi(e,a,"$1\0$2"),i,"\0"),v=0,f=d.length;d.charAt(v)==="\0";)v++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(v,f).split("\0").map(u).join(c)}function Oi(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(a,o){return a.replace(o,r)},e)}function Pr(e,t){return t===void 0&&(t={}),NC(e,Ie({delimiter:"."},t))}function PC(e,t){return t===void 0&&(t={}),Ri(e,Ie({delimiter:"-"},t))}function TC(e,t){return t===void 0&&(t={}),Pr(e,Ie({delimiter:"-"},t))}function $C(e,t){return t===void 0&&(t={}),Pr(e,Ie({delimiter:"/"},t))}function kC(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Vi(e,t){var r=e.toLowerCase();return t===0?kC(r):r}function BC(e,t){return t===void 0&&(t={}),Xn(e,Ie({delimiter:" ",transform:Vi},t))}function FC(e,t){return t===void 0&&(t={}),Pr(e,Ie({delimiter:"_"},t))}var RC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",camelCaseTransform:ki,camelCaseTransformMerge:vC,camelCase:pC,capitalCaseTransform:Fi,capitalCase:Ri,constantCase:xC,dotCase:Pr,headerCase:PC,noCase:Xn,paramCase:TC,pascalCaseTransform:Zn,pascalCaseTransformMerge:Ti,pascalCase:$i,pathCase:$C,sentenceCaseTransform:Vi,sentenceCase:BC,snakeCase:FC}),DC=fl(RC);const Tr=DC,OC=function(e,t,r){return Object.keys(e||{}).reduce((a,o)=>{let i=e[o];return t(a,i,o,e)},r)},Jn=function(e,t){Object.keys(e||{}).forEach(r=>{let a=e[r];t(a,r)})},VC=function(e){return Object.assign(new e.constructor,e)},$r=function(e){if(e==null||typeof e!="object")return e;if(e instanceof Array)return e.reduce((t,r,a)=>(t[a]=$r(r),t),[]);if(e instanceof Object)return Object.keys(e||{}).reduce((t,r)=>(t[r]=$r(e[r]),t),{})},Ui=function(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")},UC=function(e){return typeof e=="string"||e instanceof String},MC=function(e){return Array.isArray(e)},LC=function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length};function zC(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}const jC=function(e,t){if(typeof t!="function")throw"filter is not a function";return typeof e=="undefined"?[]:e.filter(t)},GC=function(){let e=Array.prototype.slice.call(arguments);return e.unshift({}),Object.assign(...e)},WC=function(e,...t){var r=new Set(t);for(let a=e.length-1;a>=0;a--)r.has(e[a])&&e.splice(a,1)},HC=function(e){return e?e[0].toUpperCase()+e.substr(1):""},Mi=function(e,t){return Ui(t)?Object.keys(t).every(r=>Mi(e[r],t[r])):e==t},KC=function(e){let t=$r(e);return a=>Mi(a,t)},qC={transform:Tr.camelCaseTransformMerge},YC=function(e,t){return(r,a)=>e(r,Object.assign({},qC,t,a))};var Li={each:Jn,forEach:Jn,forIn:Jn,keys:Object.keys,clone:VC,cloneDeep:$r,extend:Object.assign,isString:UC,isArray:MC,isObject:Ui,isPlainObject:zC,isEmpty:LC,filter:jC,reduce:OC,assign:GC,upperFirst:HC,camelCase:YC(Tr.camelCase),snakeCase:Tr.snakeCase,kebabCase:Tr.paramCase,pull:WC,matches:KC},kr=Li;function zi(e,t,r){if(e==null)return{};var a,o,i,s,u,l,c=e[0]||{},d=1,v=e.length;for(r=r||[],typeof c!="object"&&(c={});d<v;d++)if((u=e[d])!=null){for(s in u)if(!!u.hasOwnProperty(s)&&s!=="__proto__"&&(a=c[s],i=u[s],c!==i))if(i&&(kr.isPlainObject(i)||(o=kr.isArray(i)))){o?(o=!1,l=a&&kr.isArray(a)?a:[]):l=a&&kr.isPlainObject(a)?a:{};var f=r.slice(0);f.push(s),c[s]=zi([l,i],t,f)}else i!==void 0&&(a!=null&&typeof t=="function"&&t({target:c,copy:u,path:r,key:s}),c[s]=i)}return c}var ZC=zi,ji=Li;function Gi(e,t){t=t||[];for(var r in e)e.hasOwnProperty(r)&&(ji.isPlainObject(e[r])&&"value"in e[r]?t.push(e[r]):ji.isPlainObject(e[r])&&Gi(e[r],t));return t}var Wi=Gi;function XC(e,t,r,a){var o=-1,i=e==null?0:e.length;for(a&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}var JC=XC;function QC(e){return function(t){return e==null?void 0:e[t]}}var ew=QC,tw=ew,rw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},nw=tw(rw),aw=nw,ow=aw,iw=Fn,sw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lw="\\u0300-\\u036f",uw="\\ufe20-\\ufe2f",cw="\\u20d0-\\u20ff",dw=lw+uw+cw,fw="["+dw+"]",vw=RegExp(fw,"g");function pw(e){return e=iw(e),e&&e.replace(sw,ow).replace(vw,"")}var mw=pw,hw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gw(e){return e.match(hw)||[]}var yw=gw,bw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Cw(e){return bw.test(e)}var ww=Cw,Hi="\\ud800-\\udfff",Sw="\\u0300-\\u036f",_w="\\ufe20-\\ufe2f",xw="\\u20d0-\\u20ff",Ew=Sw+_w+xw,Ki="\\u2700-\\u27bf",qi="a-z\\xdf-\\xf6\\xf8-\\xff",Aw="\\xac\\xb1\\xd7\\xf7",Iw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nw="\\u2000-\\u206f",Pw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yi="A-Z\\xc0-\\xd6\\xd8-\\xde",Tw="\\ufe0e\\ufe0f",Zi=Aw+Iw+Nw+Pw,Xi="['\u2019]",Ji="["+Zi+"]",$w="["+Ew+"]",Qi="\\d+",kw="["+Ki+"]",es="["+qi+"]",ts="[^"+Hi+Zi+Qi+Ki+qi+Yi+"]",Bw="\\ud83c[\\udffb-\\udfff]",Fw="(?:"+$w+"|"+Bw+")",Rw="[^"+Hi+"]",rs="(?:\\ud83c[\\udde6-\\uddff]){2}",ns="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+Yi+"]",Dw="\\u200d",as="(?:"+es+"|"+ts+")",Ow="(?:"+St+"|"+ts+")",os="(?:"+Xi+"(?:d|ll|m|re|s|t|ve))?",is="(?:"+Xi+"(?:D|LL|M|RE|S|T|VE))?",ss=Fw+"?",ls="["+Tw+"]?",Vw="(?:"+Dw+"(?:"+[Rw,rs,ns].join("|")+")"+ls+ss+")*",Uw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lw=ls+ss+Vw,zw="(?:"+[kw,rs,ns].join("|")+")"+Lw,jw=RegExp([St+"?"+es+"+"+os+"(?="+[Ji,St,"$"].join("|")+")",Ow+"+"+is+"(?="+[Ji,St+as,"$"].join("|")+")",St+"?"+as+"+"+os,St+"+"+is,Mw,Uw,Qi,zw].join("|"),"g");function Gw(e){return e.match(jw)||[]}var Ww=Gw,Hw=yw,Kw=ww,qw=Fn,Yw=Ww;function Zw(e,t,r){return e=qw(e),t=r?void 0:t,t===void 0?Kw(e)?Yw(e):Hw(e):e.match(t)||[]}var Xw=Zw,Jw=JC,Qw=mw,eS=Xw,tS="['\u2019]",rS=RegExp(tS,"g");function nS(e){return function(t){return Jw(eS(Qw(t).replace(rS,"")),e,"")}}var aS=nS,oS=aS,iS=oS(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),sS=iS;const lS={opening_character:"{",closing_character:"}",separator:"."};var uS=lS;const cS=uS;function dS(e={}){const t=Object.assign({},cS,e);return new RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")}var fS=dS;const vS=fS;function us(e,t={}){const r=t instanceof RegExp?t:vS(t);if(typeof e=="string")return r.test(e);if(typeof e=="object"){let a=!1;for(const o in e)if(e.hasOwnProperty(o)){const i=e[o];if(us(i,t)){a=!0;break}}return a}return!1}var pS=us,mS=Object.defineProperty,hS=Object.defineProperties,gS=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,fs=(e,t,r)=>t in e?mS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ie=(e,t)=>{for(var r in t||(t={}))cs.call(t,r)&&fs(e,r,t[r]);if(Br)for(var r of Br(t))ds.call(t,r)&&fs(e,r,t[r]);return e},Fr=(e,t)=>hS(e,gS(t)),yS=(e,t)=>{var r={};for(var a in e)cs.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&Br)for(var a of Br(e))t.indexOf(a)<0&&ds.call(e,a)&&(r[a]=e[a]);return r},bS=(e,t)=>()=>(e&&(t=e(e=0)),t),j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E=bS(()=>{}),CS=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}}}),wS=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}}}),SS=j((e,t)=>{E(),t.exports={fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.tertiary.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.tertiary.value}"},color:{value:"{colors.font.inverse.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}}},menu:{borderWidth:{value:0},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{borderWidth:{value:0},borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}}}}),_S=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}}}),xS=j((e,t)=>{E(),t.exports={cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}}},icon:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),ES=j((e,t)=>{E(),t.exports={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}}}),AS=j((e,t)=>{E(),t.exports={height:{value:"100%"}}}),IS=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}}}),NS=j((e,t)=>{E(),t.exports={display:{value:"block"},backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},width:{value:"100%"},item:{marginTop:{value:"1px"},boxShadow:{value:"{shadows.small.value}"},borderBottomLeftRadius:{value:"{radii.medium.value}"},borderBottomRightRadius:{value:"{radii.medium.value}"},borderTopLeftRadius:{value:"{radii.medium.value}"},borderTopRightRadius:{value:"{radii.medium.value}"},borderStartStartRadius:{value:"{radii.medium.value}"},borderStartEndRadius:{value:"{radii.medium.value}"},borderEndStartRadius:{value:"{radii.medium.value}"},borderEndEndRadius:{value:"{radii.medium.value}"},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},header:{boxShadow:{value:{offsetX:"0",offsetY:"1px",blurRadius:"0",color:"{colors.overlay.20.value}"}}},trigger:{minHeight:{value:"3rem"},paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},alignItems:{value:"center"},justifyContent:{value:"space-between"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}}},content:{paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},text:{color:{value:"{colors.font.secondary.value}"},paddingBlockStart:{value:"{space.medium.value}"},paddingBlockEnd:{value:"{space.medium.value}"}},_open:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}},_closed:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},icon:{transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}}),PS=j((e,t)=>{E(),t.exports={gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}}}),TS=j((e,t)=>{E(),t.exports={borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderBlockEnd:{value:"{borderWidths.small.value} solid {colors.border.primary.value}"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.focus.value}"}}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.error.value}"}}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.error.value}"}}}}}}),$S=j((e,t)=>{E(),t.exports={gap:{value:0},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}}}),kS=j((e,t)=>{E(),t.exports={error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}}}),BS=j((e,t)=>{E(),t.exports={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}}}),FS=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},lineHeight:{value:1.25},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}}}}),RS=j((e,t)=>{E(),t.exports={lineHeight:{value:1},height:{value:"1em"}}}),DS=j((e,t)=>{E(),t.exports={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}}}),OS=j((e,t)=>{E(),t.exports={active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}}}),VS=j((e,t)=>{E(),t.exports={width:{value:"{fontSizes.xxl.value}"},height:{value:"{fontSizes.xxl.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},height:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{height:{value:"{fontSizes.xxxs.value}"},strokeWidth:{value:"{fontSizes.xxxs.value}"}},large:{height:{value:"{fontSizes.xs.value}"},strokeWidth:{value:"{fontSizes.xs.value}"}}}}}),US=j((e,t)=>{E(),t.exports={backgroundColor:{value:"{colors.white.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:0},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}}}),MS=j((e,t)=>{E(),t.exports={current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.white.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}}}),LS=j((e,t)=>{E(),t.exports={}}),zS=j((e,t)=>{E(),t.exports={borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}}}),jS=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.white.value}"},backgroundColor:{value:"{colors.white.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.brand.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}}}),GS=j((e,t)=>{E(),t.exports={large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.brand.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}}}),WS=j((e,t)=>{E(),t.exports={paddingInlineEnd:{value:"{space.xxl.value}"},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"}},option:{backgroundColor:{value:"{colors.background.primary.value}"}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"}},large:{minWidth:{value:"7.5rem"}}}}),HS=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"}}}),KS=j((e,t)=>{E(),t.exports={paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.small.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"3px",color:"{colors.border.focus.value}"}}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}}}),qS=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"},input:{textAlign:{value:"center"}}}}),YS=j((e,t)=>{E(),t.exports={disabled:{opacity:{value:"{opacities.60.value}"}},focused:{shadow:{value:"{shadows.small.value}"}},label:{padding:{value:"{space.xs.value}"}},large:{font:{size:{value:"{fontSizes.large.value}"}}},small:{font:{size:{value:"{fontSizes.small.value}"}}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.brand.primary.60.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"}}}}),ZS=j((e,t)=>{E(),t.exports={borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}}}),XS=j((e,t)=>{E(),t.exports={backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{color:{value:"{colors.font.hover.value}"}},_focus:{color:{value:"{colors.font.focus.value}"}},_active:{color:{value:"{colors.font.interactive.value}"},borderColor:{value:"{colors.font.interactive.value}"},backgroundColor:{value:"transparent"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}}}}}),JS=j((e,t)=>{E(),t.exports={color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}}}),QS=j((e,t)=>{E(),t.exports={borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.overlay.50.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.secondary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.overlay.50.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.background.tertiary.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.white.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"}},_hover:{borderColor:{value:"{colors.brand.primary.60.value}"},backgroundColor:{value:"{colors.brand.primary.60.value}"}}}},link:{color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"}}}}}}),e_=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}}),t_=j((e,t)=>{E(),t.exports={alert:CS(),badge:wS(),button:SS(),card:_S(),checkbox:xS(),checkboxfield:ES(),countrycodeselect:AS(),divider:IS(),expander:NS(),field:PS(),fieldcontrol:TS(),fieldgroup:$S(),fieldmessages:kS(),flex:BS(),heading:FS(),icon:RS(),image:DS(),link:OS(),loader:VS(),menu:US(),pagination:MS(),phonenumberfield:LS(),placeholder:zS(),radio:jS(),rating:GS(),select:WS(),selectfield:HS(),sliderfield:KS(),stepperfield:qS(),switchfield:YS(),table:ZS(),tabs:XS(),text:JS(),togglebutton:QS(),togglebuttongroup:e_()}});E();E();E();E();E();var vs=(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",e))(vs||{}),Qn=["username","email","phone_number"];E();var ye={birthdate:{label:"Birthdate",placeholder:"Birthdate",type:"date",autocomplete:"bday"},confirmation_code:{label:"Confirmation Code",placeholder:"Code",type:"text",autocomplete:"one-time-code"},email:{label:"Email",type:"email",placeholder:"Email",autocomplete:"username"},family_name:{label:"Family Name",placeholder:"Family Name",type:"text",autocomplete:"family-name"},given_name:{label:"Given Name",placeholder:"Given Name",type:"text",autocomplete:"given-name"},middle_name:{label:"Middle Name",placeholder:"Middle Name",type:"text",autocomplete:"additional-name"},name:{label:"Name",placeholder:"Name",type:"text",autocomplete:"name"},nickname:{label:"Nickname",placeholder:"Nickname",type:"text",autocomplete:"tel"},password:{label:"Password",placeholder:"Password",type:"password",autocomplete:"password"},phone_number:{label:"Phone Number",placeholder:"Phone",type:"tel",autocomplete:"tel"},preferred_username:{label:"Preferred Username",placeholder:"Preferred Username",type:"text"},profile:{label:"Profile",placeholder:"Profile",type:"url",autocomplete:"url"},website:{label:"Website",placeholder:"Website",type:"url",autocomplete:"url"},username:{label:"Username",type:"text",placeholder:"Username",autocomplete:"username"}},ps=(e=>(e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google",e))(ps||{}),ms=(e,t)=>{var r,a,o,i,s;let u=(r=e.config)==null?void 0:r.loginMechanisms,l=(o=(a=e.actorRef)==null?void 0:a.context)==null?void 0:o.validationError.username;if(Qn.includes(t))return{label:ye[t].label,type:ye[t].type,error:l};let c="text",d=u.filter(v=>gd(Qn,v)).map(v=>{var f,p;return(p=(f=ye[v])==null?void 0:f.label)!=null?p:ye.username.label}).join(" or ");return u.length===1&&(c=(s=(i=ye[u[0]])==null?void 0:i.type)!=null?s:"text"),{label:d,type:c,error:l}},Fe=e=>{var t;return(t=e.context.actorRef)==null?void 0:t.getSnapshot()},zt=e=>{var t;return(t=Fe(e))==null?void 0:t.context},r_=e=>{let t=r=>a=>e({type:r,data:a});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")}},n_=e=>{var t,r;let a=(t=e.context)==null?void 0:t.user,o=Fe(e),i=zt(e),s=i==null?void 0:i.remoteError,u=ie({},i==null?void 0:i.validationError),l=i==null?void 0:i.codeDeliveryDetails,c=Object.keys(u).length>0,d=e.hasTag("pending")||((r=Fe(e))==null?void 0:r.hasTag("pending")),v=(()=>{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(o==null?void 0:o.matches("confirmSignUp")):return"confirmSignUp";case(o==null?void 0:o.matches("confirmSignIn")):return"confirmSignIn";case(o==null?void 0:o.matches("setupTOTP")):return"setupTOTP";case(o==null?void 0:o.matches("signIn")):return"signIn";case(o==null?void 0:o.matches("signUp")):return"signUp";case(o==null?void 0:o.matches("forceNewPassword")):return"forceNewPassword";case(o==null?void 0:o.matches("resetPassword")):return"resetPassword";case(o==null?void 0:o.matches("confirmResetPassword")):return"confirmResetPassword";case(o==null?void 0:o.matches("verifyUser")):return"verifyUser";case(o==null?void 0:o.matches("confirmVerifyUser")):return"confirmVerifyUser";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}})();return{error:s,hasValidationErrors:c,isPending:d,route:v,user:a,validationErrors:u,codeDeliveryDetails:l}},hs=({send:e,state:t})=>{let r=r_(e),a=n_(t);return ie(ie({},r),a)};E();E();E();var gs=["+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"];E();E();E();E();var a_={"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"};E();var o_={"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"};E();var i_={"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",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","Confirmation Code":"C\xF3digo de confirmaci\xF3n","Create a new account":"Crear una cuenta nueva",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","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","Resend Code":"Reenviar c\xF3digo","Send Code":"Enviar c\xF3digo","Sign In":"Iniciar sesi\xF3n","Sign in to your account":"Iniciar sesi\xF3n en tu cuenta","Sign Out":"Cerrar sesi\xF3n","Sign Up":"Crear cuenta",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"};E();var s_={"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"};E();var l_={"Account recovery requires verified contact information":"Ripristino del conto richiede un account verificati","An account with the given email already exists.":"Un account con questa email esiste gi\xE0.","Back to Sign In":"Torna alla Accesso","Change Password":"Cambia la password",Code:"Codice",Confirm:"Conferma","Confirm a Code":"Codice Conferma","Confirm Password":"Conferma la password","Confirm Sign In":"Conferma di applicazione","Confirm Sign Up":"Registrazione Conferma","Confirmation Code":"Codice di verifica","Create a new account":"Creare un nuovo account","Create account":"Registrati","Create Account":"Crea account",Email:"E-mail","Enter your password":"Inserire la 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":"Utilizzo non valido Telefonummern formattare un numero nel formato :. 12.345.678,9 mille","Lost your code?":"Perso codice?","New Password":"Nuova password",or:"o","No account? ":"Nessun account?",Password:"Password","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto","Phone Number":"Numero di telefono","Resend Code":"Codice Rispedisci","Reset password":"Ripristina password","Reset your password":"Resetta password","Send Code":"Invia codice","Sign in":"Accesso","Sign In":"Accesso","Sign in to your account":"Accedi con il tuo account a","Sign Out":"Esci","Sign Up":"Iscriviti",Skip:"Salta",Submit:"Sottoscrivi","User already exists":"Questo utente esiste gi\xE0","User does not exist":"Questo utente non esiste",Username:"Nome utente","Username cannot be empty":"Nome utente non pu\xF2 essere vuoto",Verify:"Verifica","Verify Contact":"Contatto verifica"};E();var u_={"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
44
+ +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"};E();var c_={"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"};E();var d_={"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"};E();var f_={"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"};E();var v_={"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"};E();var p_={"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":"\u6539\u53D8\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"};E();var m_={"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"};E();var h_={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"};ie({},a_);ie({},o_);ie({},i_);ie({},s_);ie({},l_);ie({},u_);ie({},c_);ie({},d_);ie({},f_);ie({},v_);ie({},p_);ie({},m_);var g_=ie({},h_);ie({},g_);function P(e){return ae.I18n.get(e)}function y_(e){return ae.I18n.get(e)!==e}E();E();E();var Rr=e=>rv(e),b_=se({attributeToVerify:e=>{}}),C_=se({challengeName:e=>{}}),ea=se({remoteError:e=>""}),ta=se({formValues:e=>({})}),ra=se({touched:e=>({})}),w_=se({unverifiedAttributes:e=>{}}),S_=se({username:e=>{}}),na=se({validationError:e=>({})}),__=se({challengeName:(e,t)=>{var r;return(r=t.data)==null?void 0:r.challengeName}}),x_=se({redirectIntent:e=>"confirmPasswordReset"}),E_=se({redirectIntent:e=>"confirmSignUp"}),ys=se({authAttributes:(e,t)=>{var r,a;let[o]=e.loginMechanisms,i=(r=e.formValues[o])!=null?r:e.formValues.username,s=(a=e.formValues)==null?void 0:a.password;return{username:i,password:s}}}),aa=se({validationError:(e,t)=>t.data}),oa=se({remoteError:(e,t)=>{var r;return t.data.name==="NoUserPoolError"?"Configuration error (see console) \u2013 please contact the administrator":((r=t.data)==null?void 0:r.message)||t.data}}),A_=se({unverifiedAttributes:(e,t)=>t.data.unverified}),bs=se({user:(e,t)=>t.data.user||t.data}),I_=se({username:(e,t)=>e.formValues.username}),N_=se({codeDeliveryDetails:(e,t)=>t.data.codeDeliveryDetails}),P_=se({authAttributes:(e,t)=>({username:e.formValues.username})}),ia=se({formValues:(e,t)=>{let{name:r,value:a}=t.data;return Fr(ie({},e.formValues),{[r]:a})}}),sa=se({touched:(e,t)=>{let{name:r}=t.data;return Fr(ie({},e.touched),{[`${r}`]:!0})}}),Cs=se({formValues:(e,t)=>{var r;let[a="username"]=e.loginMechanisms;if(!e.formValues.phone_number&&a!=="phone_number")return e.formValues;let{formValues:o,country_code:i}=e,s=o.phone_number?"phone_number":"username",u=`${(r=o.country_code)!=null?r:i}${o[s]}`.replace(/[^A-Z0-9+]/gi,""),l=Fr(ie({},o),{[s]:u});return delete l.country_code,l}});E();E();E();var la=async(e,t,r)=>{let a=await Promise.all(r.map(i=>i(e,t))),o=sy({},...a);return Ln(o)?Promise.resolve():Promise.reject(o)};E();var ua={async getAmplifyConfig(){return ae.Amplify.configure()},async getCurrentUser(){return ae.Auth.currentAuthenticatedUser()},async handleSignUp(e){return ae.Auth.signUp(e)},async handleSignIn({username:e,password:t}){return ae.Auth.signIn(e,t)},async handleConfirmSignIn({user:e,code:t,mfaType:r}){return ae.Auth.confirmSignIn(e,t,r)},async handleConfirmSignUp({username:e,code:t}){return await ae.Auth.confirmSignUp(e,t)},async handleForgotPasswordSubmit({username:e,code:t,password:r}){return ae.Auth.forgotPasswordSubmit(e,t,r)},async handleForgotPassword(e){return ae.Auth.forgotPassword(e)},async validateCustomSignUp(e,t){},async validateConfirmPassword(e,t){let{password:r,confirm_password:a}=e,{confirm_password:o,password:i}=t;if(!r&&!a)return null;if((r||a)&&r!==a&&(o&&i||r.length>=6&&a.length>=6))return{confirm_password:"Your passwords must match"}},async validatePreferredUsername(e,t){}};function T_({services:e}){return Vt({initial:"init",id:"signInActor",states:{init:{always:[{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError",Y()],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"],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",Y()],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:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName"]},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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:Y(),on:{SUBMIT:"validate"}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:[Y(),"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:Y(),on:{SUBMIT:"submit",SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["setUser","clearChallengeName"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"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:Y(),on:{SUBMIT:"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:t=>({user:t.user})},rejected:{type:"final",data:(t,r)=>({intent:t.redirectIntent,authAttributes:t.authAttributes})}}},{actions:{clearAttributeToVerify:b_,clearChallengeName:C_,clearError:ea,clearFormValues:ta,clearTouched:ra,clearUnverifiedAttributes:w_,clearValidationError:na,handleInput:ia,handleBlur:sa,parsePhoneNumber:Cs,setChallengeName:__,setConfirmResetPasswordIntent:x_,setConfirmSignUpIntent:E_,setCredentials:ys,setFieldErrors:aa,setRemoteError:oa,setUnverifiedAttributes:A_,setUser:bs,setUsernameAuthAttributes:P_},guards:{shouldConfirmSignIn:(t,r)=>{let a=Ae(r,"data.challengeName");return["SMS_MFA","SOFTWARE_TOKEN_MFA"].includes(a)},shouldRedirectToConfirmSignUp:(t,r)=>r.data.code==="UserNotConfirmedException",shouldRedirectToConfirmResetPassword:(t,r)=>r.data.code==="PasswordResetRequiredException",shouldSetupTOTP:(t,r)=>Ae(r,"data.challengeName")==="MFA_SETUP",shouldForceChangePassword:(t,r)=>Ae(r,"data.challengeName")==="NEW_PASSWORD_REQUIRED",shouldRequestVerification:(t,r)=>{let{unverified:a,verified:o}=r.data;return Ln(o)&&!Ln(a)}},services:{async signIn(t){let{username:r,password:a}=t.formValues;return await e.handleSignIn({username:r,password:a})},async confirmSignIn(t,r){let{challengeName:a,user:o}=t,{confirmation_code:i}=t.formValues,s;return(a==="SMS_MFA"||a==="SOFTWARE_TOKEN_MFA")&&(s=a),await e.handleConfirmSignIn({user:o,code:i,mfaType:s})},async forceNewPassword(t,r){let{user:a,formValues:o}=t,{password:i}=o;return ae.Auth.completeNewPassword(a,i)},async verifyTotpToken(t,r){let{user:a}=t,{confirmation_code:o}=t.formValues;return ae.Auth.verifyTotpToken(a,o)},async federatedSignIn(t,r){let{provider:a}=r.data;return await ae.Auth.federatedSignIn({provider:a})},async checkVerifiedContact(t,r){let{user:a}=t;return await ae.Auth.verifiedContact(a)},async verifyUser(t,r){let{unverifiedAttr:a}=t.formValues,o=await ae.Auth.verifyCurrentUserAttribute(a);return t.attributeToVerify=a,o},async confirmVerifyUser(t,r){let{attributeToVerify:a}=t,{confirmation_code:o}=t.formValues;return await ae.Auth.verifyCurrentUserAttributeSubmit(a,o)},async validateFields(t,r){return la(t.formValues,t.touched,[ua.validateConfirmPassword])}}})}E();var $_=Vt({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>ae.Auth.signOut()}});E();function k_({services:e}){return Vt({id:"resetPasswordActor",initial:"init",states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:[Y(),"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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:Y(),invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError",Y()],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:ea,clearFormValues:ta,clearTouched:ra,clearUsername:S_,clearValidationError:na,handleInput:ia,handleBlur:sa,setFieldErrors:aa,setRemoteError:oa,setUsername:I_},guards:{shouldAutoConfirmReset:(t,r)=>!!(t.intent&&t.intent==="confirmPasswordReset")},services:{async resetPassword(t){var r,a;let o=(a=(r=t.formValues)==null?void 0:r.username)!=null?a:t.username;return e.handleForgotPassword(o)},async confirmResetPassword(t){let{username:r}=t,{confirmation_code:a,password:o}=t.formValues;return e.handleForgotPasswordSubmit({username:r,code:a,password:o})},async validateFields(t,r){return la(t.formValues,t.touched,[ua.validateConfirmPassword])}}})}E();function B_({services:e}){return Vt({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:Y()},invalid:{entry:Y()}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:Y(),on:{SUBMIT:"validate",FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:Y(),invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber",Y(),"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:Y(),on:{SUBMIT:"submit",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:Y(),invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setUser",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:[Y(),"clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:["setUser"]},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:(t,r)=>{let{username:a,password:o}=t.authAttributes;return{user:Ae(r,"data.user")||t.user,authAttributes:{username:a,password:o}}}}}},{guards:{isUserAlreadyConfirmed:(t,r)=>r.data.message==="User is already confirmed.",shouldInitConfirmSignUp:t=>t.intent&&t.intent==="confirmSignUp",shouldSkipConfirm:(t,r)=>r.data.userConfirmed},actions:{clearError:ea,clearFormValues:ta,clearTouched:ra,clearValidationError:na,handleInput:ia,handleBlur:sa,parsePhoneNumber:Cs,setCredentials:ys,setFieldErrors:aa,setRemoteError:oa,setCodeDeliveryDetails:N_,setUser:bs},services:{async signIn(t,r){let{user:a,authAttributes:o,formValues:i}=t,s=Ae(a,"username")||Ae(o,"username"),u=Ae(i,"password");return await ae.Auth.signIn(s,u)},async confirmSignUp(t,r){let{user:a,authAttributes:o,formValues:i}=t,{confirmation_code:s}=i,u=Ae(a,"username")||Ae(o,"username"),{password:l}=o;return await e.handleConfirmSignUp({username:u,code:s}),await ae.Auth.signIn(u,l)},async resendConfirmationCode(t,r){let{user:a,authAttributes:o}=t,i=Ae(a,"username")||Ae(o,"username");return ae.Auth.resendSignUp(i)},async federatedSignIn(t,r){let{provider:a}=r.data;return await ae.Auth.federatedSignIn({provider:a})},async signUp(t,r){let{formValues:a,loginMechanisms:o}=t,[i="username"]=o,{[i]:s,password:u}=a,l=lC(a,(c,d)=>{switch(d){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 d.startsWith("custom:")}});return await e.handleSignUp({username:s,password:u,attributes:l})},async validateSignUp(t,r){return la(t.formValues,t.touched,[e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}}})}var ws="+1";function F_(){return Vt({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:{},actorRef:void 0},states:{idle:{on:{INIT:{target:"setup",actions:"configure"}}},setup:{invoke:[{src:(e,t)=>e.services.getCurrentUser(),onDone:{actions:"setUser",target:"authenticated"},onError:[{target:"signUp",cond:e=>e.config.initialState==="signUp"},{target:"resetPassword",cond:e=>e.config.initialState==="resetPassword"},{target:"signIn"}]},{src:(e,t)=>e.services.getAmplifyConfig(),onDone:{actions:"applyAmplifyConfig"}}]},signIn:{entry:"spawnSignInActor",exit:Rr("signInActor"),on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",cond:"shouldRedirectToSignUp"},{target:"resetPassword",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setUser"}]}},signUp:{entry:"spawnSignUpActor",exit:Rr("signUpActor"),on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"setup",actions:"setUser"}}},resetPassword:{entry:"spawnResetPasswordActor",exit:Rr("resetPasswordActor"),on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":"signIn"}},signOut:{entry:"spawnSignOutActor",exit:[Rr("signOutActor"),"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:Wd(e=>e.actorRef),setUser:Ze({user:(e,t)=>t.data.user||t.data}),clearUser:Ze({user:void 0}),applyAmplifyConfig:Ze({config(e,t){var r,a,o,i,s,u,l,c;let d=(a=(r=t.data.aws_cognito_username_attributes)==null?void 0:r.map(m=>m.toLowerCase()))!=null?a:[],v=(i=(o=t.data.aws_cognito_verification_mechanisms)==null?void 0:o.map(m=>m.toLowerCase()))!=null?i:[],f=(u=(s=t.data.aws_cognito_signup_attributes)==null?void 0:s.map(m=>m.toLowerCase()))!=null?u:[],p=(c=(l=t.data.aws_cognito_social_providers)==null?void 0:l.map(m=>m.toLowerCase()))!=null?c:[];d.length===0&&d.push("username");let{loginMechanisms:h,signUpAttributes:g,socialProviders:b,initialState:y}=e.config;return{loginMechanisms:h!=null?h:d,signUpAttributes:g!=null?g:Array.from(new Set([...v,...f])),socialProviders:b!=null?b:p.sort(),initialState:y}}}),spawnSignInActor:Ze({actorRef:(e,t)=>{var r,a,o,i,s;let{services:u}=e,l=T_({services:u}).withContext({authAttributes:(r=t.data)==null?void 0:r.authAttributes,user:(a=t.data)==null?void 0:a.user,intent:(o=t.data)==null?void 0:o.intent,country_code:ws,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)==null?void 0:i.loginMechanisms,socialProviders:(s=e.config)==null?void 0:s.socialProviders});return br(l,{name:"signInActor"})}}),spawnSignUpActor:Ze({actorRef:(e,t)=>{var r,a,o,i,s;let{services:u}=e,l=B_({services:u}).withContext({authAttributes:(a=(r=t.data)==null?void 0:r.authAttributes)!=null?a:{},country_code:ws,intent:(o=t.data)==null?void 0:o.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)==null?void 0:i.loginMechanisms,socialProviders:(s=e.config)==null?void 0:s.socialProviders});return br(l,{name:"signUpActor"})}}),spawnResetPasswordActor:Ze({actorRef:(e,t)=>{var r,a,o;let{services:i}=e,s=k_({services:i}).withContext({formValues:{},touched:{},intent:(r=t.data)==null?void 0:r.intent,username:(o=(a=t.data)==null?void 0:a.authAttributes)==null?void 0:o.username,validationError:{}});return br(s,{name:"resetPasswordActor"})}}),spawnSignOutActor:Ze({actorRef:e=>{let t=$_.withContext({user:e.user});return br(t,{name:"signOutActor"})}}),configure:Ze((e,t)=>{let r=t.data,{services:a}=r,o=yS(r,["services"]);return{services:ie(ie({},ua),a),config:o}})},guards:{shouldRedirectToSignUp:(e,t)=>{var r;return((r=t.data)==null?void 0:r.intent)?t.data.intent==="confirmSignUp":!1},shouldRedirectToResetPassword:(e,t)=>{var r;return((r=t.data)==null?void 0:r.intent)?t.data.intent==="confirmPasswordReset":!1}}})}E();E();E();E();E();var R_={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var D_={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 6%, 70%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},brand:{primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.font.tertiary.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.brand.primary.80.value}"},hover:{value:"{colors.brand.primary.90.value}"},focus:{value:"{colors.brand.primary.100.value}"},active:{value:"{colors.brand.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.20.value}"},warning:{value:"{colors.orange.20.value}"},error:{value:"{colors.red.20.value}"},success:{value:"{colors.green.20.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},focus:{value:"{colors.brand.primary.100.value}"},error:{value:"{colors.red.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}};E();var O_={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
45
45
  'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
46
46
  sans-serif`},static:{value:`'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
47
- 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}};E();var FS={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"3rem"},xxxxl:{value:"5rem"}};E();var DS={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}};E();var OS={small:{value:"1.5"},medium:{value:"1.75"},large:{value:"2"}};E();var VS={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}};E();var US={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var MS={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var LS={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}};E();var zS={small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}};E();var jS={xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375rem"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"}}};E();var GS={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}};E();var WS={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},HS={components:Q_(),borderWidths:BS,colors:kS,fonts:RS,fontSizes:FS,fontWeights:DS,lineHeights:OS,opacities:VS,outlineOffsets:US,outlineWidths:MS,radii:LS,shadows:zS,space:jS,time:GS,transforms:WS};E();var KS={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},bs={tokens:HS,breakpoints:KS,name:"base-theme"};E();var qS="amplify";function St(e){if(d_(e)){let t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${Cs({path:t})})`}return e}function YS(e){let{value:t}=e;if(typeof t=="string")return St(t);if(typeof t=="object"&&"offsetX"in t){let{offsetX:r="",offsetY:a="",blurRadius:o="",spreadRadius:i="",color:s=""}=t;return[St(r),St(a),St(o),St(i),St(s)].join(" ")}return t}function Cs({path:e=[]}){return`${a_([qS,...e].join(" "))}`}function ZS(e,t){let r=`--${Cs({path:t})}`,{value:a}=e;return{name:r,path:t,value:YS(e),original:a,toString:()=>`var(${r})`}}function ua(e,t=[]){let r={};if(e.hasOwnProperty("value"))return ZS(e,t);for(let a in e)e.hasOwnProperty(a)&&(r[a]=ua(e[a],t.concat(a)));return r}function XS(e,t=bs){let r=KC([{},t,e]),a=ua(r.tokens),{breakpoints:o,name:i}=r,s=`[data-amplify-theme="${i}"] {
48
- `+Gi(a).map(l=>`${l.name}: ${l.value};`).join(`
47
+ 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}};E();var V_={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"3rem"},xxxxl:{value:"5rem"}};E();var U_={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}};E();var M_={small:{value:"1.5"},medium:{value:"1.75"},large:{value:"2"}};E();var L_={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}};E();var z_={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var j_={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var G_={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}};E();var W_={small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}};E();var H_={xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375rem"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"}}};E();var K_={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}};E();var q_={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},Y_={components:t_(),borderWidths:R_,colors:D_,fonts:O_,fontSizes:V_,fontWeights:U_,lineHeights:M_,opacities:L_,outlineOffsets:z_,outlineWidths:j_,radii:G_,shadows:W_,space:H_,time:K_,transforms:q_};E();var Z_={values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},Ss={tokens:Y_,breakpoints:Z_,name:"base-theme"};E();var X_="amplify";function _t(e){if(pS(e)){let t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${_s({path:t})})`}return e}function J_(e){let{value:t}=e;if(typeof t=="string")return _t(t);if(typeof t=="object"&&"offsetX"in t){let{offsetX:r="",offsetY:a="",blurRadius:o="",spreadRadius:i="",color:s=""}=t;return[_t(r),_t(a),_t(o),_t(i),_t(s)].join(" ")}return t}function _s({path:e=[]}){return`${sS([X_,...e].join(" "))}`}function Q_(e,t){let r=`--${_s({path:t})}`,{value:a}=e;return{name:r,path:t,value:J_(e),original:a,toString:()=>`var(${r})`}}function ca(e,t=[]){let r={};if(e.hasOwnProperty("value"))return Q_(e,t);for(let a in e)e.hasOwnProperty(a)&&(r[a]=ca(e[a],t.concat(a)));return r}function e2(e,t=Ss){let r=ZC([{},t,e]),a=ca(r.tokens),{breakpoints:o,name:i}=r,s=`[data-amplify-theme="${i}"] {
48
+ `+Wi(a).map(l=>`${l.name}: ${l.value};`).join(`
49
49
  `)+`
50
50
  }
51
- `,u=[];return r.overrides&&(u=r.overrides.map(l=>{let c=ua(l.tokens),d=Gi(c).map(v=>`${v.name}: ${v.value};`).join(`
51
+ `,u=[];return r.overrides&&(u=r.overrides.map(l=>{let c=ca(l.tokens),d=Wi(c).map(v=>`${v.name}: ${v.value};`).join(`
52
52
  `);return"selector"in l&&(s+=`
53
53
  ${l.selector} {
54
54
  ${d}
@@ -75,11 +75,11 @@ ${d}
75
75
  [data-amplify-theme="${i}"][data-amplify-color-mode="${l.colorMode}"] {
76
76
  ${d}
77
77
  }
78
- `),kr(ie({},l),{tokens:c})})),{tokens:a,breakpoints:o,name:i,cssText:s,overrides:u}}E();E();XS({name:"default-theme"},bs);const JS={},QS={"data-amplify-label":""};function e2(e,t){return n.openBlock(),n.createElementBlock("label",QS,[n.renderSlot(e.$slots,"default")])}var Fe=Tt(JS,[["render",e2]]);const De=n.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const r=a=>{t("update:modelValue",a.target.value)};return(a,o)=>(n.openBlock(),n.createElementBlock("input",{onChange:o[0]||(o[0]=i=>r(i)),"data-amplify-input":""},null,32))}}),t2=["aria-label"],r2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},n2=n.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),a2=[n2],o2={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},i2=n.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),s2=n.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),l2=[i2,s2];function u2(e){const t=e,r=T("Show password"),a=T("Hide password"),o=n.ref("password"),i=n.ref(r),s=Math.floor(Math.random()*999999),{name:u,label:l,autocomplete:c,ariainvalid:d}=n.toRefs(t);let v=n.ref("");function f(){i.value=i.value===r?a:r,o.value=o.value==="password"?"text":"password"}return(p,m)=>{const g=Fe,b=De,y=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(g,{class:"amplify-label sr-only",for:"amplify-field-"+n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["for"]),n.createVNode(y,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(b,n.mergeProps(p.$attrs,{modelValue:n.unref(v),"onUpdate:modelValue":m[0]||(m[0]=h=>n.isRef(v)?v.value=h:v=h),class:"amplify-input amplify-field-group__control","aria-invalid":n.unref(d),id:"amplify-field-"+n.unref(s),"data-amplify-password":"true",name:n.unref(u),autocomplete:n.unref(c),required:"",placeholder:n.unref(l),type:o.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","placeholder","type"]),n.createVNode(y,{class:"amplify-field-group__outer-end"},{default:n.withCtx(()=>[n.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password","data-fullwidth":"false",type:"button",onClick:f},[o.value==="password"?(n.openBlock(),n.createElementBlock("svg",r2,a2)):(n.openBlock(),n.createElementBlock("svg",o2,l2))],8,t2)]),_:1})]),_:1})],64)}}const c2={inheritAttrs:!1},Ke=n.defineComponent(Zr($e({},c2),{props:{name:String,label:String,autocomplete:String,ariainvalid:Boolean},setup:u2})),d2=["value","selected"],ws=n.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:r,selectValue:a}=e,o=i=>{t("update:selectValue",i.target.value)};return(i,s)=>(n.openBlock(),n.createElementBlock("select",{onChange:s[0]||(s[0]=u=>o(u))},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(r,(u,l)=>n.createElementVNode("option",{key:l,value:u,selected:u==a?!0:void 0},n.toDisplayString(u),9,d2)),64))],32))}});var Fr=globalThis&&globalThis.__assign||function(){return Fr=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Fr.apply(this,arguments)},f2=globalThis&&globalThis.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r};function v2(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}function p2(e,t,r){t===void 0&&(t={});var a=typeof e=="function"?e():e,o=t.context,i=t.guards,s=t.actions,u=t.activities,l=t.services,c=t.delays,d=t.state,v=f2(t,["context","guards","actions","activities","services","delays","state"]),f={context:o,guards:i,actions:s,activities:u,services:l,delays:c},p=a.withConfig(f,function(){return Fr(Fr({},a.context),o)}),m=_o(p,v).start(d?Ze.create(d):void 0),g;return n.onMounted(function(){r&&(g=m.subscribe(v2(r)))}),n.onBeforeUnmount(function(){m.stop(),g==null||g.unsubscribe()}),m}function m2(e){return"state"in e}var _s=function(){};function h2(e){return"getSnapshot"in e?e.getSnapshot():m2(e)?e.state:void 0}function Ss(e,t){t===void 0&&(t=h2);var r=n.isRef(e)?e:n.shallowRef(e),a=n.shallowRef(t(r.value)),o=function(i){r.value.send(i)};return n.watch(r,function(i,s,u){a.value=t(i);var l=i.subscribe({next:function(c){return a.value=c},error:_s,complete:_s}).unsubscribe;u(function(){return l()})},{immediate:!0}),{state:a,send:o}}const g2=e=>(e==null?void 0:e.length)===1&&e[0]==="username"?[...Jn]:e,xs={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};function y2(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function b2(e){let t=0,r,a;const o=()=>{t-=1,a&&t<=0&&(a.stop(),r=void 0,a=void 0)};return(...i)=>(t+=1,r||(a=n.effectScope(!0),r=a.run(()=>e(...i))),y2(o),r)}const ca=n.ref();let Dr=n.reactive(Zr($e({},xs),{send:"",state:""}));const we=e=>(e&&(ca.value=e),Ss(ca.value)),C2=()=>(Es(),n.watchEffect(()=>{Es()}),Dr),Ne=b2(C2);function Es(){if(!ca.value)return;const{state:e,send:t}=we(),r=ps({send:t,state:e.value});for(const a of Object.keys(xs))Dr[a]=r[a];Dr.send=t,Dr.state=e}const w2=n.createTextVNode(n.toDisplayString("Country Code")),_2=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24","data-size":"large",fill:"currentColor"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),Or=n.defineComponent({props:{userNameAlias:{type:Boolean,default:!1},userName:{default:""},disabled:{type:Boolean}},setup(e){var g,b,y,h,w;const{userNameAlias:t,userName:r,disabled:a}=e,{state:o,send:i}=we(),{value:{context:s}}=o,l=n.computed(()=>zt(o.value)).value.country_code;let c=n.ref("");r&&(c=n.computed(()=>r));const d=n.computed(()=>ms),[v]=g2((g=s==null?void 0:s.config)==null?void 0:g.loginMechanisms);let f=v,p=(y=(b=ye[v])==null?void 0:b.label)!=null?y:ye.username.label,m=(w=(h=ye[f])==null?void 0:h.type)!=null?w:ye.username.label;if(t){const _=vs(s);p=_.label||ye.username.label,m=_.type,f="username"}return p=T(p),n.onMounted(()=>{m==="tel"&&i({type:"CHANGE",data:{name:"country_code",value:l}})}),(_,S)=>{const N=Fe,A=ws,x=pe,P=De;return n.openBlock(),n.createBlock(x,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(N,n.mergeProps({class:"amplify-label sr-only",for:"amplify-field-601d"},_.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},16),n.createVNode(x,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[n.unref(m)==="tel"?(n.openBlock(),n.createBlock(x,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-label sr-only",for:"amplify-field-1177"},{default:n.withCtx(()=>[w2]),_:1}),n.createVNode(x,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-select amplify-field-group__control",id:"amplify-field-1177","aria-label":"country code",name:"country_code",options:n.unref(d),selectValue:n.unref(l)},null,8,["options","selectValue"]),n.createVNode(x,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[_2]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(x,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(P,{class:"amplify-input amplify-field-group__control",id:"amplify-field-601d","aria-invalid":"false",textValue:n.unref(c),autocomplete:"username",placeholder:n.unref(p),required:"",name:n.unref(f),disabled:a,type:n.unref(m)},null,8,["textValue","placeholder","name","type"])]),_:1})]),_:1})]),_:1})}}}),Vr=n.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:r}=we(),a=o=>{r({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(o,i)=>{const s=pe,u=Ce;return n.openBlock(),n.createBlock(u,{class:"amplify-field-group__control federated-sign-in-button","data-fullwidth":"false",style:{"font-weight":"normal"},type:"button",onClick:a},{default:n.withCtx(()=>[n.createVNode(s,{class:"amplify-flex federated-sign-in-button-row",style:{"flex-direction":"row","justify-content":"center","align-items":"center"}},{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),_:3})]),_:3})}}}),S2=n.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[n.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),x2={class:"amplify-text",style:{"align-self":"center"}},E2=n.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"},[n.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),A2={class:"amplify-text",style:{"align-self":"center"}},I2=n.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[n.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),N2={class:"amplify-text",style:{"align-self":"center"}},T2=n.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"},[n.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),n.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),n.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),n.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),P2={class:"amplify-text",style:{"align-self":"center"}},$2=n.createElementVNode("div",{"data-or-line":""},"or",-1),B2=n.createElementVNode("hr",{class:"amplify-divider","aria-orientation":"horizontal","data-size":"small"},null,-1),Ur=n.defineComponent({setup(e){var b;const{state:t}=we(),{route:r}=Ne(),{value:{context:a}}=t,o=(b=a==null?void 0:a.config)==null?void 0:b.socialProviders,i=o==null?void 0:o.includes("amazon"),s=o==null?void 0:o.includes("apple"),u=o==null?void 0:o.includes("facebook"),l=o==null?void 0:o.includes("google"),c=u||l||i||s,d=r==="signUp"?"Up":"In",v=n.computed(()=>fs),f=n.computed(()=>T(`Sign ${d} with Amazon`)),p=n.computed(()=>T(`Sign ${d} with Apple`)),m=n.computed(()=>T(`Sign ${d} with Facebook`)),g=n.computed(()=>T(`Sign ${d} with Google`));return(y,h)=>{const w=pe;return n.unref(c)?(n.openBlock(),n.createBlock(w,{key:0,class:"amplify-flex federated-sign-in-container",style:{"flex-direction":"column",padding:"0 0 1rem 0"}},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(Vr,{key:0,provider:n.unref(v).Amazon},{default:n.withCtx(()=>[S2,n.createElementVNode("p",x2,n.toDisplayString(n.unref(f)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(s)?(n.openBlock(),n.createBlock(Vr,{key:1,provider:n.unref(v).Apple},{default:n.withCtx(()=>[E2,n.createElementVNode("p",A2,n.toDisplayString(n.unref(p)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(u)?(n.openBlock(),n.createBlock(Vr,{key:2,provider:n.unref(v).Facebook},{default:n.withCtx(()=>[I2,n.createElementVNode("p",N2,n.toDisplayString(n.unref(m)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(l)?(n.openBlock(),n.createBlock(Vr,{key:3,provider:n.unref(v).Google},{default:n.withCtx(()=>[T2,n.createElementVNode("p",P2,n.toDisplayString(n.unref(g)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.createVNode(w,{class:"amplify-flex","data-or-container":""},{default:n.withCtx(()=>[$2,B2]),_:1})]),_:1})):n.createCommentVNode("",!0)}}}),k2={"data-amplify-footer":""},da=n.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=n.computed(()=>T("Password")),o=n.computed(()=>mS("Forgot your password? ")?T("Forgot your password? "):T("Forgot your password?")),i=n.computed(()=>T("Sign in")),s=n.computed(()=>T("Signing in")),{state:u,send:l}=we(),c=n.computed(()=>Re(u.value)),d=m=>{const{name:g,value:b}=m.target;l({type:"CHANGE",data:{name:g,value:b}})},v=m=>{(r==null?void 0:r.onSignInSubmit)?t("signInSubmit",m):f(m)},f=m=>{const g=new FormData(m.target);l({type:"SUBMIT",data:Object.fromEntries(g)})},p=()=>{(r==null?void 0:r.onForgotPasswordClicked)?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(m,g)=>{const b=pe,y=Oe,h=Ve,w=Ce,_=Ue,S=Me;return n.renderSlot(m.$slots,"signInSlotI",n.normalizeProps(n.guardReactiveProps(m.$attrs)),()=>[n.renderSlot(m.$slots,"header"),n.createVNode(b,n.normalizeProps(n.guardReactiveProps(m.$attrs)),{default:n.withCtx(()=>[n.createVNode(_,{"data-amplify-authenticator-signin":"",onInput:d,onSubmit:n.withModifiers(v,["prevent"]),method:"post"},{formt:n.withCtx(({slotData:N})=>[n.renderSlot(m.$slots,"form",{info:N,onSignInSubmit:v,onInput:d,onForgotPasswordClicked:p})]),default:n.withCtx(()=>[n.createVNode(Ur),n.createVNode(b,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(y,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-flex",style:{"flex-direction":"column"}},{fieldSetI:n.withCtx(({slotData:N})=>[n.renderSlot(m.$slots,"signin-fields",{info:N})]),default:n.withCtx(()=>[n.createVNode(Or,{userNameAlias:!0}),n.createVNode(b,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(a),autocomplete:"current-password",ariainvalid:!1},null,8,["label"])]),_:1})]),_:3},8,["disabled"]),n.unref(c).context.remoteError?(n.openBlock(),n.createBlock(h,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(T)(n.unref(c).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(w,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-field-group__control",fullwidth:!0,"data-loading":"false",variation:"primary",style:{"border-radius":"0x","font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c).matches("signIn.submit")?n.unref(s):n.unref(i)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(S,null,{default:n.withCtx(()=>[n.renderSlot(m.$slots,"footer",{},()=>[n.createElementVNode("div",k2,[n.createVNode(w,{onClick:p,class:"amplify-field-group__control","data-fullwidth":"true","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(o)),1)]),_:1})])])]),_:3})])}}}),R2=n.createTextVNode(n.toDisplayString("Country Code")),F2=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),D2=n.defineComponent({props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""}},setup(e){const{label:t,name:r,placeholder:a,autocomplete:o}=e,i=Math.floor(Math.random()*999999),s=Math.floor(Math.random()*999999),{state:u,send:l}=we(),c=n.computed(()=>ye),v=n.computed(()=>zt(u.value)).value.country_code,f=n.computed(()=>ms);n.onMounted(()=>{c.value[r].type==="tel"&&l({type:"CHANGE",data:{name:"country_code",value:v}})});const p=n.computed(()=>{var m;return o||((m=ye[r])==null?void 0:m.autocomplete)});return(m,g)=>{const b=Fe,y=ws,h=pe,w=De;return n.openBlock(),n.createBlock(h,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(b,n.mergeProps({for:"amplify-field-"+n.unref(i),class:"amplify-label"},m.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t))]),_:1},16,["for"]),n.createVNode(h,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(h,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[r==="phone_number"?(n.openBlock(),n.createBlock(h,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(b,n.mergeProps({for:"amplify-field-"+n.unref(s),class:"amplify-label sr-only"},m.$attrs),{default:n.withCtx(()=>[R2]),_:1},16,["for"]),n.createVNode(h,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(y,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+n.unref(s),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:n.unref(f),"select-value":n.unref(v)},null,8,["id","options","select-value"]),n.createVNode(h,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[F2]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(h,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+n.unref(i),autocomplete:n.unref(p),name:r,required:"",type:n.unref(c)[r].type,placeholder:a},null,8,["id","autocomplete","type"])]),_:1})]),_:1})]),_:1})}}}),O2={key:0,role:"alert","data-variation":"error",class:"amplify-text"},fa=n.defineComponent({setup(e){var p,m;const{state:t}=we(),{value:{context:r}}=t,{validationErrors:a}=n.toRefs(Ne()),o=Ne(),i=n.computed(()=>ye),s=n.computed(()=>T("Password")),u=n.computed(()=>T("Confirm Password"));let l,c=(p=r.config)==null?void 0:p.loginMechanisms,d=(m=r.config)==null?void 0:m.signUpAttributes;l=Array.from(new Set([...c,...d])),l=l.filter(g=>{const b=!!ye[g];return b||console.debug(`Authenticator does not have a default implementation for ${g}. Customize the authenticator sign-up-fields slot to add your own.`),b});function v(g){const{name:b}=g.target;o.updateBlur({name:b})}const f=l.shift();return(g,b)=>{const y=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(Or,{userName:n.unref(f)},null,8,["userName"]),n.createVNode(y,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(s),autocomplete:"new-password",ariainvalid:!!n.unref(a).confirm_password,onBlur:v},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(y,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"confirm_password",label:n.unref(u),autocomplete:"new-password",ariainvalid:!!n.unref(a).confirm_password,onBlur:v},null,8,["label","ariainvalid"])]),_:1}),n.unref(a).confirm_password?(n.openBlock(),n.createElementBlock("p",O2,n.toDisplayString(n.unref(T)(n.unref(a).confirm_password)),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),(h,w)=>(n.openBlock(),n.createBlock(D2,{key:w,label:n.unref(T)(n.unref(i)[h].label),name:h,placeholder:n.unref(T)(n.unref(i)[h].label)},null,8,["label","name","placeholder"]))),128))],64)}}}),va=n.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const r=Ne(),a=Ne(),{hasValidationErrors:o,isPending:i,error:s}=n.toRefs(r),u=n.useAttrs(),l=n.computed(()=>T("Create Account")),c=f=>{let{checked:p,name:m,type:g,value:b}=f.target;g==="checkbox"&&!p&&(b=void 0),a.updateForm({name:m,value:b})},d=f=>{(u==null?void 0:u.onSignUpSubmit)?t("signUpSubmit",f):v()},v=()=>{a.submitForm()};return(f,p)=>{const m=Oe,g=Ve,b=Ce,y=pe,h=Ue,w=Me;return n.renderSlot(f.$slots,"signUpSlotI",n.normalizeProps(n.guardReactiveProps(f.$attrs)),()=>[n.renderSlot(f.$slots,"header"),n.createVNode(y,n.normalizeProps(n.guardReactiveProps(f.$attrs)),{default:n.withCtx(()=>[n.createVNode(h,{onInput:c,onSubmit:n.withModifiers(d,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Ur),n.createVNode(y,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(m,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i)},{fieldSetI:n.withCtx(({slotData:_})=>[n.renderSlot(f.$slots,"signup-fields",{info:_})]),default:n.withCtx(()=>[n.createVNode(fa)]),_:3},8,["disabled"]),n.unref(s)?(n.openBlock(),n.createBlock(g,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(T)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(b,{class:"amplify-field-group__control","data-fullwidth":"true","data-loading":"false","data-variation":"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:n.unref(i)||n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(w,null,{default:n.withCtx(()=>[n.renderSlot(f.$slots,"footer")]),_:3})])}}}),V2=n.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:r,label:a}=t,{active:o}=n.toRefs(t);return(i,s)=>{const u=pe;return n.openBlock(),n.createBlock(u,{tabindex:n.unref(o)?0:-1,"data-state":n.unref(o)?"active":"inactive","aria-selected":n.unref(o)?"true":"false","aria-controls":`radix-id-${n.unref(r)}-8-content-0`,id:`radix-id-${n.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),U2={};function M2(e,t){const r=pe;return n.openBlock(),n.createBlock(r,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",role:"tablist",style:{outline:"none"}},{default:n.withCtx(()=>[n.createVNode(r,{class:"amplify-flex amplify-tabs","data-indicator-position":"top",style:{gap:"0px","justify-content":"center"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var L2=Tt(U2,[["render",M2]]);const Xe=n.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r}){var i,s;const a=t.default?t.default():[],o=t.headingI?t.headingI():[];if(((s=(i=o[0])==null?void 0:i.children)==null?void 0:s.length)===0)o[0].children=[n.h(`h${e.level}`,$e({},r),[a])];else return()=>n.h(`h${e.level}`,$e({"data-amplify-heading":""},r),[o[0]?n.h(o[0].children[0]):n.h(a[0])]);return()=>o}}),z2={};function j2(e,t){return n.renderSlot(e.$slots,"textI",n.normalizeProps(n.guardReactiveProps(e.$attrs)),()=>[n.createElementVNode("span",n.mergeProps(e.$attrs,{"data-amplify-text":""}),[n.renderSlot(e.$slots,"default")],16)])}var As=Tt(z2,[["render",j2]]);const pa=n.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{isPending:a,error:o,codeDeliveryDetails:i}=n.toRefs(Ne()),{submitForm:s,updateForm:u,resendCode:l}=Ne(),c=n.computed(()=>{var w,_;return((w=i.value)==null?void 0:w.DeliveryMedium)==="EMAIL"?T("We Emailed You"):((_=i.value)==null?void 0:_.DeliveryMedium)==="SMS"?T("We Texted You"):T("We Sent A Code")}),d=n.computed(()=>T("Enter your code")),v=n.computed(()=>T("Confirmation Code")),f=n.computed(()=>T("Resend Code")),p=n.computed(()=>T("Confirm")),m=n.computed(()=>{var w,_,S,N;return((w=i.value)==null?void 0:w.DeliveryMedium)==="EMAIL"?`Your code is on the way. To log in, enter the code we emailed to ${(_=i.value)==null?void 0:_.Destination}. It may take a minute to arrive.`:((S=i.value)==null?void 0:S.DeliveryMedium)==="SMS"?`Your code is on the way. To log in, enter the code we texted to ${(N=i.value)==null?void 0:N.Destination}. It may take a minute to arrive.`:T("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive.")}),g=w=>{const{name:_,value:S}=w.target;u({name:_,value:S})},b=w=>{(r==null?void 0:r.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",w):y()},y=w=>{s()},h=()=>{(r==null?void 0:r.onLostCodeClicked)?t("lostCodeClicked"):l()};return(w,_)=>{const S=Xe,N=As,A=Fe,x=De,P=pe,F=Oe,O=Ve,D=Ce,z=Me,ve=Ue;return n.renderSlot(w.$slots,"confirmSignUpSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode(P,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(ve,{onInput:g,onSubmit:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createVNode(P,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(S,{class:"amplify-heading",style:{"font-size":"1.5rem"},level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1})]),n.createVNode(N,{style:{"margin-bottom":"1rem"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(m)),1)]),_:1}),n.createVNode(F,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(a)},{default:n.withCtx(()=>[n.createVNode(P,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(A,{class:"sr-only amplify-label",for:"amplify-field-124b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1}),n.createVNode(P,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-input amplify-field-group__control",id:"amplify-field-124b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(d)},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(z,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(o)?(n.openBlock(),n.createBlock(O,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(T)(n.unref(o))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(a)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["disabled"]),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"default",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer",{onConfirmSignUpSubmit:b,onLostCodeClicked:h})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),G2=n.createTextVNode(" Code * "),ma=n.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Re(a.value)),s=i.value.context.challengeName;let u="SMS";s===ds.SOFTWARE_TOKEN_MFA&&(u="TOTP");const l=`Confirm ${u} Code`,c=n.computed(()=>T("Back to Sign In")),d=n.computed(()=>T("Confirm")),v=n.computed(()=>T("Code")),f=b=>{const{name:y,value:h}=b.target;o({type:"CHANGE",data:{name:y,value:h}})},p=b=>{(r==null?void 0:r.onConfirmSignInSubmit)?t("confirmSignInSubmit",b):m(b)},m=b=>{const y=new FormData(b.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(y))})},g=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(b,y)=>{const h=Xe,w=Fe,_=De,S=pe,N=Ve,A=Ce,x=Me,P=Oe,F=Ue;return n.renderSlot(b.$slots,"confirmSignInSlotI",n.normalizeProps(n.guardReactiveProps(b.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(b.$attrs)),{default:n.withCtx(()=>[n.createVNode(F,{"data-amplify-authenticator-confirmsignin":"",onInput:f,onSubmit:n.withModifiers(p,["prevent"])},{default:n.withCtx(()=>[n.createVNode(P,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"header",{},()=>[n.createVNode(h,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(l))]),_:1})]),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"sr-only amplify-label",for:"amplify-field-51ee"},{default:n.withCtx(()=>[G2]),_:1}),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-input amplify-field-group__control",id:"amplify-field-51ee","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(v),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var O,D;return[((D=(O=n.unref(i))==null?void 0:O.context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(N,{key:0},{default:n.withCtx(()=>{var z,ve;return[n.createTextVNode(n.toDisplayString(n.unref(T)((ve=(z=n.unref(i))==null?void 0:z.context)==null?void 0:ve.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(b.$slots,"footer",{onBackToSignInClicked:g,onConfirmSignInSubmit:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var jt={},W2=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Is={},Se={};let ha;const H2=[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];Se.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};Se.getSymbolTotalCodewords=function(t){return H2[t]};Se.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Se.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');ha=t};Se.isKanjiModeEnabled=function(){return typeof ha!="undefined"};Se.toSJIS=function(t){return ha(t)};var Mr={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(a){return a&&typeof a.bit!="undefined"&&a.bit>=0&&a.bit<4},e.from=function(a,o){if(e.isValid(a))return a;try{return t(a)}catch{return o}}})(Mr);function Ns(){this.buffer=[],this.length=0}Ns.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var K2=Ns;function Gt(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)}Gt.prototype.set=function(e,t,r,a){const o=e*this.size+t;this.data[o]=r,a&&(this.reservedBit[o]=!0)};Gt.prototype.get=function(e,t){return this.data[e*this.size+t]};Gt.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};Gt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var q2=Gt,Ts={};(function(e){const t=Se.getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const o=Math.floor(a/7)+2,i=t(a),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,u=[i-7];for(let l=1;l<o-1;l++)u[l]=u[l-1]-s;return u.push(6),u.reverse()},e.getPositions=function(a){const o=[],i=e.getRowColCoords(a),s=i.length;for(let u=0;u<s;u++)for(let l=0;l<s;l++)u===0&&l===0||u===0&&l===s-1||u===s-1&&l===0||o.push([i[u],i[l]]);return o}})(Ts);var Ps={};const Y2=Se.getSymbolSize,$s=7;Ps.getPositions=function(t){const r=Y2(t);return[[0,0],[r-$s,0],[0,r-$s]]};var Bs={};(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(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,u=0,l=0,c=null,d=null;for(let v=0;v<i;v++){u=l=0,c=d=null;for(let f=0;f<i;f++){let p=o.get(v,f);p===c?u++:(u>=5&&(s+=t.N1+(u-5)),c=p,u=1),p=o.get(f,v),p===d?l++:(l>=5&&(s+=t.N1+(l-5)),d=p,l=1)}u>=5&&(s+=t.N1+(u-5)),l>=5&&(s+=t.N1+(l-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let u=0;u<i-1;u++)for(let l=0;l<i-1;l++){const c=o.get(u,l)+o.get(u,l+1)+o.get(u+1,l)+o.get(u+1,l+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,u=0,l=0;for(let c=0;c<i;c++){u=l=0;for(let d=0;d<i;d++)u=u<<1&2047|o.get(c,d),d>=10&&(u===1488||u===93)&&s++,l=l<<1&2047|o.get(d,c),d>=10&&(l===1488||l===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let l=0;l<s;l++)i+=o.data[l];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function r(a,o,i){switch(a){case e.Patterns.PATTERN000:return(o+i)%2==0;case e.Patterns.PATTERN001:return o%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(o+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return o*i%2+o*i%3==0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(o,i){const s=i.size;for(let u=0;u<s;u++)for(let l=0;l<s;l++)i.isReserved(l,u)||i.xor(l,u,r(o,l,u))},e.getBestMask=function(o,i){const s=Object.keys(e.Patterns).length;let u=0,l=1/0;for(let c=0;c<s;c++){i(c),e.applyMask(c,o);const d=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(c,o),d<l&&(l=d,u=c)}return u}})(Bs);var Lr={};const Je=Mr,zr=[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],jr=[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];Lr.getBlocksCount=function(t,r){switch(r){case Je.L:return zr[(t-1)*4+0];case Je.M:return zr[(t-1)*4+1];case Je.Q:return zr[(t-1)*4+2];case Je.H:return zr[(t-1)*4+3];default:return}};Lr.getTotalCodewordsCount=function(t,r){switch(r){case Je.L:return jr[(t-1)*4+0];case Je.M:return jr[(t-1)*4+1];case Je.Q:return jr[(t-1)*4+2];case Je.H:return jr[(t-1)*4+3];default:return}};var ks={},Gr={};const Wt=new Uint8Array(512),Wr=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)Wt[r]=t,Wr[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)Wt[r]=Wt[r-255]})();Gr.log=function(t){if(t<1)throw new Error("log("+t+")");return Wr[t]};Gr.exp=function(t){return Wt[t]};Gr.mul=function(t,r){return t===0||r===0?0:Wt[Wr[t]+Wr[r]]};(function(e){const t=Gr;e.mul=function(a,o){const i=new Uint8Array(a.length+o.length-1);for(let s=0;s<a.length;s++)for(let u=0;u<o.length;u++)i[s+u]^=t.mul(a[s],o[u]);return i},e.mod=function(a,o){let i=new Uint8Array(a);for(;i.length-o.length>=0;){const s=i[0];for(let l=0;l<o.length;l++)i[l]^=t.mul(o[l],s);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(a){let o=new Uint8Array([1]);for(let i=0;i<a;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(ks);const Rs=ks;function ga(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ga.prototype.initialize=function(t){this.degree=t,this.genPoly=Rs.generateECPolynomial(this.degree)};ga.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const a=Rs.mod(r,this.genPoly),o=this.degree-a.length;if(o>0){const i=new Uint8Array(this.degree);return i.set(a,o),i}return a};var Z2=ga,Fs={},Qe={},ya={};ya.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const Ds="[0-9]+",X2="[A-Z $%*+\\-./:]+";let Ht="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ht=Ht.replace(/u/g,"\\u");const J2="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ht+`)(?:.|[\r
79
- ]))+`;je.KANJI=new RegExp(Ht,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(J2,"g");je.NUMERIC=new RegExp(Ds,"g");je.ALPHANUMERIC=new RegExp(X2,"g");const Q2=new RegExp("^"+Ht+"$"),e3=new RegExp("^"+Ds+"$"),t3=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return Q2.test(t)};je.testNumeric=function(t){return e3.test(t)};je.testAlphanumeric=function(t){return t3.test(t)};(function(e){const t=ya,r=je;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function a(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.from=function(i,s){if(e.isValid(i))return i;try{return a(i)}catch{return s}}})(Qe);(function(e){const t=Se,r=Lr,a=Mr,o=Qe,i=ya,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function l(f,p,m){for(let g=1;g<=40;g++)if(p<=e.getCapacity(g,m,f))return g}function c(f,p){return o.getCharCountIndicator(f,p)+4}function d(f,p){let m=0;return f.forEach(function(g){m+=c(g.mode,p)+g.getBitsLength()}),m}function v(f,p){for(let m=1;m<=40;m++)if(d(f,m)<=e.getCapacity(m,p,o.MIXED))return m}e.from=function(p,m){return i.isValid(p)?parseInt(p,10):m},e.getCapacity=function(p,m,g){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof g=="undefined"&&(g=o.BYTE);const b=t.getSymbolTotalCodewords(p),y=r.getTotalCodewordsCount(p,m),h=(b-y)*8;if(g===o.MIXED)return h;const w=h-c(g,p);switch(g){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(p,m){let g;const b=a.from(m,a.M);if(Array.isArray(p)){if(p.length>1)return v(p,b);if(p.length===0)return 1;g=p[0]}else g=p;return l(g.mode,g.getLength(),b)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let m=p<<12;for(;t.getBCHDigit(m)-u>=0;)m^=s<<t.getBCHDigit(m)-u;return p<<12|m}})(Fs);var Os={};const ba=Se,Vs=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,r3=1<<14|1<<12|1<<10|1<<4|1<<1,Us=ba.getBCHDigit(Vs);Os.getEncodedBits=function(t,r){const a=t.bit<<3|r;let o=a<<10;for(;ba.getBCHDigit(o)-Us>=0;)o^=Vs<<ba.getBCHDigit(o)-Us;return(a<<10|o)^r3};var Ms={};const n3=Qe;function xt(e){this.mode=n3.NUMERIC,this.data=e.toString()}xt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};xt.prototype.getLength=function(){return this.data.length};xt.prototype.getBitsLength=function(){return xt.getBitsLength(this.data.length)};xt.prototype.write=function(t){let r,a,o;for(r=0;r+3<=this.data.length;r+=3)a=this.data.substr(r,3),o=parseInt(a,10),t.put(o,10);const i=this.data.length-r;i>0&&(a=this.data.substr(r),o=parseInt(a,10),t.put(o,i*3+1))};var a3=xt;const o3=Qe,Ca=["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 Et(e){this.mode=o3.ALPHANUMERIC,this.data=e}Et.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Et.prototype.getLength=function(){return this.data.length};Et.prototype.getBitsLength=function(){return Et.getBitsLength(this.data.length)};Et.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let a=Ca.indexOf(this.data[r])*45;a+=Ca.indexOf(this.data[r+1]),t.put(a,11)}this.data.length%2&&t.put(Ca.indexOf(this.data[r]),6)};var i3=Et,s3=function(t){for(var r=[],a=t.length,o=0;o<a;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&a>o+1){var s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const l3=s3,u3=Qe;function At(e){this.mode=u3.BYTE,this.data=new Uint8Array(l3(e))}At.getBitsLength=function(t){return t*8};At.prototype.getLength=function(){return this.data.length};At.prototype.getBitsLength=function(){return At.getBitsLength(this.data.length)};At.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var c3=At;const d3=Qe,f3=Se;function It(e){this.mode=d3.KANJI,this.data=e}It.getBitsLength=function(t){return t*13};It.prototype.getLength=function(){return this.data.length};It.prototype.getBitsLength=function(){return It.getBitsLength(this.data.length)};It.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=f3.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
80
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var v3=It,Ls={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,a,o){var i={},s={};s[a]=0;var u=t.PriorityQueue.make();u.push(a,0);for(var l,c,d,v,f,p,m,g,b;!u.empty();){l=u.pop(),c=l.value,v=l.cost,f=r[c]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],m=v+p,g=s[d],b=typeof s[d]=="undefined",(b||g>m)&&(s[d]=m,u.push(d,m),i[d]=c))}if(typeof o!="undefined"&&typeof s[o]=="undefined"){var y=["Could not find a path from ",a," to ",o,"."].join("");throw new Error(y)}return i},extract_shortest_path_from_predecessor_list:function(r,a){for(var o=[],i=a;i;)o.push(i),i=r[i];return o.reverse(),o},find_path:function(r,a,o){var i=t.single_source_shortest_paths(r,a,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,o={},i;r=r||{};for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);return o.queue=[],o.sorter=r.sorter||a.default_sorter,o},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var o={value:r,cost:a};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Ls);(function(e){const t=Qe,r=a3,a=i3,o=c3,i=v3,s=je,u=Se,l=Ls.exports;function c(y){return unescape(encodeURIComponent(y)).length}function d(y,h,w){const _=[];let S;for(;(S=y.exec(w))!==null;)_.push({data:S[0],index:S.index,mode:h,length:S[0].length});return _}function v(y){const h=d(s.NUMERIC,t.NUMERIC,y),w=d(s.ALPHANUMERIC,t.ALPHANUMERIC,y);let _,S;return u.isKanjiModeEnabled()?(_=d(s.BYTE,t.BYTE,y),S=d(s.KANJI,t.KANJI,y)):(_=d(s.BYTE_KANJI,t.BYTE,y),S=[]),h.concat(w,_,S).sort(function(A,x){return A.index-x.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(y,h){switch(h){case t.NUMERIC:return r.getBitsLength(y);case t.ALPHANUMERIC:return a.getBitsLength(y);case t.KANJI:return i.getBitsLength(y);case t.BYTE:return o.getBitsLength(y)}}function p(y){return y.reduce(function(h,w){const _=h.length-1>=0?h[h.length-1]:null;return _&&_.mode===w.mode?(h[h.length-1].data+=w.data,h):(h.push(w),h)},[])}function m(y){const h=[];for(let w=0;w<y.length;w++){const _=y[w];switch(_.mode){case t.NUMERIC:h.push([_,{data:_.data,mode:t.ALPHANUMERIC,length:_.length},{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.ALPHANUMERIC:h.push([_,{data:_.data,mode:t.BYTE,length:_.length}]);break;case t.KANJI:h.push([_,{data:_.data,mode:t.BYTE,length:c(_.data)}]);break;case t.BYTE:h.push([{data:_.data,mode:t.BYTE,length:c(_.data)}])}}return h}function g(y,h){const w={},_={start:{}};let S=["start"];for(let N=0;N<y.length;N++){const A=y[N],x=[];for(let P=0;P<A.length;P++){const F=A[P],O=""+N+P;x.push(O),w[O]={node:F,lastCount:0},_[O]={};for(let D=0;D<S.length;D++){const z=S[D];w[z]&&w[z].node.mode===F.mode?(_[z][O]=f(w[z].lastCount+F.length,F.mode)-f(w[z].lastCount,F.mode),w[z].lastCount+=F.length):(w[z]&&(w[z].lastCount=F.length),_[z][O]=f(F.length,F.mode)+4+t.getCharCountIndicator(F.mode,h))}}S=x}for(let N=0;N<S.length;N++)_[S[N]].end=0;return{map:_,table:w}}function b(y,h){let w;const _=t.getBestModeForData(y);if(w=t.from(h,_),w!==t.BYTE&&w.bit<_.bit)throw new Error('"'+y+'" cannot be encoded with mode '+t.toString(w)+`.
81
- Suggested mode is: `+t.toString(_));switch(w===t.KANJI&&!u.isKanjiModeEnabled()&&(w=t.BYTE),w){case t.NUMERIC:return new r(y);case t.ALPHANUMERIC:return new a(y);case t.KANJI:return new i(y);case t.BYTE:return new o(y)}}e.fromArray=function(h){return h.reduce(function(w,_){return typeof _=="string"?w.push(b(_,null)):_.data&&w.push(b(_.data,_.mode)),w},[])},e.fromString=function(h,w){const _=v(h,u.isKanjiModeEnabled()),S=m(_),N=g(S,w),A=l.find_path(N.map,"start","end"),x=[];for(let P=1;P<A.length-1;P++)x.push(N.table[A[P]].node);return e.fromArray(p(x))},e.rawSplit=function(h){return e.fromArray(v(h,u.isKanjiModeEnabled()))}})(Ms);const Hr=Se,wa=Mr,p3=K2,m3=q2,h3=Ts,g3=Ps,_a=Bs,Sa=Lr,y3=Z2,Kr=Fs,b3=Os,C3=Qe,xa=Ms;function w3(e,t){const r=e.size,a=g3.getPositions(t);for(let o=0;o<a.length;o++){const i=a[o][0],s=a[o][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||r<=i+u))for(let l=-1;l<=7;l++)s+l<=-1||r<=s+l||(u>=0&&u<=6&&(l===0||l===6)||l>=0&&l<=6&&(u===0||u===6)||u>=2&&u<=4&&l>=2&&l<=4?e.set(i+u,s+l,!0,!0):e.set(i+u,s+l,!1,!0))}}function _3(e){const t=e.size;for(let r=8;r<t-8;r++){const a=r%2==0;e.set(r,6,a,!0),e.set(6,r,a,!0)}}function S3(e,t){const r=h3.getPositions(t);for(let a=0;a<r.length;a++){const o=r[a][0],i=r[a][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(o+s,i+u,!0,!0):e.set(o+s,i+u,!1,!0)}}function x3(e,t){const r=e.size,a=Kr.getEncodedBits(t);let o,i,s;for(let u=0;u<18;u++)o=Math.floor(u/3),i=u%3+r-8-3,s=(a>>u&1)==1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function Ea(e,t,r){const a=e.size,o=b3.getEncodedBits(t,r);let i,s;for(i=0;i<15;i++)s=(o>>i&1)==1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(a-15+i,8,s,!0),i<8?e.set(8,a-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(a-8,8,1,!0)}function E3(e,t){const r=e.size;let a=-1,o=r-1,i=7,s=0;for(let u=r-1;u>0;u-=2)for(u===6&&u--;;){for(let l=0;l<2;l++)if(!e.isReserved(o,u-l)){let c=!1;s<t.length&&(c=(t[s]>>>i&1)==1),e.set(o,u-l,c),i--,i===-1&&(s++,i=7)}if(o+=a,o<0||r<=o){o-=a,a=-a;break}}}function A3(e,t,r){const a=new p3;r.forEach(function(l){a.put(l.mode.bit,4),a.put(l.getLength(),C3.getCharCountIndicator(l.mode,e)),l.write(a)});const o=Hr.getSymbolTotalCodewords(e),i=Sa.getTotalCodewordsCount(e,t),s=(o-i)*8;for(a.getLengthInBits()+4<=s&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);const u=(s-a.getLengthInBits())/8;for(let l=0;l<u;l++)a.put(l%2?17:236,8);return I3(a,e,t)}function I3(e,t,r){const a=Hr.getSymbolTotalCodewords(t),o=Sa.getTotalCodewordsCount(t,r),i=a-o,s=Sa.getBlocksCount(t,r),u=a%s,l=s-u,c=Math.floor(a/s),d=Math.floor(i/s),v=d+1,f=c-d,p=new y3(f);let m=0;const g=new Array(s),b=new Array(s);let y=0;const h=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const x=A<l?d:v;g[A]=h.slice(m,m+x),b[A]=p.encode(g[A]),m+=x,y=Math.max(y,x)}const w=new Uint8Array(a);let _=0,S,N;for(S=0;S<y;S++)for(N=0;N<s;N++)S<g[N].length&&(w[_++]=g[N][S]);for(S=0;S<f;S++)for(N=0;N<s;N++)w[_++]=b[N][S];return w}function N3(e,t,r,a){let o;if(Array.isArray(e))o=xa.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const d=xa.rawSplit(e);c=Kr.getBestVersionForData(d,r)}o=xa.fromString(e,c||40)}else throw new Error("Invalid data");const i=Kr.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
78
+ `),Fr(ie({},l),{tokens:c})})),{tokens:a,breakpoints:o,name:i,cssText:s,overrides:u}}E();E();e2({name:"default-theme"},Ss);const t2={},r2={"data-amplify-label":""};function n2(e,t){return n.openBlock(),n.createElementBlock("label",r2,[n.renderSlot(e.$slots,"default")])}var Re=Pt(t2,[["render",n2]]);const De=n.defineComponent({emits:["update:modelValue"],setup(e,{emit:t}){const r=a=>{t("update:modelValue",a.target.value)};return(a,o)=>(n.openBlock(),n.createElementBlock("input",{onChange:o[0]||(o[0]=i=>r(i)),"data-amplify-input":""},null,32))}}),a2=["aria-label"],o2={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},i2=n.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1),s2=[i2],l2={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},u2=n.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),c2=n.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1),d2=[u2,c2];function f2(e){const t=e,r=P("Show password"),a=P("Hide password"),o=n.ref("password"),i=n.ref(r),s=Math.floor(Math.random()*999999),{name:u,label:l,autocomplete:c,ariainvalid:d}=n.toRefs(t);let v=n.ref("");function f(){i.value=i.value===r?a:r,o.value=o.value==="password"?"text":"password"}return(p,h)=>{const g=Re,b=De,y=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(g,{class:"amplify-label sr-only",for:"amplify-field-"+n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["for"]),n.createVNode(y,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(b,n.mergeProps(p.$attrs,{modelValue:n.unref(v),"onUpdate:modelValue":h[0]||(h[0]=m=>n.isRef(v)?v.value=m:v=m),class:"amplify-input amplify-field-group__control","aria-invalid":n.unref(d),id:"amplify-field-"+n.unref(s),"data-amplify-password":"true",name:n.unref(u),autocomplete:n.unref(c),required:"",placeholder:n.unref(l),type:o.value}),null,16,["modelValue","aria-invalid","id","name","autocomplete","placeholder","type"]),n.createVNode(y,{class:"amplify-field-group__outer-end"},{default:n.withCtx(()=>[n.createElementVNode("button",{"aria-label":i.value,class:"amplify-button amplify-field-group__control amplify-field__show-password","data-fullwidth":"false",type:"button",onClick:f},[o.value==="password"?(n.openBlock(),n.createElementBlock("svg",o2,s2)):(n.openBlock(),n.createElementBlock("svg",l2,d2))],8,a2)]),_:1})]),_:1})],64)}}const v2={inheritAttrs:!1},Ke=n.defineComponent(Xr($e({},v2),{props:{name:String,label:String,autocomplete:String,ariainvalid:Boolean},setup:f2})),p2=["value","selected"],xs=n.defineComponent({props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const{options:r,selectValue:a}=e,o=i=>{t("update:selectValue",i.target.value)};return(i,s)=>(n.openBlock(),n.createElementBlock("select",{onChange:s[0]||(s[0]=u=>o(u))},[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(r,(u,l)=>n.createElementVNode("option",{key:l,value:u,selected:u==a?!0:void 0},n.toDisplayString(u),9,p2)),64))],32))}});var Dr=globalThis&&globalThis.__assign||function(){return Dr=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dr.apply(this,arguments)},m2=globalThis&&globalThis.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r};function h2(e,t,r){if(typeof e=="object")return e;var a=function(){};return{next:e,error:t||a,complete:r||a}}function g2(e,t,r){t===void 0&&(t={});var a=typeof e=="function"?e():e,o=t.context,i=t.guards,s=t.actions,u=t.activities,l=t.services,c=t.delays,d=t.state,v=m2(t,["context","guards","actions","activities","services","delays","state"]),f={context:o,guards:i,actions:s,activities:u,services:l,delays:c},p=a.withConfig(f,function(){return Dr(Dr({},a.context),o)}),h=_o(p,v).start(d?Xe.create(d):void 0),g;return n.onMounted(function(){r&&(g=h.subscribe(h2(r)))}),n.onBeforeUnmount(function(){h.stop(),g==null||g.unsubscribe()}),h}function y2(e){return"state"in e}var Es=function(){};function b2(e){return"getSnapshot"in e?e.getSnapshot():y2(e)?e.state:void 0}function As(e,t){t===void 0&&(t=b2);var r=n.isRef(e)?e:n.shallowRef(e),a=n.shallowRef(t(r.value)),o=function(i){r.value.send(i)};return n.watch(r,function(i,s,u){a.value=t(i);var l=i.subscribe({next:function(c){return a.value=c},error:Es,complete:Es}).unsubscribe;u(function(){return l()})},{immediate:!0}),{state:a,send:o}}const C2=e=>(e==null?void 0:e.length)===1&&e[0]==="username"?[...Qn]:e,Is={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};function w2(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function S2(e){let t=0,r,a;const o=()=>{t-=1,a&&t<=0&&(a.stop(),r=void 0,a=void 0)};return(...i)=>(t+=1,r||(a=n.effectScope(!0),r=a.run(()=>e(...i))),w2(o),r)}const da=n.ref();let Or=n.reactive(Xr($e({},Is),{send:"",state:""}));const we=e=>(e&&(da.value=e),As(da.value)),_2=()=>(Ns(),n.watchEffect(()=>{Ns()}),Or),Ne=S2(_2);function Ns(){if(!da.value)return;const{state:e,send:t}=we(),r=hs({send:t,state:e.value});for(const a of Object.keys(Is))Or[a]=r[a];Or.send=t,Or.state=e}const x2=n.createTextVNode(n.toDisplayString("Country Code")),E2=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon",viewBox:"0 0 24 24","data-size":"large",fill:"currentColor"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),Vr=n.defineComponent({props:{userNameAlias:{type:Boolean,default:!1},userName:{default:""},disabled:{type:Boolean}},setup(e){var h,g,b,y,m;const{userNameAlias:t,userName:r,disabled:a}=e,{state:o}=we(),{value:{context:i}}=o,u=n.computed(()=>zt(o.value)).value.country_code;let l=n.ref("");r&&(l=n.computed(()=>r));const c=n.computed(()=>gs),[d]=C2((h=i==null?void 0:i.config)==null?void 0:h.loginMechanisms);let v=d,f=(b=(g=ye[d])==null?void 0:g.label)!=null?b:ye.username.label,p=(m=(y=ye[v])==null?void 0:y.type)!=null?m:ye.username.label;if(t){const w=ms(i);f=w.label||ye.username.label,p=w.type,v="username"}return f=P(f),(w,S)=>{const _=Re,N=xs,x=pe,A=De;return n.openBlock(),n.createBlock(x,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,n.mergeProps({class:"amplify-label sr-only",for:"amplify-field-601d"},w.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},16),n.createVNode(x,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[n.unref(p)==="tel"?(n.openBlock(),n.createBlock(x,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-label sr-only",for:"amplify-field-1177"},{default:n.withCtx(()=>[x2]),_:1}),n.createVNode(x,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-select amplify-field-group__control",id:"amplify-field-1177","aria-label":"country code",name:"country_code",options:n.unref(c),selectValue:n.unref(u)},null,8,["options","selectValue"]),n.createVNode(x,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[E2]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(x,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-input amplify-field-group__control",id:"amplify-field-601d","aria-invalid":"false",textValue:n.unref(l),autocomplete:"username",placeholder:n.unref(f),required:"",name:n.unref(v),disabled:a,type:n.unref(p)},null,8,["textValue","placeholder","name","type"])]),_:1})]),_:1})]),_:1})}}}),Ur=n.defineComponent({props:{provider:String},setup(e){const{provider:t}=e,{send:r}=we(),a=o=>{r({type:"FEDERATED_SIGN_IN",data:{provider:t}})};return(o,i)=>{const s=pe,u=Ce;return n.openBlock(),n.createBlock(u,{class:"amplify-field-group__control federated-sign-in-button","data-fullwidth":"false",style:{"font-weight":"normal"},type:"button",onClick:a},{default:n.withCtx(()=>[n.createVNode(s,{class:"amplify-flex federated-sign-in-button-row",style:{"flex-direction":"row","justify-content":"center","align-items":"center"}},{default:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),_:3})]),_:3})}}}),A2=n.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[n.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),I2={class:"amplify-text",style:{"align-self":"center"}},N2=n.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"},[n.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),P2={class:"amplify-text",style:{"align-self":"center"}},T2=n.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[n.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),$2={class:"amplify-text",style:{"align-self":"center"}},k2=n.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"},[n.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),n.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),n.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),n.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),B2={class:"amplify-text",style:{"align-self":"center"}},F2=n.createElementVNode("div",{"data-or-line":""},"or",-1),R2=n.createElementVNode("hr",{class:"amplify-divider","aria-orientation":"horizontal","data-size":"small"},null,-1),Mr=n.defineComponent({setup(e){var b;const{state:t}=we(),{route:r}=Ne(),{value:{context:a}}=t,o=(b=a==null?void 0:a.config)==null?void 0:b.socialProviders,i=o==null?void 0:o.includes("amazon"),s=o==null?void 0:o.includes("apple"),u=o==null?void 0:o.includes("facebook"),l=o==null?void 0:o.includes("google"),c=u||l||i||s,d=r==="signUp"?"Up":"In",v=n.computed(()=>ps),f=n.computed(()=>P(`Sign ${d} with Amazon`)),p=n.computed(()=>P(`Sign ${d} with Apple`)),h=n.computed(()=>P(`Sign ${d} with Facebook`)),g=n.computed(()=>P(`Sign ${d} with Google`));return(y,m)=>{const w=pe;return n.unref(c)?(n.openBlock(),n.createBlock(w,{key:0,class:"amplify-flex federated-sign-in-container",style:{"flex-direction":"column",padding:"0 0 1rem 0"}},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(Ur,{key:0,provider:n.unref(v).Amazon},{default:n.withCtx(()=>[A2,n.createElementVNode("p",I2,n.toDisplayString(n.unref(f)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(s)?(n.openBlock(),n.createBlock(Ur,{key:1,provider:n.unref(v).Apple},{default:n.withCtx(()=>[N2,n.createElementVNode("p",P2,n.toDisplayString(n.unref(p)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(u)?(n.openBlock(),n.createBlock(Ur,{key:2,provider:n.unref(v).Facebook},{default:n.withCtx(()=>[T2,n.createElementVNode("p",$2,n.toDisplayString(n.unref(h)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.unref(l)?(n.openBlock(),n.createBlock(Ur,{key:3,provider:n.unref(v).Google},{default:n.withCtx(()=>[k2,n.createElementVNode("p",B2,n.toDisplayString(n.unref(g)),1)]),_:1},8,["provider"])):n.createCommentVNode("",!0),n.createVNode(w,{class:"amplify-flex","data-or-container":""},{default:n.withCtx(()=>[F2,R2]),_:1})]),_:1})):n.createCommentVNode("",!0)}}}),D2={"data-amplify-footer":""},fa=n.defineComponent({emits:["signInSubmit","forgotPasswordClicked","createAccountClicked"],setup(e,{emit:t}){const r=n.useAttrs(),a=n.computed(()=>P("Password")),o=n.computed(()=>y_("Forgot your password? ")?P("Forgot your password? "):P("Forgot your password?")),i=n.computed(()=>P("Sign in")),s=n.computed(()=>P("Signing in")),{state:u,send:l}=we(),c=n.computed(()=>Fe(u.value)),d=h=>{const{name:g,value:b}=h.target;l({type:"CHANGE",data:{name:g,value:b}})},v=h=>{(r==null?void 0:r.onSignInSubmit)?t("signInSubmit",h):f(h)},f=h=>{const g=new FormData(h.target);l({type:"SUBMIT",data:Object.fromEntries(g)})},p=()=>{(r==null?void 0:r.onForgotPasswordClicked)?t("forgotPasswordClicked"):l({type:"RESET_PASSWORD"})};return(h,g)=>{const b=pe,y=Oe,m=Ve,w=Ce,S=Ue,_=Me;return n.renderSlot(h.$slots,"signInSlotI",n.normalizeProps(n.guardReactiveProps(h.$attrs)),()=>[n.renderSlot(h.$slots,"header"),n.createVNode(b,n.normalizeProps(n.guardReactiveProps(h.$attrs)),{default:n.withCtx(()=>[n.createVNode(S,{"data-amplify-authenticator-signin":"",onInput:d,onSubmit:n.withModifiers(v,["prevent"]),method:"post"},{formt:n.withCtx(({slotData:N})=>[n.renderSlot(h.$slots,"form",{info:N,onSignInSubmit:v,onInput:d,onForgotPasswordClicked:p})]),default:n.withCtx(()=>[n.createVNode(Mr),n.createVNode(b,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(y,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-flex",style:{"flex-direction":"column"}},{fieldSetI:n.withCtx(({slotData:N})=>[n.renderSlot(h.$slots,"signin-fields",{info:N})]),default:n.withCtx(()=>[n.createVNode(Vr,{userNameAlias:!0}),n.createVNode(b,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(a),autocomplete:"current-password",ariainvalid:!1},null,8,["label"])]),_:1})]),_:3},8,["disabled"]),n.unref(c).context.remoteError?(n.openBlock(),n.createBlock(m,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(c).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(w,{disabled:n.unref(c).matches("signIn.submit"),class:"amplify-field-group__control",fullwidth:!0,"data-loading":"false",variation:"primary",style:{"border-radius":"0x","font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c).matches("signIn.submit")?n.unref(s):n.unref(i)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(_,null,{default:n.withCtx(()=>[n.renderSlot(h.$slots,"footer",{},()=>[n.createElementVNode("div",D2,[n.createVNode(w,{onClick:p,class:"amplify-field-group__control","data-fullwidth":"true","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(o)),1)]),_:1})])])]),_:3})])}}}),O2=n.createTextVNode(n.toDisplayString("Country Code")),V2=n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon"},[n.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),U2=n.defineComponent({props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""}},setup(e){const{label:t,name:r,placeholder:a,autocomplete:o}=e,i=Math.floor(Math.random()*999999),s=Math.floor(Math.random()*999999),{state:u,send:l}=we(),c=n.computed(()=>ye),v=n.computed(()=>zt(u.value)).value.country_code,f=n.computed(()=>gs);n.onMounted(()=>{c.value[r].type==="tel"&&l({type:"CHANGE",data:{name:"country_code",value:v}})});const p=n.computed(()=>{var h;return o||((h=ye[r])==null?void 0:h.autocomplete)});return(h,g)=>{const b=Re,y=xs,m=pe,w=De;return n.openBlock(),n.createBlock(m,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(b,n.mergeProps({for:"amplify-field-"+n.unref(i),class:"amplify-label"},h.$attrs),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(t))]),_:1},16,["for"]),n.createVNode(m,{class:"amplify-flex amplify-field-group"},{default:n.withCtx(()=>[n.createVNode(m,{class:"amplify-field-group__outer-start"},{default:n.withCtx(()=>[r==="phone_number"?(n.openBlock(),n.createBlock(m,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(b,n.mergeProps({for:"amplify-field-"+n.unref(s),class:"amplify-label sr-only"},h.$attrs),{default:n.withCtx(()=>[O2]),_:1},16,["for"]),n.createVNode(m,{class:"amplify-select__wrapper"},{default:n.withCtx(()=>[n.createVNode(y,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+n.unref(s),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:n.unref(f),"select-value":n.unref(v)},null,8,["id","options","select-value"]),n.createVNode(m,{class:"amplify-flex amplify-select__icon-wrapper",style:{"align-items":"center","justify-content":"center"}},{default:n.withCtx(()=>[V2]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1}),n.createVNode(m,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control","aria-invalid":"false",id:"amplify-field-"+n.unref(i),autocomplete:n.unref(p),name:r,required:"",type:n.unref(c)[r].type,placeholder:a},null,8,["id","autocomplete","type"])]),_:1})]),_:1})]),_:1})}}}),M2={key:0,role:"alert","data-variation":"error",class:"amplify-text"},va=n.defineComponent({setup(e){var p,h;const{state:t}=we(),{value:{context:r}}=t,{validationErrors:a}=n.toRefs(Ne()),o=Ne(),i=n.computed(()=>ye),s=n.computed(()=>P("Password")),u=n.computed(()=>P("Confirm Password"));let l,c=(p=r.config)==null?void 0:p.loginMechanisms,d=(h=r.config)==null?void 0:h.signUpAttributes;l=Array.from(new Set([...c,...d])),l=l.filter(g=>{const b=!!ye[g];return b||console.debug(`Authenticator does not have a default implementation for ${g}. Customize the authenticator sign-up-fields slot to add your own.`),b});function v(g){const{name:b}=g.target;o.updateBlur({name:b})}const f=l.shift();return(g,b)=>{const y=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(Vr,{userName:n.unref(f)},null,8,["userName"]),n.createVNode(y,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(s),autocomplete:"new-password",ariainvalid:!!n.unref(a).confirm_password,onBlur:v},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(y,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"confirm_password",label:n.unref(u),autocomplete:"new-password",ariainvalid:!!n.unref(a).confirm_password,onBlur:v},null,8,["label","ariainvalid"])]),_:1}),n.unref(a).confirm_password?(n.openBlock(),n.createElementBlock("p",M2,n.toDisplayString(n.unref(P)(n.unref(a).confirm_password)),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(l),(m,w)=>(n.openBlock(),n.createBlock(U2,{key:w,label:n.unref(P)(n.unref(i)[m].label),name:m,placeholder:n.unref(P)(n.unref(i)[m].label)},null,8,["label","name","placeholder"]))),128))],64)}}}),pa=n.defineComponent({emits:["signUpSubmit"],setup(e,{emit:t}){const r=Ne(),a=Ne(),{hasValidationErrors:o,isPending:i,error:s}=n.toRefs(r),u=n.useAttrs(),l=n.computed(()=>P("Create Account")),c=f=>{let{checked:p,name:h,type:g,value:b}=f.target;g==="checkbox"&&!p&&(b=void 0),a.updateForm({name:h,value:b})},d=f=>{(u==null?void 0:u.onSignUpSubmit)?t("signUpSubmit",f):v()},v=()=>{a.submitForm()};return(f,p)=>{const h=Oe,g=Ve,b=Ce,y=pe,m=Ue,w=Me;return n.renderSlot(f.$slots,"signUpSlotI",n.normalizeProps(n.guardReactiveProps(f.$attrs)),()=>[n.renderSlot(f.$slots,"header"),n.createVNode(y,n.normalizeProps(n.guardReactiveProps(f.$attrs)),{default:n.withCtx(()=>[n.createVNode(m,{onInput:c,onSubmit:n.withModifiers(d,["prevent"])},{default:n.withCtx(()=>[n.createVNode(Mr),n.createVNode(y,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(h,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i)},{fieldSetI:n.withCtx(({slotData:S})=>[n.renderSlot(f.$slots,"signup-fields",{info:S})]),default:n.withCtx(()=>[n.createVNode(va)]),_:3},8,["disabled"]),n.unref(s)?(n.openBlock(),n.createBlock(g,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(s))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(b,{class:"amplify-field-group__control","data-fullwidth":"true","data-loading":"false","data-variation":"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:n.unref(i)||n.unref(o)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),n.createVNode(w,null,{default:n.withCtx(()=>[n.renderSlot(f.$slots,"footer")]),_:3})])}}}),L2=n.defineComponent({props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{id:r,label:a}=t,{active:o}=n.toRefs(t);return(i,s)=>{const u=pe;return n.openBlock(),n.createBlock(u,{tabindex:n.unref(o)?0:-1,"data-state":n.unref(o)?"active":"inactive","aria-selected":n.unref(o)?"true":"false","aria-controls":`radix-id-${n.unref(r)}-8-content-0`,id:`radix-id-${n.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),z2={};function j2(e,t){const r=pe;return n.openBlock(),n.createBlock(r,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",role:"tablist",style:{outline:"none"}},{default:n.withCtx(()=>[n.createVNode(r,{class:"amplify-flex amplify-tabs","data-indicator-position":"top",style:{gap:"0px","justify-content":"center"}},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var G2=Pt(z2,[["render",j2]]);const Je=n.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:r}){var i,s;const a=t.default?t.default():[],o=t.headingI?t.headingI():[];if(((s=(i=o[0])==null?void 0:i.children)==null?void 0:s.length)===0)o[0].children=[n.h(`h${e.level}`,$e({},r),[a])];else return()=>n.h(`h${e.level}`,$e({"data-amplify-heading":""},r),[o[0]?n.h(o[0].children[0]):n.h(a[0])]);return()=>o}}),W2={};function H2(e,t){return n.renderSlot(e.$slots,"textI",n.normalizeProps(n.guardReactiveProps(e.$attrs)),()=>[n.createElementVNode("span",n.mergeProps(e.$attrs,{"data-amplify-text":""}),[n.renderSlot(e.$slots,"default")],16)])}var Ps=Pt(W2,[["render",H2]]);const ma=n.defineComponent({emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{isPending:a,error:o,codeDeliveryDetails:i}=n.toRefs(Ne()),{submitForm:s,updateForm:u,resendCode:l}=Ne(),c=n.computed(()=>{var w,S;return((w=i.value)==null?void 0:w.DeliveryMedium)==="EMAIL"?P("We Emailed You"):((S=i.value)==null?void 0:S.DeliveryMedium)==="SMS"?P("We Texted You"):P("We Sent A Code")}),d=n.computed(()=>P("Enter your code")),v=n.computed(()=>P("Confirmation Code")),f=n.computed(()=>P("Resend Code")),p=n.computed(()=>P("Confirm")),h=n.computed(()=>{var w,S,_,N;return((w=i.value)==null?void 0:w.DeliveryMedium)==="EMAIL"?`Your code is on the way. To log in, enter the code we emailed to ${(S=i.value)==null?void 0:S.Destination}. It may take a minute to arrive.`:((_=i.value)==null?void 0:_.DeliveryMedium)==="SMS"?`Your code is on the way. To log in, enter the code we texted to ${(N=i.value)==null?void 0:N.Destination}. It may take a minute to arrive.`:P("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive.")}),g=w=>{const{name:S,value:_}=w.target;u({name:S,value:_})},b=w=>{(r==null?void 0:r.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",w):y()},y=w=>{s()},m=()=>{(r==null?void 0:r.onLostCodeClicked)?t("lostCodeClicked"):l()};return(w,S)=>{const _=Je,N=Ps,x=Re,A=De,$=pe,R=Oe,O=Ve,D=Ce,z=Me,ve=Ue;return n.renderSlot(w.$slots,"confirmSignUpSlotI",n.normalizeProps(n.guardReactiveProps(w.$attrs)),()=>[n.createVNode($,n.normalizeProps(n.guardReactiveProps(w.$attrs)),{default:n.withCtx(()=>[n.createVNode(ve,{onInput:g,onSubmit:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createVNode($,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"header",{},()=>[n.createVNode(_,{class:"amplify-heading",style:{"font-size":"1.5rem"},level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1})]),n.createVNode(N,{style:{"margin-bottom":"1rem"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(h)),1)]),_:1}),n.createVNode(R,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(a)},{default:n.withCtx(()=>[n.createVNode($,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(x,{class:"sr-only amplify-label",for:"amplify-field-124b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1}),n.createVNode($,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-input amplify-field-group__control",id:"amplify-field-124b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(d)},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(z,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(o)?(n.openBlock(),n.createBlock(O,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(o))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(a)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(p)),1)]),_:1},8,["disabled"]),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"default",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(f)),1)]),_:1},8,["onClick"]),n.renderSlot(w.$slots,"footer",{onConfirmSignUpSubmit:b,onLostCodeClicked:m})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),K2=n.createTextVNode(" Code * "),ha=n.defineComponent({emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Fe(a.value)),s=i.value.context.challengeName;let u="SMS";s===vs.SOFTWARE_TOKEN_MFA&&(u="TOTP");const l=`Confirm ${u} Code`,c=n.computed(()=>P("Back to Sign In")),d=n.computed(()=>P("Confirm")),v=n.computed(()=>P("Code")),f=b=>{const{name:y,value:m}=b.target;o({type:"CHANGE",data:{name:y,value:m}})},p=b=>{(r==null?void 0:r.onConfirmSignInSubmit)?t("confirmSignInSubmit",b):h(b)},h=b=>{const y=new FormData(b.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(y))})},g=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(b,y)=>{const m=Je,w=Re,S=De,_=pe,N=Ve,x=Ce,A=Me,$=Oe,R=Ue;return n.renderSlot(b.$slots,"confirmSignInSlotI",n.normalizeProps(n.guardReactiveProps(b.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(b.$attrs)),{default:n.withCtx(()=>[n.createVNode(R,{"data-amplify-authenticator-confirmsignin":"",onInput:f,onSubmit:n.withModifiers(p,["prevent"])},{default:n.withCtx(()=>[n.createVNode($,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"header",{},()=>[n.createVNode(m,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(l))]),_:1})]),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"sr-only amplify-label",for:"amplify-field-51ee"},{default:n.withCtx(()=>[K2]),_:1}),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-input amplify-field-group__control",id:"amplify-field-51ee","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(v),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(A,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var O,D;return[((D=(O=n.unref(i))==null?void 0:O.context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(N,{key:0},{default:n.withCtx(()=>{var z,ve;return[n.createTextVNode(n.toDisplayString(n.unref(P)((ve=(z=n.unref(i))==null?void 0:z.context)==null?void 0:ve.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(b.$slots,"footer",{onBackToSignInClicked:g,onConfirmSignInSubmit:p})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var jt={},q2=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Ts={},_e={};let ga;const Y2=[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];_e.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};_e.getSymbolTotalCodewords=function(t){return Y2[t]};_e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};_e.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');ga=t};_e.isKanjiModeEnabled=function(){return typeof ga!="undefined"};_e.toSJIS=function(t){return ga(t)};var Lr={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(a){return a&&typeof a.bit!="undefined"&&a.bit>=0&&a.bit<4},e.from=function(a,o){if(e.isValid(a))return a;try{return t(a)}catch{return o}}})(Lr);function $s(){this.buffer=[],this.length=0}$s.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Z2=$s;function Gt(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)}Gt.prototype.set=function(e,t,r,a){const o=e*this.size+t;this.data[o]=r,a&&(this.reservedBit[o]=!0)};Gt.prototype.get=function(e,t){return this.data[e*this.size+t]};Gt.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};Gt.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var X2=Gt,ks={};(function(e){const t=_e.getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const o=Math.floor(a/7)+2,i=t(a),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,u=[i-7];for(let l=1;l<o-1;l++)u[l]=u[l-1]-s;return u.push(6),u.reverse()},e.getPositions=function(a){const o=[],i=e.getRowColCoords(a),s=i.length;for(let u=0;u<s;u++)for(let l=0;l<s;l++)u===0&&l===0||u===0&&l===s-1||u===s-1&&l===0||o.push([i[u],i[l]]);return o}})(ks);var Bs={};const J2=_e.getSymbolSize,Fs=7;Bs.getPositions=function(t){const r=J2(t);return[[0,0],[r-Fs,0],[0,r-Fs]]};var Rs={};(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(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,u=0,l=0,c=null,d=null;for(let v=0;v<i;v++){u=l=0,c=d=null;for(let f=0;f<i;f++){let p=o.get(v,f);p===c?u++:(u>=5&&(s+=t.N1+(u-5)),c=p,u=1),p=o.get(f,v),p===d?l++:(l>=5&&(s+=t.N1+(l-5)),d=p,l=1)}u>=5&&(s+=t.N1+(u-5)),l>=5&&(s+=t.N1+(l-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let u=0;u<i-1;u++)for(let l=0;l<i-1;l++){const c=o.get(u,l)+o.get(u,l+1)+o.get(u+1,l)+o.get(u+1,l+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,u=0,l=0;for(let c=0;c<i;c++){u=l=0;for(let d=0;d<i;d++)u=u<<1&2047|o.get(c,d),d>=10&&(u===1488||u===93)&&s++,l=l<<1&2047|o.get(d,c),d>=10&&(l===1488||l===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let l=0;l<s;l++)i+=o.data[l];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function r(a,o,i){switch(a){case e.Patterns.PATTERN000:return(o+i)%2==0;case e.Patterns.PATTERN001:return o%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(o+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return o*i%2+o*i%3==0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2==0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2==0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(o,i){const s=i.size;for(let u=0;u<s;u++)for(let l=0;l<s;l++)i.isReserved(l,u)||i.xor(l,u,r(o,l,u))},e.getBestMask=function(o,i){const s=Object.keys(e.Patterns).length;let u=0,l=1/0;for(let c=0;c<s;c++){i(c),e.applyMask(c,o);const d=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(c,o),d<l&&(l=d,u=c)}return u}})(Rs);var zr={};const Qe=Lr,jr=[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],Gr=[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];zr.getBlocksCount=function(t,r){switch(r){case Qe.L:return jr[(t-1)*4+0];case Qe.M:return jr[(t-1)*4+1];case Qe.Q:return jr[(t-1)*4+2];case Qe.H:return jr[(t-1)*4+3];default:return}};zr.getTotalCodewordsCount=function(t,r){switch(r){case Qe.L:return Gr[(t-1)*4+0];case Qe.M:return Gr[(t-1)*4+1];case Qe.Q:return Gr[(t-1)*4+2];case Qe.H:return Gr[(t-1)*4+3];default:return}};var Ds={},Wr={};const Wt=new Uint8Array(512),Hr=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)Wt[r]=t,Hr[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)Wt[r]=Wt[r-255]})();Wr.log=function(t){if(t<1)throw new Error("log("+t+")");return Hr[t]};Wr.exp=function(t){return Wt[t]};Wr.mul=function(t,r){return t===0||r===0?0:Wt[Hr[t]+Hr[r]]};(function(e){const t=Wr;e.mul=function(a,o){const i=new Uint8Array(a.length+o.length-1);for(let s=0;s<a.length;s++)for(let u=0;u<o.length;u++)i[s+u]^=t.mul(a[s],o[u]);return i},e.mod=function(a,o){let i=new Uint8Array(a);for(;i.length-o.length>=0;){const s=i[0];for(let l=0;l<o.length;l++)i[l]^=t.mul(o[l],s);let u=0;for(;u<i.length&&i[u]===0;)u++;i=i.slice(u)}return i},e.generateECPolynomial=function(a){let o=new Uint8Array([1]);for(let i=0;i<a;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}})(Ds);const Os=Ds;function ya(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ya.prototype.initialize=function(t){this.degree=t,this.genPoly=Os.generateECPolynomial(this.degree)};ya.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const a=Os.mod(r,this.genPoly),o=this.degree-a.length;if(o>0){const i=new Uint8Array(this.degree);return i.set(a,o),i}return a};var Q2=ya,Vs={},et={},ba={};ba.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var je={};const Us="[0-9]+",e3="[A-Z $%*+\\-./:]+";let Ht="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ht=Ht.replace(/u/g,"\\u");const t3="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ht+`)(?:.|[\r
79
+ ]))+`;je.KANJI=new RegExp(Ht,"g");je.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");je.BYTE=new RegExp(t3,"g");je.NUMERIC=new RegExp(Us,"g");je.ALPHANUMERIC=new RegExp(e3,"g");const r3=new RegExp("^"+Ht+"$"),n3=new RegExp("^"+Us+"$"),a3=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");je.testKanji=function(t){return r3.test(t)};je.testNumeric=function(t){return n3.test(t)};je.testAlphanumeric=function(t){return a3.test(t)};(function(e){const t=ba,r=je;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return r.testNumeric(i)?e.NUMERIC:r.testAlphanumeric(i)?e.ALPHANUMERIC:r.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function a(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.from=function(i,s){if(e.isValid(i))return i;try{return a(i)}catch{return s}}})(et);(function(e){const t=_e,r=zr,a=Lr,o=et,i=ba,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function l(f,p,h){for(let g=1;g<=40;g++)if(p<=e.getCapacity(g,h,f))return g}function c(f,p){return o.getCharCountIndicator(f,p)+4}function d(f,p){let h=0;return f.forEach(function(g){h+=c(g.mode,p)+g.getBitsLength()}),h}function v(f,p){for(let h=1;h<=40;h++)if(d(f,h)<=e.getCapacity(h,p,o.MIXED))return h}e.from=function(p,h){return i.isValid(p)?parseInt(p,10):h},e.getCapacity=function(p,h,g){if(!i.isValid(p))throw new Error("Invalid QR Code version");typeof g=="undefined"&&(g=o.BYTE);const b=t.getSymbolTotalCodewords(p),y=r.getTotalCodewordsCount(p,h),m=(b-y)*8;if(g===o.MIXED)return m;const w=m-c(g,p);switch(g){case o.NUMERIC:return Math.floor(w/10*3);case o.ALPHANUMERIC:return Math.floor(w/11*2);case o.KANJI:return Math.floor(w/13);case o.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(p,h){let g;const b=a.from(h,a.M);if(Array.isArray(p)){if(p.length>1)return v(p,b);if(p.length===0)return 1;g=p[0]}else g=p;return l(g.mode,g.getLength(),b)},e.getEncodedBits=function(p){if(!i.isValid(p)||p<7)throw new Error("Invalid QR Code version");let h=p<<12;for(;t.getBCHDigit(h)-u>=0;)h^=s<<t.getBCHDigit(h)-u;return p<<12|h}})(Vs);var Ms={};const Ca=_e,Ls=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,o3=1<<14|1<<12|1<<10|1<<4|1<<1,zs=Ca.getBCHDigit(Ls);Ms.getEncodedBits=function(t,r){const a=t.bit<<3|r;let o=a<<10;for(;Ca.getBCHDigit(o)-zs>=0;)o^=Ls<<Ca.getBCHDigit(o)-zs;return(a<<10|o)^o3};var js={};const i3=et;function xt(e){this.mode=i3.NUMERIC,this.data=e.toString()}xt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};xt.prototype.getLength=function(){return this.data.length};xt.prototype.getBitsLength=function(){return xt.getBitsLength(this.data.length)};xt.prototype.write=function(t){let r,a,o;for(r=0;r+3<=this.data.length;r+=3)a=this.data.substr(r,3),o=parseInt(a,10),t.put(o,10);const i=this.data.length-r;i>0&&(a=this.data.substr(r),o=parseInt(a,10),t.put(o,i*3+1))};var s3=xt;const l3=et,wa=["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 Et(e){this.mode=l3.ALPHANUMERIC,this.data=e}Et.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Et.prototype.getLength=function(){return this.data.length};Et.prototype.getBitsLength=function(){return Et.getBitsLength(this.data.length)};Et.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let a=wa.indexOf(this.data[r])*45;a+=wa.indexOf(this.data[r+1]),t.put(a,11)}this.data.length%2&&t.put(wa.indexOf(this.data[r]),6)};var u3=Et,c3=function(t){for(var r=[],a=t.length,o=0;o<a;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&a>o+1){var s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const d3=c3,f3=et;function At(e){this.mode=f3.BYTE,this.data=new Uint8Array(d3(e))}At.getBitsLength=function(t){return t*8};At.prototype.getLength=function(){return this.data.length};At.prototype.getBitsLength=function(){return At.getBitsLength(this.data.length)};At.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var v3=At;const p3=et,m3=_e;function It(e){this.mode=p3.KANJI,this.data=e}It.getBitsLength=function(t){return t*13};It.prototype.getLength=function(){return this.data.length};It.prototype.getBitsLength=function(){return It.getBitsLength(this.data.length)};It.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=m3.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
80
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var h3=It,Gs={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,a,o){var i={},s={};s[a]=0;var u=t.PriorityQueue.make();u.push(a,0);for(var l,c,d,v,f,p,h,g,b;!u.empty();){l=u.pop(),c=l.value,v=l.cost,f=r[c]||{};for(d in f)f.hasOwnProperty(d)&&(p=f[d],h=v+p,g=s[d],b=typeof s[d]=="undefined",(b||g>h)&&(s[d]=h,u.push(d,h),i[d]=c))}if(typeof o!="undefined"&&typeof s[o]=="undefined"){var y=["Could not find a path from ",a," to ",o,"."].join("");throw new Error(y)}return i},extract_shortest_path_from_predecessor_list:function(r,a){for(var o=[],i=a;i;)o.push(i),i=r[i];return o.reverse(),o},find_path:function(r,a,o){var i=t.single_source_shortest_paths(r,a,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,o={},i;r=r||{};for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);return o.queue=[],o.sorter=r.sorter||a.default_sorter,o},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var o={value:r,cost:a};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Gs);(function(e){const t=et,r=s3,a=u3,o=v3,i=h3,s=je,u=_e,l=Gs.exports;function c(y){return unescape(encodeURIComponent(y)).length}function d(y,m,w){const S=[];let _;for(;(_=y.exec(w))!==null;)S.push({data:_[0],index:_.index,mode:m,length:_[0].length});return S}function v(y){const m=d(s.NUMERIC,t.NUMERIC,y),w=d(s.ALPHANUMERIC,t.ALPHANUMERIC,y);let S,_;return u.isKanjiModeEnabled()?(S=d(s.BYTE,t.BYTE,y),_=d(s.KANJI,t.KANJI,y)):(S=d(s.BYTE_KANJI,t.BYTE,y),_=[]),m.concat(w,S,_).sort(function(x,A){return x.index-A.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function f(y,m){switch(m){case t.NUMERIC:return r.getBitsLength(y);case t.ALPHANUMERIC:return a.getBitsLength(y);case t.KANJI:return i.getBitsLength(y);case t.BYTE:return o.getBitsLength(y)}}function p(y){return y.reduce(function(m,w){const S=m.length-1>=0?m[m.length-1]:null;return S&&S.mode===w.mode?(m[m.length-1].data+=w.data,m):(m.push(w),m)},[])}function h(y){const m=[];for(let w=0;w<y.length;w++){const S=y[w];switch(S.mode){case t.NUMERIC:m.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:m.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:m.push([S,{data:S.data,mode:t.BYTE,length:c(S.data)}]);break;case t.BYTE:m.push([{data:S.data,mode:t.BYTE,length:c(S.data)}])}}return m}function g(y,m){const w={},S={start:{}};let _=["start"];for(let N=0;N<y.length;N++){const x=y[N],A=[];for(let $=0;$<x.length;$++){const R=x[$],O=""+N+$;A.push(O),w[O]={node:R,lastCount:0},S[O]={};for(let D=0;D<_.length;D++){const z=_[D];w[z]&&w[z].node.mode===R.mode?(S[z][O]=f(w[z].lastCount+R.length,R.mode)-f(w[z].lastCount,R.mode),w[z].lastCount+=R.length):(w[z]&&(w[z].lastCount=R.length),S[z][O]=f(R.length,R.mode)+4+t.getCharCountIndicator(R.mode,m))}}_=A}for(let N=0;N<_.length;N++)S[_[N]].end=0;return{map:S,table:w}}function b(y,m){let w;const S=t.getBestModeForData(y);if(w=t.from(m,S),w!==t.BYTE&&w.bit<S.bit)throw new Error('"'+y+'" cannot be encoded with mode '+t.toString(w)+`.
81
+ Suggested mode is: `+t.toString(S));switch(w===t.KANJI&&!u.isKanjiModeEnabled()&&(w=t.BYTE),w){case t.NUMERIC:return new r(y);case t.ALPHANUMERIC:return new a(y);case t.KANJI:return new i(y);case t.BYTE:return new o(y)}}e.fromArray=function(m){return m.reduce(function(w,S){return typeof S=="string"?w.push(b(S,null)):S.data&&w.push(b(S.data,S.mode)),w},[])},e.fromString=function(m,w){const S=v(m,u.isKanjiModeEnabled()),_=h(S),N=g(_,w),x=l.find_path(N.map,"start","end"),A=[];for(let $=1;$<x.length-1;$++)A.push(N.table[x[$]].node);return e.fromArray(p(A))},e.rawSplit=function(m){return e.fromArray(v(m,u.isKanjiModeEnabled()))}})(js);const Kr=_e,Sa=Lr,g3=Z2,y3=X2,b3=ks,C3=Bs,_a=Rs,xa=zr,w3=Q2,qr=Vs,S3=Ms,_3=et,Ea=js;function x3(e,t){const r=e.size,a=C3.getPositions(t);for(let o=0;o<a.length;o++){const i=a[o][0],s=a[o][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||r<=i+u))for(let l=-1;l<=7;l++)s+l<=-1||r<=s+l||(u>=0&&u<=6&&(l===0||l===6)||l>=0&&l<=6&&(u===0||u===6)||u>=2&&u<=4&&l>=2&&l<=4?e.set(i+u,s+l,!0,!0):e.set(i+u,s+l,!1,!0))}}function E3(e){const t=e.size;for(let r=8;r<t-8;r++){const a=r%2==0;e.set(r,6,a,!0),e.set(6,r,a,!0)}}function A3(e,t){const r=b3.getPositions(t);for(let a=0;a<r.length;a++){const o=r[a][0],i=r[a][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(o+s,i+u,!0,!0):e.set(o+s,i+u,!1,!0)}}function I3(e,t){const r=e.size,a=qr.getEncodedBits(t);let o,i,s;for(let u=0;u<18;u++)o=Math.floor(u/3),i=u%3+r-8-3,s=(a>>u&1)==1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function Aa(e,t,r){const a=e.size,o=S3.getEncodedBits(t,r);let i,s;for(i=0;i<15;i++)s=(o>>i&1)==1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(a-15+i,8,s,!0),i<8?e.set(8,a-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(a-8,8,1,!0)}function N3(e,t){const r=e.size;let a=-1,o=r-1,i=7,s=0;for(let u=r-1;u>0;u-=2)for(u===6&&u--;;){for(let l=0;l<2;l++)if(!e.isReserved(o,u-l)){let c=!1;s<t.length&&(c=(t[s]>>>i&1)==1),e.set(o,u-l,c),i--,i===-1&&(s++,i=7)}if(o+=a,o<0||r<=o){o-=a,a=-a;break}}}function P3(e,t,r){const a=new g3;r.forEach(function(l){a.put(l.mode.bit,4),a.put(l.getLength(),_3.getCharCountIndicator(l.mode,e)),l.write(a)});const o=Kr.getSymbolTotalCodewords(e),i=xa.getTotalCodewordsCount(e,t),s=(o-i)*8;for(a.getLengthInBits()+4<=s&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);const u=(s-a.getLengthInBits())/8;for(let l=0;l<u;l++)a.put(l%2?17:236,8);return T3(a,e,t)}function T3(e,t,r){const a=Kr.getSymbolTotalCodewords(t),o=xa.getTotalCodewordsCount(t,r),i=a-o,s=xa.getBlocksCount(t,r),u=a%s,l=s-u,c=Math.floor(a/s),d=Math.floor(i/s),v=d+1,f=c-d,p=new w3(f);let h=0;const g=new Array(s),b=new Array(s);let y=0;const m=new Uint8Array(e.buffer);for(let x=0;x<s;x++){const A=x<l?d:v;g[x]=m.slice(h,h+A),b[x]=p.encode(g[x]),h+=A,y=Math.max(y,A)}const w=new Uint8Array(a);let S=0,_,N;for(_=0;_<y;_++)for(N=0;N<s;N++)_<g[N].length&&(w[S++]=g[N][_]);for(_=0;_<f;_++)for(N=0;N<s;N++)w[S++]=b[N][_];return w}function $3(e,t,r,a){let o;if(Array.isArray(e))o=Ea.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const d=Ea.rawSplit(e);c=qr.getBestVersionForData(d,r)}o=Ea.fromString(e,c||40)}else throw new Error("Invalid data");const i=qr.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
82
82
  The chosen QR Code version cannot contain this amount of data.
83
83
  Minimum version required to store current data is: `+i+`.
84
- `);const s=A3(t,r,o),u=Hr.getSymbolSize(t),l=new m3(u);return w3(l,t),_3(l),S3(l,t),Ea(l,r,0),t>=7&&x3(l,t),E3(l,s),isNaN(a)&&(a=_a.getBestMask(l,Ea.bind(null,l,r))),_a.applyMask(a,l),Ea(l,r,a),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:a,segments:o}}Is.create=function(t,r){if(typeof t=="undefined"||t==="")throw new Error("No input text");let a=wa.M,o,i;return typeof r!="undefined"&&(a=wa.from(r.errorCorrectionLevel,wa.M),o=Kr.from(r.version),i=_a.from(r.maskPattern),r.toSJISFunc&&Hr.setToSJISFunction(r.toSJISFunc)),N3(t,o,a,i)};var zs={},Aa={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let a=r.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+r);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(i){return[i,i]}))),a.length===6&&a.push("F","F");const o=parseInt(a.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const o=typeof a.margin=="undefined"||a.margin===null||a.margin<0?4:a.margin,i=a.width&&a.width>=21?a.width:void 0,s=a.scale||4;return{width:i,scale:i?4:s,margin:o,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,o){return o.width&&o.width>=a+o.margin*2?o.width/(a+o.margin*2):o.scale},e.getImageWidth=function(a,o){const i=e.getScale(a,o);return Math.floor((a+o.margin*2)*i)},e.qrToImageData=function(a,o,i){const s=o.modules.size,u=o.modules.data,l=e.getScale(s,i),c=Math.floor((s+i.margin*2)*l),d=i.margin*l,v=[i.color.light,i.color.dark];for(let f=0;f<c;f++)for(let p=0;p<c;p++){let m=(f*c+p)*4,g=i.color.light;if(f>=d&&p>=d&&f<c-d&&p<c-d){const b=Math.floor((f-d)/l),y=Math.floor((p-d)/l);g=v[u[b*s+y]?1:0]}a[m++]=g.r,a[m++]=g.g,a[m++]=g.b,a[m]=g.a}}})(Aa);(function(e){const t=Aa;function r(o,i,s){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,u){let l=u,c=s;typeof l=="undefined"&&(!s||!s.getContext)&&(l=s,s=void 0),s||(c=a()),l=t.getOptions(l);const d=t.getImageWidth(i.modules.size,l),v=c.getContext("2d"),f=v.createImageData(d,d);return t.qrToImageData(f.data,i,l),r(v,c,d),v.putImageData(f,0,0),c},e.renderToDataURL=function(i,s,u){let l=u;typeof l=="undefined"&&(!s||!s.getContext)&&(l=s,s=void 0),l||(l={});const c=e.render(i,s,l),d=l.type||"image/png",v=l.rendererOpts||{};return c.toDataURL(d,v.quality)}})(zs);var js={};const T3=Aa;function Gs(e,t){const r=e.a/255,a=t+'="'+e.hex+'"';return r<1?a+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':a}function Ia(e,t,r){let a=e+t;return typeof r!="undefined"&&(a+=" "+r),a}function P3(e,t,r){let a="",o=0,i=!1,s=0;for(let u=0;u<e.length;u++){const l=Math.floor(u%t),c=Math.floor(u/t);!l&&!i&&(i=!0),e[u]?(s++,u>0&&l>0&&e[u-1]||(a+=i?Ia("M",l+r,.5+c+r):Ia("m",o,0),o=0,i=!1),l+1<t&&e[u+1]||(a+=Ia("h",s),s=0)):o++}return a}js.render=function(t,r,a){const o=T3.getOptions(r),i=t.modules.size,s=t.modules.data,u=i+o.margin*2,l=o.color.light.a?"<path "+Gs(o.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",c="<path "+Gs(o.color.dark,"stroke")+' d="'+P3(s,i,o.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',v=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+v+d+' shape-rendering="crispEdges">'+l+c+`</svg>
85
- `;return typeof a=="function"&&a(null,f),f};const $3=W2,Na=Is,Ws=zs,B3=js;function Ta(e,t,r,a,o){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!$3())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=t,t=a=void 0):s===3&&(t.getContext&&typeof o=="undefined"?(o=a,a=void 0):(o=a,a=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=a=void 0):s===2&&!t.getContext&&(a=r,r=t,t=void 0),new Promise(function(l,c){try{const d=Na.create(r,a);l(e(d,t,a))}catch(d){c(d)}})}try{const l=Na.create(r,a);o(null,e(l,t,a))}catch(l){o(l)}}jt.create=Na.create;jt.toCanvas=Ta.bind(null,Ws.render);jt.toDataURL=Ta.bind(null,Ws.renderToDataURL);jt.toString=Ta.bind(null,function(e,t,r){return B3.render(e,r)});const k3={key:0},R3=n.createTextVNode(" Setup TOTP "),F3=["src"],D3={"data-amplify-copy-tooltip":""},O3=n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z",fill:"black"})],-1),V3=n.createTextVNode("Code *"),U3=n.defineComponent({emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Re(a.value));let s=n.reactive({qrCodeImageSource:"",isLoading:!0}),u=n.ref(""),l=n.ref(T("COPY"));function c(){navigator.clipboard.writeText(u.value),l.value=T("COPIED")}n.onMounted(async()=>{const y=new ae.Logger("SetupTOTP-logger"),{user:h}=i.value.context;if(!!h)try{u.value=await ae.Auth.setupTOTP(h);const w="AWSCognito",_=`otpauth://totp/${w}:${h.username}?secret=${u}&issuer=${w}`;s.qrCodeImageSource=await jt.toDataURL(_)}catch(w){y.error(w)}finally{s.isLoading=!1}});const d=n.computed(()=>T("Back to Sign In")),v=n.computed(()=>T("Confirm")),f=n.computed(()=>T("Code")),p=y=>{const{name:h,value:w}=y.target;o({type:"CHANGE",data:{name:h,value:w}})},m=y=>{(r==null?void 0:r.onConfirmSetupTOTPSubmit)?t("confirmSetupTOTPSubmit",y):g(y)},g=y=>{const h=new FormData(y.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(h))})},b=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(y,h)=>{const w=Xe,_=pe,S=Fe,N=De,A=Ve,x=Ce,P=Me,F=Oe,O=Ue;return n.renderSlot(y.$slots,"confirmSetupTOTPI",n.normalizeProps(n.guardReactiveProps(y.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(y.$attrs)),{default:n.withCtx(()=>[n.createVNode(O,{"data-amplify-authenticator-setup-totp":"",onInput:p,onSubmit:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createVNode(F,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.unref(s).isLoading?(n.openBlock(),n.createElementBlock("p",k3,"Loading...")):(n.openBlock(),n.createBlock(_,{key:1,class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"header",{},()=>[n.createVNode(w,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[R3]),_:1})]),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:n.unref(s).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,F3),n.createVNode(_,{class:"amplify-flex","data-amplify-copy":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(n.unref(u)),1),n.createVNode(_,{"data-amplify-copy-svg":"",onClick:c},{default:n.withCtx(()=>[n.createElementVNode("div",D3,n.toDisplayString(n.unref(l)),1),O3]),_:1})]),_:1}),n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"sr-only amplify-label",for:"amplify-field-45d1"},{default:n.withCtx(()=>[V3]),_:1}),n.createVNode(_,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-input amplify-field-group__control",id:"amplify-field-45d1","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(f),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(P,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var D;return[((D=n.unref(i).context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(A,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(T)(n.unref(i).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(y.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:m})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),M3={},L3={"data-amplify-box":""};function z3(e,t){return n.openBlock(),n.createElementBlock("div",L3,[n.renderSlot(e.$slots,"default")])}var Hs=Tt(M3,[["render",z3]]);const Pa=n.defineComponent({emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=Ne(),s=n.computed(()=>Re(a.value)),u=n.computed(()=>zt(a.value)),l=n.computed(()=>T("Change Password")),c=n.computed(()=>T("Changing")),d=n.computed(()=>T("Back to Sign In")),v=n.computed(()=>T("Password")),f=n.computed(()=>T("Confirm Password")),p=()=>{(r==null?void 0:r.onHaveAccountClicked)?t("haveAccountClicked"):o({type:"SIGN_IN"})},m=h=>{(r==null?void 0:r.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",h):g(h)},g=h=>{const w=new FormData(h.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(w))})},b=h=>{const{name:w,value:_}=h.target;o({type:"CHANGE",data:{name:w,value:_}})};function y(h){const{name:w}=h.target;i.updateBlur({name:w})}return(h,w)=>{const _=Xe,S=pe,N=Hs,A=Ve,x=Ce,P=Me,F=Oe,O=Ue;return n.renderSlot(h.$slots,"forceNewPasswordI",n.normalizeProps(n.guardReactiveProps(h.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(h.$attrs)),{default:n.withCtx(()=>[n.createVNode(O,{"data-amplify-authenticator-forcenewpassword":"",onInput:b,onSubmit:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createVNode(F,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s).matches("forceNewPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(h.$slots,"header",{},()=>[n.createVNode(_,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1})]),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(v),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:y},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"confirm_password",label:n.unref(f),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:y},null,8,["label","ariainvalid"])]),_:1})]),_:1}),n.createVNode(P,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(N,{key:0,"data-ui-error":"",role:"alert","data-variation":"error",class:"amplify-text"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(T)(n.unref(u).validationError.confirm_password)),1)]),_:1})):n.createCommentVNode("",!0),n.unref(s).context.remoteError?(n.openBlock(),n.createBlock(A,{key:1,"data-ui-error":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(T)(n.unref(s).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(s).matches("signUp.submit")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s).matches("forceNewPassword.pending")?n.unref(c)+"\u2026":n.unref(l)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(p,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(h.$slots,"footer",{onHaveAccountClicked:p,onForceNewPasswordSubmit:m})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),$a=n.defineComponent({emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=Ne(),{error:i,isPending:s}=n.toRefs(Ne()),{label:u}=vs(a.context),l=`Enter your ${u.toLowerCase()}`,c=n.computed(()=>T("Back to Sign In")),d=n.computed(()=>T("Reset your password")),v=n.computed(()=>T("Send Code")),f=n.computed(()=>T(l)),p=y=>{(r==null?void 0:r.onResetPasswordSubmit)?t("resetPasswordSubmit",y):m(y)},m=y=>{const h=new FormData(y.target);o({type:"SUBMIT",data:Object.fromEntries(h)})},g=y=>{const{name:h,value:w}=y.target;o({type:"CHANGE",data:{name:h,value:w}})},b=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(y,h)=>{const w=Xe,_=Fe,S=De,N=pe,A=Oe,x=Ve,P=Ce,F=Me,O=Ue;return n.renderSlot(y.$slots,"resetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(y.$attrs)),()=>[n.createVNode(O,n.mergeProps(y.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:g,onSubmit:n.withModifiers(p,["prevent"])}),{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"header",{},()=>[n.createVNode(w,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(A,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"sr-only amplify-label",for:"amplify-field-7dce"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(l))]),_:1}),n.createVNode(N,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-input amplify-field-group__control",id:"amplify-field-7dce","aria-invalid":"false",name:"username",placeholder:n.unref(f),autocomplete:"username",required:"",type:"username"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(F,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(x,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(T)(n.unref(i))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(P,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode(P,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(y.$slots,"footer",{onBackToSignInClicked:b,onResetPasswordSubmit:p})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Ba=n.defineComponent({emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:r,send:a}=we(),o=Ne(),i=n.useAttrs(),s=n.computed(()=>Re(r.value)),u=n.computed(()=>zt(r.value)),l=n.computed(()=>T("Resend Code")),c=n.computed(()=>T("Confirmation Code")),d=n.computed(()=>T("Reset your Password")),v=n.computed(()=>T("Submit")),f=n.computed(()=>T("Code")),p=n.computed(()=>T("New password")),m=n.computed(()=>T("Confirm Password")),g=_=>{(i==null?void 0:i.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",_):b(_)},b=_=>{const S=new FormData(_.target);a({type:"SUBMIT",data:$e({},Object.fromEntries(S))})},y=()=>{a({type:"RESEND"})},h=_=>{const{name:S,value:N}=_.target;a({type:"CHANGE",data:{name:S,value:N}})};function w(_){const{name:S}=_.target;o.updateBlur({name:S})}return(_,S)=>{const N=Xe,A=Fe,x=De,P=pe,F=Hs,O=Ve,D=Ce,z=Me,ve=Oe,qe=Ue;return n.renderSlot(_.$slots,"confirmResetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(_.$attrs)),()=>[n.createVNode(P,n.normalizeProps(n.guardReactiveProps(_.$attrs)),{default:n.withCtx(()=>[n.createVNode(qe,{"data-amplify-authenticator-confirmResetpassword":"",onInput:h,onSubmit:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createVNode(ve,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"header",{},()=>[n.createVNode(N,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(P,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(P,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(A,{class:"sr-only amplify-label",for:"amplify-field-d653"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1}),n.createVNode(P,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-input amplify-field-group__control",id:"amplify-field-d653","aria-invalid":"false",autocomplete:"one-time-code",placeholder:n.unref(f),name:"confirmation_code",required:"",type:"number"},null,8,["placeholder"])]),_:1})]),_:1}),n.createVNode(P,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(p),autocomplete:"current-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:w},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(P,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"confirm_password",label:n.unref(m),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:w},null,8,["label","ariainvalid"])]),_:1})]),_:1}),n.createVNode(z,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var le,Ge;return[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(F,{key:0,"data-ui-error":"","data-variation":"error",role:"alert",class:"amplify-text"},{default:n.withCtx(()=>{var Te;return[n.createTextVNode(n.toDisplayString(n.unref(T)((Te=n.unref(u).validationError)==null?void 0:Te.confirm_password)),1)]}),_:1})):n.createCommentVNode("",!0),((Ge=(le=n.unref(s))==null?void 0:le.context)==null?void 0:Ge.remoteError)?(n.openBlock(),n.createBlock(O,{key:1},{default:n.withCtx(()=>{var Te,ue;return[n.createTextVNode(n.toDisplayString(n.unref(T)((ue=(Te=n.unref(s))==null?void 0:Te.context)==null?void 0:ue.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(s).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",type:"button",onClick:n.withModifiers(y,["prevent"]),style:{"font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["onClick"]),n.renderSlot(_.$slots,"footer",{onConfirmResetPasswordSubmit:g,onLostYourCodeClicked:y})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),ka=n.defineComponent({emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Re(a.value)),s=i.value.context.unverifiedAttributes,u=n.computed(()=>T("Account recovery requires verified contact information")),l=n.computed(()=>T("Skip")),c=n.computed(()=>T("Verify")),d=n.computed(()=>T("Verify Contact")),v=g=>{const{name:b,value:y}=g.target;o({type:"CHANGE",data:{name:b,value:y}})},f=g=>{(r==null?void 0:r.onVerifyUserSubmit)?t("verifyUserSubmit",g):p(g)},p=g=>{const b=new FormData(g.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(b))})},m=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o("SKIP")};return(g,b)=>{const y=Xe,h=Fe,w=De,_=As,S=pe,N=Ve,A=Ce,x=Me,P=Oe,F=Ue;return n.renderSlot(g.$slots,"verifyUserSlotI",{},()=>[n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(F,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(P,{disabled:n.unref(i).matches("verifyUser.pending"),class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"header",{},()=>[n.createVNode(y,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1})]),n.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(h,{class:"sr-only amplify-label",id:"amplify-field-493c"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1}),n.createVNode(S,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"},"aria-labelledby":"amplify-field-493c"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),(O,D)=>(n.openBlock(),n.createBlock(h,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:O},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:D},null,8,["value"]),n.createVNode(_,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),n.createVNode(_,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(ye)[D].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var O,D;return[((D=(O=n.unref(i))==null?void 0:O.context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(N,{key:0},{default:n.withCtx(()=>{var z;return[n.createTextVNode(n.toDisplayString(n.unref(T)((z=n.unref(i))==null?void 0:z.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("verifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["disabled"]),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["onClick"]),n.renderSlot(g.$slots,"footer",{onSkipClicked:m,onVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Ra=n.defineComponent({emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Re(a.value)),s=n.computed(()=>T("Account recovery requires verified contact information")),u=n.computed(()=>T("Skip"));n.computed(()=>T("Verify"));const l=n.computed(()=>T("Confirmation Code")),c=n.computed(()=>T("Code")),d=n.computed(()=>T("Submit")),v=g=>{const{name:b,value:y}=g.target;o({type:"CHANGE",data:{name:b,value:y}})},f=g=>{(r==null?void 0:r.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",g):p(g)},p=g=>{const b=new FormData(g.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(b))})},m=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o({type:"SKIP"})};return(g,b)=>{const y=Xe,h=Fe,w=De,_=pe,S=Ve,N=Ce,A=Me,x=Oe,P=Ue;return n.renderSlot(g.$slots,"confirmVerifyUserSlotI",n.normalizeProps(n.guardReactiveProps(g.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(g.$attrs)),{default:n.withCtx(()=>[n.createVNode(P,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"header",{},()=>[n.createVNode(y,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)),1)]),_:1})]),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(h,{class:"sr-only amplify-label",for:"amplify-field-c34b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1}),n.createVNode(_,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control",id:"amplify-field-c34b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(c),type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(A,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var F,O;return[((O=(F=n.unref(i))==null?void 0:F.context)==null?void 0:O.remoteError)?(n.openBlock(),n.createBlock(S,{key:0},{default:n.withCtx(()=>{var D;return[n.createTextVNode(n.toDisplayString(n.unref(T)((D=n.unref(i))==null?void 0:D.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(m,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["onClick"]),n.renderSlot(g.$slots,"footer",{onSkipClicked:m,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),j3={"data-amplify-container":""},G3=["data-amplify-router-content"],W3={key:1,"data-amplify-router-content":""},Ks=n.defineComponent({props:{initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const{initialState:r,loginMechanisms:a,variation:o,services:i,signUpAttributes:s,socialProviders:u}=e,l=n.useAttrs(),c=$S({initialState:r,loginMechanisms:a,services:i,signUpAttributes:s,socialProviders:u}),d=p2(c,{devTools:!1}),{state:v,send:f}=Ss(d);we(d);const p=n.computed(()=>Re(v.value)),m=n.ref(),g=n.ref(),b=n.ref(),y=n.ref(),h=n.ref(),w=n.ref(),_=n.ref(),S=n.ref(),N=n.ref(),A=n.ref(),x=n.computed(()=>T("Create Account")),P=n.computed(()=>T("Sign In")),F=$=>{var be;(l==null?void 0:l.onSignInSubmit)?t("signInSubmit",$):(be=m.value)==null||be.submit($)},O=$=>{(l==null?void 0:l.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",$):b.value.submit($)},D=$=>{(l==null?void 0:l.onResetPasswordSubmit)?t("resetPasswordSubmit",$):_.value.submit($)},z=$=>{(l==null?void 0:l.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",$):S.value.submit($)},ve=$=>{(l==null?void 0:l.onConfirmSignInSubmit)?t("confirmSignInSubmit",$):y.value.submit($)},qe=$=>{(l==null?void 0:l.onForceNewPasswordSubmit)?t("mSetupTOTPSubmit",$):h.value.submit($)},le=$=>{(l==null?void 0:l.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",$):w.value.submit($)},Ge=$=>{(l==null?void 0:l.onSignUpSubmit)?t("signUpSubmit",$):g.value.submit()},Te=$=>{(l==null?void 0:l.onVerifyUserSubmit)?t("verifyUserSubmit",$):N.value.submit($)},ue=$=>{(l==null?void 0:l.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",$):A.value.submit($)},xe=n.ref(null),Kt=n.ref();n.watch(()=>v.value.context,()=>{const{user:$,signOut:be}=ps({send:f,state:v.value});xe.value=$,Kt.value=be});const Nt=n.computed(()=>{var $,be;return(($=p.value)==null?void 0:$.matches("signIn"))||((be=p.value)==null?void 0:be.matches("signUp"))});return($,be)=>{var Yt,C,B,R,k,M,L,q,G,ne,ce,Pe;const qt=V2,qr=L2;return n.openBlock(),n.createElementBlock(n.Fragment,null,[((Yt=n.unref(v))==null?void 0:Yt.matches("authenticated"))?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0},$.$attrs,{"data-amplify-authenticator":"","data-variation":o}),[n.createElementVNode("div",j3,[n.renderSlot($.$slots,"header"),n.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":n.unref(Nt)?void 0:""},[n.unref(Nt)?(n.openBlock(),n.createBlock(qr,{key:0},{default:n.withCtx(()=>{var V,U;return[n.createVNode(qt,{active:(V=n.unref(p))==null?void 0:V.matches("signIn"),id:44472,label:n.unref(P),onClick:be[0]||(be[0]=We=>n.unref(f)("SIGN_IN"))},null,8,["active","label"]),n.createVNode(qt,{active:(U=n.unref(p))==null?void 0:U.matches("signUp"),id:44471,label:n.unref(x),onClick:be[1]||(be[1]=We=>n.unref(f)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):n.createCommentVNode("",!0),n.unref(Nt)?(n.openBlock(),n.createElementBlock("div",W3,[((C=n.unref(p))==null?void 0:C.matches("signIn"))?(n.openBlock(),n.createBlock(da,{key:0,onSignInSubmit:F,ref:(V,U)=>{U.signInComponent=V,m.value=V}},{signInSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"sign-in")]),form:n.withCtx(({info:V,onSignInSubmit:U,onForgotPasswordClicked:We,onInput:Zt})=>[n.renderSlot($.$slots,"sign-in-form",{info:V,onInput:Zt,onSignInSubmit:U,onForgotPasswordClicked:We})]),header:n.withCtx(()=>[n.renderSlot($.$slots,"sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot($.$slots,"sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),((B=n.unref(p))==null?void 0:B.matches("signUp"))?(n.openBlock(),n.createBlock(va,{key:1,onSignUpSubmit:Ge,ref:(V,U)=>{U.signUpComponent=V,g.value=V}},{signUpSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"sign-up")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"sign-up-header")]),"signup-fields":n.withCtx(({info:V})=>[n.renderSlot($.$slots,"sign-up-fields",{info:V})]),footer:n.withCtx(()=>[n.renderSlot($.$slots,"sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),((R=n.unref(p))==null?void 0:R.matches("confirmSignUp"))?(n.openBlock(),n.createBlock(pa,{key:2,onConfirmSignUpSubmit:O,ref:(V,U)=>{U.confirmSignUpComponent=V,b.value=V}},{confirmSignUpSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-sign-up")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-sign-up-header")]),footer:n.withCtx(({onConfirmSignUpSubmit:V,onLostCodeClicked:U})=>[n.renderSlot($.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:V,onLostCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((k=n.unref(p))==null?void 0:k.matches("resetPassword"))?(n.openBlock(),n.createBlock($a,{key:3,onResetPasswordSubmit:D,ref:(V,U)=>{U.resetPasswordComponent=V,_.value=V}},{resetPasswordSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"reset-password")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"reset-password-header")]),footer:n.withCtx(({onResetPasswordSubmit:V,onBackToSignInClicked:U})=>[n.renderSlot($.$slots,"reset-password-footer",{onResetPasswordSubmit:V,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((M=n.unref(p))==null?void 0:M.matches("confirmResetPassword"))?(n.openBlock(),n.createBlock(Ba,{key:4,onConfirmResetPasswordSubmit:z,ref:(V,U)=>{U.confirmResetPasswordComponent=V,S.value=V}},{confirmResetPasswordSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-reset-password")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-reset-password-header")]),footer:n.withCtx(({onConfirmResetPasswordSubmit:V,onLostYourCodeClicked:U})=>[n.renderSlot($.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:V,onLostYourCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((L=n.unref(p))==null?void 0:L.matches("confirmSignIn"))?(n.openBlock(),n.createBlock(ma,{key:5,onConfirmSignInSubmit:ve,ref:(V,U)=>{U.confirmSignInComponent=V,y.value=V}},{confirmSignInSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-sign-in")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-sign-in-header")]),footer:n.withCtx(({onConfirmSignInSubmit:V,onBackToSignInClicked:U})=>[n.renderSlot($.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:V,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((q=n.unref(p))==null?void 0:q.matches("setupTOTP"))?(n.openBlock(),n.createBlock(U3,{key:6,onConfirmSetupTotpSubmit:qe,ref:(V,U)=>{U.confirmSetupTOTPComponent=V,h.value=V}},{confirmSetupTOTPI:n.withCtx(()=>[n.renderSlot($.$slots,"setup-totp")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"setup-totp-header")]),footer:n.withCtx(({onSetupTOTPSubmit:V,onBackToSignInClicked:U})=>[n.renderSlot($.$slots,"setup-totp-footer",{onSetupTOTPSubmit:V,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((G=n.unref(p))==null?void 0:G.matches("forceNewPassword"))?(n.openBlock(),n.createBlock(Pa,{key:7,onForceNewPasswordSubmit:le,ref:(V,U)=>{U.forceNewPasswordComponent=V,w.value=V}},{forceNewPasswordI:n.withCtx(()=>[n.renderSlot($.$slots,"force-new-password")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"force-new-password-header")]),footer:n.withCtx(({onHaveAccountClicked:V,onForceNewPasswordSubmit:U})=>[n.renderSlot($.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:U,onBackToSignInClicked:V})]),_:3},512)):n.createCommentVNode("",!0),((ne=n.unref(p))==null?void 0:ne.matches("verifyUser"))?(n.openBlock(),n.createBlock(ka,{key:8,onVerifyUserSubmit:Te,ref:(V,U)=>{U.verifyUserComponent=V,N.value=V}},{verifyUserSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"verify-user")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"verify-user-header")]),footer:n.withCtx(({onVerifyUserSubmit:V,onSkipClicked:U})=>[n.renderSlot($.$slots,"verify-user-footer",{onVerifyUserSubmit:V,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((ce=n.unref(p))==null?void 0:ce.matches("confirmVerifyUser"))?(n.openBlock(),n.createBlock(Ra,{key:9,onConfirmVerifyUserSubmit:ue,ref:(V,U)=>{U.confirmVerifyUserComponent=V,A.value=V}},{confirmVerifyUserSlotI:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-verify-user")]),header:n.withCtx(()=>[n.renderSlot($.$slots,"confirm-verify-user-header")]),footer:n.withCtx(({onConfirmVerifyUserSubmit:V,onSkipClicked:U})=>[n.renderSlot($.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:V,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0)],8,G3),n.renderSlot($.$slots,"footer")])],16)),((Pe=n.unref(v))==null?void 0:Pe.matches("authenticated"))?n.renderSlot($.$slots,"default",{key:1,user:xe.value,state:n.unref(v),signOut:Kt.value,send:n.unref(f)}):n.createCommentVNode("",!0)],64)}}}),qs=n.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Ys=n.defineComponent({props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"}},setup(e){const t=e,{label:r,id:a,autocomplete:o,placeholder:i,required:s,name:u,type:l}=n.toRefs(t);return(c,d)=>{const v=Fe,f=De,p=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(v,{class:"amplify-label sr-only",for:n.unref(a)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},8,["for"]),n.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(f,{class:"amplify-input amplify-field-group__control",id:n.unref(a),"aria-invalid":"false",autocomplete:n.unref(o),placeholder:n.unref(i),required:n.unref(s),name:n.unref(u),disabled:e.disabled,type:n.unref(l)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),H3={class:"amplify-flex amplify-field amplify-checkboxfield"},K3={class:"amplify-flex amplify-checkbox"},q3={class:"amplify-visually-hidden"},Y3=["data-error","data-checked"],Z3=["data-checked"],X3=n.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),J3=[X3],Q3=n.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),ex={key:0,class:"amplify-text amplify-field__error-message"},Zs=n.defineComponent({props:{errorMessage:{default:""}},setup(e){const t=e,r=n.ref(!1),{errorMessage:a}=n.toRefs(t);return(o,i)=>(n.openBlock(),n.createElementBlock("div",H3,[n.createElementVNode("label",K3,[n.createElementVNode("span",q3,[n.createElementVNode("input",{onClick:i[0]||(i[0]=s=>r.value=!r.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),n.createElementVNode("span",{class:"amplify-flex amplify-checkbox__button","aria-hidden":"true","data-focus":"false","data-error":!r.value,"data-checked":r.value},[(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon amplify-checkbox__icon",viewBox:"0 0 24 24",fill:"currentColor","data-checked":r.value},J3,8,Z3))],8,Y3),Q3]),r.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("p",ex,n.toDisplayString(n.unref(a)),1))]))}});var tx={install:e=>{e.component("SignIn",da),e.component("SignUp",va),e.component("FederatedSignIn",Ur),e.component("Authenticator",Ks),e.component("RenderInfo",qs),e.component("PasswordControl",Ke),e.component("UserNameAlias",Or),e.component("ForceNewPassword",Pa),e.component("ResetPassword",$a),e.component("ConfirmResetPassword",Ba),e.component("ConfirmSignUp",pa),e.component("ConfirmSignIn",ma),e.component("VerifyUser",ka),e.component("ConfirmVerifyUser",Ra),e.component("AmplifyTextField",Ys),e.component("AmplifyCheckBox",Zs),e.component("AmplifyButton",Ce),e.component("AuthenticatorSignUpFormFields",fa)}};exports.AmplifyButton=Ce;exports.AmplifyCheckBox=Zs;exports.AmplifyTextField=Ys;exports.Authenticator=Ks;exports.AuthenticatorSignUpFormFields=fa;exports.ConfirmResetPassword=Ba;exports.ConfirmSignIn=ma;exports.ConfirmSignUp=pa;exports.ConfirmVerifyUser=Ra;exports.FederatedSignIn=Ur;exports.ForceNewPassword=Pa;exports.PasswordControl=Ke;exports.RenderInfo=qs;exports.ResetPassword=$a;exports.SignIn=da;exports.SignUp=va;exports.UserNameAlias=Or;exports.VerifyUser=ka;exports.default=tx;exports.useAuthenticator=Ne;
84
+ `);const s=P3(t,r,o),u=Kr.getSymbolSize(t),l=new y3(u);return x3(l,t),E3(l),A3(l,t),Aa(l,r,0),t>=7&&I3(l,t),N3(l,s),isNaN(a)&&(a=_a.getBestMask(l,Aa.bind(null,l,r))),_a.applyMask(a,l),Aa(l,r,a),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:a,segments:o}}Ts.create=function(t,r){if(typeof t=="undefined"||t==="")throw new Error("No input text");let a=Sa.M,o,i;return typeof r!="undefined"&&(a=Sa.from(r.errorCorrectionLevel,Sa.M),o=qr.from(r.version),i=_a.from(r.maskPattern),r.toSJISFunc&&Kr.setToSJISFunction(r.toSJISFunc)),$3(t,o,a,i)};var Ws={},Ia={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let a=r.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+r);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(i){return[i,i]}))),a.length===6&&a.push("F","F");const o=parseInt(a.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const o=typeof a.margin=="undefined"||a.margin===null||a.margin<0?4:a.margin,i=a.width&&a.width>=21?a.width:void 0,s=a.scale||4;return{width:i,scale:i?4:s,margin:o,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,o){return o.width&&o.width>=a+o.margin*2?o.width/(a+o.margin*2):o.scale},e.getImageWidth=function(a,o){const i=e.getScale(a,o);return Math.floor((a+o.margin*2)*i)},e.qrToImageData=function(a,o,i){const s=o.modules.size,u=o.modules.data,l=e.getScale(s,i),c=Math.floor((s+i.margin*2)*l),d=i.margin*l,v=[i.color.light,i.color.dark];for(let f=0;f<c;f++)for(let p=0;p<c;p++){let h=(f*c+p)*4,g=i.color.light;if(f>=d&&p>=d&&f<c-d&&p<c-d){const b=Math.floor((f-d)/l),y=Math.floor((p-d)/l);g=v[u[b*s+y]?1:0]}a[h++]=g.r,a[h++]=g.g,a[h++]=g.b,a[h]=g.a}}})(Ia);(function(e){const t=Ia;function r(o,i,s){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,u){let l=u,c=s;typeof l=="undefined"&&(!s||!s.getContext)&&(l=s,s=void 0),s||(c=a()),l=t.getOptions(l);const d=t.getImageWidth(i.modules.size,l),v=c.getContext("2d"),f=v.createImageData(d,d);return t.qrToImageData(f.data,i,l),r(v,c,d),v.putImageData(f,0,0),c},e.renderToDataURL=function(i,s,u){let l=u;typeof l=="undefined"&&(!s||!s.getContext)&&(l=s,s=void 0),l||(l={});const c=e.render(i,s,l),d=l.type||"image/png",v=l.rendererOpts||{};return c.toDataURL(d,v.quality)}})(Ws);var Hs={};const k3=Ia;function Ks(e,t){const r=e.a/255,a=t+'="'+e.hex+'"';return r<1?a+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':a}function Na(e,t,r){let a=e+t;return typeof r!="undefined"&&(a+=" "+r),a}function B3(e,t,r){let a="",o=0,i=!1,s=0;for(let u=0;u<e.length;u++){const l=Math.floor(u%t),c=Math.floor(u/t);!l&&!i&&(i=!0),e[u]?(s++,u>0&&l>0&&e[u-1]||(a+=i?Na("M",l+r,.5+c+r):Na("m",o,0),o=0,i=!1),l+1<t&&e[u+1]||(a+=Na("h",s),s=0)):o++}return a}Hs.render=function(t,r,a){const o=k3.getOptions(r),i=t.modules.size,s=t.modules.data,u=i+o.margin*2,l=o.color.light.a?"<path "+Ks(o.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",c="<path "+Ks(o.color.dark,"stroke")+' d="'+B3(s,i,o.margin)+'"/>',d='viewBox="0 0 '+u+" "+u+'"',v=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+v+d+' shape-rendering="crispEdges">'+l+c+`</svg>
85
+ `;return typeof a=="function"&&a(null,f),f};const F3=q2,Pa=Ts,qs=Ws,R3=Hs;function Ta(e,t,r,a,o){const i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!F3())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=t,t=a=void 0):s===3&&(t.getContext&&typeof o=="undefined"?(o=a,a=void 0):(o=a,a=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=a=void 0):s===2&&!t.getContext&&(a=r,r=t,t=void 0),new Promise(function(l,c){try{const d=Pa.create(r,a);l(e(d,t,a))}catch(d){c(d)}})}try{const l=Pa.create(r,a);o(null,e(l,t,a))}catch(l){o(l)}}jt.create=Pa.create;jt.toCanvas=Ta.bind(null,qs.render);jt.toDataURL=Ta.bind(null,qs.renderToDataURL);jt.toString=Ta.bind(null,function(e,t,r){return R3.render(e,r)});const D3={key:0},O3=n.createTextVNode(" Setup TOTP "),V3=["src"],U3={"data-amplify-copy-tooltip":""},M3=n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z",fill:"black"})],-1),L3=n.createTextVNode("Code *"),z3=n.defineComponent({emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Fe(a.value));let s=n.reactive({qrCodeImageSource:"",isLoading:!0}),u=n.ref(""),l=n.ref(P("COPY"));function c(){navigator.clipboard.writeText(u.value),l.value=P("COPIED")}n.onMounted(async()=>{const y=new ae.Logger("SetupTOTP-logger"),{user:m}=i.value.context;if(!!m)try{u.value=await ae.Auth.setupTOTP(m);const w="AWSCognito",S=`otpauth://totp/${w}:${m.username}?secret=${u.value}&issuer=${w}`;s.qrCodeImageSource=await jt.toDataURL(S)}catch(w){y.error(w)}finally{s.isLoading=!1}});const d=n.computed(()=>P("Back to Sign In")),v=n.computed(()=>P("Confirm")),f=n.computed(()=>P("Code")),p=y=>{const{name:m,value:w}=y.target;o({type:"CHANGE",data:{name:m,value:w}})},h=y=>{(r==null?void 0:r.onConfirmSetupTOTPSubmit)?t("confirmSetupTOTPSubmit",y):g(y)},g=y=>{const m=new FormData(y.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(m))})},b=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(y,m)=>{const w=Je,S=pe,_=Re,N=De,x=Ve,A=Ce,$=Me,R=Oe,O=Ue;return n.renderSlot(y.$slots,"confirmSetupTOTPI",n.normalizeProps(n.guardReactiveProps(y.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(y.$attrs)),{default:n.withCtx(()=>[n.createVNode(O,{"data-amplify-authenticator-setup-totp":"",onInput:p,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(R,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.unref(s).isLoading?(n.openBlock(),n.createElementBlock("p",D3,"Loading...")):(n.openBlock(),n.createBlock(S,{key:1,class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"header",{},()=>[n.createVNode(w,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[O3]),_:1})]),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createElementVNode("img",{class:"amplify-image","data-amplify-qrcode":"",src:n.unref(s).qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,V3),n.createVNode(S,{class:"amplify-flex","data-amplify-copy":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(n.unref(u)),1),n.createVNode(S,{"data-amplify-copy-svg":"",onClick:c},{default:n.withCtx(()=>[n.createElementVNode("div",U3,n.toDisplayString(n.unref(l)),1),M3]),_:1})]),_:1}),n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"sr-only amplify-label",for:"amplify-field-45d1"},{default:n.withCtx(()=>[L3]),_:1}),n.createVNode(S,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-input amplify-field-group__control",id:"amplify-field-45d1","aria-invalid":"false",name:"confirmation_code",placeholder:n.unref(f),autocomplete:"one-time-code",required:"",type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode($,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var D;return[((D=n.unref(i).context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(x,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(i).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmSignIn.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(y.$slots,"footer",{onBackToSignInClicked:b,onSetupTOTPSubmit:h})]}),_:3})]),_:3}))]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),j3={},G3={"data-amplify-box":""};function W3(e,t){return n.openBlock(),n.createElementBlock("div",G3,[n.renderSlot(e.$slots,"default")])}var Ys=Pt(j3,[["render",W3]]);const $a=n.defineComponent({emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=Ne(),s=n.computed(()=>Fe(a.value)),u=n.computed(()=>zt(a.value)),l=n.computed(()=>P("Change Password")),c=n.computed(()=>P("Changing")),d=n.computed(()=>P("Back to Sign In")),v=n.computed(()=>P("Password")),f=n.computed(()=>P("Confirm Password")),p=()=>{(r==null?void 0:r.onHaveAccountClicked)?t("haveAccountClicked"):o({type:"SIGN_IN"})},h=m=>{(r==null?void 0:r.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",m):g(m)},g=m=>{const w=new FormData(m.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(w))})},b=m=>{const{name:w,value:S}=m.target;o({type:"CHANGE",data:{name:w,value:S}})};function y(m){const{name:w}=m.target;i.updateBlur({name:w})}return(m,w)=>{const S=Je,_=pe,N=Ys,x=Ve,A=Ce,$=Me,R=Oe,O=Ue;return n.renderSlot(m.$slots,"forceNewPasswordI",n.normalizeProps(n.guardReactiveProps(m.$attrs)),()=>[n.createVNode(_,n.normalizeProps(n.guardReactiveProps(m.$attrs)),{default:n.withCtx(()=>[n.createVNode(O,{"data-amplify-authenticator-forcenewpassword":"",onInput:b,onSubmit:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createVNode(R,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s).matches("forceNewPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(m.$slots,"header",{},()=>[n.createVNode(S,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1})]),n.createVNode(_,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(v),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:y},null,8,["label","ariainvalid"])]),_:1}),n.createVNode(_,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"confirm_password",label:n.unref(f),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:y},null,8,["label","ariainvalid"])]),_:1})]),_:1}),n.createVNode($,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(N,{key:0,"data-ui-error":"",role:"alert","data-variation":"error",class:"amplify-text"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(u).validationError.confirm_password)),1)]),_:1})):n.createCommentVNode("",!0),n.unref(s).context.remoteError?(n.openBlock(),n.createBlock(x,{key:1,"data-ui-error":""},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(s).context.remoteError)),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-loading":"false","data-variation":"primary",style:{"font-weight":"normal"},disabled:n.unref(s).matches("signUp.submit")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s).matches("forceNewPassword.pending")?n.unref(c)+"\u2026":n.unref(l)),1)]),_:1},8,["disabled"]),n.createVNode(A,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(p,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["onClick"]),n.renderSlot(m.$slots,"footer",{onHaveAccountClicked:p,onForceNewPasswordSubmit:h})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),ka=n.defineComponent({emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=Ne(),{error:i,isPending:s}=n.toRefs(Ne()),{label:u}=ms(a.context),l=`Enter your ${u.toLowerCase()}`,c=n.computed(()=>P("Back to Sign In")),d=n.computed(()=>P("Reset your password")),v=n.computed(()=>P("Send Code")),f=n.computed(()=>P(l)),p=y=>{(r==null?void 0:r.onResetPasswordSubmit)?t("resetPasswordSubmit",y):h(y)},h=y=>{const m=new FormData(y.target);o({type:"SUBMIT",data:Object.fromEntries(m)})},g=y=>{const{name:m,value:w}=y.target;o({type:"CHANGE",data:{name:m,value:w}})},b=()=>{(r==null?void 0:r.onBackToSignInClicked)?t("backToSignInClicked"):o({type:"SIGN_IN"})};return(y,m)=>{const w=Je,S=Re,_=De,N=pe,x=Oe,A=Ve,$=Ce,R=Me,O=Ue;return n.renderSlot(y.$slots,"resetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(y.$attrs)),()=>[n.createVNode(O,n.mergeProps(y.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:g,onSubmit:n.withModifiers(p,["prevent"])}),{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(y.$slots,"header",{},()=>[n.createVNode(w,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createVNode(N,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"sr-only amplify-label",for:"amplify-field-7dce"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(l))]),_:1}),n.createVNode(N,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(_,{class:"amplify-input amplify-field-group__control",id:"amplify-field-7dce","aria-invalid":"false",name:"username",placeholder:n.unref(f),autocomplete:"username",required:"",type:"username"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["disabled"]),n.createVNode(R,{class:"amplify-flex",style:{"flex-direction":"column","align-items":"unset"}},{default:n.withCtx(()=>[n.unref(i)?(n.openBlock(),n.createBlock(A,{key:0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(P)(n.unref(i))),1)]),_:1})):n.createCommentVNode("",!0),n.createVNode($,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(s)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode($,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(b,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["onClick"]),n.renderSlot(y.$slots,"footer",{onBackToSignInClicked:b,onResetPasswordSubmit:p})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),Ba=n.defineComponent({emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const{state:r,send:a}=we(),o=Ne(),i=n.useAttrs(),s=n.computed(()=>Fe(r.value)),u=n.computed(()=>zt(r.value)),l=n.computed(()=>P("Resend Code")),c=n.computed(()=>P("Confirmation Code")),d=n.computed(()=>P("Reset your Password")),v=n.computed(()=>P("Submit")),f=n.computed(()=>P("Code")),p=n.computed(()=>P("New password")),h=n.computed(()=>P("Confirm Password")),g=S=>{(i==null?void 0:i.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",S):b(S)},b=S=>{const _=new FormData(S.target);a({type:"SUBMIT",data:$e({},Object.fromEntries(_))})},y=()=>{a({type:"RESEND"})},m=S=>{const{name:_,value:N}=S.target;a({type:"CHANGE",data:{name:_,value:N}})};function w(S){const{name:_}=S.target;o.updateBlur({name:_})}return(S,_)=>{const N=Je,x=Re,A=De,$=pe,R=Ys,O=Ve,D=Ce,z=Me,ve=Oe,qe=Ue;return n.renderSlot(S.$slots,"confirmResetPasswordSlotI",n.normalizeProps(n.guardReactiveProps(S.$attrs)),()=>[n.createVNode($,n.normalizeProps(n.guardReactiveProps(S.$attrs)),{default:n.withCtx(()=>[n.createVNode(qe,{"data-amplify-authenticator-confirmResetpassword":"",onInput:m,onSubmit:n.withModifiers(g,["prevent"])},{default:n.withCtx(()=>[n.createVNode(ve,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(s).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"header",{},()=>[n.createVNode(N,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1})]),n.createVNode($,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode($,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(x,{class:"sr-only amplify-label",for:"amplify-field-d653"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1}),n.createVNode($,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-input amplify-field-group__control",id:"amplify-field-d653","aria-invalid":"false",autocomplete:"one-time-code",placeholder:n.unref(f),name:"confirmation_code",required:"",type:"number"},null,8,["placeholder"])]),_:1})]),_:1}),n.createVNode($,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"password",label:n.unref(p),autocomplete:"current-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:w},null,8,["label","ariainvalid"])]),_:1}),n.createVNode($,{class:"amplify-flex amplify-field amplify-textfield amplify-passwordfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(Ke,{name:"confirm_password",label:n.unref(h),autocomplete:"new-password",ariainvalid:!!n.unref(u).validationError.confirm_password,onBlur:w},null,8,["label","ariainvalid"])]),_:1})]),_:1}),n.createVNode(z,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var le,Ge;return[n.unref(u).validationError.confirm_password?(n.openBlock(),n.createBlock(R,{key:0,"data-ui-error":"","data-variation":"error",role:"alert",class:"amplify-text"},{default:n.withCtx(()=>{var Pe;return[n.createTextVNode(n.toDisplayString(n.unref(P)((Pe=n.unref(u).validationError)==null?void 0:Pe.confirm_password)),1)]}),_:1})):n.createCommentVNode("",!0),((Ge=(le=n.unref(s))==null?void 0:le.context)==null?void 0:Ge.remoteError)?(n.openBlock(),n.createBlock(O,{key:1},{default:n.withCtx(()=>{var Pe,ue;return[n.createTextVNode(n.toDisplayString(n.unref(P)((ue=(Pe=n.unref(s))==null?void 0:Pe.context)==null?void 0:ue.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(s).matches("confirmResetPassword.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(v)),1)]),_:1},8,["disabled"]),n.createVNode(D,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",type:"button",onClick:n.withModifiers(y,["prevent"]),style:{"font-weight":"normal"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["onClick"]),n.renderSlot(S.$slots,"footer",{onConfirmResetPasswordSubmit:g,onLostYourCodeClicked:y})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),Fa=n.defineComponent({emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Fe(a.value)),s=i.value.context.unverifiedAttributes,u=n.computed(()=>P("Account recovery requires verified contact information")),l=n.computed(()=>P("Skip")),c=n.computed(()=>P("Verify")),d=n.computed(()=>P("Verify Contact")),v=g=>{const{name:b,value:y}=g.target;o({type:"CHANGE",data:{name:b,value:y}})},f=g=>{(r==null?void 0:r.onVerifyUserSubmit)?t("verifyUserSubmit",g):p(g)},p=g=>{const b=new FormData(g.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(b))})},h=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o("SKIP")};return(g,b)=>{const y=Je,m=Re,w=De,S=Ps,_=pe,N=Ve,x=Ce,A=Me,$=Oe,R=Ue;return n.renderSlot(g.$slots,"verifyUserSlotI",{},()=>[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(R,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode($,{disabled:n.unref(i).matches("verifyUser.pending"),class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"header",{},()=>[n.createVNode(y,{class:"amplify-heading",level:3},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1})]),n.createVNode(_,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(m,{class:"sr-only amplify-label",id:"amplify-field-493c"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1}),n.createVNode(_,{class:"amplify-flex amplify-field amplify-radiogroupfield",style:{"flex-direction":"column"},"aria-labelledby":"amplify-field-493c"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(s),(O,D)=>(n.openBlock(),n.createBlock(m,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:O},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:D},null,8,["value"]),n.createVNode(S,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),n.createVNode(S,{class:"amplify-text amplify-radio__label"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(ye)[D].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),n.createVNode(A,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var O,D;return[((D=(O=n.unref(i))==null?void 0:O.context)==null?void 0:D.remoteError)?(n.openBlock(),n.createBlock(N,{key:0},{default:n.withCtx(()=>{var z;return[n.createTextVNode(n.toDisplayString(n.unref(P)((z=n.unref(i))==null?void 0:z.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("verifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(c)),1)]),_:1},8,["disabled"]),n.createVNode(x,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1},8,["onClick"]),n.renderSlot(g.$slots,"footer",{onSkipClicked:h,onVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),Ra=n.defineComponent({emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const r=n.useAttrs(),{state:a,send:o}=we(),i=n.computed(()=>Fe(a.value)),s=n.computed(()=>P("Account recovery requires verified contact information")),u=n.computed(()=>P("Skip"));n.computed(()=>P("Verify"));const l=n.computed(()=>P("Confirmation Code")),c=n.computed(()=>P("Code")),d=n.computed(()=>P("Submit")),v=g=>{const{name:b,value:y}=g.target;o({type:"CHANGE",data:{name:b,value:y}})},f=g=>{(r==null?void 0:r.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",g):p(g)},p=g=>{const b=new FormData(g.target);o({type:"SUBMIT",data:$e({},Object.fromEntries(b))})},h=()=>{(r==null?void 0:r.onSkipClicked)?t("skipClicked"):o({type:"SKIP"})};return(g,b)=>{const y=Je,m=Re,w=De,S=pe,_=Ve,N=Ce,x=Me,A=Oe,$=Ue;return n.renderSlot(g.$slots,"confirmVerifyUserSlotI",n.normalizeProps(n.guardReactiveProps(g.$attrs)),()=>[n.createVNode(S,n.normalizeProps(n.guardReactiveProps(g.$attrs)),{default:n.withCtx(()=>[n.createVNode($,{onInput:v,onSubmit:n.withModifiers(f,["prevent"])},{default:n.withCtx(()=>[n.createVNode(A,{class:"amplify-flex",style:{"flex-direction":"column"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.renderSlot(g.$slots,"header",{},()=>[n.createVNode(y,{level:3,class:"amplify-heading"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)),1)]),_:1})]),n.createVNode(S,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(S,{class:"amplify-flex amplify-field amplify-textfield",style:{"flex-direction":"column"}},{default:n.withCtx(()=>[n.createVNode(m,{class:"sr-only amplify-label",for:"amplify-field-c34b"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(l)),1)]),_:1}),n.createVNode(S,{class:"amplify-flex"},{default:n.withCtx(()=>[n.createVNode(w,{class:"amplify-input amplify-field-group__control",id:"amplify-field-c34b","aria-invalid":"false",autocomplete:"one-time-code",name:"confirmation_code",required:"",placeholder:n.unref(c),type:"text"},null,8,["placeholder"])]),_:1})]),_:1})]),_:1}),n.createVNode(x,{class:"amplify-flex",style:{"flex-direction":"column"}},{default:n.withCtx(()=>{var R,O;return[((O=(R=n.unref(i))==null?void 0:R.context)==null?void 0:O.remoteError)?(n.openBlock(),n.createBlock(_,{key:0},{default:n.withCtx(()=>{var D;return[n.createTextVNode(n.toDisplayString(n.unref(P)((D=n.unref(i))==null?void 0:D.context.remoteError)),1)]}),_:1})):n.createCommentVNode("",!0),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-variation":"primary",type:"submit",style:{"font-weight":"normal"},disabled:n.unref(i).matches("confirmVerifyUser.pending")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)]),_:1},8,["disabled"]),n.createVNode(N,{class:"amplify-field-group__control","data-fullwidth":"false","data-size":"small","data-variation":"link",style:{"font-weight":"normal"},type:"button",onClick:n.withModifiers(h,["prevent"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(u)),1)]),_:1},8,["onClick"]),n.renderSlot(g.$slots,"footer",{onSkipClicked:h,onConfirmVerifyUserSubmit:f})]}),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),H3={"data-amplify-container":""},K3=["data-amplify-router-content"],q3={key:1,"data-amplify-router-content":""},Zs=n.defineComponent({props:{initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const{initialState:r,loginMechanisms:a,variation:o,services:i,signUpAttributes:s,socialProviders:u}=e,l=n.useAttrs(),c=F_(),d=g2(c),{state:v,send:f}=As(d);we(d),n.onMounted(()=>{f({type:"INIT",data:{initialState:r,loginMechanisms:a,socialProviders:u,signUpAttributes:s,services:i}})});const p=n.computed(()=>Fe(v.value)),h=n.ref(),g=n.ref(),b=n.ref(),y=n.ref(),m=n.ref(),w=n.ref(),S=n.ref(),_=n.ref(),N=n.ref(),x=n.ref(),A=n.computed(()=>P("Create Account")),$=n.computed(()=>P("Sign In")),R=T=>{var be;(l==null?void 0:l.onSignInSubmit)?t("signInSubmit",T):(be=h.value)==null||be.submit(T)},O=T=>{(l==null?void 0:l.onConfirmSignUpSubmit)?t("confirmSignUpSubmit",T):b.value.submit(T)},D=T=>{(l==null?void 0:l.onResetPasswordSubmit)?t("resetPasswordSubmit",T):S.value.submit(T)},z=T=>{(l==null?void 0:l.onConfirmResetPasswordSubmit)?t("confirmResetPasswordSubmit",T):_.value.submit(T)},ve=T=>{(l==null?void 0:l.onConfirmSignInSubmit)?t("confirmSignInSubmit",T):y.value.submit(T)},qe=T=>{(l==null?void 0:l.onForceNewPasswordSubmit)?t("mSetupTOTPSubmit",T):m.value.submit(T)},le=T=>{(l==null?void 0:l.onForceNewPasswordSubmit)?t("forceNewPasswordSubmit",T):w.value.submit(T)},Ge=T=>{(l==null?void 0:l.onSignUpSubmit)?t("signUpSubmit",T):g.value.submit()},Pe=T=>{(l==null?void 0:l.onVerifyUserSubmit)?t("verifyUserSubmit",T):N.value.submit(T)},ue=T=>{(l==null?void 0:l.onConfirmVerifyUserSubmit)?t("confirmVerifyUserSubmit",T):x.value.submit(T)},xe=n.ref(null),Kt=n.ref();n.watch(()=>v.value.context,()=>{const{user:T,signOut:be}=hs({send:f,state:v.value});xe.value=T,Kt.value=be});const Nt=n.computed(()=>{var T,be;return((T=p.value)==null?void 0:T.matches("signIn"))||((be=p.value)==null?void 0:be.matches("signUp"))});return(T,be)=>{var Yt,C,k,F,B,M,L,q,G,ne,ce,Te;const qt=L2,Yr=G2;return n.openBlock(),n.createElementBlock(n.Fragment,null,[((Yt=n.unref(v))==null?void 0:Yt.matches("authenticated"))?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0},T.$attrs,{"data-amplify-authenticator":"","data-variation":o}),[n.createElementVNode("div",H3,[n.renderSlot(T.$slots,"header"),n.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":n.unref(Nt)?void 0:""},[n.unref(Nt)?(n.openBlock(),n.createBlock(Yr,{key:0},{default:n.withCtx(()=>{var V,U;return[n.createVNode(qt,{active:(V=n.unref(p))==null?void 0:V.matches("signIn"),id:44472,label:n.unref($),onClick:be[0]||(be[0]=We=>n.unref(f)("SIGN_IN"))},null,8,["active","label"]),n.createVNode(qt,{active:(U=n.unref(p))==null?void 0:U.matches("signUp"),id:44471,label:n.unref(A),onClick:be[1]||(be[1]=We=>n.unref(f)("SIGN_UP"))},null,8,["active","label"])]}),_:1})):n.createCommentVNode("",!0),n.unref(Nt)?(n.openBlock(),n.createElementBlock("div",q3,[((C=n.unref(p))==null?void 0:C.matches("signIn"))?(n.openBlock(),n.createBlock(fa,{key:0,onSignInSubmit:R,ref:(V,U)=>{U.signInComponent=V,h.value=V}},{signInSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in")]),form:n.withCtx(({info:V,onSignInSubmit:U,onForgotPasswordClicked:We,onInput:Zt})=>[n.renderSlot(T.$slots,"sign-in-form",{info:V,onInput:Zt,onSignInSubmit:U,onForgotPasswordClicked:We})]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in-header")]),footer:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-in-footer")]),_:3},512)):n.createCommentVNode("",!0),((k=n.unref(p))==null?void 0:k.matches("signUp"))?(n.openBlock(),n.createBlock(pa,{key:1,onSignUpSubmit:Ge,ref:(V,U)=>{U.signUpComponent=V,g.value=V}},{signUpSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up-header")]),"signup-fields":n.withCtx(({info:V})=>[n.renderSlot(T.$slots,"sign-up-fields",{info:V})]),footer:n.withCtx(()=>[n.renderSlot(T.$slots,"sign-up-footer")]),_:3},512)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),((F=n.unref(p))==null?void 0:F.matches("confirmSignUp"))?(n.openBlock(),n.createBlock(ma,{key:2,onConfirmSignUpSubmit:O,ref:(V,U)=>{U.confirmSignUpComponent=V,b.value=V}},{confirmSignUpSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-up")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-up-header")]),footer:n.withCtx(({onConfirmSignUpSubmit:V,onLostCodeClicked:U})=>[n.renderSlot(T.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:V,onLostCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((B=n.unref(p))==null?void 0:B.matches("resetPassword"))?(n.openBlock(),n.createBlock(ka,{key:3,onResetPasswordSubmit:D,ref:(V,U)=>{U.resetPasswordComponent=V,S.value=V}},{resetPasswordSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"reset-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"reset-password-header")]),footer:n.withCtx(({onResetPasswordSubmit:V,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"reset-password-footer",{onResetPasswordSubmit:V,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((M=n.unref(p))==null?void 0:M.matches("confirmResetPassword"))?(n.openBlock(),n.createBlock(Ba,{key:4,onConfirmResetPasswordSubmit:z,ref:(V,U)=>{U.confirmResetPasswordComponent=V,_.value=V}},{confirmResetPasswordSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-reset-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-reset-password-header")]),footer:n.withCtx(({onConfirmResetPasswordSubmit:V,onLostYourCodeClicked:U})=>[n.renderSlot(T.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:V,onLostYourCodeClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((L=n.unref(p))==null?void 0:L.matches("confirmSignIn"))?(n.openBlock(),n.createBlock(ha,{key:5,onConfirmSignInSubmit:ve,ref:(V,U)=>{U.confirmSignInComponent=V,y.value=V}},{confirmSignInSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-in")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-sign-in-header")]),footer:n.withCtx(({onConfirmSignInSubmit:V,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:V,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((q=n.unref(p))==null?void 0:q.matches("setupTOTP"))?(n.openBlock(),n.createBlock(z3,{key:6,onConfirmSetupTotpSubmit:qe,ref:(V,U)=>{U.confirmSetupTOTPComponent=V,m.value=V}},{confirmSetupTOTPI:n.withCtx(()=>[n.renderSlot(T.$slots,"setup-totp")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"setup-totp-header")]),footer:n.withCtx(({onSetupTOTPSubmit:V,onBackToSignInClicked:U})=>[n.renderSlot(T.$slots,"setup-totp-footer",{onSetupTOTPSubmit:V,onBackToSignInClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((G=n.unref(p))==null?void 0:G.matches("forceNewPassword"))?(n.openBlock(),n.createBlock($a,{key:7,onForceNewPasswordSubmit:le,ref:(V,U)=>{U.forceNewPasswordComponent=V,w.value=V}},{forceNewPasswordI:n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"force-new-password-header")]),footer:n.withCtx(({onHaveAccountClicked:V,onForceNewPasswordSubmit:U})=>[n.renderSlot(T.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:U,onBackToSignInClicked:V})]),_:3},512)):n.createCommentVNode("",!0),((ne=n.unref(p))==null?void 0:ne.matches("verifyUser"))?(n.openBlock(),n.createBlock(Fa,{key:8,onVerifyUserSubmit:Pe,ref:(V,U)=>{U.verifyUserComponent=V,N.value=V}},{verifyUserSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"verify-user")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"verify-user-header")]),footer:n.withCtx(({onVerifyUserSubmit:V,onSkipClicked:U})=>[n.renderSlot(T.$slots,"verify-user-footer",{onVerifyUserSubmit:V,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0),((ce=n.unref(p))==null?void 0:ce.matches("confirmVerifyUser"))?(n.openBlock(),n.createBlock(Ra,{key:9,onConfirmVerifyUserSubmit:ue,ref:(V,U)=>{U.confirmVerifyUserComponent=V,x.value=V}},{confirmVerifyUserSlotI:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-verify-user")]),header:n.withCtx(()=>[n.renderSlot(T.$slots,"confirm-verify-user-header")]),footer:n.withCtx(({onConfirmVerifyUserSubmit:V,onSkipClicked:U})=>[n.renderSlot(T.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:V,onSkipClicked:U})]),_:3},512)):n.createCommentVNode("",!0)],8,K3),n.renderSlot(T.$slots,"footer")])],16)),((Te=n.unref(v))==null?void 0:Te.matches("authenticated"))?n.renderSlot(T.$slots,"default",{key:1,user:xe.value,state:n.unref(v),signOut:Kt.value,send:n.unref(f)}):n.createCommentVNode("",!0)],64)}}}),Xs=n.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}}),Js=n.defineComponent({props:{label:{default:""},id:{default:""},autocomplete:{default:""},placeholder:{default:""},required:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},name:{default:""},type:{default:"text"}},setup(e){const t=e,{label:r,id:a,autocomplete:o,placeholder:i,required:s,name:u,type:l}=n.toRefs(t);return(c,d)=>{const v=Re,f=De,p=pe;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(v,{class:"amplify-label sr-only",for:n.unref(a)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(r)),1)]),_:1},8,["for"]),n.createVNode(p,{class:"amplify-field-group__field-wrapper"},{default:n.withCtx(()=>[n.createVNode(f,{class:"amplify-input amplify-field-group__control",id:n.unref(a),"aria-invalid":"false",autocomplete:n.unref(o),placeholder:n.unref(i),required:n.unref(s),name:n.unref(u),disabled:e.disabled,type:n.unref(l)},null,8,["id","autocomplete","placeholder","required","name","disabled","type"])]),_:1})],64)}}}),Y3={class:"amplify-flex amplify-field amplify-checkboxfield"},Z3={class:"amplify-flex amplify-checkbox"},X3={class:"amplify-visually-hidden"},J3=["data-error","data-checked"],Q3=["data-checked"],ex=n.createElementVNode("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},null,-1),tx=[ex],rx=n.createElementVNode("span",{class:"amplify-text amplify-checkbox__label"}," I agree with the Terms & Conditions",-1),nx={key:0,class:"amplify-text amplify-field__error-message"},Qs=n.defineComponent({props:{errorMessage:{default:""}},setup(e){const t=e,r=n.ref(!1),{errorMessage:a}=n.toRefs(t);return(o,i)=>(n.openBlock(),n.createElementBlock("div",Y3,[n.createElementVNode("label",Z3,[n.createElementVNode("span",X3,[n.createElementVNode("input",{onClick:i[0]||(i[0]=s=>r.value=!r.value),class:"amplify-input amplify-field-group__control amplify-checkbox__input","aria-invalid":"false",type:"checkbox",name:"acknowledgement",value:"yes"})]),n.createElementVNode("span",{class:"amplify-flex amplify-checkbox__button","aria-hidden":"true","data-focus":"false","data-error":!r.value,"data-checked":r.value},[(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon amplify-checkbox__icon",viewBox:"0 0 24 24",fill:"currentColor","data-checked":r.value},tx,8,Q3))],8,J3),rx]),r.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("p",nx,n.toDisplayString(n.unref(a)),1))]))}});var ax={install:e=>{e.component("SignIn",fa),e.component("SignUp",pa),e.component("FederatedSignIn",Mr),e.component("Authenticator",Zs),e.component("RenderInfo",Xs),e.component("PasswordControl",Ke),e.component("UserNameAlias",Vr),e.component("ForceNewPassword",$a),e.component("ResetPassword",ka),e.component("ConfirmResetPassword",Ba),e.component("ConfirmSignUp",ma),e.component("ConfirmSignIn",ha),e.component("VerifyUser",Fa),e.component("ConfirmVerifyUser",Ra),e.component("AmplifyTextField",Js),e.component("AmplifyCheckBox",Qs),e.component("AmplifyButton",Ce),e.component("AuthenticatorSignUpFormFields",va)}};exports.AmplifyButton=Ce;exports.AmplifyCheckBox=Qs;exports.AmplifyTextField=Js;exports.Authenticator=Zs;exports.AuthenticatorSignUpFormFields=va;exports.ConfirmResetPassword=Ba;exports.ConfirmSignIn=ha;exports.ConfirmSignUp=ma;exports.ConfirmVerifyUser=Ra;exports.FederatedSignIn=Mr;exports.ForceNewPassword=$a;exports.PasswordControl=Ke;exports.RenderInfo=Xs;exports.ResetPassword=ka;exports.SignIn=fa;exports.SignUp=pa;exports.UserNameAlias=Vr;exports.VerifyUser=Fa;exports.default=ax;exports.useAuthenticator=Ne;