@aws-amplify/ui-vue 2.0.4 → 2.0.5
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 +7 -7
- package/dist/index.js +407 -406
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Js=Object.defineProperty,Qs=Object.defineProperties;var el=Object.getOwnPropertyDescriptors;var Oa=Object.getOwnPropertySymbols;var tl=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable;var Va=(e,t,r)=>t in e?Js(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Te=(e,t)=>{for(var r in t||(t={}))tl.call(t,r)&&Va(e,r,t[r]);if(Oa)for(var r of Oa(t))rl.call(t,r)&&Va(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"),oe=require("aws-amplify"),Pt=(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=Pt(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 Jt=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,_l=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Ua=_l,wl=Ua,Sl=typeof self=="object"&&self&&self.Object===Object&&self,xl=wl||Sl||Function("return this")(),Le=xl,El=Le,Al=El.Symbol,Qt=Al,Ma=Qt,La=Object.prototype,Il=La.hasOwnProperty,Nl=La.toString,Tt=Ma?Ma.toStringTag:void 0;function $l(e){var t=Il.call(e,Tt),r=e[Tt];try{e[Tt]=void 0;var a=!0}catch{}var o=Nl.call(e);return a&&(t?e[Tt]=r:delete e[Tt]),o}var Pl=$l,Tl=Object.prototype,Bl=Tl.toString;function kl(e){return Bl.call(e)}var Rl=kl,za=Qt,Fl=Pl,Dl=Rl,Ol="[object Null]",Vl="[object Undefined]",ja=za?za.toStringTag:void 0;function Ul(e){return e==null?e===void 0?Vl:Ol:ja&&ja in Object(e)?Fl(e):Dl(e)}var tt=Ul;function Ml(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ze=Ml,Ll=tt,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
|
|
1
|
+
"use strict";var Js=Object.defineProperty,Qs=Object.defineProperties;var el=Object.getOwnPropertyDescriptors;var Oa=Object.getOwnPropertySymbols;var tl=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable;var Va=(e,t,r)=>t in e?Js(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Te=(e,t)=>{for(var r in t||(t={}))tl.call(t,r)&&Va(e,r,t[r]);if(Oa)for(var r of Oa(t))rl.call(t,r)&&Va(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"),oe=require("aws-amplify"),Pt=(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=Pt(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 Jt=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,_l=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Ua=_l,wl=Ua,Sl=typeof self=="object"&&self&&self.Object===Object&&self,xl=wl||Sl||Function("return this")(),Le=xl,El=Le,Al=El.Symbol,Qt=Al,Ma=Qt,La=Object.prototype,Il=La.hasOwnProperty,Nl=La.toString,Tt=Ma?Ma.toStringTag:void 0;function $l(e){var t=Il.call(e,Tt),r=e[Tt];try{e[Tt]=void 0;var a=!0}catch{}var o=Nl.call(e);return a&&(t?e[Tt]=r:delete e[Tt]),o}var Pl=$l,Tl=Object.prototype,Bl=Tl.toString;function kl(e){return Bl.call(e)}var Rl=kl,za=Qt,Fl=Pl,Dl=Rl,Ol="[object Null]",Vl="[object Undefined]",ja=za?za.toStringTag:void 0;function Ul(e){return e==null?e===void 0?Vl:Ol:ja&&ja in Object(e)?Fl(e):Dl(e)}var tt=Ul;function Ml(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ze=Ml,Ll=tt,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 ot=Jl,Ql=Array.isArray,Be=Ql;function eu(e){return e!=null&&typeof e=="object"}var Ze=eu,tu=tt,ru=Be,nu=Ze,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=tt,mu=Ze,hu="[object Symbol]";function gu(e){return typeof e=="symbol"||mu(e)&&pu(e)==hu}var er=gu,yu=vu,Ga=ze,bu=er,Wa=0/0,Cu=/^[-+]0x[0-9a-f]+$/i,_u=/^0b[01]+$/i,wu=/^0o[0-7]+$/i,Su=parseInt;function xu(e){if(typeof e=="number")return e;if(bu(e))return Wa;if(Ga(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ga(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yu(e);var r=_u.test(e);return r||wu.test(e)?Su(e.slice(2),r?2:8):Cu.test(e)?Wa:+e}var Eu=xu,Au=Eu,Ha=1/0,Iu=17976931348623157e292;function Nu(e){if(!e)return e===0?e:0;if(e=Au(e),e===Ha||e===-Ha){var t=e<0?-1:1;return t*Iu}return e===e?e:0}var $u=Nu,Pu=$u;function Tu(e){var t=Pu(e),r=t%1;return t===t?r?t-r:t:0}var Bu=Tu;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=tt,Mu=Ze,Lu="[object Arguments]";function zu(e){return Mu(e)&&Uu(e)==Lu}var ju=zu,Ka=ju,Gu=Ze,qa=Object.prototype,Wu=qa.hasOwnProperty,Hu=qa.propertyIsEnumerable,Ku=Ka(function(){return arguments}())?Ka:function(e){return Gu(e)&&Wu.call(e,"callee")&&!Hu.call(e,"callee")},tr=Ku,it={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})(it,it.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 rr=Ju,Qu=tt,ec=Jr,tc=Ze,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]",_c="[object Int32Array]",wc="[object Uint8Array]",Sc="[object Uint8ClampedArray]",xc="[object Uint16Array]",Ec="[object Uint32Array]",te={};te[gc]=te[yc]=te[bc]=te[Cc]=te[_c]=te[wc]=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 $c=Nc,en={exports:{}};(function(e,t){var r=Ua,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,Tc=$c,Ya=en.exports,Za=Ya&&Ya.isTypedArray,Bc=Za?Tc(Za):Pc,nr=Bc,kc=Vu,Rc=tr,Fc=Be,Dc=it.exports,Oc=rr,Vc=nr,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 Xa=Lc,zc=Object.prototype;function jc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zc;return e===r}var ar=jc;function Gc(e,t){return function(r){return e(t(r))}}var Ja=Gc,Wc=Ja,Hc=Wc(Object.keys,Object),Kc=Hc,qc=ar,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 Qa=Jc,Qc=Xa,ed=Qa,td=ot;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=ot,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;/*! *****************************************************************************
|
|
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 ce(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 eo=".",to={},nn="xstate.guard",md="",rt=!0;function re(e){return Object.keys(e)}function an(e,t,r){r===void 0&&(r=eo);var a=Bt(e,r),o=Bt(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 ro(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 ut(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 Bt(e,t){if(hd(e))return e.value;if(ut(e))return or(e);if(typeof e!="string")return e;var r=on(e,t);return or(r)}function or(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 no(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 ir(e){if(!e)return[[]];if(H(e))return[[e]];var t=ae(re(e).map(function(r){var a=e[r];return typeof a!="string"&&(!a||!Object.keys(a).length)?[[r]]:ir(e[r]).map(function(o){return[r].concat(o)})}));return t}function ae(e){var t;return(t=[]).concat.apply(t,ce([],J(e),!1))}function ao(e){return ut(e)?e:[e]}function ke(e){return e===void 0?[]:ao(e)}function sr(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 oo(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 io(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 so(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:so(r,o)}}})}function _d(e,t){return{current:t,states:so(e,t)}}function lo(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,h=c[m];v[m]=Z(h)?h(i,t.data,d):h}}catch(y){u={error:y}}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 nt=function(){};rt||(nt=function(e,t){var r=e instanceof Error?e:void 0;if(!(!r&&e)&&console!==void 0){var a=["Warning: ".concat(t)];r&&a.push(r),console.warn.apply(console,a)}});function ut(e){return Array.isArray(e)}function Z(e){return typeof e=="function"}function H(e){return typeof e=="string"}function uo(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 wd(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 ct(e,t){var r=ao(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 co(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 fo(e){return typeof e=="string"?{type:e}:e}function vo(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 dt;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(dt||(dt={}));var ln=Q.Start,un=Q.Stop,lr=Q.Raise,ur=Q.Send,po=Q.Cancel,Id=Q.NullEvent,cn=Q.Assign;Q.After;Q.DoneState;var mo=Q.Log,Nd=Q.Init,dn=Q.Invoke;Q.ErrorExecution;var ho=Q.ErrorPlatform,$d=Q.ErrorCustom,fn=Q.Update,Pd=Q.Choose,Td=Q.Pure,cr=ge({type:Nd});function vn(e,t){return t&&t[e]||void 0}function Rt(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 dr=function(e,t){if(!e)return[];var r=ut(e)?e:[e];return r.map(function(a){return Rt(a,t)})};function pn(e){var t=Rt(e);return I(I({id:H(e)?e:t.id},t),{type:t.type})}function Bd(e){return H(e)?{type:lr,event:e}:fr(e,{to:dt.Internal})}function kd(e){return{type:lr,_event:ge(e.event)}}function fr(e,t){return{to:t?t.to:void 0,type:ur,event:Z(e)?e:sn(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Z(e)?e.name:ro(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 fr(e,I(I({},t),{to:dt.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:po,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 at=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 vr(e,t){var r="".concat(Q.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function pr(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 zd(e,t){return fr(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]:io(o,function(f){return f.type===cn}),2),u=s[0],l=s[1],c=u.length?lo(r,a,u,t):r,d=i?[r]:void 0,v=ae(l.map(function(f){var p;switch(f.type){case lr:return kd(f);case ur:var m=Rd(f,c,a,e.options.delays);return m;case mo:return Dd(f,c,a);case Pd:{var h=f,y=(p=h.conds.find(function(D){var O=uo(D.cond,e.options.guards);return!O||co(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!y)return[];var C=J(mn(e,t,c,a,dr(ke(y),e.options.actions),i),2),g=C[0],_=C[1];return c=_,d==null||d.push(c),g}case Td:{var y=f.get(c,a.data);if(!y)return[];var w=J(mn(e,t,c,a,dr(ke(y),e.options.actions),i),2),S=w[0],N=w[1];return c=N,d==null||d.push(c),S}case un:return Md(f,c,a);case cn:{c=lo(c,a,[f],t),d==null||d.push(c);break}default:var A=Rt(f,e.options.actions),x=A.exec;if(x&&d){var $=d.length-1;A=I(I({},A),{exec:function(D){for(var O=[],V=1;V<arguments.length;V++)O[V-1]=arguments[V];x.apply(void 0,ce([d[$]],J(O),!1))}})}return A}}).filter(function(f){return!!f}));return[v,c]}var mr=function(e){return e.type==="atomic"||e.type==="final"};function ft(e){return re(e.states).map(function(t){return e.states[t]})}function go(e){var t=[e];return mr(e)?t:t.concat(ae(ft(e).map(go)))}function vt(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 h=m.value,y=h.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch($){r={error:$}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}var C=hn(f);try{for(var g=W(f),_=g.next();!_.done;_=g.next()){var h=_.value;if(h.type==="compound"&&(!C.get(h)||!C.get(h).length))v.get(h)?v.get(h).forEach(function(D){return f.add(D)}):h.initialStateNodes.forEach(function(D){return f.add(D)});else if(h.type==="parallel")try{for(var w=(s=void 0,W(ft(h))),S=w.next();!S.done;S=w.next()){var N=S.value;N.type!=="history"&&(f.has(N)||(f.add(N),v.get(N)?v.get(N).forEach(function(D){return f.add(D)}):N.initialStateNodes.forEach(function(D){return f.add(D)})))}}catch(D){s={error:D}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(s)throw s.error}}}}catch($){o={error:$}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var A=W(f),x=A.next();!x.done;x=A.next())for(var h=x.value,y=h.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch($){l={error:$}}finally{try{x&&!x.done&&(c=A.return)&&c.call(A)}finally{if(l)throw l.error}}return f}function yo(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var a=r[0];if(a){if(mr(a))return a.key}else return{}}var o={};return r.forEach(function(i){o[i.key]=yo(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=vt([e],t);return yo(e,hn(r))}function hr(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function Gd(e){return ce([],J(new Set(ae(ce([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Dt(e,t){return t.type==="compound"?ft(t).some(function(r){return r.type==="final"&&hr(e,r)}):t.type==="parallel"?ft(t).every(function(r){return Dt(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 bo(e){return new Set(ae(e.map(function(t){return t.tags})))}function Co(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 Co(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 Xe=function(){function e(t){var r=this,a;this.actions=[],this.activities=to,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||to,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=cr;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=cr;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,ce([],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 nt(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false."),!!((r=this.machine)===null||r===void 0?void 0:r.transition(this,t).changed)},e}(),gr=[],Ot=function(e,t){gr.push(e);var r=t(e);return gr.pop(),r},qd=function(e){return e(gr[gr.length-1])};function _o(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=fo(e.src),s=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],u=e.data?sr(e.data,r,a):void 0,l=s?wo(s,e.id,u):_o(e.id);return l.meta=e,l}function wo(e,t,r){var a=_o(t);if(a.deferred=!0,He(e)){var o=a.state=Ot(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 yr(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 pt="",gn="#",Vt="*",mt={},ht=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===pt?"the transient event":"event '".concat(t,"'");nt(!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:eo),this.id=this.config.id||ce([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}):mt;var s=0;function u(l){var c,d;l.order=s++;try{for(var v=W(ft(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===pt}):pt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=ke(this.config.entry||this.config.onEntry).map(function(l){return Rt(l)}),this.onExit=ke(this.config.exit||this.config.onExit).map(function(l){return Rt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=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),yr({src:l.id,id:l.id});if(H(l.src))return yr(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),yr(I(I({id:f},l),{src:f}))}else{var p=l.src;return yr(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||go(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===pt,a=this.transitions.filter(function(o){var i=o.eventType===t;return r?i:i||o.eventType===Vt});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(fr(l,{delay:i})),t.onExit.push(Od(l)),l},o=ut(r)?r.map(function(i,s){var u=a(i.delay,s);return I(I({},i),{event:u})}):ae(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 Xe?t.value:Bt(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=ro(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=Array.from(vt([],this.getStateNodes(t.value)));return new Xe(I(I({},t),{value:this.resolve(t.value),configuration:r,done:Dt(r,this),tags:bo(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(g){o={error:g}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}var p=re(s).map(function(g){return s[g]}),m=ae(p.map(function(g){return g.transitions})),h=p.some(function(g){return g.transitions.length>0});if(!h)return this.next(r,a);var y=ae(p.map(function(g){return g.entrySet})),C=ae(re(s).map(function(g){return s[g].configuration}));return{transitions:m,entrySet:y,exitSet:ae(p.map(function(g){return g.exitSet})),configuration:C,source:r,actions:ae(re(s).map(function(g){return s[g].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,h=t.context,y=m?H(m)&&ht(m)?t.matches(Bt(this.getStateNodeById(m).path,this.delimiter)):an(Bt(m,this.delimiter),gd(this.path.slice(0,-2))(t.value)):!0,C=!1;try{C=!p||co(this.machine,p,h,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(C&&y){f.target!==void 0&&(l=f.target),u.push.apply(u,ce([],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 g=ae(l.map(function(S){return i.getRelativeStateNodes(S,t.historyValue)})),_=!!c.internal,w=_?[]:ae(g.map(function(S){return i.nodesFromChild(S)}));return{transitions:[c],entrySet:w,exitSet:_?[]:[this],configuration:g,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=vt([],o?this.getStateNodes(o.value):[this]),d=t.configuration.length?vt(c,t.configuration):c;try{for(var v=W(d),f=v.next();!f.done;f=v.next()){var p=f.value;hr(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),h=m.next();!h.done;h=m.next()){var p=h.value;(!hr(d,p)||hr(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(A){u={error:A}}finally{try{h&&!h.done&&(l=m.return)&&l.call(m)}finally{if(u)throw u.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var y=ae(t.entrySet.map(function(A){var x=[];if(A.type!=="final")return x;var $=A.parent;if(!$.parent)return x;x.push(vr(A.id,A.doneData),vr($.id,A.doneData?sr(A.doneData,r,a):void 0));var D=$.parent;return D.type==="parallel"&&ft(D).every(function(O){return Dt(t.configuration,O)})&&x.push(vr(D.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 C=new Set(t.entrySet),g=new Set(t.exitSet),_=J([ae(Array.from(C).map(function(A){return ce(ce([],J(A.activities.map(function(x){return Vd(x)})),!1),J(A.onEntry),!1)})).concat(y.map(Bd)),ae(Array.from(g).map(function(A){return ce(ce([],J(A.onExit),!1),J(A.activities.map(function(x){return Ud(x)})),!1)}))],2),w=_[0],S=_[1],N=dr(S.concat(t.actions).concat(w),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(or(this.getResolvedPath(t))):this.resolve(t),u=a!=null?a:this.machine.context;i=this.resolveState(Xe.from(s,u))}if(!rt&&o.name===Vt)throw new Error("An event cannot have the wildcard type ('".concat(Vt,"')"));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=vt([],this.getStateNodes(i.value)),d=l.configuration.length?vt(c,l.configuration):c;return l.configuration=ce([],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,ce([],J(i),!1)),t},e.prototype.resolveTransition=function(t,r,a,o){var i,s,u=this;a===void 0&&(a=cr),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 h=W(p),y=h.next();!y.done;y=h.next()){var C=y.value;C.type===ln?m[C.activity.id||C.activity.type]=C:C.type===un&&(m[C.activity.id||C.activity.type]=!1)}}catch(le){i={error:le}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}var g=J(mn(this,r,f,a,p,this.machine.config.preserveActionOrder),2),_=g[0],w=g[1],S=J(io(_,function(le){return le.type===lr||le.type===ur&&le.to===dt.Internal}),2),N=S[0],A=S[1],x=_.filter(function(le){var xe;return le.type===ln&&((xe=le.activity)===null||xe===void 0?void 0:xe.type)===dn}),$=x.reduce(function(le,xe){return le[xe.activity.id]=Yd(xe.activity,u.machine,w,a),le},r?I({},r.children):{}),D=d?t.configuration:r?r.configuration:[],O=Dt(D,this),V=new Xe({value:d||r.value,context:w,_event:a,_sessionid:r?r._sessionid:null,historyValue:d?v?_d(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:D,transitions:t.transitions,children:$,done:O,tags:r==null?void 0:r.tags,machine:this}),z=f!==w;V.changed=a.name===fn||z;var ve=V.history;ve&&delete ve.history;var Ye=!O&&(this._transient||l.some(function(le){return le._transient}));if(!c&&(!Ye||a.name===pt))return V;var se=V;if(!O)for(Ye&&(se=this.resolveRaisedTransition(se,{type:Id},a));N.length;){var Ge=N.shift();se=this.resolveRaisedTransition(se,Ge._event,a)}var $e=se.changed||(ve?!!se.actions.length||z||typeof ve.value!=typeof se.value||!Co(se.value,ve.value):void 0);return se.changed=$e,se.history=ve,se.tags=bo(se.configuration),se},e.prototype.getStateNode=function(t){if(ht(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=ht(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"&&ht(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||mt;switch(this.type){case"parallel":return kt(this.initialStateValue,function(i,s){return i?a.getStateNode(s).resolve(t[s]||i):mt});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):mt}):this.initialStateValue||{};default:return t||mt}},e.prototype.getResolvedPath=function(t){if(ht(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=no(this.states,function(a){return a.initialStateValue||mt},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=mr(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=ht(r.target)?or(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(mr(this))return[this];if(this.type==="compound"&&!this.initial)return rt||nt(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=ir(this.initialStateValue);return ae(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:no(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?ae(ir(o).map(function(s){return a.getFromRelativePath(s)})):a.initialStateNodes}var i=yd(a.path,"states")(t).current;return H(i)?[a.getStateNode(i)]:ae(ir(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=ae(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:dr(ke(t.actions)),cond:uo(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=Vt,u=i[s],l=u===void 0?[]:u,c=rn(i,[typeof s=="symbol"?s:s+""]);o=ae(re(c).map(function(g){!
|
|
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===dt.Parent||a.parent.id===v),p=f?a.parent:H(v)?a.children.get(v)||br.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===$d?"".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=br.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ot(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 m=p.value;m(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 h=W(this.listeners),y=h.next();!y.done;y=h.next()){var m=y.value;m(t,t.event)}}catch($){i={error:$}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var C=W(this.contextListeners),g=C.next();!g.done;g=C.next()){var _=g.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch($){u={error:$}}finally{try{g&&!g.done&&(l=C.return)&&l.call(C)}finally{if(u)throw u.error}}var w=Dt(t.configuration||[],this.machine);if(this.state.configuration&&w){var S=t.configuration.find(function($){return $.type==="final"&&$.parent===v.machine}),N=S&&S.doneData?sr(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(pr(this.id,N))}}catch($){c={error:$}}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===we.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===we.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===we.Running)return this;br.register(this.sessionId,this),this.initialized=!0,this.status=we.Running;var a=t===void 0?this.initialState:Ot(this,function(){return Hd(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,cr)}),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 h=W(this.stopListeners),y=h.next();!y.done;y=h.next()){var m=y.value;m(),this.stopListeners.delete(m)}}catch(x){a={error:x}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}try{for(var C=W(this.contextListeners),g=C.next();!g.done;g=C.next()){var m=g.value;this.contextListeners.delete(m)}}catch(x){i={error:x}}finally{try{g&&!g.done&&(s=C.return)&&s.call(C)}finally{if(i)throw i.error}}try{for(var _=W(this.doneListeners),w=_.next();!w.done;w=_.next()){var m=w.value;this.doneListeners.delete(m)}}catch(x){u={error:x}}finally{try{w&&!w.done&&(l=_.return)&&l.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.state.configuration.forEach(function(x){var $,D;try{for(var O=W(x.definition.exit),V=O.next();!V.done;V=O.next()){var z=V.value;v.exec(z,v.state)}}catch(ve){$={error:ve}}finally{try{V&&!V.done&&(D=O.return)&&D.call(O)}finally{if($)throw $.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=we.Stopped,br.free(this.sessionId),this},e.prototype.batch=function(t){var r=this;if(!(this.status===we.NotStarted&&this.options.deferEvents)){if(this.status!==we.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var a,o,i=r.state,s=!1,u=[],l=function(f){var p=ge(f);r.forward(p),i=Ot(r,function(){return r.machine.transition(i,p)}),u.push.apply(u,ce([],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(ho)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(ho)===0}))throw a.data.data;var o=Ot(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(w){throw this.parent&&this.parent.send({type:"xstate.error",data:w}),w}switch(t.type){case ur: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 po: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=fo(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 h=p?sr(p,o,i):void 0;if(typeof v=="string")return;var y=Z(v)?v(o,i.data,{data:h,src:d,meta:c.meta}):v;if(!y)return;var C=void 0;He(y)&&(y=h?y.withContext(h):y,C={autoForward:m}),this.spawn(y,f,C)}else this.spawnActivity(c);break}case un:{this.stopChild(t.activity.id);break}case mo:var g=t.label,_=t.value;g?this.logger(g,_):this.logger(_);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(oo(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(wd(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(pr(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=vo(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(oo(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(pr(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===we.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=xo,e}(),cf=function(e){return H(e)?I(I({},Cn),{name:e}):I(I(I({},Cn),{name:Ed()}),e)};function Cr(e,t){var r=cf(t);return qd(function(a){if(!rt){var o=He(e)||Z(e);nt(!!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 xo(e,t){var r=new uf(e,t);return r}var X={},_n={};(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 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 ce(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 eo=".",to={},nn="xstate.guard",md="",st=!0;function re(e){return Object.keys(e)}function an(e,t,r){r===void 0&&(r=eo);var a=Bt(e,r),o=Bt(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 ro(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 ut(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 Bt(e,t){if(hd(e))return e.value;if(ut(e))return or(e);if(typeof e!="string")return e;var r=on(e,t);return or(r)}function or(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 no(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 ir(e){if(!e)return[[]];if(H(e))return[[e]];var t=ae(re(e).map(function(r){var a=e[r];return typeof a!="string"&&(!a||!Object.keys(a).length)?[[r]]:ir(e[r]).map(function(o){return[r].concat(o)})}));return t}function ae(e){var t;return(t=[]).concat.apply(t,ce([],J(e),!1))}function ao(e){return ut(e)?e:[e]}function ke(e){return e===void 0?[]:ao(e)}function sr(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 oo(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 io(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 so(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:so(r,o)}}})}function _d(e,t){return{current:t,states:so(e,t)}}function lo(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,h=c[m];v[m]=Z(h)?h(i,t.data,d):h}}catch(y){u={error:y}}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 lt=function(){};function ut(e){return Array.isArray(e)}function Z(e){return typeof e=="function"}function H(e){return typeof e=="string"}function uo(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 wd(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 ct(e,t){var r=ao(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 co(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 fo(e){return typeof e=="string"?{type:e}:e}function vo(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 dt;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(dt||(dt={}));var ln=Q.Start,un=Q.Stop,lr=Q.Raise,ur=Q.Send,po=Q.Cancel,Id=Q.NullEvent,cn=Q.Assign;Q.After;Q.DoneState;var mo=Q.Log,Nd=Q.Init,dn=Q.Invoke;Q.ErrorExecution;var ho=Q.ErrorPlatform,$d=Q.ErrorCustom,fn=Q.Update,Pd=Q.Choose,Td=Q.Pure,cr=ge({type:Nd});function vn(e,t){return t&&t[e]||void 0}function Rt(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 dr=function(e,t){if(!e)return[];var r=ut(e)?e:[e];return r.map(function(a){return Rt(a,t)})};function pn(e){var t=Rt(e);return I(I({id:H(e)?e:t.id},t),{type:t.type})}function Bd(e){return H(e)?{type:lr,event:e}:fr(e,{to:dt.Internal})}function kd(e){return{type:lr,_event:ge(e.event)}}function fr(e,t){return{to:t?t.to:void 0,type:ur,event:Z(e)?e:sn(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Z(e)?e.name:ro(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 fr(e,I(I({},t),{to:dt.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:po,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 rt=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 vr(e,t){var r="".concat(Q.DoneState,".").concat(e),a={type:r,data:t};return a.toString=function(){return r},a}function pr(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 zd(e,t){return fr(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]:io(o,function(f){return f.type===cn}),2),u=s[0],l=s[1],c=u.length?lo(r,a,u,t):r,d=i?[r]:void 0,v=ae(l.map(function(f){var p;switch(f.type){case lr:return kd(f);case ur:var m=Rd(f,c,a,e.options.delays);return m;case mo:return Dd(f,c,a);case Pd:{var h=f,y=(p=h.conds.find(function(D){var O=uo(D.cond,e.options.guards);return!O||co(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!y)return[];var C=J(mn(e,t,c,a,dr(ke(y),e.options.actions),i),2),g=C[0],_=C[1];return c=_,d==null||d.push(c),g}case Td:{var y=f.get(c,a.data);if(!y)return[];var w=J(mn(e,t,c,a,dr(ke(y),e.options.actions),i),2),S=w[0],N=w[1];return c=N,d==null||d.push(c),S}case un:return Md(f,c,a);case cn:{c=lo(c,a,[f],t),d==null||d.push(c);break}default:var A=Rt(f,e.options.actions),x=A.exec;if(x&&d){var $=d.length-1;A=I(I({},A),{exec:function(D){for(var O=[],V=1;V<arguments.length;V++)O[V-1]=arguments[V];x.apply(void 0,ce([d[$]],J(O),!1))}})}return A}}).filter(function(f){return!!f}));return[v,c]}var mr=function(e){return e.type==="atomic"||e.type==="final"};function ft(e){return re(e.states).map(function(t){return e.states[t]})}function go(e){var t=[e];return mr(e)?t:t.concat(ae(ft(e).map(go)))}function vt(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 h=m.value,y=h.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch($){r={error:$}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}var C=hn(f);try{for(var g=W(f),_=g.next();!_.done;_=g.next()){var h=_.value;if(h.type==="compound"&&(!C.get(h)||!C.get(h).length))v.get(h)?v.get(h).forEach(function(D){return f.add(D)}):h.initialStateNodes.forEach(function(D){return f.add(D)});else if(h.type==="parallel")try{for(var w=(s=void 0,W(ft(h))),S=w.next();!S.done;S=w.next()){var N=S.value;N.type!=="history"&&(f.has(N)||(f.add(N),v.get(N)?v.get(N).forEach(function(D){return f.add(D)}):N.initialStateNodes.forEach(function(D){return f.add(D)})))}}catch(D){s={error:D}}finally{try{S&&!S.done&&(u=w.return)&&u.call(w)}finally{if(s)throw s.error}}}}catch($){o={error:$}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var A=W(f),x=A.next();!x.done;x=A.next())for(var h=x.value,y=h.parent;y&&!f.has(y);)f.add(y),y=y.parent}catch($){l={error:$}}finally{try{x&&!x.done&&(c=A.return)&&c.call(A)}finally{if(l)throw l.error}}return f}function yo(e,t){var r=t.get(e);if(!r)return{};if(e.type==="compound"){var a=r[0];if(a){if(mr(a))return a.key}else return{}}var o={};return r.forEach(function(i){o[i.key]=yo(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=vt([e],t);return yo(e,hn(r))}function hr(e,t){return Array.isArray(e)?e.some(function(r){return r===t}):e instanceof Set?e.has(t):!1}function Gd(e){return ce([],J(new Set(ae(ce([],J(e.map(function(t){return t.ownEvents})),!1)))),!1)}function Dt(e,t){return t.type==="compound"?ft(t).some(function(r){return r.type==="final"&&hr(e,r)}):t.type==="parallel"?ft(t).every(function(r){return Dt(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 bo(e){return new Set(ae(e.map(function(t){return t.tags})))}function Co(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 Co(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 Xe=function(){function e(t){var r=this,a;this.actions=[],this.activities=to,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||to,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=cr;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=cr;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,ce([],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 lt(!!this.machine),!!((r=this.machine)===null||r===void 0?void 0:r.transition(this,t).changed)},e}(),gr=[],Ot=function(e,t){gr.push(e);var r=t(e);return gr.pop(),r},qd=function(e){return e(gr[gr.length-1])};function _o(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=fo(e.src),s=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],u=e.data?sr(e.data,r,a):void 0,l=s?wo(s,e.id,u):_o(e.id);return l.meta=e,l}function wo(e,t,r){var a=_o(t);if(a.deferred=!0,He(e)){var o=a.state=Ot(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 yr(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 pt="",gn="#",Vt="*",mt={},ht=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===pt?"the transient event":"event '".concat(t,"'");lt(!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:eo),this.id=this.config.id||ce([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}):mt;var s=0;function u(l){var c,d;l.order=s++;try{for(var v=W(ft(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===pt}):pt in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=ke(this.config.entry||this.config.onEntry).map(function(l){return Rt(l)}),this.onExit=ke(this.config.exit||this.config.onExit).map(function(l){return Rt(l)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=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),yr({src:l.id,id:l.id});if(H(l.src))return yr(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),yr(I(I({id:f},l),{src:f}))}else{var p=l.src;return yr(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||go(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===pt,a=this.transitions.filter(function(o){var i=o.eventType===t;return r?i:i||o.eventType===Vt});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(fr(l,{delay:i})),t.onExit.push(Od(l)),l},o=ut(r)?r.map(function(i,s){var u=a(i.delay,s);return I(I({},i),{event:u})}):ae(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 Xe?t.value:Bt(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=ro(t);return this.events.includes(r)},e.prototype.resolveState=function(t){var r=Array.from(vt([],this.getStateNodes(t.value)));return new Xe(I(I({},t),{value:this.resolve(t.value),configuration:r,done:Dt(r,this),tags:bo(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(g){o={error:g}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}var p=re(s).map(function(g){return s[g]}),m=ae(p.map(function(g){return g.transitions})),h=p.some(function(g){return g.transitions.length>0});if(!h)return this.next(r,a);var y=ae(p.map(function(g){return g.entrySet})),C=ae(re(s).map(function(g){return s[g].configuration}));return{transitions:m,entrySet:y,exitSet:ae(p.map(function(g){return g.exitSet})),configuration:C,source:r,actions:ae(re(s).map(function(g){return s[g].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,h=t.context,y=m?H(m)&&ht(m)?t.matches(Bt(this.getStateNodeById(m).path,this.delimiter)):an(Bt(m,this.delimiter),gd(this.path.slice(0,-2))(t.value)):!0,C=!1;try{C=!p||co(this.machine,p,h,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(C&&y){f.target!==void 0&&(l=f.target),u.push.apply(u,ce([],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 g=ae(l.map(function(S){return i.getRelativeStateNodes(S,t.historyValue)})),_=!!c.internal,w=_?[]:ae(g.map(function(S){return i.nodesFromChild(S)}));return{transitions:[c],entrySet:w,exitSet:_?[]:[this],configuration:g,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=vt([],o?this.getStateNodes(o.value):[this]),d=t.configuration.length?vt(c,t.configuration):c;try{for(var v=W(d),f=v.next();!f.done;f=v.next()){var p=f.value;hr(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),h=m.next();!h.done;h=m.next()){var p=h.value;(!hr(d,p)||hr(t.exitSet,p.parent))&&t.exitSet.push(p)}}catch(A){u={error:A}}finally{try{h&&!h.done&&(l=m.return)&&l.call(m)}finally{if(u)throw u.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var y=ae(t.entrySet.map(function(A){var x=[];if(A.type!=="final")return x;var $=A.parent;if(!$.parent)return x;x.push(vr(A.id,A.doneData),vr($.id,A.doneData?sr(A.doneData,r,a):void 0));var D=$.parent;return D.type==="parallel"&&ft(D).every(function(O){return Dt(t.configuration,O)})&&x.push(vr(D.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 C=new Set(t.entrySet),g=new Set(t.exitSet),_=J([ae(Array.from(C).map(function(A){return ce(ce([],J(A.activities.map(function(x){return Vd(x)})),!1),J(A.onEntry),!1)})).concat(y.map(Bd)),ae(Array.from(g).map(function(A){return ce(ce([],J(A.onExit),!1),J(A.activities.map(function(x){return Ud(x)})),!1)}))],2),w=_[0],S=_[1],N=dr(S.concat(t.actions).concat(w),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(or(this.getResolvedPath(t))):this.resolve(t),u=a!=null?a:this.machine.context;i=this.resolveState(Xe.from(s,u))}if(!st&&o.name===Vt)throw new Error("An event cannot have the wildcard type ('".concat(Vt,"')"));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=vt([],this.getStateNodes(i.value)),d=l.configuration.length?vt(c,l.configuration):c;return l.configuration=ce([],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,ce([],J(i),!1)),t},e.prototype.resolveTransition=function(t,r,a,o){var i,s,u=this;a===void 0&&(a=cr),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 h=W(p),y=h.next();!y.done;y=h.next()){var C=y.value;C.type===ln?m[C.activity.id||C.activity.type]=C:C.type===un&&(m[C.activity.id||C.activity.type]=!1)}}catch(le){i={error:le}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}var g=J(mn(this,r,f,a,p,this.machine.config.preserveActionOrder),2),_=g[0],w=g[1],S=J(io(_,function(le){return le.type===lr||le.type===ur&&le.to===dt.Internal}),2),N=S[0],A=S[1],x=_.filter(function(le){var xe;return le.type===ln&&((xe=le.activity)===null||xe===void 0?void 0:xe.type)===dn}),$=x.reduce(function(le,xe){return le[xe.activity.id]=Yd(xe.activity,u.machine,w,a),le},r?I({},r.children):{}),D=d?t.configuration:r?r.configuration:[],O=Dt(D,this),V=new Xe({value:d||r.value,context:w,_event:a,_sessionid:r?r._sessionid:null,historyValue:d?v?_d(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:D,transitions:t.transitions,children:$,done:O,tags:r==null?void 0:r.tags,machine:this}),z=f!==w;V.changed=a.name===fn||z;var ve=V.history;ve&&delete ve.history;var Ye=!O&&(this._transient||l.some(function(le){return le._transient}));if(!c&&(!Ye||a.name===pt))return V;var se=V;if(!O)for(Ye&&(se=this.resolveRaisedTransition(se,{type:Id},a));N.length;){var Ge=N.shift();se=this.resolveRaisedTransition(se,Ge._event,a)}var $e=se.changed||(ve?!!se.actions.length||z||typeof ve.value!=typeof se.value||!Co(se.value,ve.value):void 0);return se.changed=$e,se.history=ve,se.tags=bo(se.configuration),se},e.prototype.getStateNode=function(t){if(ht(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=ht(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"&&ht(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||mt;switch(this.type){case"parallel":return kt(this.initialStateValue,function(i,s){return i?a.getStateNode(s).resolve(t[s]||i):mt});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):mt}):this.initialStateValue||{};default:return t||mt}},e.prototype.getResolvedPath=function(t){if(ht(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=no(this.states,function(a){return a.initialStateValue||mt},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=mr(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=ht(r.target)?or(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(mr(this))return[this];if(this.type==="compound"&&!this.initial)return st||lt(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var r=ir(this.initialStateValue);return ae(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:no(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?ae(ir(o).map(function(s){return a.getFromRelativePath(s)})):a.initialStateNodes}var i=yd(a.path,"states")(t).current;return H(i)?[a.getStateNode(i)]:ae(ir(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=ae(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:dr(ke(t.actions)),cond:uo(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=Vt,u=i[s],l=u===void 0?[]:u,c=rn(i,[typeof s=="symbol"?s:s+""]);o=ae(re(c).map(function(g){!st&&g===pt&<(!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 _=ct(g,c[g]);return st||tf(a,g,_),_}).concat(ct(Vt,l)))}var d=this.config.always?ct("",this.config.always):[],v=this.config.onDone?ct(String(vr(this.id)),this.config.onDone):[];st||lt(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var f=ae(this.invoke.map(function(g){var _=[];return g.onDone&&_.push.apply(_,ce([],J(ct(String(pr(g.id)),g.onDone)),!1)),g.onError&&_.push.apply(_,ce([],J(ct(String(Ft(g.id)),g.onError)),!1)),_})),p=this.after,m=ae(ce(ce(ce(ce([],J(v),!1),J(f),!1),J(o),!1),J(d),!1).map(function(g){return ke(g).map(function(_){return a.formatTransition(_)})}));try{for(var h=W(p),y=h.next();!y.done;y=h.next()){var C=y.value;m.push(C)}}catch(g){t={error:g}}finally{try{y&&!y.done&&(r=h.return)&&r.call(h)}finally{if(t)throw t.error}}return m},e}();function Ut(e,t){return new rf(e,t)}var nf={deferEvents:!1},So=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,br={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=vo(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},we;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(we||(we={}));var uf=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=we.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(d,v){if(ut(d))return a.batch(d),a.state;var f=ge(sn(d,v));if(a.status===we.Stopped)return a.state;if(a.status!==we.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===dt.Parent||a.parent.id===v),p=f?a.parent:H(v)?a.children.get(v)||br.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===$d?"".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=br.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ot(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 m=p.value;m(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 h=W(this.listeners),y=h.next();!y.done;y=h.next()){var m=y.value;m(t,t.event)}}catch($){i={error:$}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}try{for(var C=W(this.contextListeners),g=C.next();!g.done;g=C.next()){var _=g.value;_(this.state.context,this.state.history?this.state.history.context:void 0)}}catch($){u={error:$}}finally{try{g&&!g.done&&(l=C.return)&&l.call(C)}finally{if(u)throw u.error}}var w=Dt(t.configuration||[],this.machine);if(this.state.configuration&&w){var S=t.configuration.find(function($){return $.type==="final"&&$.parent===v.machine}),N=S&&S.doneData?sr(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(pr(this.id,N))}}catch($){c={error:$}}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===we.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===we.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===we.Running)return this;br.register(this.sessionId,this),this.initialized=!0,this.status=we.Running;var a=t===void 0?this.initialState:Ot(this,function(){return Hd(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,cr)}),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 h=W(this.stopListeners),y=h.next();!y.done;y=h.next()){var m=y.value;m(),this.stopListeners.delete(m)}}catch(x){a={error:x}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}try{for(var C=W(this.contextListeners),g=C.next();!g.done;g=C.next()){var m=g.value;this.contextListeners.delete(m)}}catch(x){i={error:x}}finally{try{g&&!g.done&&(s=C.return)&&s.call(C)}finally{if(i)throw i.error}}try{for(var _=W(this.doneListeners),w=_.next();!w.done;w=_.next()){var m=w.value;this.doneListeners.delete(m)}}catch(x){u={error:x}}finally{try{w&&!w.done&&(l=_.return)&&l.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.state.configuration.forEach(function(x){var $,D;try{for(var O=W(x.definition.exit),V=O.next();!V.done;V=O.next()){var z=V.value;v.exec(z,v.state)}}catch(ve){$={error:ve}}finally{try{V&&!V.done&&(D=O.return)&&D.call(O)}finally{if($)throw $.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=we.Stopped,br.free(this.sessionId),this},e.prototype.batch=function(t){var r=this;if(!(this.status===we.NotStarted&&this.options.deferEvents)){if(this.status!==we.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}this.scheduler.schedule(function(){var a,o,i=r.state,s=!1,u=[],l=function(f){var p=ge(f);r.forward(p),i=Ot(r,function(){return r.machine.transition(i,p)}),u.push.apply(u,ce([],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(ho)===0&&!this.state.nextEvents.some(function(i){return i.indexOf(ho)===0}))throw a.data.data;var o=Ot(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(w){throw this.parent&&this.parent.send({type:"xstate.error",data:w}),w}switch(t.type){case ur: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 po: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=fo(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 h=p?sr(p,o,i):void 0;if(typeof v=="string")return;var y=Z(v)?v(o,i.data,{data:h,src:d,meta:c.meta}):v;if(!y)return;var C=void 0;He(y)&&(y=h?y.withContext(h):y,C={autoForward:m}),this.spawn(y,f,C)}else this.spawnActivity(c);break}case un:{this.stopChild(t.activity.id);break}case mo:var g=t.label,_=t.value;g?this.logger(g,_):this.logger(_);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(oo(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(wd(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(pr(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=vo(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(oo(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(pr(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===we.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=xo,e}(),cf=function(e){return H(e)?I(I({},Cn),{name:e}):I(I(I({},Cn),{name:Ed()}),e)};function Cr(e,t){var r=cf(t);return qd(function(a){if(!st){var o=He(e)||Z(e);lt(!!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 xo(e,t){var r=new uf(e,t);return r}var X={},_n={};(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})(_n);var _r={};Object.defineProperty(_r,"__esModule",{value:!0});var df=!0;_r.IS_PRODUCTION=df;var Eo={},gt={};Object.defineProperty(gt,"__esModule",{value:!0});var ff=".",vf={},pf="xstate.guard",mf="";gt.DEFAULT_GUARD_TYPE=pf;gt.EMPTY_ACTIVITY_MAP=vf;gt.STATE_DELIMITER=ff;gt.TARGETLESS_KEY=mf;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=_n,r=gt,a=_r;function o(b){return Object.keys(b)}function i(b,B,R){R===void 0&&(R=r.STATE_DELIMITER);var k=c(b,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(b){try{return z(b)||typeof b=="number"?"".concat(b):b.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function u(b,B){try{return O(b)?b:b.toString().split(B)}catch{throw new Error("'".concat(b,"' is not a valid state path."))}}function l(b){return typeof b=="object"&&"value"in b&&"context"in b&&"event"in b&&"_event"in b}function c(b,B){if(l(b))return b.value;if(O(b))return d(b);if(typeof b!="string")return b;var R=u(b,B);return d(R)}function d(b){if(b.length===1)return b[0];for(var B={},R=B,k=0;k<b.length-1;k++)k===b.length-2?R[b[k]]=b[k+1]:(R[b[k]]={},R=R[b[k]]);return B}function v(b,B){for(var R={},k=o(b),M=0;M<k.length;M++){var L=k[M];R[L]=B(b[L],L,b,M)}return R}function f(b,B,R){var k,M,L={};try{for(var q=t.__values(o(b)),G=q.next();!G.done;G=q.next()){var ne=G.value,ue=b[ne];!R(ue)||(L[ne]=B(ue,ne,b))}}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(b){return function(B){var R,k,M=B;try{for(var L=t.__values(b),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(b,B){return function(R){var k,M,L=R;try{for(var q=t.__values(b),G=q.next();!G.done;G=q.next()){var ne=G.value;L=L[B][ne]}}catch(ue){k={error:ue}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(k)throw k.error}}return L}}function h(b){if(!b)return[[]];if(z(b))return[[b]];var B=y(o(b).map(function(R){var k=b[R];return typeof k!="string"&&(!k||!Object.keys(k).length)?[[R]]:h(b[R]).map(function(M){return[R].concat(M)})}));return B}function y(b){var B;return(B=[]).concat.apply(B,t.__spreadArray([],t.__read(b),!1))}function C(b){return O(b)?b:[b]}function g(b){return b===void 0?[]:C(b)}function _(b,B,R){var k,M;if(V(b))return b(B,R.data);var L={};try{for(var q=t.__values(Object.keys(b)),G=q.next();!G.done;G=q.next()){var ne=G.value,ue=b[ne];V(ue)?L[ne]=ue(B,R.data):L[ne]=ue}}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 w(b){return/^(done|error)\./.test(b)}function S(b){return!!(b instanceof Promise||b!==null&&(V(b)||typeof b=="object")&&V(b.then))}function N(b){return b!==null&&typeof b=="object"&&"transition"in b&&typeof b.transition=="function"}function A(b,B){var R,k,M=t.__read([[],[]],2),L=M[0],q=M[1];try{for(var G=t.__values(b),ne=G.next();!ne.done;ne=G.next()){var ue=ne.value;B(ue)?L.push(ue):q.push(ue)}}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(b,B){return v(b.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 $(b,B){return{current:B,states:x(b,B)}}function D(b,B,R,k){a.IS_PRODUCTION||e.warn(!!b,"Attempting to update undefined context");var M=b&&R.reduce(function(L,q){var G,ne,ue=q.assignment,Pe={state:k,action:q,_event:B},F={};if(V(ue))F=ue(L,B.data,Pe);else try{for(var U=t.__values(o(ue)),We=U.next();!We.done;We=U.next()){var Xt=We.value,Yr=ue[Xt];F[Xt]=V(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,F)},b);return M}e.warn=function(){},a.IS_PRODUCTION||(e.warn=function(b,B){var R=b instanceof Error?b:void 0;if(!(!R&&b)&&console!==void 0){var k=["Warning: ".concat(B)];R&&k.push(R),console.warn.apply(console,k)}});function O(b){return Array.isArray(b)}function V(b){return typeof b=="function"}function z(b){return typeof b=="string"}function ve(b,B){if(!!b)return z(b)?{type:r.DEFAULT_GUARD_TYPE,name:b,predicate:B?B[b]:void 0}:V(b)?{type:r.DEFAULT_GUARD_TYPE,name:b.name,predicate:b}:b}function Ye(b){try{return"subscribe"in b&&V(b.subscribe)}catch{return!1}}var se=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ge(b){try{return"__xstatenode"in b}catch{return!1}}function $e(b){return!!b&&typeof b.send=="function"}var le=function(){var b=0;return function(){return b++,b.toString(16)}}();function xe(b,B){return z(b)||typeof b=="number"?t.__assign({type:b},B):b}function qt(b,B){if(!z(b)&&"$$type"in b&&b.$$type==="scxml")return b;var R=xe(b);return t.__assign({name:R.type,data:R,$$type:"scxml",type:"external"},B)}function $t(b,B){var R=C(B).map(function(k){return typeof k=="undefined"||typeof k=="string"||Ge(k)?{target:k,event:b}:t.__assign(t.__assign({},k),{event:b})});return R}function P(b){if(!(b===void 0||b===r.TARGETLESS_KEY))return g(b)}function be(b,B,R){if(!a.IS_PRODUCTION){var k=b.stack?" Stacktrace was '".concat(b.stack,"'"):"";if(b===B)console.error("Missing onError handler for invocation '".concat(R,"', error was '").concat(b,"'.").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(b,"'. ").concat(k," Current error is '").concat(B,"'.").concat(M))}}}function Yt(b,B,R,k,M){var L=b.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(b.id,"'."));return G(R,k.data,q)}function qr(b){return typeof b=="string"?{type:b}:b}function Zt(b,B,R){if(typeof b=="object")return b;var k=function(){};return{next:b,error:B||k,complete:R||k}}e.evaluateGuard=Yt,e.flatten=y,e.getEventType=s,e.isActor=$e,e.isArray=O,e.isBehavior=N,e.isBuiltInEvent=w,e.isFunction=V,e.isMachine=Ge,e.isObservable=Ye,e.isPromiseLike=S,e.isStateLike=l,e.isString=z,e.keys=o,e.mapContext=_,e.mapFilterValues=f,e.mapValues=v,e.matchesState=i,e.nestedPath=m,e.normalizeTarget=P,e.partition=A,e.path=p,e.pathToStateValue=d,e.reportUnhandledExceptionOnInvocation=be,e.symbolObservable=se,e.toArray=g,e.toArrayStrict=C,e.toEventObject=xe,e.toGuard=ve,e.toInvokeSource=qr,e.toObserver=Zt,e.toSCXMLEvent=qt,e.toStatePath=u,e.toStatePaths=h,e.toStateValue=c,e.toTransitionConfigArray=$t,e.uniqueId=le,e.updateContext=D,e.updateHistoryStates=x,e.updateHistoryValue=$})(Eo);var wn={};(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={}))})(wn);var de={};Object.defineProperty(de,"__esModule",{value:!0});var me=wn,hf=me.ActionTypes.Start,gf=me.ActionTypes.Stop,yf=me.ActionTypes.Raise,bf=me.ActionTypes.Send,Cf=me.ActionTypes.Cancel,_f=me.ActionTypes.NullEvent,wf=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,$f=me.ActionTypes.ErrorPlatform,Pf=me.ActionTypes.ErrorCustom,Tf=me.ActionTypes.Update,Bf=me.ActionTypes.Choose,kf=me.ActionTypes.Pure;de.after=Sf;de.assign=wf;de.cancel=Cf;de.choose=Bf;de.doneState=xf;de.error=Pf;de.errorExecution=Nf;de.errorPlatform=$f;de.init=Af;de.invoke=If;de.log=Ef;de.nullEvent=_f;de.pure=kf;de.raise=yf;de.send=bf;de.start=hf;de.stop=gf;de.update=Tf;Object.defineProperty(X,"__esModule",{value:!0});var ee=_n,Rf=_r,K=Eo,Ee=wn,he=de,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}:Mt(e,{to:Ee.SpecialTargets.Internal})}function Ao(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function Mt(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 Io(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 Mt(e,ee.__assign(ee.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function Of(){return An(he.update)}function Vf(e,t){return Mt(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 No=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 $o(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 Mt(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 Ao(f);case he.send:var m=Io(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 No(f,c,a);case he.choose:{var h=f,y=(p=h.conds.find(function(D){var O=K.toGuard(D.cond,e.options.guards);return!O||K.evaluateGuard(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!y)return[];var C=ee.__read(In(e,t,c,a,xn(K.toArray(y),e.options.actions),i),2),g=C[0],_=C[1];return c=_,d==null||d.push(c),g}case he.pure:{var y=f.get(c,a.data);if(!y)return[];var w=ee.__read(In(e,t,c,a,xn(K.toArray(y),e.options.actions),i),2),S=w[0],N=w[1];return c=N,d==null||d.push(c),S}case he.stop:return $o(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 $=d.length-1;A=ee.__assign(ee.__assign({},A),{exec:function(D){for(var O=[],V=1;V<arguments.length;V++)O[V-1]=arguments[V];x.apply(void 0,ee.__spreadArray([d[$]],ee.__read(O),!1))}})}return A}}).filter(function(f){return!!f}));return[v,c]}X.after=Wf;var ie=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=No;X.resolveRaise=Ao;X.resolveSend=Io;X.resolveStop=$o;X.respond=Vf;X.send=Mt;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=er,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,$n=sv,Po=function(){var e=/[^.]+$/.exec($n&&$n.keys&&$n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lv(e){return!!Po&&Po 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,_v=bv.toString,wv=Cv.hasOwnProperty,Sv=RegExp("^"+_v.call(wv).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,$v=Iv;function Pv(e,t){var r=$v(e,t);return Nv(r)?r:void 0}var ot=Pv,Tv=ot,Bv=Tv(Object,"create"),Sr=Bv,Bo=Sr;function kv(){this.__data__=Bo?Bo(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=Sr,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=Sr,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=Sr,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 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=Jv;yt.prototype.delete=Qv;yt.prototype.get=ep;yt.prototype.has=tp;yt.prototype.set=rp;var np=yt;function ap(){this.__data__=[],this.size=0}var op=ap;function ip(e,t){return e===t||e!==e&&t!==t}var Lt=ip,sp=Lt;function lp(e,t){for(var r=e.length;r--;)if(sp(e[r][0],t))return r;return-1}var xr=lp,up=xr,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=xr;function mp(e){var t=this.__data__,r=pp(t,e);return r<0?void 0:t[r][1]}var hp=mp,gp=xr;function yp(e){return gp(this.__data__,e)>-1}var bp=yp,Cp=xr;function _p(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 wp=_p,Sp=op,xp=vp,Ep=hp,Ap=bp,Ip=wp;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=Sp;bt.prototype.delete=xp;bt.prototype.get=Ep;bt.prototype.has=Ap;bt.prototype.set=Ip;var Er=bt,Np=ot,$p=Le,Pp=Np($p,"Map"),Pn=Pp,ko=np,Tp=Er,Bp=Pn;function kp(){this.size=0,this.__data__={hash:new ko,map:new(Bp||Tp),string:new ko}}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 Ar=Vp,Up=Ar;function Mp(e){var t=Up(this,e).delete(e);return this.size-=t?1:0,t}var Lp=Mp,zp=Ar;function jp(e){return zp(this,e).get(e)}var Gp=jp,Wp=Ar;function Hp(e){return Wp(this,e).has(e)}var Kp=Hp,qp=Ar;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 Ct(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])}}Ct.prototype.clear=Xp;Ct.prototype.delete=Jp;Ct.prototype.get=Qp;Ct.prototype.has=em;Ct.prototype.set=tm;var Tn=Ct,Ro=Tn,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||Ro),r}Bn.Cache=Ro;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,Fo=Qt,vm=Qr,pm=Be,mm=er,hm=1/0,Do=Fo?Fo.prototype:void 0,Oo=Do?Do.toString:void 0;function Vo(e){if(typeof e=="string")return e;if(pm(e))return vm(e,Vo)+"";if(mm(e))return Oo?Oo.call(e):"";var t=e+"";return t=="0"&&1/e==-hm?"-0":t}var gm=Vo,ym=gm;function bm(e){return e==null?"":ym(e)}var kn=bm,Cm=Be,_m=Nn,wm=fm,Sm=kn;function xm(e,t){return Cm(e)?e:_m(e,t)?[e]:wm(Sm(e))}var Ir=xm,Em=er,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 zt=Im,Nm=Ir,$m=zt;function Pm(e,t){t=Nm(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[$m(t[r++])];return r&&r==a?e:void 0}var Rn=Pm,Tm=Rn;function Bm(e,t,r){var a=e==null?void 0:Tm(e,t);return a===void 0?r:a}var Ae=Bm,km=ot,Rm=Le,Fm=km(Rm,"DataView"),Dm=Fm,Om=ot,Vm=Le,Um=Om(Vm,"Promise"),Mm=Um,Lm=ot,zm=Le,jm=Lm(zm,"Set"),Gm=jm,Wm=ot,Hm=Le,Km=Wm(Hm,"WeakMap"),qm=Km,Fn=Dm,Dn=Pn,On=Mm,Vn=Gm,Un=qm,Uo=tt,_t=To,Mo="[object Map]",Ym="[object Object]",Lo="[object Promise]",zo="[object Set]",jo="[object WeakMap]",Go="[object DataView]",Zm=_t(Fn),Xm=_t(Dn),Jm=_t(On),Qm=_t(Vn),eh=_t(Un),it=Uo;(Fn&&it(new Fn(new ArrayBuffer(1)))!=Go||Dn&&it(new Dn)!=Mo||On&&it(On.resolve())!=Lo||Vn&&it(new Vn)!=zo||Un&&it(new Un)!=jo)&&(it=function(e){var t=Uo(e),r=t==Ym?e.constructor:void 0,a=r?_t(r):"";if(a)switch(a){case Zm:return Go;case Xm:return Mo;case Jm:return Lo;case Qm:return zo;case eh:return jo}return t});var Wo=it,th=Qa,rh=Wo,nh=tr,ah=Be,oh=st,ih=lt.exports,sh=ar,lh=nr,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=Er;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 _h(e){return this.__data__.has(e)}var wh=_h,Sh=Er,xh=Pn,Eh=Tn,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,$h=Er,Ph=hh,Th=yh,Bh=Ch,kh=wh,Rh=Nh;function wt(e){var t=this.__data__=new $h(e);this.size=t.size}wt.prototype.clear=Ph;wt.prototype.delete=Th;wt.prototype.get=Bh;wt.prototype.has=kh;wt.prototype.set=Rh;var Ln=wt,Fh=ot,Dh=function(){try{var e=Fh(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ho=Dh,Ko=Ho;function Oh(e,t,r){t=="__proto__"&&Ko?Ko(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var zn=Oh,Vh=zn,Uh=Lt;function Mh(e,t,r){(r!==void 0&&!Uh(e[t],r)||r===void 0&&!(t in e))&&Vh(e,t,r)}var qo=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,Yo=Kh,Zo=Yo;function qh(e){var t=new e.constructor(e.byteLength);return new Zo(t).set(new Zo(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,Xo=Object.create,rg=function(){function e(){}return function(t){if(!tg(t))return{};if(Xo)return Xo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),ng=rg,ag=Ja,og=ag(Object.getPrototypeOf,Object),Gn=og,ig=ng,sg=Gn,lg=ar;function ug(e){return typeof e.constructor=="function"&&!lg(e)?ig(sg(e)):{}}var cg=ug,dg=st,fg=Ze;function vg(e){return fg(e)&&dg(e)}var pg=vg,mg=tt,hg=Gn,gg=Ze,yg="[object Object]",bg=Function.prototype,Cg=Object.prototype,Jo=bg.toString,_g=Cg.hasOwnProperty,wg=Jo.call(Object);function Sg(e){if(!gg(e)||mg(e)!=yg)return!1;var t=hg(e);if(t===null)return!0;var r=_g.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Jo.call(r)==wg}var xg=Sg;function Eg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Qo=Eg,Ag=zn,Ig=Lt,Ng=Object.prototype,$g=Ng.hasOwnProperty;function Pg(e,t,r){var a=e[t];(!($g.call(e,t)&&Ig(a,r))||r===void 0&&!(t in e))&&Ag(e,t,r)}var ei=Pg,Tg=ei,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):Tg(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=ar,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=Xa,Wg=jg,Hg=st;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,ti=qo,Jg=jn.exports,Qg=Jh,e0=eg,t0=cg,ri=tr,ni=Be,r0=pg,n0=lt.exports,a0=Xr,o0=ze,i0=xg,s0=nr,ai=Qo,l0=Xg;function u0(e,t,r,a,o,i,s){var u=ai(e,r),l=ai(t,r),c=s.get(l);if(c){ti(e,r,c);return}var d=i?i(u,l,r+"",e,t,s):void 0,v=d===void 0;if(v){var f=ni(l),p=!f&&n0(l),m=!f&&!p&&s0(l);d=l,f||p||m?ni(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)||ri(l)?(d=u,ri(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)),ti(e,r,d)}var c0=u0,d0=Ln,f0=qo,v0=Wh,p0=c0,m0=ze,h0=Wn,g0=Qo;function oi(e,t,r,a,o){e!==t&&v0(t,function(i,s){if(o||(o=new d0),m0(i))p0(e,t,s,r,oi,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=oi;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 _0=C0,w0=_0,ii=Math.max;function S0(e,t,r){return t=ii(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=ii(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),w0(e,this,u)}}var x0=S0;function E0(e){return function(){return e}}var A0=E0,I0=A0,si=Ho,N0=Hn,$0=si?function(e,t){return si(e,"toString",{configurable:!0,enumerable:!1,value:I0(t),writable:!0})}:N0,P0=$0,T0=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>=T0)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=Lt,H0=st,K0=rr,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=Tn,dy=sy,fy=uy;function Nr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new cy;++t<r;)this.add(e[t])}Nr.prototype.add=Nr.prototype.push=dy;Nr.prototype.has=fy;var vy=Nr;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,_y=1,wy=2;function Sy(e,t,r,a,o,i){var s=r&_y,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&wy?new yy:void 0;for(i.set(e,t),i.set(t,e);++v<u;){var m=e[v],h=t[v];if(a)var y=s?a(h,m,v,t,e,i):a(m,h,v,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!by(t,function(C,g){if(!Cy(p,g)&&(m===C||o(m,C,r,a,i)))return p.push(g)})){f=!1;break}}else if(!(m===h||o(m,h,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var li=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,ui=Qt,ci=Yo,Ny=Lt,$y=li,Py=Ey,Ty=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]",di=ui?ui.prototype:void 0,Kn=di?di.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 ci(e),new ci(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=Ty),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=$y(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 fi=Ky,qy=fi,Yy=Be;function Zy(e,t,r){var a=t(e);return Yy(e)?a:qy(a,r(e))}var vi=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 pi=Qy,e1=Jy,t1=pi,r1=Object.prototype,n1=r1.propertyIsEnumerable,mi=Object.getOwnPropertySymbols,a1=mi?function(e){return e==null?[]:(e=Object(e),e1(mi(e),function(t){return n1.call(e,t)}))}:t1,hi=a1,o1=vi,i1=hi,s1=tn;function l1(e){return o1(e,s1,i1)}var u1=l1,gi=u1,c1=1,d1=Object.prototype,f1=d1.hasOwnProperty;function v1(e,t,r,a,o,i){var s=r&c1,u=gi(e),l=u.length,c=gi(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 h=!0;i.set(e,t),i.set(t,e);for(var y=s;++v<l;){f=u[v];var C=e[f],g=t[f];if(a)var _=s?a(g,C,f,t,e,i):a(C,g,f,e,t,i);if(!(_===void 0?C===g||o(C,g,r,a,i):_)){h=!1;break}y||(y=f=="constructor")}if(h&&!y){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(h=!1)}return i.delete(e),i.delete(t),h}var p1=v1,qn=Ln,m1=li,h1=Hy,g1=p1,yi=Wo,bi=Be,Ci=lt.exports,y1=nr,b1=1,_i="[object Arguments]",wi="[object Array]",$r="[object Object]",C1=Object.prototype,Si=C1.hasOwnProperty;function _1(e,t,r,a,o,i){var s=bi(e),u=bi(t),l=s?wi:yi(e),c=u?wi:yi(t);l=l==_i?$r:l,c=c==_i?$r:c;var d=l==$r,v=c==$r,f=l==c;if(f&&Ci(e)){if(!Ci(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&&Si.call(e,"__wrapped__"),m=v&&Si.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,y=m?t.value():t;return i||(i=new qn),o(h,y,r,a,i)}}return f?(i||(i=new qn),g1(e,t,r,a,o,i)):!1}var w1=_1,S1=w1,xi=Ze;function Ei(e,t,r,a,o){return e===t?!0:e==null||t==null||!xi(e)&&!xi(t)?e!==e&&t!==t:S1(e,t,r,a,Ei,o)}var Ai=Ei,x1=Ln,E1=Ai,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 $1=N1,P1=ze;function T1(e){return e===e&&!P1(e)}var Ii=T1,B1=Ii,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 Ni=D1,O1=$1,V1=F1,U1=Ni;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=Ir,W1=tr,H1=Be,K1=rr,q1=Jr,Y1=zt;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=Ai,nb=Ae,ab=tb,ob=Nn,ib=Ii,sb=Ni,lb=zt,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,_b=zt;function wb(e){return Cb(e)?yb(_b(e)):bb(e)}var Sb=wb,xb=L1,Eb=fb,Ab=Hn,Ib=Be,Nb=Sb;function $b(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=$b,Tb=ei,Bb=Ir,kb=rr,$i=ze,Rb=zt;function Fb(e,t,r,a){if(!$i(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=$i(d)?d:kb(t[o+1])?[]:{})}Tb(u,l,c),u=u[l]}return e}var Db=Fb,Ob=Rn,Vb=Db,Ub=Ir;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=fi,jb=Gn,Gb=hi,Wb=pi,Hb=Object.getOwnPropertySymbols,Kb=Hb?function(e){for(var t=[];e;)zb(t,Gb(e)),e=jb(e);return t}:Wb,qb=Kb,Yb=vi,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})(_n);var _r={};Object.defineProperty(_r,"__esModule",{value:!0});var df=!0;_r.IS_PRODUCTION=df;var Eo={},gt={};Object.defineProperty(gt,"__esModule",{value:!0});var ff=".",vf={},pf="xstate.guard",mf="";gt.DEFAULT_GUARD_TYPE=pf;gt.EMPTY_ACTIVITY_MAP=vf;gt.STATE_DELIMITER=ff;gt.TARGETLESS_KEY=mf;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=_n,r=gt,a=_r;function o(b){return Object.keys(b)}function i(b,B,R){R===void 0&&(R=r.STATE_DELIMITER);var k=c(b,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(b){try{return z(b)||typeof b=="number"?"".concat(b):b.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function u(b,B){try{return O(b)?b:b.toString().split(B)}catch{throw new Error("'".concat(b,"' is not a valid state path."))}}function l(b){return typeof b=="object"&&"value"in b&&"context"in b&&"event"in b&&"_event"in b}function c(b,B){if(l(b))return b.value;if(O(b))return d(b);if(typeof b!="string")return b;var R=u(b,B);return d(R)}function d(b){if(b.length===1)return b[0];for(var B={},R=B,k=0;k<b.length-1;k++)k===b.length-2?R[b[k]]=b[k+1]:(R[b[k]]={},R=R[b[k]]);return B}function v(b,B){for(var R={},k=o(b),M=0;M<k.length;M++){var L=k[M];R[L]=B(b[L],L,b,M)}return R}function f(b,B,R){var k,M,L={};try{for(var q=t.__values(o(b)),G=q.next();!G.done;G=q.next()){var ne=G.value,ue=b[ne];!R(ue)||(L[ne]=B(ue,ne,b))}}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(b){return function(B){var R,k,M=B;try{for(var L=t.__values(b),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(b,B){return function(R){var k,M,L=R;try{for(var q=t.__values(b),G=q.next();!G.done;G=q.next()){var ne=G.value;L=L[B][ne]}}catch(ue){k={error:ue}}finally{try{G&&!G.done&&(M=q.return)&&M.call(q)}finally{if(k)throw k.error}}return L}}function h(b){if(!b)return[[]];if(z(b))return[[b]];var B=y(o(b).map(function(R){var k=b[R];return typeof k!="string"&&(!k||!Object.keys(k).length)?[[R]]:h(b[R]).map(function(M){return[R].concat(M)})}));return B}function y(b){var B;return(B=[]).concat.apply(B,t.__spreadArray([],t.__read(b),!1))}function C(b){return O(b)?b:[b]}function g(b){return b===void 0?[]:C(b)}function _(b,B,R){var k,M;if(V(b))return b(B,R.data);var L={};try{for(var q=t.__values(Object.keys(b)),G=q.next();!G.done;G=q.next()){var ne=G.value,ue=b[ne];V(ue)?L[ne]=ue(B,R.data):L[ne]=ue}}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 w(b){return/^(done|error)\./.test(b)}function S(b){return!!(b instanceof Promise||b!==null&&(V(b)||typeof b=="object")&&V(b.then))}function N(b){return b!==null&&typeof b=="object"&&"transition"in b&&typeof b.transition=="function"}function A(b,B){var R,k,M=t.__read([[],[]],2),L=M[0],q=M[1];try{for(var G=t.__values(b),ne=G.next();!ne.done;ne=G.next()){var ue=ne.value;B(ue)?L.push(ue):q.push(ue)}}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(b,B){return v(b.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 $(b,B){return{current:B,states:x(b,B)}}function D(b,B,R,k){a.IS_PRODUCTION||e.warn(!!b,"Attempting to update undefined context");var M=b&&R.reduce(function(L,q){var G,ne,ue=q.assignment,Pe={state:k,action:q,_event:B},F={};if(V(ue))F=ue(L,B.data,Pe);else try{for(var U=t.__values(o(ue)),We=U.next();!We.done;We=U.next()){var Xt=We.value,Yr=ue[Xt];F[Xt]=V(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,F)},b);return M}e.warn=function(){},a.IS_PRODUCTION||(e.warn=function(b,B){var R=b instanceof Error?b:void 0;if(!(!R&&b)&&console!==void 0){var k=["Warning: ".concat(B)];R&&k.push(R),console.warn.apply(console,k)}});function O(b){return Array.isArray(b)}function V(b){return typeof b=="function"}function z(b){return typeof b=="string"}function ve(b,B){if(!!b)return z(b)?{type:r.DEFAULT_GUARD_TYPE,name:b,predicate:B?B[b]:void 0}:V(b)?{type:r.DEFAULT_GUARD_TYPE,name:b.name,predicate:b}:b}function Ye(b){try{return"subscribe"in b&&V(b.subscribe)}catch{return!1}}var se=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ge(b){try{return"__xstatenode"in b}catch{return!1}}function $e(b){return!!b&&typeof b.send=="function"}var le=function(){var b=0;return function(){return b++,b.toString(16)}}();function xe(b,B){return z(b)||typeof b=="number"?t.__assign({type:b},B):b}function qt(b,B){if(!z(b)&&"$$type"in b&&b.$$type==="scxml")return b;var R=xe(b);return t.__assign({name:R.type,data:R,$$type:"scxml",type:"external"},B)}function $t(b,B){var R=C(B).map(function(k){return typeof k=="undefined"||typeof k=="string"||Ge(k)?{target:k,event:b}:t.__assign(t.__assign({},k),{event:b})});return R}function P(b){if(!(b===void 0||b===r.TARGETLESS_KEY))return g(b)}function be(b,B,R){if(!a.IS_PRODUCTION){var k=b.stack?" Stacktrace was '".concat(b.stack,"'"):"";if(b===B)console.error("Missing onError handler for invocation '".concat(R,"', error was '").concat(b,"'.").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(b,"'. ").concat(k," Current error is '").concat(B,"'.").concat(M))}}}function Yt(b,B,R,k,M){var L=b.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(b.id,"'."));return G(R,k.data,q)}function qr(b){return typeof b=="string"?{type:b}:b}function Zt(b,B,R){if(typeof b=="object")return b;var k=function(){};return{next:b,error:B||k,complete:R||k}}e.evaluateGuard=Yt,e.flatten=y,e.getEventType=s,e.isActor=$e,e.isArray=O,e.isBehavior=N,e.isBuiltInEvent=w,e.isFunction=V,e.isMachine=Ge,e.isObservable=Ye,e.isPromiseLike=S,e.isStateLike=l,e.isString=z,e.keys=o,e.mapContext=_,e.mapFilterValues=f,e.mapValues=v,e.matchesState=i,e.nestedPath=m,e.normalizeTarget=P,e.partition=A,e.path=p,e.pathToStateValue=d,e.reportUnhandledExceptionOnInvocation=be,e.symbolObservable=se,e.toArray=g,e.toArrayStrict=C,e.toEventObject=xe,e.toGuard=ve,e.toInvokeSource=qr,e.toObserver=Zt,e.toSCXMLEvent=qt,e.toStatePath=u,e.toStatePaths=h,e.toStateValue=c,e.toTransitionConfigArray=$t,e.uniqueId=le,e.updateContext=D,e.updateHistoryStates=x,e.updateHistoryValue=$})(Eo);var wn={};(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={}))})(wn);var de={};Object.defineProperty(de,"__esModule",{value:!0});var me=wn,hf=me.ActionTypes.Start,gf=me.ActionTypes.Stop,yf=me.ActionTypes.Raise,bf=me.ActionTypes.Send,Cf=me.ActionTypes.Cancel,_f=me.ActionTypes.NullEvent,wf=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,$f=me.ActionTypes.ErrorPlatform,Pf=me.ActionTypes.ErrorCustom,Tf=me.ActionTypes.Update,Bf=me.ActionTypes.Choose,kf=me.ActionTypes.Pure;de.after=Sf;de.assign=wf;de.cancel=Cf;de.choose=Bf;de.doneState=xf;de.error=Pf;de.errorExecution=Nf;de.errorPlatform=$f;de.init=Af;de.invoke=If;de.log=Ef;de.nullEvent=_f;de.pure=kf;de.raise=yf;de.send=bf;de.start=hf;de.stop=gf;de.update=Tf;Object.defineProperty(X,"__esModule",{value:!0});var ee=_n,Rf=_r,K=Eo,Ee=wn,he=de,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}:Mt(e,{to:Ee.SpecialTargets.Internal})}function Ao(e){return{type:he.raise,_event:K.toSCXMLEvent(e.event)}}function Mt(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 Io(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 Mt(e,ee.__assign(ee.__assign({},t),{to:Ee.SpecialTargets.Parent}))}function Of(){return An(he.update)}function Vf(e,t){return Mt(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 No=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 $o(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 Mt(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 Ao(f);case he.send:var m=Io(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 No(f,c,a);case he.choose:{var h=f,y=(p=h.conds.find(function(D){var O=K.toGuard(D.cond,e.options.guards);return!O||K.evaluateGuard(e,O,c,a,t)}))===null||p===void 0?void 0:p.actions;if(!y)return[];var C=ee.__read(In(e,t,c,a,xn(K.toArray(y),e.options.actions),i),2),g=C[0],_=C[1];return c=_,d==null||d.push(c),g}case he.pure:{var y=f.get(c,a.data);if(!y)return[];var w=ee.__read(In(e,t,c,a,xn(K.toArray(y),e.options.actions),i),2),S=w[0],N=w[1];return c=N,d==null||d.push(c),S}case he.stop:return $o(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 $=d.length-1;A=ee.__assign(ee.__assign({},A),{exec:function(D){for(var O=[],V=1;V<arguments.length;V++)O[V-1]=arguments[V];x.apply(void 0,ee.__spreadArray([d[$]],ee.__read(O),!1))}})}return A}}).filter(function(f){return!!f}));return[v,c]}X.after=Wf;var ie=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=No;X.resolveRaise=Ao;X.resolveSend=Io;X.resolveStop=$o;X.respond=Vf;X.send=Mt;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=er,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,$n=sv,Po=function(){var e=/[^.]+$/.exec($n&&$n.keys&&$n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lv(e){return!!Po&&Po 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,_v=bv.toString,wv=Cv.hasOwnProperty,Sv=RegExp("^"+_v.call(wv).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,$v=Iv;function Pv(e,t){var r=$v(e,t);return Nv(r)?r:void 0}var nt=Pv,Tv=nt,Bv=Tv(Object,"create"),Sr=Bv,Bo=Sr;function kv(){this.__data__=Bo?Bo(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=Sr,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=Sr,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=Sr,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 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=Jv;yt.prototype.delete=Qv;yt.prototype.get=ep;yt.prototype.has=tp;yt.prototype.set=rp;var np=yt;function ap(){this.__data__=[],this.size=0}var op=ap;function ip(e,t){return e===t||e!==e&&t!==t}var Lt=ip,sp=Lt;function lp(e,t){for(var r=e.length;r--;)if(sp(e[r][0],t))return r;return-1}var xr=lp,up=xr,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=xr;function mp(e){var t=this.__data__,r=pp(t,e);return r<0?void 0:t[r][1]}var hp=mp,gp=xr;function yp(e){return gp(this.__data__,e)>-1}var bp=yp,Cp=xr;function _p(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 wp=_p,Sp=op,xp=vp,Ep=hp,Ap=bp,Ip=wp;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=Sp;bt.prototype.delete=xp;bt.prototype.get=Ep;bt.prototype.has=Ap;bt.prototype.set=Ip;var Er=bt,Np=nt,$p=Le,Pp=Np($p,"Map"),Pn=Pp,ko=np,Tp=Er,Bp=Pn;function kp(){this.size=0,this.__data__={hash:new ko,map:new(Bp||Tp),string:new ko}}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 Ar=Vp,Up=Ar;function Mp(e){var t=Up(this,e).delete(e);return this.size-=t?1:0,t}var Lp=Mp,zp=Ar;function jp(e){return zp(this,e).get(e)}var Gp=jp,Wp=Ar;function Hp(e){return Wp(this,e).has(e)}var Kp=Hp,qp=Ar;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 Ct(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])}}Ct.prototype.clear=Xp;Ct.prototype.delete=Jp;Ct.prototype.get=Qp;Ct.prototype.has=em;Ct.prototype.set=tm;var Tn=Ct,Ro=Tn,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||Ro),r}Bn.Cache=Ro;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,Fo=Qt,vm=Qr,pm=Be,mm=er,hm=1/0,Do=Fo?Fo.prototype:void 0,Oo=Do?Do.toString:void 0;function Vo(e){if(typeof e=="string")return e;if(pm(e))return vm(e,Vo)+"";if(mm(e))return Oo?Oo.call(e):"";var t=e+"";return t=="0"&&1/e==-hm?"-0":t}var gm=Vo,ym=gm;function bm(e){return e==null?"":ym(e)}var kn=bm,Cm=Be,_m=Nn,wm=fm,Sm=kn;function xm(e,t){return Cm(e)?e:_m(e,t)?[e]:wm(Sm(e))}var Ir=xm,Em=er,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 zt=Im,Nm=Ir,$m=zt;function Pm(e,t){t=Nm(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[$m(t[r++])];return r&&r==a?e:void 0}var Rn=Pm,Tm=Rn;function Bm(e,t,r){var a=e==null?void 0:Tm(e,t);return a===void 0?r:a}var Ae=Bm,km=nt,Rm=Le,Fm=km(Rm,"DataView"),Dm=Fm,Om=nt,Vm=Le,Um=Om(Vm,"Promise"),Mm=Um,Lm=nt,zm=Le,jm=Lm(zm,"Set"),Gm=jm,Wm=nt,Hm=Le,Km=Wm(Hm,"WeakMap"),qm=Km,Fn=Dm,Dn=Pn,On=Mm,Vn=Gm,Un=qm,Uo=tt,_t=To,Mo="[object Map]",Ym="[object Object]",Lo="[object Promise]",zo="[object Set]",jo="[object WeakMap]",Go="[object DataView]",Zm=_t(Fn),Xm=_t(Dn),Jm=_t(On),Qm=_t(Vn),eh=_t(Un),at=Uo;(Fn&&at(new Fn(new ArrayBuffer(1)))!=Go||Dn&&at(new Dn)!=Mo||On&&at(On.resolve())!=Lo||Vn&&at(new Vn)!=zo||Un&&at(new Un)!=jo)&&(at=function(e){var t=Uo(e),r=t==Ym?e.constructor:void 0,a=r?_t(r):"";if(a)switch(a){case Zm:return Go;case Xm:return Mo;case Jm:return Lo;case Qm:return zo;case eh:return jo}return t});var Wo=at,th=Qa,rh=Wo,nh=tr,ah=Be,oh=ot,ih=it.exports,sh=ar,lh=nr,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=Er;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 _h(e){return this.__data__.has(e)}var wh=_h,Sh=Er,xh=Pn,Eh=Tn,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,$h=Er,Ph=hh,Th=yh,Bh=Ch,kh=wh,Rh=Nh;function wt(e){var t=this.__data__=new $h(e);this.size=t.size}wt.prototype.clear=Ph;wt.prototype.delete=Th;wt.prototype.get=Bh;wt.prototype.has=kh;wt.prototype.set=Rh;var Ln=wt,Fh=nt,Dh=function(){try{var e=Fh(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ho=Dh,Ko=Ho;function Oh(e,t,r){t=="__proto__"&&Ko?Ko(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var zn=Oh,Vh=zn,Uh=Lt;function Mh(e,t,r){(r!==void 0&&!Uh(e[t],r)||r===void 0&&!(t in e))&&Vh(e,t,r)}var qo=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,Yo=Kh,Zo=Yo;function qh(e){var t=new e.constructor(e.byteLength);return new Zo(t).set(new Zo(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,Xo=Object.create,rg=function(){function e(){}return function(t){if(!tg(t))return{};if(Xo)return Xo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),ng=rg,ag=Ja,og=ag(Object.getPrototypeOf,Object),Gn=og,ig=ng,sg=Gn,lg=ar;function ug(e){return typeof e.constructor=="function"&&!lg(e)?ig(sg(e)):{}}var cg=ug,dg=ot,fg=Ze;function vg(e){return fg(e)&&dg(e)}var pg=vg,mg=tt,hg=Gn,gg=Ze,yg="[object Object]",bg=Function.prototype,Cg=Object.prototype,Jo=bg.toString,_g=Cg.hasOwnProperty,wg=Jo.call(Object);function Sg(e){if(!gg(e)||mg(e)!=yg)return!1;var t=hg(e);if(t===null)return!0;var r=_g.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Jo.call(r)==wg}var xg=Sg;function Eg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Qo=Eg,Ag=zn,Ig=Lt,Ng=Object.prototype,$g=Ng.hasOwnProperty;function Pg(e,t,r){var a=e[t];(!($g.call(e,t)&&Ig(a,r))||r===void 0&&!(t in e))&&Ag(e,t,r)}var ei=Pg,Tg=ei,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):Tg(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=ar,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=Xa,Wg=jg,Hg=ot;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,ti=qo,Jg=jn.exports,Qg=Jh,e0=eg,t0=cg,ri=tr,ni=Be,r0=pg,n0=it.exports,a0=Xr,o0=ze,i0=xg,s0=nr,ai=Qo,l0=Xg;function u0(e,t,r,a,o,i,s){var u=ai(e,r),l=ai(t,r),c=s.get(l);if(c){ti(e,r,c);return}var d=i?i(u,l,r+"",e,t,s):void 0,v=d===void 0;if(v){var f=ni(l),p=!f&&n0(l),m=!f&&!p&&s0(l);d=l,f||p||m?ni(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)||ri(l)?(d=u,ri(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)),ti(e,r,d)}var c0=u0,d0=Ln,f0=qo,v0=Wh,p0=c0,m0=ze,h0=Wn,g0=Qo;function oi(e,t,r,a,o){e!==t&&v0(t,function(i,s){if(o||(o=new d0),m0(i))p0(e,t,s,r,oi,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=oi;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 _0=C0,w0=_0,ii=Math.max;function S0(e,t,r){return t=ii(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,i=ii(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),w0(e,this,u)}}var x0=S0;function E0(e){return function(){return e}}var A0=E0,I0=A0,si=Ho,N0=Hn,$0=si?function(e,t){return si(e,"toString",{configurable:!0,enumerable:!1,value:I0(t),writable:!0})}:N0,P0=$0,T0=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>=T0)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=Lt,H0=ot,K0=rr,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=Tn,dy=sy,fy=uy;function Nr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new cy;++t<r;)this.add(e[t])}Nr.prototype.add=Nr.prototype.push=dy;Nr.prototype.has=fy;var vy=Nr;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,_y=1,wy=2;function Sy(e,t,r,a,o,i){var s=r&_y,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&wy?new yy:void 0;for(i.set(e,t),i.set(t,e);++v<u;){var m=e[v],h=t[v];if(a)var y=s?a(h,m,v,t,e,i):a(m,h,v,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!by(t,function(C,g){if(!Cy(p,g)&&(m===C||o(m,C,r,a,i)))return p.push(g)})){f=!1;break}}else if(!(m===h||o(m,h,r,a,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var li=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,ui=Qt,ci=Yo,Ny=Lt,$y=li,Py=Ey,Ty=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]",di=ui?ui.prototype:void 0,Kn=di?di.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 ci(e),new ci(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=Ty),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=$y(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 fi=Ky,qy=fi,Yy=Be;function Zy(e,t,r){var a=t(e);return Yy(e)?a:qy(a,r(e))}var vi=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 pi=Qy,e1=Jy,t1=pi,r1=Object.prototype,n1=r1.propertyIsEnumerable,mi=Object.getOwnPropertySymbols,a1=mi?function(e){return e==null?[]:(e=Object(e),e1(mi(e),function(t){return n1.call(e,t)}))}:t1,hi=a1,o1=vi,i1=hi,s1=tn;function l1(e){return o1(e,s1,i1)}var u1=l1,gi=u1,c1=1,d1=Object.prototype,f1=d1.hasOwnProperty;function v1(e,t,r,a,o,i){var s=r&c1,u=gi(e),l=u.length,c=gi(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 h=!0;i.set(e,t),i.set(t,e);for(var y=s;++v<l;){f=u[v];var C=e[f],g=t[f];if(a)var _=s?a(g,C,f,t,e,i):a(C,g,f,e,t,i);if(!(_===void 0?C===g||o(C,g,r,a,i):_)){h=!1;break}y||(y=f=="constructor")}if(h&&!y){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(h=!1)}return i.delete(e),i.delete(t),h}var p1=v1,qn=Ln,m1=li,h1=Hy,g1=p1,yi=Wo,bi=Be,Ci=it.exports,y1=nr,b1=1,_i="[object Arguments]",wi="[object Array]",$r="[object Object]",C1=Object.prototype,Si=C1.hasOwnProperty;function _1(e,t,r,a,o,i){var s=bi(e),u=bi(t),l=s?wi:yi(e),c=u?wi:yi(t);l=l==_i?$r:l,c=c==_i?$r:c;var d=l==$r,v=c==$r,f=l==c;if(f&&Ci(e)){if(!Ci(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&&Si.call(e,"__wrapped__"),m=v&&Si.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,y=m?t.value():t;return i||(i=new qn),o(h,y,r,a,i)}}return f?(i||(i=new qn),g1(e,t,r,a,o,i)):!1}var w1=_1,S1=w1,xi=Ze;function Ei(e,t,r,a,o){return e===t?!0:e==null||t==null||!xi(e)&&!xi(t)?e!==e&&t!==t:S1(e,t,r,a,Ei,o)}var Ai=Ei,x1=Ln,E1=Ai,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 $1=N1,P1=ze;function T1(e){return e===e&&!P1(e)}var Ii=T1,B1=Ii,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 Ni=D1,O1=$1,V1=F1,U1=Ni;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=Ir,W1=tr,H1=Be,K1=rr,q1=Jr,Y1=zt;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=Ai,nb=Ae,ab=tb,ob=Nn,ib=Ii,sb=Ni,lb=zt,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,_b=zt;function wb(e){return Cb(e)?yb(_b(e)):bb(e)}var Sb=wb,xb=L1,Eb=fb,Ab=Hn,Ib=Be,Nb=Sb;function $b(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=$b,Tb=ei,Bb=Ir,kb=rr,$i=ze,Rb=zt;function Fb(e,t,r,a){if(!$i(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=$i(d)?d:kb(t[o+1])?[]:{})}Tb(u,l,c),u=u[l]}return e}var Db=Fb,Ob=Rn,Vb=Db,Ub=Ir;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=fi,jb=Gn,Gb=hi,Wb=pi,Hb=Object.getOwnPropertySymbols,Kb=Hb?function(e){for(var t=[];e;)zb(t,Gb(e)),e=jb(e);return t}:Wb,qb=Kb,Yb=vi,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;/*! *****************************************************************************
|
|
31
31
|
Copyright (c) Microsoft Corporation.
|
|
32
32
|
|
|
33
33
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -41,7 +41,7 @@ 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
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=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 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 Bi(e,t){return t===void 0&&(t={}),uC(e,Ie({delimiter:"",transform:Yn},t))}function ki(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={}),Bi(e,Ie({transform:ki},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=Ri(Ri(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 Ri(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 Fi(e){return hC(e.toLowerCase())}function Di(e,t){return t===void 0&&(t={}),mC(e,Ie({delimiter:" ",transform:Fi},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=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 CC(e){return e.toUpperCase()}function _C(e,t){return t===void 0&&(t={}),Zn(e,Ie({delimiter:"_",transform:CC},t))}function wC(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?wC:s,l=t.delimiter,c=l===void 0?" ":l,d=Vi(Vi(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 Vi(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={}),EC(e,Ie({delimiter:"."},t))}function AC(e,t){return t===void 0&&(t={}),Di(e,Ie({delimiter:"-"},t))}function IC(e,t){return t===void 0&&(t={}),Pr(e,Ie({delimiter:"-"},t))}function NC(e,t){return t===void 0&&(t={}),Pr(e,Ie({delimiter:"/"},t))}function $C(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Ui(e,t){var r=e.toLowerCase();return t===0?$C(r):r}function PC(e,t){return t===void 0&&(t={}),Zn(e,Ie({delimiter:" ",transform:Ui},t))}function TC(e,t){return t===void 0&&(t={}),Pr(e,Ie({delimiter:"_"},t))}var BC=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",camelCaseTransform:ki,camelCaseTransformMerge:cC,camelCase:dC,capitalCaseTransform:Fi,capitalCase:Di,constantCase:_C,dotCase:Pr,headerCase:AC,noCase:Zn,paramCase:IC,pascalCaseTransform:Yn,pascalCaseTransformMerge:Ti,pascalCase:Bi,pathCase:NC,sentenceCaseTransform:Ui,sentenceCase:PC,snakeCase:TC}),kC=ul(BC);const Tr=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)},Br=function(e){if(e==null||typeof e!="object")return e;if(e instanceof Array)return e.reduce((t,r,a)=>(t[a]=Br(r),t),[]);if(e instanceof Object)return Object.keys(e||{}).reduce((t,r)=>(t[r]=Br(e[r]),t),{})},Mi=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):""},Li=function(e,t){return Mi(t)?Object.keys(t).every(r=>Li(e[r],t[r])):e==t},GC=function(e){let t=Br(e);return a=>Li(a,t)},WC={transform:Tr.camelCaseTransformMerge},HC=function(e,t){return(r,a)=>e(r,Object.assign({},WC,t,a))};var zi={each:Xn,forEach:Xn,forIn:Xn,keys:Object.keys,clone:FC,cloneDeep:Br,extend:Object.assign,isString:DC,isArray:OC,isObject:Mi,isPlainObject:UC,isEmpty:VC,filter:MC,reduce:RC,assign:LC,upperFirst:jC,camelCase:HC(Tr.camelCase),snakeCase:Tr.snakeCase,kebabCase:Tr.paramCase,pull:zC,matches:GC},kr=zi;function ji(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]=ji([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=ji,Gi=zi;function Wi(e,t){t=t||[];for(var r in e)e.hasOwnProperty(r)&&(Gi.isPlainObject(e[r])&&"value"in e[r]?t.push(e[r]):Gi.isPlainObject(e[r])&&Wi(e[r],t));return t}var Hi=Wi;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"},e_=JC(QC),t_=e_,r_=t_,n_=kn,a_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o_="\\u0300-\\u036f",i_="\\ufe20-\\ufe2f",s_="\\u20d0-\\u20ff",l_=o_+i_+s_,u_="["+l_+"]",c_=RegExp(u_,"g");function d_(e){return e=n_(e),e&&e.replace(a_,r_).replace(c_,"")}var f_=d_,v_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function p_(e){return e.match(v_)||[]}var m_=p_,h_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function g_(e){return h_.test(e)}var y_=g_,Ki="\\ud800-\\udfff",b_="\\u0300-\\u036f",C_="\\ufe20-\\ufe2f",__="\\u20d0-\\u20ff",w_=b_+C_+__,qi="\\u2700-\\u27bf",Yi="a-z\\xdf-\\xf6\\xf8-\\xff",S_="\\xac\\xb1\\xd7\\xf7",x_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",E_="\\u2000-\\u206f",A_=" \\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",Zi="A-Z\\xc0-\\xd6\\xd8-\\xde",I_="\\ufe0e\\ufe0f",Xi=S_+x_+E_+A_,Ji="['\u2019]",Qi="["+Xi+"]",N_="["+w_+"]",es="\\d+",$_="["+qi+"]",ts="["+Yi+"]",rs="[^"+Ki+Xi+es+qi+Yi+Zi+"]",P_="\\ud83c[\\udffb-\\udfff]",T_="(?:"+N_+"|"+P_+")",B_="[^"+Ki+"]",ns="(?:\\ud83c[\\udde6-\\uddff]){2}",as="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+Zi+"]",k_="\\u200d",os="(?:"+ts+"|"+rs+")",R_="(?:"+St+"|"+rs+")",is="(?:"+Ji+"(?:d|ll|m|re|s|t|ve))?",ss="(?:"+Ji+"(?:D|LL|M|RE|S|T|VE))?",ls=T_+"?",us="["+I_+"]?",F_="(?:"+k_+"(?:"+[B_,ns,as].join("|")+")"+us+ls+")*",D_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",O_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",V_=us+ls+F_,U_="(?:"+[$_,ns,as].join("|")+")"+V_,M_=RegExp([St+"?"+ts+"+"+is+"(?="+[Qi,St,"$"].join("|")+")",R_+"+"+ss+"(?="+[Qi,St+os,"$"].join("|")+")",St+"?"+os+"+"+is,St+"+"+ss,O_,D_,es,U_].join("|"),"g");function L_(e){return e.match(M_)||[]}var z_=L_,j_=m_,G_=y_,W_=kn,H_=z_;function K_(e,t,r){return e=W_(e),t=r?void 0:t,t===void 0?G_(e)?H_(e):j_(e):e.match(t)||[]}var q_=K_,Y_=YC,Z_=f_,X_=q_,J_="['\u2019]",Q_=RegExp(J_,"g");function ew(e){return function(t){return Y_(X_(Z_(t).replace(Q_,"")),e,"")}}var tw=ew,rw=tw,nw=rw(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),aw=nw;const ow={opening_character:"{",closing_character:"}",separator:"."};var iw=ow;const sw=iw;function lw(e={}){const t=Object.assign({},sw,e);return new RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")}var uw=lw;const cw=uw;function cs(e,t={}){const r=t instanceof RegExp?t:cw(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(cs(i,t)){a=!0;break}}return a}return!1}var dw=cs,fw=Object.defineProperty,vw=Object.defineProperties,pw=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,mw=Object.prototype.hasOwnProperty,hw=Object.prototype.propertyIsEnumerable,fs=(e,t,r)=>t in e?fw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fe=(e,t)=>{for(var r in t||(t={}))mw.call(t,r)&&fs(e,r,t[r]);if(ds)for(var r of ds(t))hw.call(t,r)&&fs(e,r,t[r]);return e},Jn=(e,t)=>vw(e,pw(t)),gw=(e,t)=>()=>(e&&(t=e(e=0)),t),j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E=gw(()=>{}),yw=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}"}}}}),bw=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}"}}}}),Cw=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}"}}}}),ww=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}"}}}}}),Sw=j((e,t)=>{E(),t.exports={alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}}}),xw=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}"}}}),Ew=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)"}}}}),Aw=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}"}}}}),Iw=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}"}}}}}}),Nw=j((e,t)=>{E(),t.exports={gap:{value:0},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}}}),$w=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}"}}}}),Pw=j((e,t)=>{E(),t.exports={gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}}}),Tw=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}"}}}}),Bw=j((e,t)=>{E(),t.exports={lineHeight:{value:1},height:{value:"1em"}}}),kw=j((e,t)=>{E(),t.exports={maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}}}),Rw=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}"}}}}),Fw=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}"}}}}}),Dw=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}"}}}}),Ow=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}"}}}}),Vw=j((e,t)=>{E(),t.exports={}}),Uw=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}"}}}}),Mw=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}"}}}}}),Lw=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}"}}}}),zw=j((e,t)=>{E(),t.exports={paddingInlineEnd:{value:"{space.xxl.value}"},wrapper:{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"}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"}},large:{minWidth:{value:"7.5rem"}}}}),jw=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"}}}),Gw=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"}}}}}),Ww=j((e,t)=>{E(),t.exports={flexDirection:{value:"column"},input:{textAlign:{value:"center"}}}}),Hw=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}"}}}}),Kw=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}"}}}}}),qw=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}"}}}}}),Yw=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}"}}}}),Zw=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}"}}}}}}),Xw=j((e,t)=>{E(),t.exports={alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}}),Jw=j((e,t)=>{E(),t.exports={alert:yw(),badge:bw(),button:Cw(),card:_w(),checkbox:ww(),checkboxfield:Sw(),divider:xw(),expander:Ew(),field:Aw(),fieldcontrol:Iw(),fieldgroup:Nw(),fieldmessages:$w(),flex:Pw(),heading:Tw(),icon:Bw(),image:kw(),link:Rw(),loader:Fw(),menu:Dw(),pagination:Ow(),phonenumberfield:Vw(),placeholder:Uw(),radio:Mw(),rating:Lw(),select:zw(),selectfield:jw(),sliderfield:Gw(),stepperfield:Ww(),switchfield:Hw(),table:Kw(),tabs:qw(),text:Yw(),togglebutton:Zw(),togglebuttongroup:Xw()}});E();E();E();E();E();var Ke;(function(e){e.SMS_MFA="SMS_MFA",e.SOFTWARE_TOKEN_MFA="SOFTWARE_TOKEN_MFA",e.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",e.RESET_REQUIRED="RESET_REQUIRED",e.MFA_SETUP="MFA_SETUP"})(Ke||(Ke={}));var 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"}},ea;(function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"})(ea||(ea={}));var 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(Qn.includes(t))return{label:ye[t].label,type:ye[t].type,error:l};let c="text",d=u.filter(v=>pd(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}},Re=e=>{var t;return(t=e.context.actorRef)==null?void 0:t.getSnapshot()},jt=e=>{var t;return(t=Re(e))==null?void 0:t.context},Qw=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")}},eS=e=>{var t,r;let a=(t=e.context)==null?void 0:t.user,o=Re(e),i=jt(e),s=i==null?void 0:i.remoteError,u=fe({},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=Qw(e),a=eS(t);return fe(fe({},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 tS={"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 a Code":"Code best\xE4tigen","Confirm Sign In":"Anmeldung best\xE4tigen","Confirm Sign Up":"Registrierung best\xE4tigen","Confirmation Code":"Best\xE4tigungs-Code","Create a new account":"Erstelle einen neuen Account","Create account":"Hier registrieren","Create Account":"Account erstellen",Email:"Email","Enter your password":"Geben Sie Ihr Passwort ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot Password":"Passwort vergessen","Forgot your password? ":"Passwort vergessen? ","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 rS={"Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code","Confirm Password":"Confirm Password","Reset your Password":"Reset your Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","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","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","Account recovery requires verified contact information":"Account recovery requires verified contact information",Verify:"Verify"};E();var nS={"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 aS={"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 oS={"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 iS={"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 sS={"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 lS={"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 uS={"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 cS={"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 dS={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? ",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"};fe({},tS);fe({},rS);fe({},nS);fe({},aS);fe({},oS);fe({},iS);fe({},sS);fe({},lS);fe({},uS);fe({},cS);var fS=fe({},dS);fe({},fS);function T(e){return oe.I18n.get(e)}E();E();E();var Rr=e=>Qf(e),vS=ie({attributeToVerify:e=>{}}),pS=ie({challengeName:e=>{}}),ta=ie({remoteError:e=>""}),ra=ie({formValues:e=>({})}),na=ie({touched:e=>({})}),mS=ie({unverifiedAttributes:e=>{}}),hS=ie({username:e=>{}}),aa=ie({validationError:e=>({})}),gS=ie({challengeName:(e,t)=>{var r;return(r=t.data)==null?void 0:r.challengeName}}),yS=ie({redirectIntent:e=>"confirmPasswordReset"}),bS=ie({redirectIntent:e=>"confirmSignUp"}),hs=ie({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}}}),oa=ie({validationError:(e,t)=>t.data}),ia=ie({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}}),CS=ie({unverifiedAttributes:(e,t)=>t.data.unverified}),gs=ie({user:(e,t)=>t.data.user||t.data}),_S=ie({username:(e,t)=>e.formValues.username}),wS=ie({codeDeliveryDetails:(e,t)=>t.data.codeDeliveryDetails}),SS=ie({authAttributes:(e,t)=>({username:e.formValues.username})}),sa=ie({formValues:(e,t)=>{let{name:r,value:a}=t.data;return Jn(fe({},e.formValues),{[r]:a})}}),la=ie({touched:(e,t)=>{let{name:r}=t.data;return Jn(fe({},e.touched),{[`${r}`]:!0})}});E();E();E();var ua=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 ca={async getAmplifyConfig(){return oe.Amplify.configure()},async getCurrentUser(){return oe.Auth.currentAuthenticatedUser()},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){}},xS=Ut({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:{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:e=>({user:e.user})},rejected:{type:"final",data:(e,t)=>({intent:e.redirectIntent,authAttributes:e.authAttributes})}}},{actions:{clearAttributeToVerify:vS,clearChallengeName:pS,clearError:ta,clearFormValues:ra,clearTouched:na,clearUnverifiedAttributes:mS,clearValidationError:aa,handleInput:sa,handleBlur:la,setChallengeName:gS,setConfirmResetPasswordIntent:yS,setConfirmSignUpIntent:bS,setCredentials:hs,setFieldErrors:oa,setRemoteError:ia,setUnverifiedAttributes:CS,setUser:gs,setUsernameAuthAttributes:SS},guards:{shouldConfirmSignIn:(e,t)=>{let r=Ae(t,"data.challengeName");return[Ke.SMS_MFA,Ke.SOFTWARE_TOKEN_MFA].includes(r)},shouldRedirectToConfirmSignUp:(e,t)=>t.data.code==="UserNotConfirmedException",shouldRedirectToConfirmResetPassword:(e,t)=>t.data.code==="PasswordResetRequiredException",shouldSetupTOTP:(e,t)=>Ae(t,"data.challengeName")===Ke.MFA_SETUP,shouldForceChangePassword:(e,t)=>Ae(t,"data.challengeName")===Ke.NEW_PASSWORD_REQUIRED,shouldRequestVerification:(e,t)=>{let{unverified:r,verified:a}=t.data;return Mn(a)&&!Mn(r)}},services:{async signIn(e){let t=e.formValues,{country_code:r,username:a,password:o}=t;return oe.Auth.signIn((r!=null?r:"")+a,o)},async confirmSignIn(e,t){let{challengeName:r,user:a}=e,{confirmation_code:o}=e.formValues,i;return(r===Ke.SMS_MFA||r===Ke.SOFTWARE_TOKEN_MFA)&&(i=r),oe.Auth.confirmSignIn(a,o,i)},async forceNewPassword(e,t){let{user:r,formValues:a}=e,{password:o}=a;return oe.Auth.completeNewPassword(r,o)},async verifyTotpToken(e,t){let{user:r}=e,{confirmation_code:a}=e.formValues;return oe.Auth.verifyTotpToken(r,a)},async federatedSignIn(e,t){let{provider:r}=t.data;return await oe.Auth.federatedSignIn({provider:r})},async checkVerifiedContact(e,t){let{user:r}=e;return await oe.Auth.verifiedContact(r)},async verifyUser(e,t){let{unverifiedAttr:r}=e.formValues,a=await oe.Auth.verifyCurrentUserAttribute(r);return e.attributeToVerify=r,a},async confirmVerifyUser(e,t){let{attributeToVerify:r}=e,{confirmation_code:a}=e.formValues;return await oe.Auth.verifyCurrentUserAttributeSubmit(r,a)},async validateFields(e,t){return ua(e.formValues,e.touched,[ca.validateConfirmPassword])}}});E();var ES=Ut({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>oe.Auth.signOut()}});E();var AS=Ut({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:ta,clearFormValues:ra,clearTouched:na,clearUsername:hS,clearValidationError:aa,handleInput:sa,handleBlur:la,setFieldErrors:oa,setRemoteError:ia,setUsername:_S},guards:{shouldAutoConfirmReset:(e,t)=>!!(e.intent&&e.intent==="confirmPasswordReset")},services:{async resetPassword(e){var t,r;let a=(r=(t=e.formValues)==null?void 0:t.username)!=null?r:e.username;return oe.Auth.forgotPassword(a)},async confirmResetPassword(e){let{username:t}=e,{confirmation_code:r,password:a}=e.formValues;return oe.Auth.forgotPasswordSubmit(t,r,a)},async validateFields(e,t){return ua(e.formValues,e.touched,[ca.validateConfirmPassword])}}});E();function IS({services:e}){return Ut({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:ta,clearFormValues:ra,clearTouched:na,clearValidationError:aa,handleInput:sa,handleBlur:la,setCredentials:hs,setFieldErrors:oa,setRemoteError:ia,setCodeDeliveryDetails:wS,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 oe.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 oe.Auth.confirmSignUp(u,s),await oe.Auth.signIn(u,l)},async resendConfirmationCode(t,r){let{user:a,authAttributes:o}=t,i=Ae(a,"username")||Ae(o,"username");return oe.Auth.resendSignUp(i)},async federatedSignIn(t,r){let{provider:a}=r.data;return await oe.Auth.federatedSignIn({provider:a})},async signUp(t,r){let{formValues:a,loginMechanisms:o}=t,[i]=o!=null?o:["username"];a.phone_number&&(a.phone_number=`${a.country_code}${a.phone_number}`.replace(/[^A-Z0-9+]/gi,""));let s=a[i],{password:u}=a,l=oC(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 oe.Auth.signUp({username:s,password:u,attributes:l})},async validateSignUp(t,r){return ua(t.formValues,t.touched,[e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}}})}var ys="+1";function NS({initialState:e="signIn",loginMechanisms:t,signUpAttributes:r,socialProviders:a,services:o}){let i=fe(fe({},ca),o);return Ut({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:at({user:(s,u)=>u.data.user||u.data}),clearUser:at({user:void 0}),applyAmplifyConfig:at({config(s,u){var l,c,d,v,f,p,m,h;let y=(c=(l=u.data.aws_cognito_username_attributes)==null?void 0:l.map(w=>w.toLowerCase()))!=null?c:[],C=(v=(d=u.data.aws_cognito_verification_mechanisms)==null?void 0:d.map(w=>w.toLowerCase()))!=null?v:[],g=(p=(f=u.data.aws_cognito_signup_attributes)==null?void 0:f.map(w=>w.toLowerCase()))!=null?p:[],_=(h=(m=u.data.aws_cognito_social_providers)==null?void 0:m.map(w=>w.toLowerCase()))!=null?h:[];return y.length===0&&y.push("username"),{loginMechanisms:t!=null?t:y,signUpAttributes:r!=null?r:Array.from(new Set([...C,...g])),socialProviders:a!=null?a:_.sort()}}}),spawnSignInActor:at({actorRef:(s,u)=>{var l,c,d,v,f;let p=xS.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 Cr(p,{name:"signInActor"})}}),spawnSignUpActor:at({actorRef:(s,u)=>{var l,c,d,v,f;let p=IS({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 Cr(p,{name:"signUpActor"})}}),spawnResetPasswordActor:at({actorRef:(s,u)=>{var l,c,d;let v=AS.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 Cr(v,{name:"resetPasswordActor"})}}),spawnSignOutActor:at({actorRef:s=>{let u=ES.withContext({user:s.user});return Cr(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 $S={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var PS={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 TS={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
|
|
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 sS={"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 lS={"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 uS={"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 cS={"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 dS={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? ",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"};fe({},tS);fe({},rS);fe({},nS);fe({},aS);fe({},oS);fe({},iS);fe({},sS);fe({},lS);fe({},uS);fe({},cS);var fS=fe({},dS);fe({},fS);function T(e){return oe.I18n.get(e)}E();E();E();var Rr=e=>Qf(e),vS=ie({attributeToVerify:e=>{}}),pS=ie({challengeName:e=>{}}),ta=ie({remoteError:e=>""}),ra=ie({formValues:e=>({})}),na=ie({touched:e=>({})}),mS=ie({unverifiedAttributes:e=>{}}),hS=ie({username:e=>{}}),aa=ie({validationError:e=>({})}),gS=ie({challengeName:(e,t)=>{var r;return(r=t.data)==null?void 0:r.challengeName}}),yS=ie({redirectIntent:e=>"confirmPasswordReset"}),bS=ie({redirectIntent:e=>"confirmSignUp"}),hs=ie({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}}}),oa=ie({validationError:(e,t)=>t.data}),ia=ie({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}}),CS=ie({unverifiedAttributes:(e,t)=>t.data.unverified}),gs=ie({user:(e,t)=>t.data.user||t.data}),_S=ie({username:(e,t)=>e.formValues.username}),wS=ie({codeDeliveryDetails:(e,t)=>t.data.codeDeliveryDetails}),SS=ie({authAttributes:(e,t)=>({username:e.formValues.username})}),sa=ie({formValues:(e,t)=>{let{name:r,value:a}=t.data;return Jn(fe({},e.formValues),{[r]:a})}}),la=ie({touched:(e,t)=>{let{name:r}=t.data;return Jn(fe({},e.touched),{[`${r}`]:!0})}});E();E();E();var ua=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 ca={async getAmplifyConfig(){return oe.Amplify.configure()},async getCurrentUser(){return oe.Auth.currentAuthenticatedUser()},async handleSignUp(e){return oe.Auth.signUp(e)},async handleSignIn({username:e,password:t}){return oe.Auth.signIn(e,t)},async handleConfirmSignIn({user:e,code:t,mfaType:r}){return oe.Auth.confirmSignIn(e,t,r)},async handleConfirmSignUp({username:e,code:t}){return await oe.Auth.confirmSignUp(e,t)},async handleForgotPasswordSubmit({username:e,code:t,password:r}){return oe.Auth.forgotPasswordSubmit(e,t,r)},async handleForgotPassword(e){return oe.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 xS({services:e}){return Ut({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"},{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:vS,clearChallengeName:pS,clearError:ta,clearFormValues:ra,clearTouched:na,clearUnverifiedAttributes:mS,clearValidationError:aa,handleInput:sa,handleBlur:la,setChallengeName:gS,setConfirmResetPasswordIntent:yS,setConfirmSignUpIntent:bS,setCredentials:hs,setFieldErrors:oa,setRemoteError:ia,setUnverifiedAttributes:CS,setUser:gs,setUsernameAuthAttributes:SS},guards:{shouldConfirmSignIn:(t,r)=>{let a=Ae(r,"data.challengeName");return[Ke.SMS_MFA,Ke.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")===Ke.MFA_SETUP,shouldForceChangePassword:(t,r)=>Ae(r,"data.challengeName")===Ke.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===Ke.SMS_MFA||a===Ke.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 oe.Auth.completeNewPassword(a,i)},async verifyTotpToken(t,r){let{user:a}=t,{confirmation_code:o}=t.formValues;return oe.Auth.verifyTotpToken(a,o)},async federatedSignIn(t,r){let{provider:a}=r.data;return await oe.Auth.federatedSignIn({provider:a})},async checkVerifiedContact(t,r){let{user:a}=t;return await oe.Auth.verifiedContact(a)},async verifyUser(t,r){let{unverifiedAttr:a}=t.formValues,o=await oe.Auth.verifyCurrentUserAttribute(a);return t.attributeToVerify=a,o},async confirmVerifyUser(t,r){let{attributeToVerify:a}=t,{confirmation_code:o}=t.formValues;return await oe.Auth.verifyCurrentUserAttributeSubmit(a,o)},async validateFields(t,r){return ua(t.formValues,t.touched,[ca.validateConfirmPassword])}}})}E();var ES=Ut({initial:"pending",id:"signOutActor",states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>oe.Auth.signOut()}});E();function AS({services:e}){return Ut({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:ta,clearFormValues:ra,clearTouched:na,clearUsername:hS,clearValidationError:aa,handleInput:sa,handleBlur:la,setFieldErrors:oa,setRemoteError:ia,setUsername:_S},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 ua(t.formValues,t.touched,[ca.validateConfirmPassword])}}})}E();function IS({services:e}){return Ut({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:ta,clearFormValues:ra,clearTouched:na,clearValidationError:aa,handleInput:sa,handleBlur:la,setCredentials:hs,setFieldErrors:oa,setRemoteError:ia,setCodeDeliveryDetails:wS,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 oe.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 oe.Auth.signIn(u,l)},async resendConfirmationCode(t,r){let{user:a,authAttributes:o}=t,i=Ae(a,"username")||Ae(o,"username");return oe.Auth.resendSignUp(i)},async federatedSignIn(t,r){let{provider:a}=r.data;return await oe.Auth.federatedSignIn({provider:a})},async signUp(t,r){let{formValues:a,loginMechanisms:o}=t,[i]=o!=null?o:["username"];a.phone_number&&(a.phone_number=`${a.country_code}${a.phone_number}`.replace(/[^A-Z0-9+]/gi,""));let s=a[i],{password:u}=a,l=oC(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 ua(t.formValues,t.touched,[e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}}})}var ys="+1";function NS({initialState:e="signIn",loginMechanisms:t,signUpAttributes:r,socialProviders:a,services:o}){let i=fe(fe({},ca),o);return Ut({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:rt({user:(s,u)=>u.data.user||u.data}),clearUser:rt({user:void 0}),applyAmplifyConfig:rt({config(s,u){var l,c,d,v,f,p,m,h;let y=(c=(l=u.data.aws_cognito_username_attributes)==null?void 0:l.map(w=>w.toLowerCase()))!=null?c:[],C=(v=(d=u.data.aws_cognito_verification_mechanisms)==null?void 0:d.map(w=>w.toLowerCase()))!=null?v:[],g=(p=(f=u.data.aws_cognito_signup_attributes)==null?void 0:f.map(w=>w.toLowerCase()))!=null?p:[],_=(h=(m=u.data.aws_cognito_social_providers)==null?void 0:m.map(w=>w.toLowerCase()))!=null?h:[];return y.length===0&&y.push("username"),{loginMechanisms:t!=null?t:y,signUpAttributes:r!=null?r:Array.from(new Set([...C,...g])),socialProviders:a!=null?a:_.sort()}}}),spawnSignInActor:rt({actorRef:(s,u)=>{var l,c,d,v,f;let p=xS({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 Cr(p,{name:"signInActor"})}}),spawnSignUpActor:rt({actorRef:(s,u)=>{var l,c,d,v,f;let p=IS({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 Cr(p,{name:"signUpActor"})}}),spawnResetPasswordActor:rt({actorRef:(s,u)=>{var l,c,d;let v=AS({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 Cr(v,{name:"resetPasswordActor"})}}),spawnSignOutActor:rt({actorRef:s=>{let u=ES.withContext({user:s.user});return Cr(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 $S={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var PS={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 TS={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
47
|
'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}};E();var BS={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 kS={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 RS={small:{value:"1.5"},medium:{value:"1.75"},large:{value:"2"}};E();var FS={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 DS={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var OS={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}};E();var VS={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 US={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 MS={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 LS={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}};E();var zS={slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}},jS={components:Jw(),borderWidths:$S,colors:PS,fonts:TS,fontSizes:BS,fontWeights:kS,lineHeights:RS,opacities:FS,outlineOffsets:DS,outlineWidths:OS,radii:VS,shadows:US,space:MS,time:LS,transforms:zS};E();var GS={values:{base:0,small:30,medium:48,large:62,xl:80,xxl:96},unit:"em",defaultBreakpoint:"base"},bs={tokens:jS,breakpoints:GS,name:"base-theme"};E();var WS="amplify";function xt(e){if(dw(e)){let t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${Cs({path:t})})`}return e}function HS(e){let{value:t}=e;if(typeof t=="string")return xt(t);if(typeof t=="object"&&"offsetX"in t){let{offsetX:r="",offsetY:a="",blurRadius:o="",spreadRadius:i="",color:s=""}=t;return[xt(r),xt(a),xt(o),xt(i),xt(s)].join(" ")}return t}function Cs({path:e=[]}){return`${aw([WS,...e].join(" "))}`}function KS(e,t){let r=`--${Cs({path:t})}`,{value:a}=e;return{name:r,path:t,value:HS(e),original:a,toString:()=>`var(${r})`}}function da(e,t=[]){let r={};if(e.hasOwnProperty("value"))return KS(e,t);for(let a in e)e.hasOwnProperty(a)&&(r[a]=da(e[a],t.concat(a)));return r}function qS(e,t=bs){let r=KC([{},t,e]),a=da(r.tokens),{breakpoints:o,name:i}=r,s=`[data-amplify-theme="${i}"] {
|