(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[679],{27689:function(e,t,o){"use strict";o.r(t),o.d(t,{camelCase:function(){return f},camelCaseTransform:function(){return p},camelCaseTransformMerge:function(){return v},capitalCase:function(){return m},capitalCaseTransform:function(){return g},constantCase:function(){return b},dotCase:function(){return E},headerCase:function(){return x},noCase:function(){return l},paramCase:function(){return C},pascalCase:function(){return d},pascalCaseTransform:function(){return u},pascalCaseTransformMerge:function(){return c},pathCase:function(){return S},sentenceCase:function(){return I},sentenceCaseTransform:function(){return w},snakeCase:function(){return _}});var r=o(69703);function n(e){return e.toLowerCase()}var a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],i=/[^A-Z0-9]+/gi;function l(e,t){void 0===t&&(t={});for(var o=t.splitRegexp,r=t.stripRegexp,l=t.transform,u=t.delimiter,c=s(s(e,void 0===o?a:o,"$1\x00$2"),void 0===r?i:r,"\x00"),d=0,p=c.length;"\x00"===c.charAt(d);)d++;for(;"\x00"===c.charAt(p-1);)p--;return c.slice(d,p).split("\x00").map(void 0===l?n:l).join(void 0===u?" ":u)}function s(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(e,t){return e.replace(t,o)},e)}function u(e,t){var o=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&o>="0"&&o<="9"?"_"+o+r:""+o.toUpperCase()+r}function c(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function d(e,t){return void 0===t&&(t={}),l(e,(0,r.pi)({delimiter:"",transform:u},t))}function p(e,t){return 0===t?e.toLowerCase():u(e,t)}function v(e,t){return 0===t?e.toLowerCase():c(e)}function f(e,t){return void 0===t&&(t={}),d(e,(0,r.pi)({transform:p},t))}function h(e){return e.charAt(0).toUpperCase()+e.substr(1)}function g(e){return h(e.toLowerCase())}function m(e,t){return void 0===t&&(t={}),l(e,(0,r.pi)({delimiter:" ",transform:g},t))}function y(e){return e.toUpperCase()}function b(e,t){return void 0===t&&(t={}),l(e,(0,r.pi)({delimiter:"_",transform:y},t))}function E(e,t){return void 0===t&&(t={}),l(e,(0,r.pi)({delimiter:"."},t))}function x(e,t){return void 0===t&&(t={}),m(e,(0,r.pi)({delimiter:"-"},t))}function C(e,t){return void 0===t&&(t={}),E(e,(0,r.pi)({delimiter:"-"},t))}function S(e,t){return void 0===t&&(t={}),E(e,(0,r.pi)({delimiter:"/"},t))}function w(e,t){var o=e.toLowerCase();return 0===t?h(o):o}function I(e,t){return void 0===t&&(t={}),l(e,(0,r.pi)({delimiter:" ",transform:w},t))}function _(e,t){return void 0===t&&(t={}),E(e,(0,r.pi)({delimiter:"_"},t))}},43369:function(e){"use strict";var t={single_source_shortest_paths:function(e,o,r){var n,a,i,l,s,u,c,d={},p={};p[o]=0;var v=t.PriorityQueue.make();for(v.push(o,0);!v.empty();)for(i in a=(n=v.pop()).value,l=n.cost,s=e[a]||{})s.hasOwnProperty(i)&&(u=l+s[i],c=p[i],(void 0===p[i]||c>u)&&(p[i]=u,v.push(i,u),d[i]=a));if(void 0!==r&&void 0===p[r])throw Error(["Could not find a path from ",o," to ",r,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var o=[],r=t;r;)o.push(r),e[r],r=e[r];return o.reverse(),o},find_path:function(e,o,r){var n=t.single_source_shortest_paths(e,o,r);return t.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var o,r=t.PriorityQueue,n={};for(o in e=e||{},r)r.hasOwnProperty(o)&&(n[o]=r[o]);return n.queue=[],n.sorter=e.sorter||r.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},66056:function(e){"use strict";e.exports=function(e){for(var t=[],o=e.length,r=0;r<o;r++){var n=e.charCodeAt(r);if(n>=55296&&n<=56319&&o>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(n=(n-55296)*1024+a-56320+65536,r+=1)}if(n<128){t.push(n);continue}if(n<2048){t.push(n>>6|192),t.push(63&n|128);continue}if(n<55296||n>=57344&&n<65536){t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128);continue}if(n>=65536&&n<=1114111){t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},93488:function(e,t,o){var r=o(93245)(o(67741),"DataView");e.exports=r},68193:function(e,t,o){var r=o(65660),n=o(31735),a=o(83960),i=o(52436),l=o(38175);function s(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},5835:function(e,t,o){var r=o(13234),n=o(77207),a=o(74641),i=o(70668),l=o(42572);function s(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},58246:function(e,t,o){var r=o(93245)(o(67741),"Map");e.exports=r},93785:function(e,t,o){var r=o(26528),n=o(90972),a=o(55981),i=o(76656),l=o(45541);function s(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},70490:function(e,t,o){var r=o(93245)(o(67741),"Promise");e.exports=r},50608:function(e,t,o){var r=o(93245)(o(67741),"Set");e.exports=r},22440:function(e,t,o){var r=o(93785),n=o(3367),a=o(36428);function i(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new r;++t<o;)this.add(e[t])}i.prototype.add=i.prototype.push=n,i.prototype.has=a,e.exports=i},4380:function(e,t,o){var r=o(5835),n=o(4800),a=o(73987),i=o(59728),l=o(4146),s=o(81333);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=l,u.prototype.set=s,e.exports=u},14212:function(e,t,o){var r=o(67741).Symbol;e.exports=r},69142:function(e,t,o){var r=o(67741).Uint8Array;e.exports=r},93101:function(e,t,o){var r=o(93245)(o(67741),"WeakMap");e.exports=r},24821:function(e){e.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}},31467:function(e){e.exports=function(e,t){for(var o=-1,r=null==e?0:e.length,n=0,a=[];++o<r;){var i=e[o];t(i,o,e)&&(a[n++]=i)}return a}},26546:function(e,t,o){var r=o(97944),n=o(99782),a=o(95059),i=o(64843),l=o(30176),s=o(30484),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var o=a(e),c=!o&&n(e),d=!o&&!c&&i(e),p=!o&&!c&&!d&&s(e),v=o||c||d||p,f=v?r(e.length,String):[],h=f.length;for(var g in e)(t||u.call(e,g))&&!(v&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,h)))&&f.push(g);return f}},83690:function(e){e.exports=function(e,t){for(var o=-1,r=null==e?0:e.length,n=Array(r);++o<r;)n[o]=t(e[o],o,e);return n}},65789:function(e){e.exports=function(e,t){for(var o=-1,r=t.length,n=e.length;++o<r;)e[n+o]=t[o];return e}},62670:function(e){e.exports=function(e,t,o,r){var n=-1,a=null==e?0:e.length;for(r&&a&&(o=e[++n]);++n<a;)o=t(o,e[n],n,e);return o}},30927:function(e){e.exports=function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r;)if(t(e[o],o,e))return!0;return!1}},77037:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},79281:function(e,t,o){var r=o(30804),n=o(61595);e.exports=function(e,t,o){(void 0===o||n(e[t],o))&&(void 0!==o||t in e)||r(e,t,o)}},49478:function(e,t,o){var r=o(30804),n=o(61595),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,o){var i=e[t];a.call(e,t)&&n(i,o)&&(void 0!==o||t in e)||r(e,t,o)}},89329:function(e,t,o){var r=o(61595);e.exports=function(e,t){for(var o=e.length;o--;)if(r(e[o][0],t))return o;return -1}},30804:function(e,t,o){var r=o(40930);e.exports=function(e,t,o){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},61682:function(e,t,o){var r=o(70816),n=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(n)return n(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();e.exports=a},94410:function(e,t,o){var r=o(320)();e.exports=r},38824:function(e,t,o){var r=o(53066),n=o(217);e.exports=function(e,t){t=r(t,e);for(var o=0,a=t.length;null!=e&&o<a;)e=e[n(t[o++])];return o&&o==a?e:void 0}},86206:function(e,t,o){var r=o(65789),n=o(95059);e.exports=function(e,t,o){var a=t(e);return n(e)?a:r(a,o(e))}},7976:function(e,t,o){var r=o(14212),n=o(29829),a=o(8611),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?n(e):a(e)}},69959:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},63686:function(e,t,o){var r=o(7976),n=o(19340);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},29759:function(e,t,o){var r=o(28685),n=o(19340);e.exports=function e(t,o,a,i,l){return t===o||(null!=t&&null!=o&&(n(t)||n(o))?r(t,o,a,i,e,l):t!=t&&o!=o)}},28685:function(e,t,o){var r=o(4380),n=o(63859),a=o(41020),i=o(10701),l=o(96770),s=o(95059),u=o(64843),c=o(30484),d="[object Arguments]",p="[object Array]",v="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,h,g,m){var y=s(e),b=s(t),E=y?p:l(e),x=b?p:l(t);E=E==d?v:E,x=x==d?v:x;var C=E==v,S=x==v,w=E==x;if(w&&u(e)){if(!u(t))return!1;y=!0,C=!1}if(w&&!C)return m||(m=new r),y||c(e)?n(e,t,o,h,g,m):a(e,t,E,o,h,g,m);if(!(1&o)){var I=C&&f.call(e,"__wrapped__"),_=S&&f.call(t,"__wrapped__");if(I||_){var A=I?e.value():e,R=_?t.value():t;return m||(m=new r),g(A,R,o,h,m)}}return!!w&&(m||(m=new r),i(e,t,o,h,g,m))}},59165:function(e,t,o){var r=o(4380),n=o(29759);e.exports=function(e,t,o,a){var i=o.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var u=o[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<l;){var c=(u=o[i])[0],d=e[c],p=u[1];if(s&&u[2]){if(void 0===d&&!(c in e))return!1}else{var v=new r;if(a)var f=a(d,p,c,e,t,v);if(!(void 0===f?n(p,d,3,a,v):f))return!1}}return!0}},35759:function(e,t,o){var r=o(80509),n=o(70740),a=o(70816),i=o(35315),l=/^\[object .+?Constructor\]$/,s=Object.prototype,u=Function.prototype.toString,c=s.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||n(e))&&(r(e)?d:l).test(i(e))}},80043:function(e,t,o){var r=o(7976),n=o(54512),a=o(19340),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&n(e.length)&&!!i[r(e)]}},49452:function(e,t,o){var r=o(79578),n=o(18913),a=o(39100),i=o(95059),l=o(62973);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?n(e[0],e[1]):r(e):l(e)}},92916:function(e,t,o){var r=o(32231),n=o(51678),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var o in Object(e))a.call(e,o)&&"constructor"!=o&&t.push(o);return t}},46107:function(e,t,o){var r=o(70816),n=o(32231),a=o(77361),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=n(e),o=[];for(var l in e)"constructor"==l&&(t||!i.call(e,l))||o.push(l);return o}},79578:function(e,t,o){var r=o(59165),n=o(79836),a=o(69794);e.exports=function(e){var t=n(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(o){return o===e||r(o,e,t)}}},18913:function(e,t,o){var r=o(29759),n=o(44750),a=o(19955),i=o(55632),l=o(21680),s=o(69794),u=o(217);e.exports=function(e,t){return i(e)&&l(t)?s(u(e),t):function(o){var i=n(o,e);return void 0===i&&i===t?a(o,e):r(t,i,3)}}},2068:function(e,t,o){var r=o(4380),n=o(79281),a=o(94410),i=o(69580),l=o(70816),s=o(70480),u=o(96054);e.exports=function e(t,o,c,d,p){t!==o&&a(o,function(a,s){if(p||(p=new r),l(a))i(t,o,s,c,e,d,p);else{var v=d?d(u(t,s),a,s+"",t,o,p):void 0;void 0===v&&(v=a),n(t,s,v)}},s)}},69580:function(e,t,o){var r=o(79281),n=o(10241),a=o(24192),i=o(71136),l=o(75549),s=o(99782),u=o(95059),c=o(48658),d=o(64843),p=o(80509),v=o(70816),f=o(23393),h=o(30484),g=o(96054),m=o(2488);e.exports=function(e,t,o,y,b,E,x){var C=g(e,o),S=g(t,o),w=x.get(S);if(w){r(e,o,w);return}var I=E?E(C,S,o+"",e,t,x):void 0,_=void 0===I;if(_){var A=u(S),R=!A&&d(S),k=!A&&!R&&h(S);I=S,A||R||k?u(C)?I=C:c(C)?I=i(C):R?(_=!1,I=n(S,!0)):k?(_=!1,I=a(S,!0)):I=[]:f(S)||s(S)?(I=C,s(C)?I=m(C):(!v(C)||p(C))&&(I=l(S))):_=!1}_&&(x.set(S,I),b(I,S,y,E,x),x.delete(S)),r(e,o,I)}},16032:function(e,t,o){var r=o(38824),n=o(21265),a=o(53066);e.exports=function(e,t,o){for(var i=-1,l=t.length,s={};++i<l;){var u=t[i],c=r(e,u);o(c,u)&&n(s,a(u,e),c)}return s}},60411:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},34831:function(e,t,o){var r=o(38824);e.exports=function(e){return function(t){return r(t,e)}}},57690:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},70712:function(e,t,o){var r=o(39100),n=o(7157),a=o(18501);e.exports=function(e,t){return a(n(e,t,r),e+"")}},21265:function(e,t,o){var r=o(49478),n=o(53066),a=o(30176),i=o(70816),l=o(217);e.exports=function(e,t,o,s){if(!i(e))return e;t=n(t,e);for(var u=-1,c=t.length,d=c-1,p=e;null!=p&&++u<c;){var v=l(t[u]),f=o;if("__proto__"===v||"constructor"===v||"prototype"===v)break;if(u!=d){var h=p[v];void 0===(f=s?s(h,v,p):void 0)&&(f=i(h)?h:a(t[u+1])?[]:{})}r(p,v,f),p=p[v]}return e}},79029:function(e,t,o){var r=o(71364),n=o(40930),a=o(39100),i=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},97944:function(e){e.exports=function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}},2218:function(e,t,o){var r=o(14212),n=o(83690),a=o(95059),i=o(62704),l=1/0,s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return n(t,e)+"";if(i(t))return u?u.call(t):"";var o=t+"";return"0"==o&&1/t==-l?"-0":o}},43863:function(e){e.exports=function(e){return function(t){return e(t)}}},97399:function(e){e.exports=function(e,t){return e.has(t)}},53066:function(e,t,o){var r=o(95059),n=o(55632),a=o(35508),i=o(25635);e.exports=function(e,t){return r(e)?e:n(e,t)?[e]:a(i(e))}},24292:function(e,t,o){var r=o(69142);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},10241:function(e,t,o){e=o.nmd(e);var r=o(67741),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,i=a&&a.exports===n?r.Buffer:void 0,l=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var o=e.length,r=l?l(o):new e.constructor(o);return e.copy(r),r}},24192:function(e,t,o){var r=o(24292);e.exports=function(e,t){var o=t?r(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},71136:function(e){e.exports=function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}},99942:function(e,t,o){var r=o(49478),n=o(30804);e.exports=function(e,t,o,a){var i=!o;o||(o={});for(var l=-1,s=t.length;++l<s;){var u=t[l],c=a?a(o[u],e[u],u,o,e):void 0;void 0===c&&(c=e[u]),i?n(o,u,c):r(o,u,c)}return o}},35852:function(e,t,o){var r=o(67741)["__core-js_shared__"];e.exports=r},55878:function(e,t,o){var r=o(70712),n=o(45021);e.exports=function(e){return r(function(t,o){var r=-1,a=o.length,i=a>1?o[a-1]:void 0,l=a>2?o[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,l&&n(o[0],o[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=o[r];s&&e(t,s,r,i)}return t})}},320:function(e){e.exports=function(e){return function(t,o,r){for(var n=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++n];if(!1===o(a[s],s,a))break}return t}}},24259:function(e,t,o){var r=o(62670),n=o(37148),a=o(22896),i=RegExp("['’]","g");e.exports=function(e){return function(t){return r(a(n(t).replace(i,"")),e,"")}}},57744:function(e,t,o){var r=o(57690)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});e.exports=r},40930:function(e,t,o){var r=o(93245),n=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},63859:function(e,t,o){var r=o(22440),n=o(30927),a=o(97399);e.exports=function(e,t,o,i,l,s){var u=1&o,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=s.get(e),v=s.get(t);if(p&&v)return p==t&&v==e;var f=-1,h=!0,g=2&o?new r:void 0;for(s.set(e,t),s.set(t,e);++f<c;){var m=e[f],y=t[f];if(i)var b=u?i(y,m,f,t,e,s):i(m,y,f,e,t,s);if(void 0!==b){if(b)continue;h=!1;break}if(g){if(!n(t,function(e,t){if(!a(g,t)&&(m===e||l(m,e,o,i,s)))return g.push(t)})){h=!1;break}}else if(!(m===y||l(m,y,o,i,s))){h=!1;break}}return s.delete(e),s.delete(t),h}},41020:function(e,t,o){var r=o(14212),n=o(69142),a=o(61595),i=o(63859),l=o(38737),s=o(1640),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,o,r,u,d,p){switch(o){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new n(e),new n(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var v=l;case"[object Set]":var f=1&r;if(v||(v=s),e.size!=t.size&&!f)break;var h=p.get(e);if(h)return h==t;r|=2,p.set(e,t);var g=i(v(e),v(t),r,u,d,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},10701:function(e,t,o){var r=o(40013),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,a,i,l){var s=1&o,u=r(e),c=u.length;if(c!=r(t).length&&!s)return!1;for(var d=c;d--;){var p=u[d];if(!(s?p in t:n.call(t,p)))return!1}var v=l.get(e),f=l.get(t);if(v&&f)return v==t&&f==e;var h=!0;l.set(e,t),l.set(t,e);for(var g=s;++d<c;){var m=e[p=u[d]],y=t[p];if(a)var b=s?a(y,m,p,t,e,l):a(m,y,p,e,t,l);if(!(void 0===b?m===y||i(m,y,o,a,l):b)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var E=e.constructor,x=t.constructor;E!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof E&&E instanceof E&&"function"==typeof x&&x instanceof x)&&(h=!1)}return l.delete(e),l.delete(t),h}},58584:function(e,t,o){var r="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=r},40013:function(e,t,o){var r=o(86206),n=o(17807),a=o(39406);e.exports=function(e){return r(e,a,n)}},27790:function(e,t,o){var r=o(86206),n=o(12533),a=o(70480);e.exports=function(e){return r(e,a,n)}},72080:function(e,t,o){var r=o(34850);e.exports=function(e,t){var o=e.__data__;return r(t)?o["string"==typeof t?"string":"hash"]:o.map}},79836:function(e,t,o){var r=o(21680),n=o(39406);e.exports=function(e){for(var t=n(e),o=t.length;o--;){var a=t[o],i=e[a];t[o]=[a,i,r(i)]}return t}},93245:function(e,t,o){var r=o(35759),n=o(13970);e.exports=function(e,t){var o=n(e,t);return r(o)?o:void 0}},28766:function(e,t,o){var r=o(93332)(Object.getPrototypeOf,Object);e.exports=r},29829:function(e,t,o){var r=o(14212),n=Object.prototype,a=n.hasOwnProperty,i=n.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),o=e[l];try{e[l]=void 0;var r=!0}catch(e){}var n=i.call(e);return r&&(t?e[l]=o:delete e[l]),n}},17807:function(e,t,o){var r=o(31467),n=o(30786),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:r(i(e=Object(e)),function(t){return a.call(e,t)})}:n;e.exports=l},12533:function(e,t,o){var r=o(65789),n=o(28766),a=o(17807),i=o(30786),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=n(e);return t}:i;e.exports=l},96770:function(e,t,o){var r=o(93488),n=o(58246),a=o(70490),i=o(50608),l=o(93101),s=o(7976),u=o(35315),c="[object Map]",d="[object Promise]",p="[object Set]",v="[object WeakMap]",f="[object DataView]",h=u(r),g=u(n),m=u(a),y=u(i),b=u(l),E=s;(r&&E(new r(new ArrayBuffer(1)))!=f||n&&E(new n)!=c||a&&E(a.resolve())!=d||i&&E(new i)!=p||l&&E(new l)!=v)&&(E=function(e){var t=s(e),o="[object Object]"==t?e.constructor:void 0,r=o?u(o):"";if(r)switch(r){case h:return f;case g:return c;case m:return d;case y:return p;case b:return v}return t}),e.exports=E},13970:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},24986:function(e,t,o){var r=o(53066),n=o(99782),a=o(95059),i=o(30176),l=o(54512),s=o(217);e.exports=function(e,t,o){t=r(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var p=s(t[u]);if(!(d=null!=e&&o(e,p)))break;e=e[p]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&l(c)&&i(p,c)&&(a(e)||n(e))}},90409:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},65660:function(e,t,o){var r=o(83463);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},31735:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},83960:function(e,t,o){var r=o(83463),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return n.call(t,e)?t[e]:void 0}},52436:function(e,t,o){var r=o(83463),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},38175:function(e,t,o){var r=o(83463);e.exports=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},75549:function(e,t,o){var r=o(61682),n=o(28766),a=o(32231);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(n(e))}},30176:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,o){var r=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<o}},45021:function(e,t,o){var r=o(61595),n=o(10187),a=o(30176),i=o(70816);e.exports=function(e,t,o){if(!i(o))return!1;var l=typeof t;return("number"==l?!!(n(o)&&a(t,o.length)):"string"==l&&t in o)&&r(o[t],e)}},55632:function(e,t,o){var r=o(95059),n=o(62704),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||n(e))||i.test(e)||!a.test(e)||null!=t&&e in Object(t)}},34850:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},70740:function(e,t,o){var r,n=o(35852),a=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},32231:function(e){var t=Object.prototype;e.exports=function(e){var o=e&&e.constructor;return e===("function"==typeof o&&o.prototype||t)}},21680:function(e,t,o){var r=o(70816);e.exports=function(e){return e==e&&!r(e)}},13234:function(e){e.exports=function(){this.__data__=[],this.size=0}},77207:function(e,t,o){var r=o(89329),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,o=r(t,e);return!(o<0)&&(o==t.length-1?t.pop():n.call(t,o,1),--this.size,!0)}},74641:function(e,t,o){var r=o(89329);e.exports=function(e){var t=this.__data__,o=r(t,e);return o<0?void 0:t[o][1]}},70668:function(e,t,o){var r=o(89329);e.exports=function(e){return r(this.__data__,e)>-1}},42572:function(e,t,o){var r=o(89329);e.exports=function(e,t){var o=this.__data__,n=r(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}},26528:function(e,t,o){var r=o(68193),n=o(5835),a=o(58246);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||n),string:new r}}},90972:function(e,t,o){var r=o(72080);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},55981:function(e,t,o){var r=o(72080);e.exports=function(e){return r(this,e).get(e)}},76656:function(e,t,o){var r=o(72080);e.exports=function(e){return r(this,e).has(e)}},45541:function(e,t,o){var r=o(72080);e.exports=function(e,t){var o=r(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}},38737:function(e){e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e,r){o[++t]=[r,e]}),o}},69794:function(e){e.exports=function(e,t){return function(o){return null!=o&&o[e]===t&&(void 0!==t||e in Object(o))}}},53092:function(e,t,o){var r=o(49512);e.exports=function(e){var t=r(e,function(e){return 500===o.size&&o.clear(),e}),o=t.cache;return t}},83463:function(e,t,o){var r=o(93245)(Object,"create");e.exports=r},51678:function(e,t,o){var r=o(93332)(Object.keys,Object);e.exports=r},77361:function(e){e.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}},16474:function(e,t,o){e=o.nmd(e);var r=o(58584),n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,i=a&&a.exports===n&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l},8611:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},93332:function(e){e.exports=function(e,t){return function(o){return e(t(o))}}},7157:function(e,t,o){var r=o(24821),n=Math.max;e.exports=function(e,t,o){return t=n(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=n(a.length-t,0),s=Array(l);++i<l;)s[i]=a[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=a[i];return u[t]=o(s),r(e,this,u)}}},67741:function(e,t,o){var r=o(58584),n="object"==typeof self&&self&&self.Object===Object&&self,a=r||n||Function("return this")();e.exports=a},96054:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},3367:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},36428:function(e){e.exports=function(e){return this.__data__.has(e)}},1640:function(e){e.exports=function(e){var t=-1,o=Array(e.size);return e.forEach(function(e){o[++t]=e}),o}},18501:function(e,t,o){var r=o(79029),n=o(14326)(r);e.exports=n},14326:function(e){var t=Date.now;e.exports=function(e){var o=0,r=0;return function(){var n=t(),a=16-(n-r);if(r=n,a>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}},4800:function(e,t,o){var r=o(5835);e.exports=function(){this.__data__=new r,this.size=0}},73987:function(e){e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},59728:function(e){e.exports=function(e){return this.__data__.get(e)}},4146:function(e){e.exports=function(e){return this.__data__.has(e)}},81333:function(e,t,o){var r=o(5835),n=o(58246),a=o(93785);e.exports=function(e,t){var o=this.__data__;if(o instanceof r){var i=o.__data__;if(!n||i.length<199)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new a(i)}return o.set(e,t),this.size=o.size,this}},35508:function(e,t,o){var r=o(53092),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,function(e,o,r,n){t.push(r?n.replace(a,"$1"):o||e)}),t});e.exports=i},217:function(e,t,o){var r=o(62704),n=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}},35315:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},183:function(e){var t="\ud800-\udfff",o="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",i="['’]",l="["+a+"]",s="["+r+"]",u="[^"+t+a+"\\d+"+o+r+n+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",p="["+n+"]",v="(?:"+s+"|"+u+")",f="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",h="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",m="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+m+g+")*",b="(?:"+["["+o+"]",c,d].join("|")+")"+(m+g+y),E=RegExp([p+"?"+s+"+"+f+"(?="+[l,p,"$"].join("|")+")","(?:"+p+"|"+u+")+"+h+"(?="+[l,p+v,"$"].join("|")+")",p+"?"+v+"+"+f,p+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(E)||[]}},71364:function(e){e.exports=function(e){return function(){return e}}},37148:function(e,t,o){var r=o(57744),n=o(25635),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=n(e))&&e.replace(a,r).replace(i,"")}},61595:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},44750:function(e,t,o){var r=o(38824);e.exports=function(e,t,o){var n=null==e?void 0:r(e,t);return void 0===n?o:n}},19955:function(e,t,o){var r=o(69959),n=o(24986);e.exports=function(e,t){return null!=e&&n(e,t,r)}},39100:function(e){e.exports=function(e){return e}},99782:function(e,t,o){var r=o(63686),n=o(19340),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return n(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},95059:function(e){var t=Array.isArray;e.exports=t},10187:function(e,t,o){var r=o(80509),n=o(54512);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},48658:function(e,t,o){var r=o(10187),n=o(19340);e.exports=function(e){return n(e)&&r(e)}},64843:function(e,t,o){e=o.nmd(e);var r=o(67741),n=o(33879),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||n},80509:function(e,t,o){var r=o(7976),n=o(70816);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},54512:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},70816:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},19340:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},23393:function(e,t,o){var r=o(7976),n=o(28766),a=o(19340),i=Object.prototype,l=Function.prototype.toString,s=i.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=n(e);if(null===t)return!0;var o=s.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&l.call(o)==u}},62704:function(e,t,o){var r=o(7976),n=o(19340);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},30484:function(e,t,o){var r=o(80043),n=o(43863),a=o(16474),i=a&&a.isTypedArray,l=i?n(i):r;e.exports=l},8278:function(e,t,o){var r=o(24259)(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()});e.exports=r},39406:function(e,t,o){var r=o(26546),n=o(92916),a=o(10187);e.exports=function(e){return a(e)?r(e):n(e)}},70480:function(e,t,o){var r=o(26546),n=o(46107),a=o(10187);e.exports=function(e){return a(e)?r(e,!0):n(e)}},49512:function(e,t,o){var r=o(93785);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var o=function(){var r=arguments,n=t?t.apply(this,r):r[0],a=o.cache;if(a.has(n))return a.get(n);var i=e.apply(this,r);return o.cache=a.set(n,i)||a,i};return o.cache=new(n.Cache||r),o}n.Cache=r,e.exports=n},73957:function(e,t,o){var r=o(2068),n=o(55878)(function(e,t,o){r(e,t,o)});e.exports=n},2923:function(e,t,o){var r=o(83690),n=o(49452),a=o(16032),i=o(27790);e.exports=function(e,t){if(null==e)return{};var o=r(i(e),function(e){return[e]});return t=n(t),a(e,o,function(e,o){return t(e,o[0])})}},62973:function(e,t,o){var r=o(60411),n=o(34831),a=o(55632),i=o(217);e.exports=function(e){return a(e)?r(i(e)):n(e)}},30786:function(e){e.exports=function(){return[]}},33879:function(e){e.exports=function(){return!1}},2488:function(e,t,o){var r=o(99942),n=o(70480);e.exports=function(e){return r(e,n(e))}},25635:function(e,t,o){var r=o(2218);e.exports=function(e){return null==e?"":r(e)}},22896:function(e,t,o){var r=o(77037),n=o(90409),a=o(25635),i=o(183);e.exports=function(e,t,o){return(e=a(e),void 0===(t=o?void 0:t))?n(e)?i(e):r(e):e.match(t)||[]}},52644:function(e,t,o){let r=o(74613),n=o(34185),a=o(35148),i=o(13782);function l(e,t,o,a,i){let l=[].slice.call(arguments,1),s=l.length,u="function"==typeof l[s-1];if(!u&&!r())throw Error("Callback required as last argument");if(u){if(s<2)throw Error("Too few arguments provided");2===s?(i=o,o=t,t=a=void 0):3===s&&(t.getContext&&void 0===i?(i=a,a=void 0):(i=a,a=o,o=t,t=void 0))}else{if(s<1)throw Error("Too few arguments provided");return 1===s?(o=t,t=a=void 0):2!==s||t.getContext||(a=o,o=t,t=void 0),new Promise(function(r,i){try{let i=n.create(o,a);r(e(i,t,a))}catch(e){i(e)}})}try{let r=n.create(o,a);i(null,e(r,t,a))}catch(e){i(e)}}t.create=n.create,t.toCanvas=l.bind(null,a.render),t.toDataURL=l.bind(null,a.renderToDataURL),t.toString=l.bind(null,function(e,t,o){return i.render(e,o)})},74613:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},78466:function(e,t,o){let r=o(20236).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,o=r(e),n=145===o?26:2*Math.ceil((o-13)/(2*t-2)),a=[o-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-n;return a.push(6),a.reverse()},t.getPositions=function(e){let o=[],r=t.getRowColCoords(e),n=r.length;for(let e=0;e<n;e++)for(let t=0;t<n;t++)(0!==e||0!==t)&&(0!==e||t!==n-1)&&(e!==n-1||0!==t)&&o.push([r[e],r[t]]);return o}},67215:function(e,t,o){let r=o(68891),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let o=45*n.indexOf(this.data[t]);o+=n.indexOf(this.data[t+1]),e.put(o,11)}this.data.length%2&&e.put(n.indexOf(this.data[t]),6)},e.exports=a},8886:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let o=0;o<t;o++)this.putBit((e>>>t-o-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},54113:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,o,r){let n=e*this.size+t;this.data[n]=o,r&&(this.reservedBit[n]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},85678:function(e,t,o){let r=o(66056),n=o(68891);function a(e){this.mode=n.BYTE,this.data=new Uint8Array(r(e))}a.getBitsLength=function(e){return 8*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)},e.exports=a},52257:function(e,t,o){let r=o(97883),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return n[(e-1)*4+0];case r.M:return n[(e-1)*4+1];case r.Q:return n[(e-1)*4+2];case r.H:return n[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[(e-1)*4+0];case r.M:return a[(e-1)*4+1];case r.Q:return a[(e-1)*4+2];case r.H:return a[(e-1)*4+3];default:return}}},97883:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,o){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return o}}},64449:function(e,t,o){let r=o(20236).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},24103:function(e,t,o){let r=o(20236),n=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let o=e.bit<<3|t,a=o<<10;for(;r.getBCHDigit(a)-n>=0;)a^=1335<<r.getBCHDigit(a)-n;return(o<<10|a)^21522}},10120:function(e,t){let o=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)o[t]=e,r[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)o[e]=o[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return r[e]},t.exp=function(e){return o[e]},t.mul=function(e,t){return 0===e||0===t?0:o[r[e]+r[t]]}},68522:function(e,t,o){let r=o(68891),n=o(20236);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=n.toSJIS(this.data[t]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");o=(o>>>8&255)*192+(255&o),e.put(o,13)}},e.exports=a},47684:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let o={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,n=0,a=0,i=null,l=null;for(let s=0;s<t;s++){n=a=0,i=l=null;for(let u=0;u<t;u++){let t=e.get(s,u);t===i?n++:(n>=5&&(r+=o.N1+(n-5)),i=t,n=1),(t=e.get(u,s))===l?a++:(a>=5&&(r+=o.N1+(a-5)),l=t,a=1)}n>=5&&(r+=o.N1+(n-5)),a>=5&&(r+=o.N1+(a-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let o=0;o<t-1;o++)for(let n=0;n<t-1;n++){let t=e.get(o,n)+e.get(o,n+1)+e.get(o+1,n)+e.get(o+1,n+1);(4===t||0===t)&&r++}return r*o.N2},t.getPenaltyN3=function(e){let t=e.size,r=0,n=0,a=0;for(let o=0;o<t;o++){n=a=0;for(let i=0;i<t;i++)n=n<<1&2047|e.get(o,i),i>=10&&(1488===n||93===n)&&r++,a=a<<1&2047|e.get(i,o),i>=10&&(1488===a||93===a)&&r++}return r*o.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let o=0;o<r;o++)t+=e.data[o];return Math.abs(Math.ceil(100*t/r/5)-10)*o.N4},t.applyMask=function(e,o){let r=o.size;for(let n=0;n<r;n++)for(let a=0;a<r;a++)o.isReserved(a,n)||o.xor(a,n,function(e,o,r){switch(e){case t.Patterns.PATTERN000:return(o+r)%2==0;case t.Patterns.PATTERN001:return o%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(o+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return o*r%2+o*r%3==0;case t.Patterns.PATTERN110:return(o*r%2+o*r%3)%2==0;case t.Patterns.PATTERN111:return(o*r%3+(o+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,a,n))},t.getBestMask=function(e,o){let r=Object.keys(t.Patterns).length,n=0,a=1/0;for(let i=0;i<r;i++){o(i),t.applyMask(i,e);let r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),r<a&&(a=r,n=i)}return n}},68891:function(e,t,o){let r=o(57858),n=o(72118);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!r.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,o){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return o}}},57249:function(e,t,o){let r=o(68891);function n(e){this.mode=r.NUMERIC,this.data=e.toString()}n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let t,o;for(t=0;t+3<=this.data.length;t+=3)o=parseInt(this.data.substr(t,3),10),e.put(o,10);let r=this.data.length-t;r>0&&(o=parseInt(this.data.substr(t),10),e.put(o,3*r+1))},e.exports=n},35043:function(e,t,o){let r=o(10120);t.mul=function(e,t){let o=new Uint8Array(e.length+t.length-1);for(let n=0;n<e.length;n++)for(let a=0;a<t.length;a++)o[n+a]^=r.mul(e[n],t[a]);return o},t.mod=function(e,t){let o=new Uint8Array(e);for(;o.length-t.length>=0;){let e=o[0];for(let n=0;n<t.length;n++)o[n]^=r.mul(t[n],e);let n=0;for(;n<o.length&&0===o[n];)n++;o=o.slice(n)}return o},t.generateECPolynomial=function(e){let o=new Uint8Array([1]);for(let n=0;n<e;n++)o=t.mul(o,new Uint8Array([1,r.exp(n)]));return o}},34185:function(e,t,o){let r=o(20236),n=o(97883),a=o(8886),i=o(54113),l=o(78466),s=o(64449),u=o(47684),c=o(52257),d=o(74598),p=o(87579),v=o(24103),f=o(68891),h=o(75896);function g(e,t,o){let r,n;let a=e.size,i=v.getEncodedBits(t,o);for(r=0;r<15;r++)n=(i>>r&1)==1,r<6?e.set(r,8,n,!0):r<8?e.set(r+1,8,n,!0):e.set(a-15+r,8,n,!0),r<8?e.set(8,a-r-1,n,!0):r<9?e.set(8,15-r-1+1,n,!0):e.set(8,15-r-1,n,!0);e.set(a-8,8,1,!0)}t.create=function(e,t){let o,v;if(void 0===e||""===e)throw Error("No input text");let m=n.M;return void 0!==t&&(m=n.from(t.errorCorrectionLevel,n.M),o=p.from(t.version),v=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,o,n){let v;if(Array.isArray(e))v=h.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=h.rawSplit(e);r=p.getBestVersionForData(t,o)}v=h.fromString(e,r||40)}else throw Error("Invalid data");let m=p.getBestVersionForData(v,o);if(!m)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<m)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+m+".\n")}else t=m;let y=function(e,t,o){let n=new a;o.forEach(function(t){n.put(t.mode.bit,4),n.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(n)});let i=(r.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t))*8;for(n.getLengthInBits()+4<=i&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);let l=(i-n.getLengthInBits())/8;for(let e=0;e<l;e++)n.put(e%2?17:236,8);return function(e,t,o){let n,a;let i=r.getSymbolTotalCodewords(t),l=i-c.getTotalCodewordsCount(t,o),s=c.getBlocksCount(t,o),u=i%s,p=s-u,v=Math.floor(i/s),f=Math.floor(l/s),h=f+1,g=v-f,m=new d(g),y=0,b=Array(s),E=Array(s),x=0,C=new Uint8Array(e.buffer);for(let e=0;e<s;e++){let t=e<p?f:h;b[e]=C.slice(y,y+t),E[e]=m.encode(b[e]),y+=t,x=Math.max(x,t)}let S=new Uint8Array(i),w=0;for(n=0;n<x;n++)for(a=0;a<s;a++)n<b[a].length&&(S[w++]=b[a][n]);for(n=0;n<g;n++)for(a=0;a<s;a++)S[w++]=E[a][n];return S}(n,e,t)}(t,o,v),b=new i(r.getSymbolSize(t));return function(e,t){let o=e.size,r=s.getPositions(t);for(let t=0;t<r.length;t++){let n=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(n+t<=-1)&&!(o<=n+t))for(let r=-1;r<=7;r++)a+r<=-1||o<=a+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(n+t,a+r,!0,!0):e.set(n+t,a+r,!1,!0))}}(b,t),function(e){let t=e.size;for(let o=8;o<t-8;o++){let t=o%2==0;e.set(o,6,t,!0),e.set(6,o,t,!0)}}(b),function(e,t){let o=l.getPositions(t);for(let t=0;t<o.length;t++){let r=o[t][0],n=o[t][1];for(let t=-2;t<=2;t++)for(let o=-2;o<=2;o++)-2===t||2===t||-2===o||2===o||0===t&&0===o?e.set(r+t,n+o,!0,!0):e.set(r+t,n+o,!1,!0)}}(b,t),g(b,o,0),t>=7&&function(e,t){let o,r,n;let a=e.size,i=p.getEncodedBits(t);for(let t=0;t<18;t++)o=Math.floor(t/3),r=t%3+a-8-3,n=(i>>t&1)==1,e.set(o,r,n,!0),e.set(r,o,n,!0)}(b,t),function(e,t){let o=e.size,r=-1,n=o-1,a=7,i=0;for(let l=o-1;l>0;l-=2)for(6===l&&l--;;){for(let o=0;o<2;o++)if(!e.isReserved(n,l-o)){let r=!1;i<t.length&&(r=(t[i]>>>a&1)==1),e.set(n,l-o,r),-1==--a&&(i++,a=7)}if((n+=r)<0||o<=n){n-=r,r=-r;break}}}(b,y),isNaN(n)&&(n=u.getBestMask(b,g.bind(null,b,o))),u.applyMask(n,b),g(b,o,n),{modules:b,version:t,errorCorrectionLevel:o,maskPattern:n,segments:v}}(e,o,m,v)}},74598:function(e,t,o){let r=o(35043);function n(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let o=r.mod(t,this.genPoly),n=this.degree-o.length;if(n>0){let e=new Uint8Array(this.degree);return e.set(o,n),e}return o},e.exports=n},72118:function(e,t){let o="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(n,"g"),t.NUMERIC=RegExp(o,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let a=RegExp("^"+r+"$"),i=RegExp("^"+o+"$"),l=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return l.test(e)}},75896:function(e,t,o){let r=o(68891),n=o(57249),a=o(67215),i=o(85678),l=o(68522),s=o(72118),u=o(20236),c=o(43369);function d(e){return unescape(encodeURIComponent(e)).length}function p(e,t,o){let r;let n=[];for(;null!==(r=e.exec(o));)n.push({data:r[0],index:r.index,mode:t,length:r[0].length});return n}function v(e){let t,o;let n=p(s.NUMERIC,r.NUMERIC,e),a=p(s.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=p(s.BYTE,r.BYTE,e),o=p(s.KANJI,r.KANJI,e)):(t=p(s.BYTE_KANJI,r.BYTE,e),o=[]),n.concat(a,t,o).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return n.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return l.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function h(e,t){let o;let s=r.getBestModeForData(e);if((o=r.from(t,s))!==r.BYTE&&o.bit<s.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(o)+".\n Suggested mode is: "+r.toString(s));switch(o!==r.KANJI||u.isKanjiModeEnabled()||(o=r.BYTE),o){case r.NUMERIC:return new n(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new l(e);case r.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(h(t,null)):t.data&&e.push(h(t.data,t.mode)),e},[])},t.fromString=function(e,o){let n=function(e,t){let o={},n={start:{}},a=["start"];for(let i=0;i<e.length;i++){let l=e[i],s=[];for(let e=0;e<l.length;e++){let u=l[e],c=""+i+e;s.push(c),o[c]={node:u,lastCount:0},n[c]={};for(let e=0;e<a.length;e++){let i=a[e];o[i]&&o[i].node.mode===u.mode?(n[i][c]=f(o[i].lastCount+u.length,u.mode)-f(o[i].lastCount,u.mode),o[i].lastCount+=u.length):(o[i]&&(o[i].lastCount=u.length),n[i][c]=f(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}a=s}for(let e=0;e<a.length;e++)n[a[e]].end=0;return{map:n,table:o}}(function(e){let t=[];for(let o=0;o<e.length;o++){let n=e[o];switch(n.mode){case r.NUMERIC:t.push([n,{data:n.data,mode:r.ALPHANUMERIC,length:n.length},{data:n.data,mode:r.BYTE,length:n.length}]);break;case r.ALPHANUMERIC:t.push([n,{data:n.data,mode:r.BYTE,length:n.length}]);break;case r.KANJI:t.push([n,{data:n.data,mode:r.BYTE,length:d(n.data)}]);break;case r.BYTE:t.push([{data:n.data,mode:r.BYTE,length:d(n.data)}])}}return t}(v(e,u.isKanjiModeEnabled())),o),a=c.find_path(n.map,"start","end"),i=[];for(let e=1;e<a.length-1;e++)i.push(n.table[a[e]].node);return t.fromArray(i.reduce(function(e,t){let o=e.length-1>=0?e[e.length-1]:null;return o&&o.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(v(e,u.isKanjiModeEnabled()))}},20236:function(e,t){let o;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');o=e},t.isKanjiModeEnabled=function(){return void 0!==o},t.toSJIS=function(e){return o(e)}},57858:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},87579:function(e,t,o){let r=o(20236),n=o(52257),a=o(97883),i=o(68891),l=o(57858),s=r.getBCHDigit(7973);function u(e,t){return i.getCharCountIndicator(e,t)+4}t.from=function(e,t){return l.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,o){if(!l.isValid(e))throw Error("Invalid QR Code version");void 0===o&&(o=i.BYTE);let a=(r.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,t))*8;if(o===i.MIXED)return a;let s=a-u(o,e);switch(o){case i.NUMERIC:return Math.floor(s/10*3);case i.ALPHANUMERIC:return Math.floor(s/11*2);case i.KANJI:return Math.floor(s/13);case i.BYTE:default:return Math.floor(s/8)}},t.getBestVersionForData=function(e,o){let r;let n=a.from(o,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,o){for(let r=1;r<=40;r++)if(function(e,t){let o=0;return e.forEach(function(e){let r=u(e.mode,t);o+=r+e.getBitsLength()}),o}(e,r)<=t.getCapacity(r,o,i.MIXED))return r}(e,n);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,o,r){for(let n=1;n<=40;n++)if(o<=t.getCapacity(n,r,e))return n}(r.mode,r.getLength(),n)},t.getEncodedBits=function(e){if(!l.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-s>=0;)t^=7973<<r.getBCHDigit(t)-s;return e<<12|t}},35148:function(e,t,o){let r=o(82007);t.render=function(e,t,o){var n;let a=o,i=t;void 0!==a||t&&t.getContext||(a=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),a=r.getOptions(a);let l=r.getImageWidth(e.modules.size,a),s=i.getContext("2d"),u=s.createImageData(l,l);return r.qrToImageData(u.data,e,a),n=i,s.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=l,n.width=l,n.style.height=l+"px",n.style.width=l+"px",s.putImageData(u,0,0),i},t.renderToDataURL=function(e,o,r){let n=r;void 0!==n||o&&o.getContext||(n=o,o=void 0),n||(n={});let a=t.render(e,o,n),i=n.type||"image/png",l=n.rendererOpts||{};return a.toDataURL(i,l.quality)}},13782:function(e,t,o){let r=o(82007);function n(e,t){let o=e.a/255,r=t+'="'+e.hex+'"';return o<1?r+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':r}function a(e,t,o){let r=e+t;return void 0!==o&&(r+=" "+o),r}t.render=function(e,t,o){let i=r.getOptions(t),l=e.modules.size,s=e.modules.data,u=l+2*i.margin,c=i.color.light.a?"<path "+n(i.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+n(i.color.dark,"stroke")+' d="'+function(e,t,o){let r="",n=0,i=!1,l=0;for(let s=0;s<e.length;s++){let u=Math.floor(s%t),c=Math.floor(s/t);u||i||(i=!0),e[s]?(l++,s>0&&u>0&&e[s-1]||(r+=i?a("M",u+o,.5+c+o):a("m",n,0),n=0,i=!1),u+1<t&&e[s+1]||(r+=a("h",l),l=0)):n++}return r}(s,l,i.margin)+'"/>',p='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+('viewBox="0 0 '+u)+" "+u+'" shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof o&&o(null,p),p}},82007:function(e,t){function o(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let o=parseInt(t.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:r,scale:r?4:n,margin:t,color:{dark:o(e.color.dark||"#000000ff"),light:o(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,o){let r=t.getScale(e,o);return Math.floor((e+2*o.margin)*r)},t.qrToImageData=function(e,o,r){let n=o.modules.size,a=o.modules.data,i=t.getScale(n,r),l=Math.floor((n+2*r.margin)*i),s=r.margin*i,u=[r.color.light,r.color.dark];for(let t=0;t<l;t++)for(let o=0;o<l;o++){let c=(t*l+o)*4,d=r.color.light;t>=s&&o>=s&&t<l-s&&o<l-s&&(d=u[a[Math.floor((t-s)/i)*n+Math.floor((o-s)/i)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},26583:function(e,t,o){var r=o(18708);e.exports=function e(t,o,n){if(null==t)return{};var a,i,l,s,u,c,d=t[0]||{},p=1,v=t.length;for(n=n||[],"object"!=typeof d&&(d={});p<v;p++)if(null!=(u=t[p])){for(s in u)if(u.hasOwnProperty(s)&&"__proto__"!==s){if(a=d[s],d===(l=u[s]))continue;if(l&&(r.isPlainObject(l)||(i=r.isArray(l)))){i?(i=!1,c=a&&r.isArray(a)?a:[]):c=a&&r.isPlainObject(a)?a:{};var f=n.slice(0);f.push(s),d[s]=e([c,l],o,f)}else void 0!==l&&(null!=a&&"function"==typeof o&&o({target:d,copy:u,path:n,key:s}),d[s]=l)}}return d}},18708:function(e,t,o){var r;let n=o(27689),a=function(e,t){Object.keys(e||{}).forEach(o=>{t(e[o],o)})},i=function(e){return null==e||"object"!=typeof e?e:e instanceof Array?e.reduce((e,t,o)=>(e[o]=i(t),e),[]):e instanceof Object?Object.keys(e||{}).reduce((t,o)=>(t[o]=i(e[o]),t),{}):void 0},l=function(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)},s=function(e,t){return l(t)?Object.keys(t).every(o=>s(e[o],t[o])):e==t},u={transform:n.camelCaseTransformMerge};e.exports={each:a,forEach:a,forIn:a,keys:Object.keys,clone:function(e){return Object.assign(new e.constructor,e)},cloneDeep:i,extend:Object.assign,isString:function(e){return"string"==typeof e||e instanceof String},isArray:function(e){return Array.isArray(e)},isObject:l,isPlainObject:function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},isEmpty:function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length},filter:function(e,t){if("function"!=typeof t)throw"filter is not a function";return void 0===e?[]:e.filter(t)},reduce:function(e,t,o){return Object.keys(e||{}).reduce((o,r)=>t(o,e[r],r,e),o)},assign:function(){let e=Array.prototype.slice.call(arguments);return e.unshift({}),Object.assign(...e)},upperFirst:function(e){return e?e[0].toUpperCase()+e.substr(1):""},camelCase:(r=n.camelCase,(e,t)=>r(e,Object.assign({},u,void 0,t))),snakeCase:n.snakeCase,kebabCase:n.paramCase,pull:function(e,...t){var o=new Set(t);for(let t=e.length-1;t>=0;t--)o.has(e[t])&&e.splice(t,1)},matches:function(e){let t=i(e);return e=>s(e,t)},unique:function(e){return[...new Set(e)]}}},67744:function(e,t,o){var r=o(18708);e.exports=function e(t,o){for(var n in o=o||[],t)t.hasOwnProperty(n)&&(r.isPlainObject(t[n])&&"value"in t[n]?o.push(t[n]):r.isPlainObject(t[n])&&e(t[n],o));return o}},79900:function(e,t,o){let r=o(35194);e.exports=function(e={}){let t=Object.assign({},r,e);return RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")}},35194:function(e){e.exports={opening_character:"{",closing_character:"}",separator:"."}},84314:function(e,t,o){let r=o(79900);e.exports=function e(t,o={}){let n=o instanceof RegExp?o:r(o);if("string"==typeof t)return n.test(t);if("object"==typeof t){let r=!1;for(let n in t)if(t.hasOwnProperty(n)&&e(t[n],o)){r=!0;break}return r}return!1}},84430:function(e,t,o){"use strict";o.d(t,{Dv:function(){return s},I:function(){return l},Zl:function(){return i}});var r=o(37753),n=o(81417);let a=async()=>{throw new r.l({name:n.MA,message:"The autoSignIn flow has not started, or has been cancelled/completed.",recoverySuggestion:"Please try to use the signIn API or log out before starting a new autoSignIn flow."})},i=a;function l(e){i=e}function s(){i=a}},65841:function(e,t,o){"use strict";o.d(t,{f:function(){return p}});var r=o(69826),n=o(33853),a=o(38147),i=o(64914),l=o(38633),s=o(68707),u=o(49467),c=o(62291),d=o(57082);async function p(e){let t=r.d.getConfig().Auth?.Cognito;(0,n.FG)(t);let{userPoolClientId:o,userPoolId:p}=t,{username:v,newPassword:f}=e;(0,l.n)(!!v,i.X.EmptyConfirmResetPasswordUsername),(0,l.n)(!!f,i.X.EmptyConfirmResetPasswordNewPassword);let h=e.confirmationCode;(0,l.n)(!!h,i.X.EmptyConfirmResetPasswordConfirmationCode);let g=e.options?.clientMetadata,m=(0,d.u)({username:v,userPoolId:p,userPoolClientId:o});await (0,s.fI)({region:(0,u.u)(t.userPoolId),userAgentValue:(0,c.W)(a.g4.ConfirmResetPassword)},{Username:v,ConfirmationCode:h,Password:f,ClientMetadata:g,ClientId:t.userPoolClientId,UserContextData:m})}},26011:function(e,t,o){"use strict";o.d(t,{t:function(){return h}});var r=o(69942),n=o(37753),a=o(29404),i=o(10265),l=o(38633),s=o(64914),u=o(40848),c=o(69826),d=o(33853),p=o(21541),v=o(29723),f=o(31567);async function h(e){let{challengeResponse:t,options:o}=e,{username:h,challengeName:g,signInSession:m,signInDetails:y}=r.signInStore.getState(),b=c.d.getConfig().Auth?.Cognito;(0,d.FG)(b);let E=o?.clientMetadata;if((0,l.n)(!!t,s.X.EmptyChallengeResponse),!h||!g||!m)throw new n.l({name:u.kq.SignInException,message:`
			An error occurred during the sign in process. 
			
			This most likely occurred due to:
			1. signIn was not called before confirmSignIn.
			2. signIn threw an exception.
			3. page was refreshed during the sign in flow.
			`,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the page is not refreshed until the sign in process is done."});try{let{Session:e,ChallengeName:n,AuthenticationResult:i,ChallengeParameters:l}=await (0,a.Fu)(h,g,m,t,b,v.C,E,o);if((0,r.k)({signInSession:e,username:h,challengeName:n,signInDetails:y}),i)return(0,r.P)(),await (0,p.x)({username:h,...i,NewDeviceMetadata:await (0,a.ud)(b.userPoolId,i.NewDeviceMetadata,i.AccessToken),signInDetails:y}),await (0,f.O)(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return(0,a.cP)({challengeName:n,challengeParameters:l})}catch(t){(0,i.R)(t);let e=(0,a.yM)(t.name);if(e)return e;throw t}}},16609:function(e,t,o){"use strict";o.d(t,{_:function(){return f}});var r=o(69826),n=o(33853),a=o(38147),i=o(79188),l=o(38633),s=o(64914),u=o(68707),c=o(49467),d=o(46458),p=o(62291),v=o(57082);async function f(e){let{username:t,confirmationCode:o,options:f}=e,h=r.d.getConfig().Auth?.Cognito;(0,n.FG)(h);let{userPoolId:g,userPoolClientId:m}=h,y=f?.clientMetadata;(0,l.n)(!!t,s.X.EmptyConfirmSignUpUsername),(0,l.n)(!!o,s.X.EmptyConfirmSignUpCode);let b=(0,v.u)({username:t,userPoolId:g,userPoolClientId:m});return await (0,u._f)({region:(0,c.u)(h.userPoolId),userAgentValue:(0,p.W)(a.g4.ConfirmSignUp)},{Username:t,ConfirmationCode:o,ClientMetadata:y,ForceAliasCreation:f?.forceAliasCreation,ClientId:h.userPoolClientId,UserContextData:b}),new Promise((e,o)=>{try{let o={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}};if(!(0,d.Fb)()||!(0,d.mr)(t))return e(o);let r=i.qC.listen("auth-internal",({payload:t})=>{"autoSignIn"===t.event&&(e({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),(0,d.pb)(!1),r())});i.qC.dispatch("auth-internal",{event:"confirmSignUp",data:o})}catch(e){o(e)}})}},32205:function(e,t,o){"use strict";o.d(t,{t:function(){return l}});var r=o(69826),n=o(33853),a=o(93822);let i=async e=>{let t=e.getConfig().Auth?.Cognito;(0,n.FG)(t);let o=await e.Auth.getTokens({forceRefresh:!1});(0,a.CA)(o);let{"cognito:username":r,sub:i}=o.idToken?.payload??{},l={username:r,userId:i},s=o?.signInDetails;return s&&(l.signInDetails=s),l},l=async()=>i(r.d)},22289:function(e,t,o){"use strict";o.d(t,{c:function(){return p}});var r=o(69826),n=o(33853),a=o(38147),i=o(64914),l=o(38633),s=o(68707),u=o(49467),c=o(62291),d=o(57082);async function p(e){let t=e.username;(0,l.n)(!!t,i.X.EmptyResetPasswordUsername);let o=r.d.getConfig().Auth?.Cognito;(0,n.FG)(o);let{userPoolClientId:p,userPoolId:v}=o,f=e.options?.clientMetadata,h=(0,d.u)({username:t,userPoolId:v,userPoolClientId:p}),g=(await (0,s.gF)({region:(0,u.u)(o.userPoolId),userAgentValue:(0,c.W)(a.g4.ResetPassword)},{Username:t,ClientMetadata:f,ClientId:o.userPoolClientId,UserContextData:h})).CodeDeliveryDetails;return{isPasswordReset:!1,nextStep:{resetPasswordStep:"CONFIRM_RESET_PASSWORD_WITH_CODE",codeDeliveryDetails:{deliveryMedium:g?.DeliveryMedium,destination:g?.Destination,attributeName:g?.AttributeName}}}}},75365:function(e,t,o){"use strict";o.d(t,{z:function(){return m}});var r=o(64914),n=o(38633),a=o(10265),i=o(29404),l=o(69826),s=o(33853),u=o(69942),c=o(21541),d=o(29723),p=o(31567);async function v(e){let t=l.d.getConfig().Auth?.Cognito;(0,s.FG)(t);let{username:o,password:v,options:f}=e,h={loginId:o,authFlowType:"CUSTOM_WITHOUT_SRP"},g=f?.clientMetadata;(0,n.n)(!!o,r.X.EmptySignInUsername),(0,n.n)(!v,r.X.CustomAuthSignInPassword);try{let{ChallengeName:e,ChallengeParameters:r,AuthenticationResult:n,Session:a}=await (0,i.H2)(i.pB,[o,g,t,d.C],o,d.C),l=(0,i.QS)(o);if((0,u.k)({signInSession:a,username:l,challengeName:e,signInDetails:h}),n)return(0,u.P)(),await (0,c.x)({username:l,...n,NewDeviceMetadata:await (0,i.ud)(t.userPoolId,n.NewDeviceMetadata,n.AccessToken),signInDetails:h}),await (0,p.O)(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return(0,i.cP)({challengeName:e,challengeParameters:r})}catch(t){(0,u.P)(),(0,a.R)(t);let e=(0,i.yM)(t.name);if(e)return e;throw t}}async function f(e){let{username:t,password:o,options:v}=e,f={loginId:t,authFlowType:"CUSTOM_WITH_SRP"},h=l.d.getConfig().Auth?.Cognito;(0,s.FG)(h);let g=v?.clientMetadata;(0,n.n)(!!t,r.X.EmptySignInUsername),(0,n.n)(!!o,r.X.EmptySignInPassword);try{let{ChallengeName:e,ChallengeParameters:r,AuthenticationResult:n,Session:a}=await (0,i.Mf)(t,o,g,h,d.C),l=(0,i.QS)(t);if((0,u.k)({signInSession:a,username:l,challengeName:e,signInDetails:f}),n)return await (0,c.x)({username:l,...n,NewDeviceMetadata:await (0,i.ud)(h.userPoolId,n.NewDeviceMetadata,n.AccessToken),signInDetails:f}),(0,u.P)(),await (0,p.O)(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return(0,i.cP)({challengeName:e,challengeParameters:r})}catch(t){(0,u.P)(),(0,a.R)(t);let e=(0,i.yM)(t.name);if(e)return e;throw t}}async function h(e){let{username:t,password:o}=e,v=l.d.getConfig().Auth?.Cognito,f={loginId:t,authFlowType:"USER_SRP_AUTH"};(0,s.FG)(v);let h=e.options?.clientMetadata;(0,n.n)(!!t,r.X.EmptySignInUsername),(0,n.n)(!!o,r.X.EmptySignInPassword);try{let{ChallengeName:e,ChallengeParameters:r,AuthenticationResult:n,Session:a}=await (0,i.U)(t,o,h,v,d.C),l=(0,i.QS)(t);if((0,u.k)({signInSession:a,username:l,challengeName:e,signInDetails:f}),n)return(0,u.P)(),await (0,c.x)({username:l,...n,NewDeviceMetadata:await (0,i.ud)(v.userPoolId,n.NewDeviceMetadata,n.AccessToken),signInDetails:f}),await (0,p.O)(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return(0,i.cP)({challengeName:e,challengeParameters:r})}catch(t){(0,u.P)(),(0,a.R)(t);let e=(0,i.yM)(t.name);if(e)return e;throw t}}async function g(e){let{username:t,password:o,options:v}=e,f=l.d.getConfig().Auth?.Cognito,h={loginId:t,authFlowType:"USER_PASSWORD_AUTH"};(0,s.FG)(f);let g=v?.clientMetadata;(0,n.n)(!!t,r.X.EmptySignInUsername),(0,n.n)(!!o,r.X.EmptySignInPassword);try{let{ChallengeName:e,ChallengeParameters:r,AuthenticationResult:n,Session:a}=await (0,i.H2)(i.x6,[t,o,g,f,d.C],t,d.C),l=(0,i.QS)(t);if((0,u.k)({signInSession:a,username:l,challengeName:e,signInDetails:h}),n)return await (0,c.x)({...n,username:l,NewDeviceMetadata:await (0,i.ud)(f.userPoolId,n.NewDeviceMetadata,n.AccessToken),signInDetails:h}),(0,u.P)(),await (0,p.O)(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return(0,i.cP)({challengeName:e,challengeParameters:r})}catch(t){(0,u.P)(),(0,a.R)(t);let e=(0,i.yM)(t.name);if(e)return e;throw t}}async function m(e){let t=e.options?.authFlowType;switch(await (0,i.OP)(),t){case"USER_SRP_AUTH":default:return h(e);case"USER_PASSWORD_AUTH":return g(e);case"CUSTOM_WITHOUT_SRP":return v(e);case"CUSTOM_WITH_SRP":return f(e)}}},83826:function(e,t,o){"use strict";o.d(t,{y:function(){return f}});var r=o(69826),n=o(33853),a=o(38147),i=o(68707),l=o(38633),s=o(64914),u=o(49467),c=o(77068),d=o(46458),p=o(84430),v=o(62291);async function f(e){let{username:t,password:o,options:f}=e,h=r.d.getConfig().Auth?.Cognito,g=h?.signUpVerificationMethod??"code",{clientMetadata:m,validationData:y,autoSignIn:b}=e.options??{};(0,n.FG)(h),(0,l.n)(!!t,s.X.EmptySignUpUsername),(0,l.n)(!!o,s.X.EmptySignUpPassword);let E="boolean"!=typeof b?b:void 0,x={username:t,options:E};E?.authFlowType!=="CUSTOM_WITHOUT_SRP"&&(x.password=o),(E||!0===b)&&((0,d.Qc)(t),(0,d.pb)(!0));let C=await (0,i.y1)({region:(0,u.u)(h.userPoolId),userAgentValue:(0,v.W)(a.g4.SignUp)},{Username:t,Password:o,UserAttributes:f?.userAttributes&&(0,c.J)(f?.userAttributes),ClientMetadata:m,ValidationData:y&&(0,c.J)(y),ClientId:h.userPoolClientId}),{UserSub:S,CodeDeliveryDetails:w}=C;if((0,d.gX)(C)&&(0,d.Fb)())return(0,p.I)((0,d.xt)(x)),{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}};if((0,d.gX)(C)&&!(0,d.Fb)())return{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}};if(!(0,d.gX)(C)&&(0,d.Fb)()&&"code"===g)(0,d.M6)(x);else if(!(0,d.gX)(C)&&(0,d.Fb)()&&"link"===g)return(0,p.I)((0,d.m3)(x)),{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:{deliveryMedium:w?.DeliveryMedium,destination:w?.Destination,attributeName:w?.AttributeName}},userId:S};return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:{deliveryMedium:w?.DeliveryMedium,destination:w?.Destination,attributeName:w?.AttributeName}},userId:S}}},21541:function(e,t,o){"use strict";o.d(t,{x:function(){return i}});var r=o(33853),n=o(35507),a=o(29723);async function i(e){if(e.AccessToken){let t,o,n;let i=(0,r.xp)(e.AccessToken),l=1e3*(i.payload.iat||0),s=new Date().getTime();e.RefreshToken&&(o=e.RefreshToken),e.IdToken&&(t=(0,r.xp)(e.IdToken)),e?.NewDeviceMetadata&&(n=e.NewDeviceMetadata);let u={accessToken:i,idToken:t,refreshToken:o,clockDrift:l>0?l-s:0,deviceMetadata:n,username:e.username};e?.signInDetails&&(u.signInDetails=e.signInDetails),await a.C.setTokens({tokens:u})}else throw new n._({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}},31567:function(e,t,o){"use strict";o.d(t,{O:function(){return l}});var r=o(79188),n=o(32205),a=o(81417),i=o(37753);let l=async()=>{try{r.Xb.dispatch("auth",{event:"signedIn",data:await (0,n.t)()},"Auth",r.SQ)}catch(e){if(e.name===a.Jg)throw new i.l({name:a.sX,message:"Unable to get user session following successful sign-in.",recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."});throw e}}},29404:function(e,t,o){"use strict";let r,n,a;o.d(t,{OP:function(){return ts},QS:function(){return tp},ud:function(){return tu},cP:function(){return to},yM:function(){return tr},Fu:function(){return tn},pB:function(){return e8},Mf:function(){return e9},x6:function(){return e4},U:function(){return e6},H2:function(){return tc}});var i,l,s,u,c,d,p,v,f,h,g,m,y,b,E,x,C,S,w,I,_,A,R,k,N,T,F,P,U,D,O,M,L,B,z,W,j,H,V,G,q,$,K,Z,Y,X,J,Q,ee=o(69826),et=o(38147),eo=o(33853),er=o(66070),en=o(24497);function ea(e,t){null!=e&&this.fromString(e,t)}function ei(){return new ea(null,null)}let el="undefined"!=typeof navigator;el&&"Microsoft Internet Explorer"===navigator.appName?(ea.prototype.am=function(e,t,o,r,n,a){let i=32767&t,l=t>>15;for(;--a>=0;){let t=32767&this[e],a=this[e++]>>15,s=l*t+a*i;n=((t=i*t+((32767&s)<<15)+o[r]+(1073741823&n))>>>30)+(s>>>15)+l*a+(n>>>30),o[r++]=1073741823&t}return n},r=30):el&&"Netscape"!==navigator.appName?(ea.prototype.am=function(e,t,o,r,n,a){for(;--a>=0;){let a=t*this[e++]+o[r]+n;n=Math.floor(a/67108864),o[r++]=67108863&a}return n},r=26):(ea.prototype.am=function(e,t,o,r,n,a){let i=16383&t,l=t>>14;for(;--a>=0;){let t=16383&this[e],a=this[e++]>>14,s=l*t+a*i;n=((t=i*t+((16383&s)<<14)+o[r]+n)>>28)+(s>>14)+l*a,o[r++]=268435455&t}return n},r=28),ea.prototype.DB=r,ea.prototype.DM=(1<<r)-1,ea.prototype.DV=1<<r,ea.prototype.FV=4503599627370496,ea.prototype.F1=52-r,ea.prototype.F2=2*r-52;let es=[];for(a=0,n=48;a<=9;++a)es[n++]=a;for(a=10,n=97;a<36;++a)es[n++]=a;for(a=10,n=65;a<36;++a)es[n++]=a;function eu(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function ec(e){var t=ei();return t.fromInt(e),t}function ed(e){var t,o=1;return 0!=(t=e>>>16)&&(e=t,o+=16),0!=(t=e>>8)&&(e=t,o+=8),0!=(t=e>>4)&&(e=t,o+=4),0!=(t=e>>2)&&(e=t,o+=2),0!=(t=e>>1)&&(e=t,o+=1),o}function ep(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}ep.prototype.convert=function(e){var t=ei();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ea.ZERO)>0&&this.m.subTo(t,t),t},ep.prototype.revert=function(e){var t=ei();return e.copyTo(t),this.reduce(t),t},ep.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var o=32767&e[t],r=o*this.mpl+((o*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(o=t+this.m.t,e[o]+=this.m.am(0,r,e,t,0,this.m.t);e[o]>=e.DV;)e[o]-=e.DV,e[++o]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},ep.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o),this.reduce(o)},ep.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},ea.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},ea.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},ea.prototype.fromString=function(e,t){let o;if(16===t)o=4;else if(8===t)o=3;else if(2===t)o=1;else if(32===t)o=5;else if(4===t)o=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=e.length,n=!1,a=0;for(;--r>=0;){let t=function(e,t){var o=es[e.charCodeAt(t)];return null==o?-1:o}(e,r);if(t<0){"-"===e.charAt(r)&&(n=!0);continue}n=!1,0===a?this[this.t++]=t:a+o>this.DB?(this[this.t-1]|=(t&(1<<this.DB-a)-1)<<a,this[this.t++]=t>>this.DB-a):this[this.t-1]|=t<<a,(a+=o)>=this.DB&&(a-=this.DB)}this.clamp(),n&&ea.ZERO.subTo(this,this)},ea.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},ea.prototype.dlShiftTo=function(e,t){let o;for(o=this.t-1;o>=0;--o)t[o+e]=this[o];for(o=e-1;o>=0;--o)t[o]=0;t.t=this.t+e,t.s=this.s},ea.prototype.drShiftTo=function(e,t){for(let o=e;o<this.t;++o)t[o-e]=this[o];t.t=Math.max(this.t-e,0),t.s=this.s},ea.prototype.lShiftTo=function(e,t){let o=e%this.DB,r=this.DB-o,n=(1<<r)-1,a=Math.floor(e/this.DB),i=this.s<<o&this.DM,l;for(l=this.t-1;l>=0;--l)t[l+a+1]=this[l]>>r|i,i=(this[l]&n)<<o;for(l=a-1;l>=0;--l)t[l]=0;t[a]=i,t.t=this.t+a+1,t.s=this.s,t.clamp()},ea.prototype.rShiftTo=function(e,t){t.s=this.s;let o=Math.floor(e/this.DB);if(o>=this.t){t.t=0;return}let r=e%this.DB,n=this.DB-r,a=(1<<r)-1;t[0]=this[o]>>r;for(let e=o+1;e<this.t;++e)t[e-o-1]|=(this[e]&a)<<n,t[e-o]=this[e]>>r;r>0&&(t[this.t-o-1]|=(this.s&a)<<n),t.t=this.t-o,t.clamp()},ea.prototype.subTo=function(e,t){let o=0,r=0,n=Math.min(e.t,this.t);for(;o<n;)r+=this[o]-e[o],t[o++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<e.t;)r-=e[o],t[o++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[o++]=this.DV+r:r>0&&(t[o++]=r),t.t=o,t.clamp()},ea.prototype.multiplyTo=function(e,t){let o=this.abs(),r=e.abs(),n=o.t;for(t.t=n+r.t;--n>=0;)t[n]=0;for(n=0;n<r.t;++n)t[n+o.t]=o.am(0,r[n],t,n,0,o.t);t.s=0,t.clamp(),this.s!==e.s&&ea.ZERO.subTo(t,t)},ea.prototype.squareTo=function(e){for(var t=this.abs(),o=e.t=2*t.t;--o>=0;)e[o]=0;for(o=0;o<t.t-1;++o){var r=t.am(o,t[o],e,2*o,0,1);(e[o+t.t]+=t.am(o+1,2*t[o],e,2*o+1,r,t.t-o-1))>=t.DV&&(e[o+t.t]-=t.DV,e[o+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(o,t[o],e,2*o,0,1)),e.s=0,e.clamp()},ea.prototype.divRemTo=function(e,t,o){var r=e.abs();if(r.t<=0)return;var n=this.abs();if(n.t<r.t){null!=t&&t.fromInt(0),null!=o&&this.copyTo(o);return}null===o&&(o=ei());var a=ei(),i=this.s,l=e.s,s=this.DB-ed(r[r.t-1]);s>0?(r.lShiftTo(s,a),n.lShiftTo(s,o)):(r.copyTo(a),n.copyTo(o));let u=a.t,c=a[u-1];if(0===c)return;let d=c*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),p=this.FV/d,v=(1<<this.F1)/d,f=1<<this.F2,h=o.t,g=h-u,m=null===t?ei():t;for(a.dlShiftTo(g,m),o.compareTo(m)>=0&&(o[o.t++]=1,o.subTo(m,o)),ea.ONE.dlShiftTo(u,m),m.subTo(a,a);a.t<u;)a[a.t++]=0;for(;--g>=0;){var y=o[--h]===c?this.DM:Math.floor(o[h]*p+(o[h-1]+f)*v);if((o[h]+=a.am(0,y,o,g,0,u))<y)for(a.dlShiftTo(g,m),o.subTo(m,o);o[h]<--y;)o.subTo(m,o)}null!==t&&(o.drShiftTo(u,t),i!==l&&ea.ZERO.subTo(t,t)),o.t=u,o.clamp(),s>0&&o.rShiftTo(s,o),i<0&&ea.ZERO.subTo(o,o)},ea.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((1&e)==0)return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},ea.prototype.addTo=function(e,t){let o=0,r=0,n=Math.min(e.t,this.t);for(;o<n;)r+=this[o]+e[o],t[o++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<e.t;)r+=e[o],t[o++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[o++]=r:r<-1&&(t[o++]=this.DV+r),t.t=o,t.clamp()},ea.prototype.toString=function(e){var t;if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8===e)t=3;else if(2===e)t=1;else if(32===e)t=5;else if(4===e)t=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");let o=(1<<t)-1,r,n=!1,a="",i=this.t,l=this.DB-i*this.DB%t;if(i-- >0)for(l<this.DB&&(r=this[i]>>l)>0&&(n=!0,a=eu(r));i>=0;)l<t?r=(this[i]&(1<<l)-1)<<t-l|this[--i]>>(l+=this.DB-t):(r=this[i]>>(l-=t)&o,l<=0&&(l+=this.DB,--i)),r>0&&(n=!0),n&&(a+=eu(r));return n?a:"0"},ea.prototype.negate=function(){var e=ei();return ea.ZERO.subTo(this,e),e},ea.prototype.abs=function(){return this.s<0?this.negate():this},ea.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var o=this.t;if(0!=(t=o-e.t))return this.s<0?-t:t;for(;--o>=0;)if(0!=(t=this[o]-e[o]))return t;return 0},ea.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ed(this[this.t-1]^this.s&this.DM)},ea.prototype.mod=function(e){var t=ei();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(ea.ZERO)>0&&e.subTo(t,t),t},ea.prototype.equals=function(e){return 0===this.compareTo(e)},ea.prototype.add=function(e){var t=ei();return this.addTo(e,t),t},ea.prototype.subtract=function(e){var t=ei();return this.subTo(e,t),t},ea.prototype.multiply=function(e){var t=ei();return this.multiplyTo(e,t),t},ea.prototype.divide=function(e){var t=ei();return this.divRemTo(e,t,null),t},ea.prototype.modPow=function(e,t,o){let r=e.bitLength(),n,a=ec(1),i=new ep(t);if(r<=0)return a;let l=[],s=3,u=(n=r<18?1:r<48?3:r<144?4:r<768?5:6)-1,c=(1<<n)-1;if(l[1]=i.convert(this),n>1){let e=ei();for(i.sqrTo(l[1],e);s<=c;)l[s]=ei(),i.mulTo(e,l[s-2],l[s]),s+=2}let d=e.t-1,p,v=!0,f=ei(),h;for(r=ed(e[d])-1;d>=0;){for(r>=u?p=e[d]>>r-u&c:(p=(e[d]&(1<<r+1)-1)<<u-r,d>0&&(p|=e[d-1]>>this.DB+r-u)),s=n;(1&p)==0;)p>>=1,--s;if((r-=s)<0&&(r+=this.DB,--d),v)l[p].copyTo(a),v=!1;else{for(;s>1;)i.sqrTo(a,f),i.sqrTo(f,a),s-=2;s>0?i.sqrTo(a,f):(h=a,a=f,f=h),i.mulTo(f,l[p],a)}for(;d>=0&&(e[d]&1<<r)==0;)i.sqrTo(a,f),h=a,a=f,f=h,--r<0&&(r=this.DB-1,--d)}var g=i.revert(a);return o(null,g),g},ea.ZERO=ec(0),ea.ONE=ec(1);var ev=o(37753);let ef={convert:e=>new TextEncoder().encode(e)},eh=async({a:e,g:t,k:o,x:r,B:n,N:a,U:i})=>new Promise((l,s)=>{t.modPow(r,a,(t,u)=>{if(t){s(t);return}n.subtract(o.multiply(u)).modPow(e.add(i.multiply(r)),a,(e,t)=>{if(e){s(e);return}l(t.mod(a))})})}),eg={},em={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),eg[e]=t,em[t]=e}let ey=e=>{if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2){let r=e.slice(o,o+2).toLowerCase();if(r in em)t[o/2]=em[r];else throw Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t};var eb=o(50146);let eE=e=>{let t="";for(let o=0;o<e.byteLength;o++)t+=eg[e[o]];return t},ex=e=>{let t=new eb.f;t.update(e);let o=eE(t.digestSync());return Array(64-o.length).join("0")+o},eC=e=>ex(ey(e)),eS=/^[89a-f]/i,ew=e=>{if(!(e instanceof ea))throw Error("Not a BigInteger");let t=0>e.compareTo(ea.ZERO),o=e.abs().toString(16);return o=o.length%2!=0?`0${o}`:o,o=eS.test(o)?`00${o}`:o,t&&(o=new ea(o.split("").map(e=>{let t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)}).join(""),16).add(ea.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(o=o.substring(2)),o},eI=({A:e,B:t})=>{let o=new ea(eC(ew(e)+ew(t)),16);if(o.equals(ea.ZERO))throw Error("U cannot be zero.");return o},e_=(e,t,o)=>{let r=new eb.f(t);r.update(e);let n=r.digestSync(),a=new eb.f(n);return a.update(o),a.digestSync().slice(0,16)};var eA=o(12307);class eR{constructor(e,t){this.words=[];let o=e;o=this.words=o||[],void 0!==t?this.sigBytes=t:this.sigBytes=4*o.length}random(e){let t=[];for(let o=0;o<e;o+=4)t.push((0,eA.MX)().getRandomValues(new Uint32Array(1))[0]);return new eR(t,e)}toString(){return function(e){let{words:t}=e,{sigBytes:o}=e,r=[];for(let e=0;e<o;e++){let o=t[e>>>2]>>>24-e%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)}}let ek=e=>ey(new eR().random(e).toString()),eN=()=>en.u.convert(ek(40));class eT{constructor({userPoolName:e,a:t,g:o,A:r,N:n}){this.encoder=ef,this.userPoolName=e,this.a=t,this.g=o,this.A=r,this.N=n,this.k=new ea(eC(`${ew(n)}${ew(o)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new ev.l({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new ev.l({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new ev.l({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(e,t){this.randomPassword=eN();let o=ex(`${e}${t}:${this.randomPassword}`),r=eE(ek(16));return this.saltToHashDevices=ew(new ea(r,16)),new Promise((e,t)=>{this.g.modPow(new ea(eC(this.saltToHashDevices+o),16),this.N,(o,r)=>{if(o){t(o);return}this.verifierDevices=ew(r),e()})})}async getPasswordAuthenticationKey({username:e,password:t,serverBValue:o,salt:r}){if(o.mod(this.N).equals(ea.ZERO))throw Error("B cannot be zero.");let n=eI({A:this.A,B:o}),a=ex(`${this.userPoolName}${e}:${t}`),i=new ea(eC(ew(r)+a),16),l=await eh({a:this.a,g:this.g,k:this.k,x:i,B:o,N:this.N,U:n}),s=this.encoder.convert("Caldera Derived Key"),u=this.encoder.convert("\x01"),c=new Uint8Array(s.byteLength+u.byteLength);return c.set(s,0),c.set(u,s.byteLength),e_(ey(ew(l)),ey(ew(n)),c)}}let eF=async({a:e,g:t,N:o})=>new Promise((r,n)=>{t.modPow(e,o,(e,t)=>{if(e){n(e);return}if(t.mod(o).equals(ea.ZERO)){n(Error("Illegal parameter. A mod N cannot be 0."));return}r(t)})}),eP=async e=>{let t=new ea("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),o=new ea("2",16),r=eU(),n=await eF({a:r,g:o,N:t});return new eT({userPoolName:e,a:r,g:o,A:n,N:t})},eU=()=>new ea(eE(ek(128)),16),eD=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eO=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eM=()=>{let e=new Date,t=eO[e.getUTCDay()],o=eD[e.getUTCMonth()],r=e.getUTCDate(),n=e.getUTCHours();n<10&&(n=`0${n}`);let a=e.getUTCMinutes();a<10&&(a=`0${a}`);let i=e.getUTCSeconds();i<10&&(i=`0${i}`);let l=e.getUTCFullYear();return`${t} ${o} ${r} ${n}:${a}:${i} UTC ${l}`};var eL=o(64494);let eB=({userPoolName:e,username:t,challengeParameters:o,dateNow:r,hkdf:n})=>{let a=ef.convert(e),i=ef.convert(t),l=ez(o.SECRET_BLOCK),s=ef.convert(r),u=new Uint8Array(a.byteLength+i.byteLength+l.byteLength+s.byteLength);u.set(a,0),u.set(i,a.byteLength),u.set(l,a.byteLength+i.byteLength),u.set(s,a.byteLength+i.byteLength+l.byteLength);let c=new eb.f(n);c.update(u);let d=c.digestSync();return en.u.convert(d)},ez=e=>{let t="=".repeat((4-e.length%4)%4),o=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=eL.$.convert(o),n=new Uint8Array(r.length);for(let e=0;e<r.length;++e)n[e]=r.charCodeAt(e);return n};(i=N||(N={})).ConcurrentModificationException="ConcurrentModificationException",i.ForbiddenException="ForbiddenException",i.InternalErrorException="InternalErrorException",i.InvalidParameterException="InvalidParameterException",i.NotAuthorizedException="NotAuthorizedException",i.ResourceNotFoundException="ResourceNotFoundException",i.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",(l=T||(T={})).ForbiddenException="ForbiddenException",l.InternalErrorException="InternalErrorException",l.InvalidParameterException="InvalidParameterException",l.InvalidPasswordException="InvalidPasswordException",l.LimitExceededException="LimitExceededException",l.NotAuthorizedException="NotAuthorizedException",l.PasswordResetRequiredException="PasswordResetRequiredException",l.ResourceNotFoundException="ResourceNotFoundException",l.TooManyRequestsException="TooManyRequestsException",l.UserNotConfirmedException="UserNotConfirmedException",l.UserNotFoundException="UserNotFoundException",(s=F||(F={})).ForbiddenException="ForbiddenException",s.InternalErrorException="InternalErrorException",s.InvalidLambdaResponseException="InvalidLambdaResponseException",s.InvalidParameterException="InvalidParameterException",s.InvalidPasswordException="InvalidPasswordException",s.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",s.NotAuthorizedException="NotAuthorizedException",s.PasswordResetRequiredException="PasswordResetRequiredException",s.ResourceNotFoundException="ResourceNotFoundException",s.TooManyRequestsException="TooManyRequestsException",s.UsernameExistsException="UsernameExistsException",s.UserNotConfirmedException="UserNotConfirmedException",s.UserNotFoundException="UserNotFoundException",(u=P||(P={})).CodeMismatchException="CodeMismatchException",u.ExpiredCodeException="ExpiredCodeException",u.ForbiddenException="ForbiddenException",u.InternalErrorException="InternalErrorException",u.InvalidLambdaResponseException="InvalidLambdaResponseException",u.InvalidParameterException="InvalidParameterException",u.InvalidPasswordException="InvalidPasswordException",u.LimitExceededException="LimitExceededException",u.NotAuthorizedException="NotAuthorizedException",u.ResourceNotFoundException="ResourceNotFoundException",u.TooManyFailedAttemptsException="TooManyFailedAttemptsException",u.TooManyRequestsException="TooManyRequestsException",u.UnexpectedLambdaException="UnexpectedLambdaException",u.UserLambdaValidationException="UserLambdaValidationException",u.UserNotConfirmedException="UserNotConfirmedException",u.UserNotFoundException="UserNotFoundException",(c=U||(U={})).AliasExistsException="AliasExistsException",c.CodeMismatchException="CodeMismatchException",c.ExpiredCodeException="ExpiredCodeException",c.ForbiddenException="ForbiddenException",c.InternalErrorException="InternalErrorException",c.InvalidLambdaResponseException="InvalidLambdaResponseException",c.InvalidParameterException="InvalidParameterException",c.LimitExceededException="LimitExceededException",c.NotAuthorizedException="NotAuthorizedException",c.ResourceNotFoundException="ResourceNotFoundException",c.TooManyFailedAttemptsException="TooManyFailedAttemptsException",c.TooManyRequestsException="TooManyRequestsException",c.UnexpectedLambdaException="UnexpectedLambdaException",c.UserLambdaValidationException="UserLambdaValidationException",c.UserNotFoundException="UserNotFoundException",(d=D||(D={})).ForbiddenException="ForbiddenException",d.InternalErrorException="InternalErrorException",d.InvalidParameterException="InvalidParameterException",d.NotAuthorizedException="NotAuthorizedException",d.PasswordResetRequiredException="PasswordResetRequiredException",d.ResourceNotFoundException="ResourceNotFoundException",d.TooManyRequestsException="TooManyRequestsException",d.UserNotConfirmedException="UserNotConfirmedException",d.UserNotFoundException="UserNotFoundException",(p=O||(O={})).ForbiddenException="ForbiddenException",p.InternalErrorException="InternalErrorException",p.InvalidParameterException="InvalidParameterException",p.NotAuthorizedException="NotAuthorizedException",p.PasswordResetRequiredException="PasswordResetRequiredException",p.ResourceNotFoundException="ResourceNotFoundException",p.TooManyRequestsException="TooManyRequestsException",p.UserNotConfirmedException="UserNotConfirmedException",p.UserNotFoundException="UserNotFoundException",(v=M||(M={})).ForbiddenException="ForbiddenException",v.InternalErrorException="InternalErrorException",v.InvalidParameterException="InvalidParameterException",v.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",v.NotAuthorizedException="NotAuthorizedException",v.PasswordResetRequiredException="PasswordResetRequiredException",v.ResourceNotFoundException="ResourceNotFoundException",v.TooManyRequestsException="TooManyRequestsException",v.UserNotConfirmedException="UserNotConfirmedException",v.UserNotFoundException="UserNotFoundException",(f=L||(L={})).CodeDeliveryFailureException="CodeDeliveryFailureException",f.ForbiddenException="ForbiddenException",f.InternalErrorException="InternalErrorException",f.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",f.InvalidLambdaResponseException="InvalidLambdaResponseException",f.InvalidParameterException="InvalidParameterException",f.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",f.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",f.LimitExceededException="LimitExceededException",f.NotAuthorizedException="NotAuthorizedException",f.ResourceNotFoundException="ResourceNotFoundException",f.TooManyRequestsException="TooManyRequestsException",f.UnexpectedLambdaException="UnexpectedLambdaException",f.UserLambdaValidationException="UserLambdaValidationException",f.UserNotFoundException="UserNotFoundException",(h=B||(B={})).ForbiddenException="ForbiddenException",h.InternalErrorException="InternalErrorException",h.InvalidParameterException="InvalidParameterException",h.NotAuthorizedException="NotAuthorizedException",h.PasswordResetRequiredException="PasswordResetRequiredException",h.ResourceNotFoundException="ResourceNotFoundException",h.TooManyRequestsException="TooManyRequestsException",h.UserNotConfirmedException="UserNotConfirmedException",h.UserNotFoundException="UserNotFoundException",(g=z||(z={})).ExternalServiceException="ExternalServiceException",g.InternalErrorException="InternalErrorException",g.InvalidParameterException="InvalidParameterException",g.LimitExceededException="LimitExceededException",g.NotAuthorizedException="NotAuthorizedException",g.ResourceConflictException="ResourceConflictException",g.ResourceNotFoundException="ResourceNotFoundException",g.TooManyRequestsException="TooManyRequestsException",(m=W||(W={})).ExternalServiceException="ExternalServiceException",m.InternalErrorException="InternalErrorException",m.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",m.InvalidParameterException="InvalidParameterException",m.NotAuthorizedException="NotAuthorizedException",m.ResourceConflictException="ResourceConflictException",m.ResourceNotFoundException="ResourceNotFoundException",m.TooManyRequestsException="TooManyRequestsException",(y=j||(j={})).CodeDeliveryFailureException="CodeDeliveryFailureException",y.ForbiddenException="ForbiddenException",y.InternalErrorException="InternalErrorException",y.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",y.InvalidLambdaResponseException="InvalidLambdaResponseException",y.InvalidParameterException="InvalidParameterException",y.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",y.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",y.LimitExceededException="LimitExceededException",y.NotAuthorizedException="NotAuthorizedException",y.PasswordResetRequiredException="PasswordResetRequiredException",y.ResourceNotFoundException="ResourceNotFoundException",y.TooManyRequestsException="TooManyRequestsException",y.UnexpectedLambdaException="UnexpectedLambdaException",y.UserLambdaValidationException="UserLambdaValidationException",y.UserNotConfirmedException="UserNotConfirmedException",y.UserNotFoundException="UserNotFoundException",(b=H||(H={})).ForbiddenException="ForbiddenException",b.InternalErrorException="InternalErrorException",b.InvalidParameterException="InvalidParameterException",b.NotAuthorizedException="NotAuthorizedException",b.PasswordResetRequiredException="PasswordResetRequiredException",b.ResourceNotFoundException="ResourceNotFoundException",b.TooManyRequestsException="TooManyRequestsException",b.UserNotConfirmedException="UserNotConfirmedException",(E=V||(V={})).PasswordResetRequiredException="PasswordResetRequiredException",E.ForbiddenException="ForbiddenException",E.InternalErrorException="InternalErrorException",E.InvalidLambdaResponseException="InvalidLambdaResponseException",E.InvalidParameterException="InvalidParameterException",E.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",E.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",E.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",E.NotAuthorizedException="NotAuthorizedException",E.ResourceNotFoundException="ResourceNotFoundException",E.TooManyRequestsException="TooManyRequestsException",E.UnexpectedLambdaException="UnexpectedLambdaException",E.UserLambdaValidationException="UserLambdaValidationException",E.UserNotConfirmedException="UserNotConfirmedException",E.UserNotFoundException="UserNotFoundException",(x=G||(G={})).CodeDeliveryFailureException="CodeDeliveryFailureException",x.ForbiddenException="ForbiddenException",x.InternalErrorException="InternalErrorException",x.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",x.InvalidLambdaResponseException="InvalidLambdaResponseException",x.InvalidParameterException="InvalidParameterException",x.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",x.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",x.LimitExceededException="LimitExceededException",x.NotAuthorizedException="NotAuthorizedException",x.ResourceNotFoundException="ResourceNotFoundException",x.TooManyRequestsException="TooManyRequestsException",x.UnexpectedLambdaException="UnexpectedLambdaException",x.UserLambdaValidationException="UserLambdaValidationException",x.UserNotFoundException="UserNotFoundException",(C=q||(q={})).AliasExistsException="AliasExistsException",C.CodeMismatchException="CodeMismatchException",C.ExpiredCodeException="ExpiredCodeException",C.ForbiddenException="ForbiddenException",C.InternalErrorException="InternalErrorException",C.InvalidLambdaResponseException="InvalidLambdaResponseException",C.InvalidParameterException="InvalidParameterException",C.InvalidPasswordException="InvalidPasswordException",C.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",C.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",C.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",C.MFAMethodNotFoundException="MFAMethodNotFoundException",C.NotAuthorizedException="NotAuthorizedException",C.PasswordResetRequiredException="PasswordResetRequiredException",C.ResourceNotFoundException="ResourceNotFoundException",C.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",C.TooManyRequestsException="TooManyRequestsException",C.UnexpectedLambdaException="UnexpectedLambdaException",C.UserLambdaValidationException="UserLambdaValidationException",C.UserNotConfirmedException="UserNotConfirmedException",C.UserNotFoundException="UserNotFoundException",(S=$||($={})).ForbiddenException="ForbiddenException",S.InternalErrorException="InternalErrorException",S.InvalidParameterException="InvalidParameterException",S.NotAuthorizedException="NotAuthorizedException",S.PasswordResetRequiredException="PasswordResetRequiredException",S.ResourceNotFoundException="ResourceNotFoundException",S.UserNotConfirmedException="UserNotConfirmedException",S.UserNotFoundException="UserNotFoundException",(w=K||(K={})).CodeDeliveryFailureException="CodeDeliveryFailureException",w.InternalErrorException="InternalErrorException",w.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",w.InvalidLambdaResponseException="InvalidLambdaResponseException",w.InvalidParameterException="InvalidParameterException",w.InvalidPasswordException="InvalidPasswordException",w.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",w.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",w.NotAuthorizedException="NotAuthorizedException",w.ResourceNotFoundException="ResourceNotFoundException",w.TooManyRequestsException="TooManyRequestsException",w.UnexpectedLambdaException="UnexpectedLambdaException",w.UserLambdaValidationException="UserLambdaValidationException",w.UsernameExistsException="UsernameExistsException",(I=Z||(Z={})).AliasExistsException="AliasExistsException",I.CodeDeliveryFailureException="CodeDeliveryFailureException",I.CodeMismatchException="CodeMismatchException",I.ExpiredCodeException="ExpiredCodeException",I.ForbiddenException="ForbiddenException",I.InternalErrorException="InternalErrorException",I.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",I.InvalidLambdaResponseException="InvalidLambdaResponseException",I.InvalidParameterException="InvalidParameterException",I.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",I.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",I.NotAuthorizedException="NotAuthorizedException",I.PasswordResetRequiredException="PasswordResetRequiredException",I.ResourceNotFoundException="ResourceNotFoundException",I.TooManyRequestsException="TooManyRequestsException",I.UnexpectedLambdaException="UnexpectedLambdaException",I.UserLambdaValidationException="UserLambdaValidationException",I.UserNotConfirmedException="UserNotConfirmedException",I.UserNotFoundException="UserNotFoundException",(_=Y||(Y={})).CodeMismatchException="CodeMismatchException",_.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",_.ForbiddenException="ForbiddenException",_.InternalErrorException="InternalErrorException",_.InvalidParameterException="InvalidParameterException",_.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",_.NotAuthorizedException="NotAuthorizedException",_.PasswordResetRequiredException="PasswordResetRequiredException",_.ResourceNotFoundException="ResourceNotFoundException",_.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",_.TooManyRequestsException="TooManyRequestsException",_.UserNotConfirmedException="UserNotConfirmedException",_.UserNotFoundException="UserNotFoundException",(A=X||(X={})).AliasExistsException="AliasExistsException",A.CodeMismatchException="CodeMismatchException",A.ExpiredCodeException="ExpiredCodeException",A.ForbiddenException="ForbiddenException",A.InternalErrorException="InternalErrorException",A.InvalidParameterException="InvalidParameterException",A.LimitExceededException="LimitExceededException",A.NotAuthorizedException="NotAuthorizedException",A.PasswordResetRequiredException="PasswordResetRequiredException",A.ResourceNotFoundException="ResourceNotFoundException",A.TooManyRequestsException="TooManyRequestsException",A.UserNotConfirmedException="UserNotConfirmedException",A.UserNotFoundException="UserNotFoundException",(R=J||(J={})).ForbiddenException="ForbiddenException",R.InternalErrorException="InternalErrorException",R.InvalidParameterException="InvalidParameterException",R.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",R.NotAuthorizedException="NotAuthorizedException",R.PasswordResetRequiredException="PasswordResetRequiredException",R.ResourceNotFoundException="ResourceNotFoundException",R.TooManyRequestsException="TooManyRequestsException",R.UserNotConfirmedException="UserNotConfirmedException",R.UserNotFoundException="UserNotFoundException",(k=Q||(Q={})).ForbiddenException="ForbiddenException",k.InternalErrorException="InternalErrorException",k.InvalidParameterException="InvalidParameterException",k.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",k.NotAuthorizedException="NotAuthorizedException",k.PasswordResetRequiredException="PasswordResetRequiredException",k.ResourceNotFoundException="ResourceNotFoundException",k.TooManyRequestsException="TooManyRequestsException",k.UserNotConfirmedException="UserNotConfirmedException",k.UserNotFoundException="UserNotFoundException";var eW=o(40848),ej=o(64914),eH=o(38633),eV=o(69942),eG=o(68707),eq=o(49467),e$=o(81417),eK=o(32205),eZ=o(93822),eY=o(62291),eX=o(57082);let eJ="userAttributes.";async function eQ({challengeResponse:e,clientMetadata:t,session:o,username:r,config:n,tokenOrchestrator:a}){let{userPoolId:i,userPoolClientId:l}=n,s={USERNAME:r,ANSWER:e},u=await a?.getDeviceMetadata(r);u&&u.deviceKey&&(s.DEVICE_KEY=u.deviceKey);let c=(0,eX.u)({username:r,userPoolId:i,userPoolClientId:l}),d=await (0,eG.H6)({region:(0,eq.u)(i),userAgentValue:(0,eY.W)(et.g4.ConfirmSignIn)},{ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:s,Session:o,ClientMetadata:t,ClientId:l,UserContextData:c});return"DEVICE_SRP_AUTH"===d.ChallengeName?e7({username:r,config:n,clientMetadata:t,session:d.Session,tokenOrchestrator:a}):d}async function e0({challengeResponse:e,username:t,clientMetadata:o,session:r,deviceName:n,config:a}){let{userPoolId:i,userPoolClientId:l}=a,{Session:s}=await (0,eG.fn)({region:(0,eq.u)(i),userAgentValue:(0,eY.W)(et.g4.ConfirmSignIn)},{UserCode:e,Session:r,FriendlyDeviceName:n});return eV.signInStore.dispatch({type:"SET_SIGN_IN_SESSION",value:s}),(0,eG.H6)({region:(0,eq.u)(i)},{ChallengeName:"MFA_SETUP",ChallengeResponses:{USERNAME:t},Session:s,ClientMetadata:o,ClientId:l})}async function e1({challengeResponse:e,username:t,clientMetadata:o,session:r,config:n}){let a;let{userPoolId:i,userPoolClientId:l}=n;(0,eH.n)("TOTP"===e||"SMS"===e,ej.X.IncorrectMFAMethod);let s={USERNAME:t,ANSWER:(a="SMS_MFA","TOTP"===e&&(a="SOFTWARE_TOKEN_MFA"),a)},u=(0,eX.u)({username:t,userPoolId:i,userPoolClientId:l});return(0,eG.H6)({region:(0,eq.u)(i),userAgentValue:(0,eY.W)(et.g4.ConfirmSignIn)},{ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:s,Session:r,ClientMetadata:o,ClientId:l,UserContextData:u})}async function e2({challengeResponse:e,clientMetadata:t,session:o,username:r,config:n}){let{userPoolId:a,userPoolClientId:i}=n,l=(0,eX.u)({username:r,userPoolId:a,userPoolClientId:i});return(0,eG.H6)({region:(0,eq.u)(a),userAgentValue:(0,eY.W)(et.g4.ConfirmSignIn)},{ChallengeName:"SMS_MFA",ChallengeResponses:{USERNAME:r,SMS_MFA_CODE:e},Session:o,ClientMetadata:t,ClientId:i,UserContextData:l})}async function e5({challengeResponse:e,clientMetadata:t,session:o,username:r,config:n}){let{userPoolId:a,userPoolClientId:i}=n,l=(0,eX.u)({username:r,userPoolId:a,userPoolClientId:i});return(0,eG.H6)({region:(0,eq.u)(a),userAgentValue:(0,eY.W)(et.g4.ConfirmSignIn)},{ChallengeName:"SOFTWARE_TOKEN_MFA",ChallengeResponses:{USERNAME:r,SOFTWARE_TOKEN_MFA_CODE:e},Session:o,ClientMetadata:t,ClientId:i,UserContextData:l})}async function e3({challengeResponse:e,clientMetadata:t,session:o,username:r,requiredAttributes:n,config:a}){let{userPoolId:i,userPoolClientId:l}=a,s={...function(e){if(!e)return{};let t={};return Object.entries(e).forEach(([e,o])=>{o&&(t[`${eJ}${e}`]=o)}),t}(n),NEW_PASSWORD:e,USERNAME:r},u=(0,eX.u)({username:r,userPoolId:i,userPoolClientId:l});return(0,eG.H6)({region:(0,eq.u)(i),userAgentValue:(0,eY.W)(et.g4.ConfirmSignIn)},{ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:s,ClientMetadata:t,Session:o,ClientId:l,UserContextData:u})}async function e4(e,t,o,r,n){let{userPoolClientId:a,userPoolId:i}=r,l={USERNAME:e,PASSWORD:t},s=await n.getDeviceMetadata(e);s&&s.deviceKey&&(l.DEVICE_KEY=s.deviceKey);let u=(0,eX.u)({username:e,userPoolId:i,userPoolClientId:a}),c=await (0,eG.Cg)({region:(0,eq.u)(i),userAgentValue:(0,eY.W)(et.g4.SignIn)},{AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:l,ClientMetadata:o,ClientId:a,UserContextData:u}),d=c.ChallengeParameters?.USERNAME??c.ChallengeParameters?.USER_ID_FOR_SRP??e;return(td(d),"DEVICE_SRP_AUTH"===c.ChallengeName)?e7({username:d,config:r,clientMetadata:o,session:c.Session,tokenOrchestrator:n}):c}async function e6(e,t,o,r,n){let{userPoolId:a,userPoolClientId:i}=r,l=a?.split("_")[1]||"",s=await eP(l),u={USERNAME:e,SRP_A:s.A.toString(16)},c=(0,eX.u)({username:e,userPoolId:a,userPoolClientId:i}),{ChallengeParameters:d,Session:p}=await (0,eG.Cg)({region:(0,eq.u)(a),userAgentValue:(0,eY.W)(et.g4.SignIn)},{AuthFlow:"USER_SRP_AUTH",AuthParameters:u,ClientMetadata:o,ClientId:i,UserContextData:c}),v=d?.USERNAME??e;return td(v),tc(tt,[t,d,o,p,s,r,n],v,n)}async function e8(e,t,o,r){let{userPoolClientId:n,userPoolId:a}=o,i={USERNAME:e},l=await r.getDeviceMetadata(e);l&&l.deviceKey&&(i.DEVICE_KEY=l.deviceKey);let s=(0,eX.u)({username:e,userPoolId:a,userPoolClientId:n}),u=await (0,eG.Cg)({region:(0,eq.u)(a),userAgentValue:(0,eY.W)(et.g4.SignIn)},{AuthFlow:"CUSTOM_AUTH",AuthParameters:i,ClientMetadata:t,ClientId:n,UserContextData:s}),c=u.ChallengeParameters?.USERNAME??e;return(td(c),"DEVICE_SRP_AUTH"===u.ChallengeName)?e7({username:c,config:o,clientMetadata:t,session:u.Session,tokenOrchestrator:r}):u}async function e9(e,t,o,r,n){(0,eo.FG)(r);let{userPoolId:a,userPoolClientId:i}=r,l=a?.split("_")[1]||"",s=await eP(l),u={USERNAME:e,SRP_A:s.A.toString(16),CHALLENGE_NAME:"SRP_A"},c=(0,eX.u)({username:e,userPoolId:a,userPoolClientId:i}),{ChallengeParameters:d,Session:p}=await (0,eG.Cg)({region:(0,eq.u)(a),userAgentValue:(0,eY.W)(et.g4.SignIn)},{AuthFlow:"CUSTOM_AUTH",AuthParameters:u,ClientMetadata:o,ClientId:i,UserContextData:c}),v=d?.USERNAME??e;return td(v),tc(tt,[t,d,o,p,s,r,n],v,n)}async function e7({username:e,config:t,clientMetadata:o,session:r,tokenOrchestrator:n}){let a=t.userPoolId,i=t.userPoolClientId,l=await n?.getDeviceMetadata(e);(0,eZ.tr)(l);let s=await eP(l.deviceGroupKey),u={USERNAME:e,SRP_A:s.A.toString(16),DEVICE_KEY:l.deviceKey},{ChallengeParameters:c,Session:d}=await (0,eG.H6)({region:(0,eq.u)(a)},{ChallengeName:"DEVICE_SRP_AUTH",ClientId:i,ChallengeResponses:u,ClientMetadata:o,Session:r});return te(e,c,o,d,s,t,n)}async function te(e,t,o,r,n,{userPoolId:a,userPoolClientId:i},l){let s=await l?.getDeviceMetadata(e);(0,eZ.tr)(s);let u=new ea(t?.SRP_B,16),c=new ea(t?.SALT,16),d=s.deviceKey,p=s.deviceGroupKey,v=await n.getPasswordAuthenticationKey({username:s.deviceKey,password:s.randomPassword,serverBValue:u,salt:c}),f=eM(),h={USERNAME:t?.USERNAME??e,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:f,PASSWORD_CLAIM_SIGNATURE:eB({username:d,userPoolName:p,challengeParameters:t,dateNow:f,hkdf:v}),DEVICE_KEY:d},g=(0,eX.u)({username:e,userPoolId:a,userPoolClientId:i});return(0,eG.H6)({region:(0,eq.u)(a)},{ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i,ChallengeResponses:h,Session:r,ClientMetadata:o,UserContextData:g})}async function tt(e,t,o,r,n,a,i){let{userPoolId:l,userPoolClientId:s}=a,u=l?.split("_")[1]||"",c=new ea(t?.SRP_B,16),d=new ea(t?.SALT,16),p=t?.USER_ID_FOR_SRP;if(!p)throw new ev.l({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});let v=await n.getPasswordAuthenticationKey({username:p,password:e,serverBValue:c,salt:d}),f=eM(),h={USERNAME:p,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:f,PASSWORD_CLAIM_SIGNATURE:eB({username:p,userPoolName:u,challengeParameters:t,dateNow:f,hkdf:v})},g=await i.getDeviceMetadata(p);g&&g.deviceKey&&(h.DEVICE_KEY=g.deviceKey);let m=(0,eX.u)({username:p,userPoolId:l,userPoolClientId:s}),y=await (0,eG.H6)({region:(0,eq.u)(l)},{ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:h,ClientMetadata:o,Session:r,ClientId:s,UserContextData:m});return"DEVICE_SRP_AUTH"===y.ChallengeName?e7({username:p,config:a,clientMetadata:o,session:y.Session,tokenOrchestrator:i}):y}async function to(e){var t;let{challengeName:o,challengeParameters:r}=e,n=ee.d.getConfig().Auth?.Cognito;switch((0,eo.FG)(n),o){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:r}};case"MFA_SETUP":let{signInSession:a,username:i}=eV.signInStore.getState();if(!function(e,t){let{MFAS_CAN_SETUP:o}=e,r=ti(tl(o));return!!r&&r.includes(t)}(r,"TOTP"))throw new ev.l({name:eW.kq.SignInException,message:`Cannot initiate MFA setup from available types: ${ti(tl(r.MFAS_CAN_SETUP))}`});let{Session:l,SecretCode:s}=await (0,eG.Vo)({region:(0,eq.u)(n.userPoolId)},{Session:a});return eV.signInStore.dispatch({type:"SET_SIGN_IN_SESSION",value:l}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:{sharedSecret:s,getSetupUri:(e,t)=>{let o=`otpauth://totp/${e}:${t??i}?secret=${s}&issuer=${e}`;return new er.a(o)}}}};case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:(t=r.requiredAttributes)?JSON.parse(t).map(e=>e.includes(eJ)?e.replace(eJ,""):e):[]}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:ti(tl(r.MFAS_CAN_CHOOSE))}};case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:r.CODE_DELIVERY_DELIVERY_MEDIUM,destination:r.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}}}throw new ev.l({name:eW.kq.SignInException,message:`An error occurred during the sign in process. ${o} challengeName returned by the underlying service was not addressed.`})}function tr(e){return e===V.PasswordResetRequiredException?{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}}:e===V.UserNotConfirmedException?{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}:void 0}async function tn(e,t,o,r,n,a,i,l){let s=l?.userAttributes,u=l?.friendlyDeviceName;switch(t){case"SMS_MFA":return e2({challengeResponse:r,clientMetadata:i,session:o,username:e,config:n});case"SELECT_MFA_TYPE":return e1({challengeResponse:r,clientMetadata:i,session:o,username:e,config:n});case"MFA_SETUP":return e0({challengeResponse:r,clientMetadata:i,session:o,username:e,deviceName:u,config:n});case"NEW_PASSWORD_REQUIRED":return e3({challengeResponse:r,clientMetadata:i,session:o,username:e,requiredAttributes:s,config:n});case"CUSTOM_CHALLENGE":return tc(eQ,[{challengeResponse:r,clientMetadata:i,session:o,username:e,config:n,tokenOrchestrator:a}],e,a);case"SOFTWARE_TOKEN_MFA":return e5({challengeResponse:r,clientMetadata:i,session:o,username:e,config:n})}throw new ev.l({name:eW.kq.SignInException,message:`An error occurred during the sign in process. 
		${t} challengeName returned by the underlying service was not addressed.`})}function ta(e){return"SMS_MFA"===e?"SMS":"SOFTWARE_TOKEN_MFA"===e?"TOTP":void 0}function ti(e){if(e)return e.map(ta).filter(Boolean)}function tl(e){return e?JSON.parse(e):[]}async function ts(){let e;try{e=await (0,eK.t)()}catch(e){}if(e&&e.userId&&e.username)throw new ev.l({name:e$.EU,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}async function tu(e,t,o){if(!t)return;let r=e.split("_")[1]||"",n=await eP(r),a=t?.DeviceKey,i=t?.DeviceGroupKey;try{await n.generateHashDevice(i??"",a??"")}catch(e){return}let l={Salt:en.u.convert(ey(n.getSaltToHashDevices())),PasswordVerifier:en.u.convert(ey(n.getVerifierDevices()))},s=n.getRandomPassword();try{return await (0,eG.Cq)({region:(0,eq.u)(e)},{AccessToken:o,DeviceKey:t?.DeviceKey,DeviceSecretVerifierConfig:l}),{deviceKey:a,deviceGroupKey:i,randomPassword:s}}catch(e){return}}async function tc(e,t,o,r){try{return await e(...t)}catch(n){if(n instanceof ev.l&&"ResourceNotFoundException"===n.name&&n.message.includes("Device does not exist."))return await r.clearDeviceMetadata(o),await e(...t);throw n}}function td(e){let{dispatch:t}=eV.signInStore;t({type:"SET_USERNAME",value:e})}function tp(e){return eV.signInStore.getState().username??e}},69942:function(e,t,o){"use strict";var r;let n;function a(){return{username:void 0,challengeName:void 0,signInSession:void 0}}o.d(t,{P:function(){return s},k:function(){return l},signInStore:function(){return i}});let i=(n=(r=(e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return{...t.value};case"SET_CHALLENGE_NAME":return{...e,challengeName:t.value};case"SET_USERNAME":return{...e,username:t.value};case"SET_INITIAL_STATE":return a();default:return e}})(a(),{type:"SET_INITIAL_STATE"}),{getState:()=>n,dispatch:e=>{n=r(n,e)}});function l(e){i.dispatch({type:"SET_SIGN_IN_STATE",value:e})}function s(){i.dispatch({type:"SET_INITIAL_STATE"})}},46458:function(e,t,o){"use strict";let r;o.d(t,{Fb:function(){return g},M6:function(){return u},Qc:function(){return f},gX:function(){return y},m3:function(){return b},mr:function(){return h},pb:function(){return m},xt:function(){return C}});var n=o(79188),a=o(75365),i=o(37753),l=o(84430),s=o(81417);function u(e){let t=n.qC.listen("auth-internal",async({payload:o})=>{if("confirmSignUp"===o.event){let r=o.data;r?.isSignUpComplete&&(n.qC.dispatch("auth-internal",{event:"autoSignIn"}),(0,l.I)(x(e)),t())}}),o=setTimeout(()=>{t(),m(!1),clearTimeout(o),(0,l.Dv)()},18e4)}function c(e,t){let o;return function(r){o||e(...r),clearTimeout(o),o=setTimeout(()=>{o=void 0},t)}}let d=c(function(e,t,o){let r=Date.now(),n=setInterval(async()=>{if(Date.now()-r>18e4){clearInterval(n),m(!1),o(new i.l({name:s.MA,message:"The account was not confirmed on time.",recoverySuggestion:"Try to verify your account by clicking the link sent your email or phone and then login manually."})),(0,l.Dv)();return}try{let o=await (0,a.z)(e);if("CONFIRM_SIGN_UP"!==o.nextStep.signInStep){t(o),clearInterval(n),m(!1),(0,l.Dv)();return}}catch(e){clearInterval(n),m(!1),o(e),(0,l.Dv)()}},5e3)},300),p=c(E,300),v=!1;function f(e){r=e}function h(e){return r===e}function g(){return v}function m(e){!1===e&&(r=void 0),v=e}function y(e){return!!e.UserConfirmed}function b(e){return async()=>new Promise(async(t,o)=>{d([e,t,o])})}async function E(e,t,o){try{let o=await (0,a.z)(e);t(o),(0,l.Dv)()}catch(e){o(e),(0,l.Dv)()}}function x(e){return async()=>new Promise(async(t,o)=>{p([e,t,o])})}let C=x},24497:function(e,t,o){"use strict";o.d(t,{u:function(){return n}});var r=o(12307);let n={convert(e,{urlSafe:t}={urlSafe:!1}){let o="string"==typeof e?e:Array.from(e,e=>String.fromCodePoint(e)).join(""),n=(0,r.Ds)()(o);return t?n.replace(/\+/g,"-").replace(/\//g,"_"):n}}},50679:function(e,t,o){"use strict";o.d(t,{_:function(){return aY}});var r,n,a,i,l,s,u,c,d,p,v,f,h,g,m={};o.r(m),o.d(m,{e4:function(){return eX},assign:function(){return eY},al:function(){return e$},choose:function(){return e2},aT:function(){return eJ},Sl:function(){return eQ},vU:function(){return e0},Tn:function(){return e1},o$:function(){return ez},bf:function(){return eB},OU:function(){return eV},yC:function(){return e3},lW:function(){return eG},xc:function(){return eq},BL:function(){return eK},stop:function(){return eZ},Q8:function(){return eW},AE:function(){return ej},XA:function(){return eH}});var y=o(2265),b=o.t(y,2),E=o(86373),x=o(60636);let C=({route:e})=>[e];var S=o(80918),w=o(38147);let I={apis:[w.g4.DeleteUser,w.g4.UpdatePassword],category:w.WD.Auth},_={apis:[w.g4.SignUp,w.g4.ConfirmSignUp,w.g4.ResendSignUpCode,w.g4.SignIn,w.g4.ConfirmSignIn,w.g4.FetchUserAttributes,w.g4.SignOut,w.g4.ResetPassword,w.g4.ConfirmResetPassword,w.g4.SignInWithRedirect],category:w.WD.Auth},A={apis:[w.xf.NotifyMessageInteraction],category:w.WD.InAppMessaging},R={category:w.WD.Geo,apis:[w.PL.SearchByText,w.PL.SearchForSuggestions,w.PL.SearchByPlaceId]},k={category:w.WD.Geo,apis:[]},N={apis:[w.r7.UploadData],category:w.WD.Storage},T=({componentName:e,packageName:t,version:o})=>{let r=[`ui-${t}`,o];switch(e){case"Authenticator":(0,S.o)({..._,additionalDetails:[[e],r]});break;case"ChangePassword":case"DeleteUser":(0,S.o)({...I,additionalDetails:[["AccountSettings"],r]});break;case"InAppMessaging":(0,S.o)({...A,additionalDetails:[[e],r]});break;case"LocationSearch":(0,S.o)({...R,additionalDetails:[[e],r]});break;case"MapView":(0,S.o)({...k,additionalDetails:[[e],r]});break;case"StorageManager":(0,S.o)({...N,additionalDetails:[[e],r]})}return E.ZT};var F=o(36110),P=function(){return(P=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function U(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o}function D(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,a=o.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}function M(e,t,o){if(o||2==arguments.length)for(var r,n=0,a=t.length;n<a;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}(r=c||(c={})).Start="xstate.start",r.Stop="xstate.stop",r.Raise="xstate.raise",r.Send="xstate.send",r.Cancel="xstate.cancel",r.NullEvent="",r.Assign="xstate.assign",r.After="xstate.after",r.DoneState="done.state",r.DoneInvoke="done.invoke",r.Log="xstate.log",r.Init="xstate.init",r.Invoke="xstate.invoke",r.ErrorExecution="error.execution",r.ErrorCommunication="error.communication",r.ErrorPlatform="error.platform",r.ErrorCustom="xstate.error",r.Update="xstate.update",r.Pure="xstate.pure",r.Choose="xstate.choose",(n=d||(d={})).Parent="#_parent",n.Internal="#_internal";var L={},B="xstate.guard",z=c.Start,W=c.Stop,j=c.Raise,H=c.Send,V=c.Cancel,G=c.NullEvent,q=c.Assign;c.After,c.DoneState;var $=c.Log,K=c.Init,Z=c.Invoke;c.ErrorExecution;var Y=c.ErrorPlatform,X=c.ErrorCustom,J=c.Update,Q=c.Choose,ee=c.Pure;function et(e,t,o){void 0===o&&(o=".");var r=en(e,o),n=en(t,o);return ey(n)?!!ey(r)&&n===r:ey(r)?r in n:Object.keys(r).every(function(e){return e in n&&et(r[e],n[e])})}function eo(e){try{return ey(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw Error("Events must be strings or objects with a string event.type property.")}}function er(e,t){try{if(eg(e))return e;return e.toString().split(t)}catch(t){throw Error("'".concat(e,"' is not a valid state path."))}}function en(e,t){return"object"==typeof e&&"value"in e&&"context"in e&&"event"in e&&"_event"in e?e.value:eg(e)?ea(e):"string"!=typeof e?e:ea(er(e,t))}function ea(e){if(1===e.length)return e[0];for(var t={},o=t,r=0;r<e.length-1;r++)r===e.length-2?o[e[r]]=e[r+1]:(o[e[r]]={},o=o[e[r]]);return t}function ei(e,t){for(var o={},r=Object.keys(e),n=0;n<r.length;n++){var a=r[n];o[a]=t(e[a],a,e,n)}return o}function el(e,t,o){var r,n,a={};try{for(var i=D(Object.keys(e)),l=i.next();!l.done;l=i.next()){var s=l.value,u=e[s];o(u)&&(a[s]=t(u,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}var es=function(e){return function(t){var o,r,n=t;try{for(var a=D(e),i=a.next();!i.done;i=a.next())n=n[i.value]}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return n}};function eu(e){return e?ey(e)?[[e]]:ec(Object.keys(e).map(function(t){var o=e[t];return"string"==typeof o||o&&Object.keys(o).length?eu(e[t]).map(function(e){return[t].concat(e)}):[[t]]})):[[]]}function ec(e){var t;return(t=[]).concat.apply(t,M([],O(e),!1))}function ed(e){return void 0===e?[]:eg(e)?e:[e]}function ep(e,t,o){if(em(e))return e(t,o.data);var r,n,a={};try{for(var i=D(Object.keys(e)),l=i.next();!l.done;l=i.next()){var s=l.value,u=e[s];em(u)?a[s]=u(t,o.data):a[s]=u}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function ev(e){return!!(e instanceof Promise||null!==e&&(em(e)||"object"==typeof e)&&em(e.then))}function ef(e,t,o,r){return e?o.reduce(function(e,o){var n,a,i=o.assignment,l={state:r,action:o,_event:t},s={};if(em(i))s=i(e,t.data,l);else try{for(var u=D(Object.keys(i)),c=u.next();!c.done;c=u.next()){var d=c.value,p=i[d];s[d]=em(p)?p(e,t.data,l):p}}catch(e){n={error:e}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}return Object.assign({},e,s)},e):e}var eh=function(){};function eg(e){return Array.isArray(e)}function em(e){return"function"==typeof e}function ey(e){return"string"==typeof e}function eb(e,t){return e?ey(e)?{type:B,name:e,predicate:t?t[e]:void 0}:em(e)?{type:B,name:e.name,predicate:e}:e:void 0}var eE="function"==typeof Symbol&&Symbol.observable||"@@observable";function ex(e){return!!e&&"__xstatenode"in e}(p={})[eE]=function(){return this},p[Symbol.observable]=function(){return this};var eC=(a=0,function(){return a++,a.toString(16)});function eS(e,t){return ey(e)||"number"==typeof e?P({type:e},t):e}function ew(e,t){if(!ey(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var o=eS(e);return P({name:o.type,data:o,$$type:"scxml",type:"external"},t)}function eI(e,t){return(eg(t)?t:[t]).map(function(t){return void 0===t||"string"==typeof t||ex(t)?{target:t,event:e}:P(P({},t),{event:e})})}function e_(e,t,o,r,n){var a=e.options.guards,i={state:n,cond:t,_event:r};if(t.type===B)return((null==a?void 0:a[t.name])||t.predicate)(o,r.data,i);var l=null==a?void 0:a[t.type];if(!l)throw Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(o,r.data,i)}function eA(e){return"string"==typeof e?{type:e}:e}function eR(e,t,o){var r=function(){},n="object"==typeof e,a=n?e:null;return{next:((n?e.next:e)||r).bind(a),error:((n?e.error:t)||r).bind(a),complete:((n?e.complete:o)||r).bind(a)}}function ek(e,t){return"".concat(e,":invocation[").concat(t,"]")}function eN(e){return(e.type===j||e.type===H&&e.to===d.Internal)&&"number"!=typeof e.delay}var eT=function(e){return"atomic"===e.type||"final"===e.type};function eF(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function eP(e){return eF(e).filter(function(e){return"history"!==e.type})}function eU(e,t){var o,r,n,a,i,l,s,u,c=eD(new Set(e)),d=new Set(t);try{for(var p=D(d),v=p.next();!v.done;v=p.next())for(var f=v.value,h=f.parent;h&&!d.has(h);)d.add(h),h=h.parent}catch(e){o={error:e}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(o)throw o.error}}var g=eD(d);try{for(var m=D(d),y=m.next();!y.done;y=m.next()){var f=y.value;if("compound"!==f.type||g.get(f)&&g.get(f).length){if("parallel"===f.type)try{for(var b=(i=void 0,D(eP(f))),E=b.next();!E.done;E=b.next()){var x=E.value;d.has(x)||(d.add(x),c.get(x)?c.get(x).forEach(function(e){return d.add(e)}):x.initialStateNodes.forEach(function(e){return d.add(e)}))}}catch(e){i={error:e}}finally{try{E&&!E.done&&(l=b.return)&&l.call(b)}finally{if(i)throw i.error}}}else c.get(f)?c.get(f).forEach(function(e){return d.add(e)}):f.initialStateNodes.forEach(function(e){return d.add(e)})}}catch(e){n={error:e}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(n)throw n.error}}try{for(var C=D(d),S=C.next();!S.done;S=C.next())for(var f=S.value,h=f.parent;h&&!d.has(h);)d.add(h),h=h.parent}catch(e){s={error:e}}finally{try{S&&!S.done&&(u=C.return)&&u.call(C)}finally{if(s)throw s.error}}return d}function eD(e){var t,o,r=new Map;try{for(var n=D(e),a=n.next();!a.done;a=n.next()){var i=a.value;r.has(i)||r.set(i,[]),i.parent&&(r.has(i.parent)||r.set(i.parent,[]),r.get(i.parent).push(i))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}return r}function eO(e,t){return Array.isArray(e)?e.some(function(e){return e===t}):e instanceof Set&&e.has(t)}function eM(e,t){return"compound"===t.type?eP(t).some(function(t){return"final"===t.type&&eO(e,t)}):"parallel"===t.type&&eP(t).every(function(t){return eM(e,t)})}function eL(e){return new Set(ec(e.map(function(e){return e.tags})))}var eB=ew({type:K});function ez(e,t){return t&&t[e]||void 0}function eW(e,t){var o;if(ey(e)||"number"==typeof e){var r=ez(e,t);o=em(r)?{type:e,exec:r}:r||{type:e,exec:void 0}}else if(em(e))o={type:e.name||e.toString(),exec:e};else{var r=ez(e.type,t);if(em(r))o=P(P({},e),{exec:r});else if(r){var n=r.type||e.type;o=P(P(P({},r),e),{type:n})}else o=e}return o}var ej=function(e,t){return e?(eg(e)?e:[e]).map(function(e){return eW(e,t)}):[]};function eH(e){var t=eW(e);return P(P({id:ey(e)?e:t.id},t),{type:t.type})}function eV(e,t){return{type:j,event:"function"==typeof e?e:eS(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}function eG(e,t){return{to:t?t.to:void 0,type:H,event:em(e)?e:eS(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:em(e)?e.name:eo(e)}}function eq(){return eG(J,P(P({},void 0),{to:d.Parent}))}var e$=function(e){return{type:V,sendId:e}};function eK(e){var t=eH(e);return{type:c.Start,activity:t,exec:void 0}}function eZ(e){var t=em(e)?e:eH(e);return{type:c.Stop,activity:t,exec:void 0}}var eY=function(e){return{type:q,assignment:e}};function eX(e,t){return"".concat(c.After,"(").concat(e,")").concat(t?"#".concat(t):"")}function eJ(e,t){var o="".concat(c.DoneState,".").concat(e),r={type:o,data:t};return r.toString=function(){return o},r}function eQ(e,t){var o="".concat(c.DoneInvoke,".").concat(e),r={type:o,data:t};return r.toString=function(){return o},r}function e0(e,t){var o="".concat(c.ErrorPlatform,".").concat(e),r={type:o,data:t};return r.toString=function(){return o},r}function e1(e,t){return eG(function(e,t){return t},P(P({},t),{to:e}))}function e2(e){return{type:c.Choose,conds:e}}var e5=function(e){var t,o,r=[];try{for(var n=D(e),a=n.next();!a.done;a=n.next())for(var i=a.value,l=0;l<i.actions.length;){if(i.actions[l].type===q){r.push(i.actions[l]),i.actions.splice(l,1);continue}l++}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}return r};function e3(e,t,o,r,n,a,i){void 0===i&&(i=!1);var l=i?[]:e5(n),s=l.length?ef(o,r,l,t):o,u=i?[o]:void 0,p=[];return[ec(n.map(function(n){var l,v,f=[];try{for(var h=D(n.actions),g=h.next();!g.done;g=h.next()){var m=g.value,y=function(n,l){var v;switch(l.type){case j:var f=function(e,t,o,r){var n,a={_event:o},i=ew(em(e.event)?e.event(t,o.data,a):e.event);if(ey(e.delay)){var l=r&&r[e.delay];n=em(l)?l(t,o.data,a):l}else n=em(e.delay)?e.delay(t,o.data,a):e.delay;return P(P({},e),{type:j,_event:i,delay:n})}(l,s,r,e.options.delays);return a&&"number"==typeof f.delay&&a(f,s,r),f;case H:var h=function(e,t,o,r){var n,a={_event:o},i=ew(em(e.event)?e.event(t,o.data,a):e.event);if(ey(e.delay)){var l=r&&r[e.delay];n=em(l)?l(t,o.data,a):l}else n=em(e.delay)?e.delay(t,o.data,a):e.delay;var s=em(e.to)?e.to(t,o.data,a):e.to;return P(P({},e),{to:s,_event:i,event:i.data,delay:n})}(l,s,r,e.options.delays);return a&&h.to!==d.Internal&&("entry"===n?p.push(h):a(h,s,r)),h;case $:var g,m=(g=s,P(P({},l),{value:ey(l.expr)?l.expr:l.expr(g,r.data,{_event:r})}));return null==a||a(m,s,r),m;case Q:var y=null===(v=l.conds.find(function(o){var n=eb(o.cond,e.options.guards);return!n||e_(e,n,s,r,a?void 0:t)}))||void 0===v?void 0:v.actions;if(!y)return[];var b=O(e3(e,t,s,r,[{type:n,actions:ej(ed(y),e.options.actions)}],a,i),2),E=b[0];return s=b[1],null==u||u.push(s),E;case ee:var y=l.get(s,r.data);if(!y)return[];var x=O(e3(e,t,s,r,[{type:n,actions:ej(ed(y),e.options.actions)}],a,i),2),C=x[0];return s=x[1],null==u||u.push(s),C;case W:var S,w,m=(S=s,w=em(l.activity)?l.activity(S,r.data):l.activity,{type:c.Stop,activity:"string"==typeof w?{id:w}:w});return null==a||a(m,o,r),m;case q:s=ef(s,r,[l],a?void 0:t),null==u||u.push(s);break;default:var I=eW(l,e.options.actions),_=I.exec;if(a)a(I,s,r);else if(_&&u){var A=u.length-1;I=P(P({},I),{exec:function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];_.apply(void 0,M([u[A]],O(t),!1))}})}return I}}(n.type,m);y&&(f=f.concat(y))}}catch(e){l={error:e}}finally{try{g&&!g.done&&(v=h.return)&&v.call(h)}finally{if(l)throw l.error}}return p.forEach(function(e){a(e,s,r)}),p.length=0,f})),s]}var e4=function(){function e(e){var t,o,r=this;this.actions=[],this.activities=L,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||L,this.meta=(void 0===(t=e.configuration)&&(t=[]),t.reduce(function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e},{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(o=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==o?o:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){var e;return e=r.configuration,M([],O(new Set(ec(M([],O(e.map(function(e){return e.ownEvents})),!1)))),!1)}})}return e.from=function(t,o){return t instanceof e?t.context!==o?new e({value:t.value,context:o,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:o,_event:eB,_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,o){return t instanceof e?t.actions.length?new e({value:t.value,context:o,_event:eB,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}}):t:e.from(t,o)},e.prototype.toStrings=function(e,t){var o=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),ey(e))return[e];var r=Object.keys(e);return r.concat.apply(r,M([],O(r.map(function(r){return o.toStrings(e[r],t).map(function(e){return r+t+e})})),!1))},e.prototype.toJSON=function(){this.configuration,this.transitions;var e=this.tags;this.machine;var t=U(this,["configuration","transitions","tags","machine"]);return P(P({},t),{tags:Array.from(e)})},e.prototype.matches=function(e){return et(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){eh(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var t,o=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==o?void 0:o.transitions.length)&&o.transitions.some(function(e){return void 0!==e.target||e.actions.length})},e}(),e6={deferEvents:!1},e8=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=P(P({},e6),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),e9=[],e7=function(e,t){e9.push(e);var o=t(e);return e9.pop(),o};function te(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[eE]=function(){return this},t}function tt(e,t,o){var r=te(t);if(r.deferred=!0,ex(e)){var n=r.state=e7(void 0,function(){return(o?e.withContext(o):e).initialState});r.getSnapshot=function(){return n}}return r}var to=new Map,tr=0,tn={bookId:function(){return"x:".concat(tr++)},register:function(e,t){return to.set(e,t),e},get:function(e){return to.get(e)},free:function(e){to.delete(e)}};function ta(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==o.g?o.g:void 0}var ti={sync:!1,autoForward:!1};(i=v||(v={}))[i.NotStarted=0]="NotStarted",i[i.Running=1]="Running",i[i.Stopped=2]="Stopped";var tl=function(){function e(t,o){void 0===o&&(o=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=v.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(eg(e))return r.batch(e),r.state;var o=ew(eS(e,t));if(r.status===v.Stopped)return r.state;if(r.status!==v.Running&&!r.options.deferEvents)throw Error('Event "'.concat(o.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(o.data)));return r.scheduler.schedule(function(){r.forward(o);var e=r._nextState(o);r.update(e,o)}),r._state},this.sendTo=function(e,t,o){var n=r.parent&&(t===d.Parent||r.parent.id===t),a=n?r.parent:ey(t)?t===d.Internal?r:r.children.get(t)||tn.get(t):t&&"function"==typeof t.send?t:void 0;if(!a){if(!n)throw Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));return}if("machine"in a){if(r.status!==v.Stopped||r.parent!==a||r.state.done){var i=P(P({},e),{name:e.name===X?"".concat(e0(r.id)):e.name,origin:r.sessionId});!o&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,i]):a.send(i)}}else!o&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data)},this._exec=function(e,t,o,n){void 0===n&&(n=r.machine.options.actions);var a=e.exec||ez(e.type,n),i=em(a)?a:a?a.exec:e.exec;if(i)try{return i(t,o.data,r.machine.config.predictableActionArguments?{action:e,_event:o}:{action:e,state:r.state,_event:o})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case j:r.defer(e);break;case H:if("number"==typeof e.delay){r.defer(e);return}e.to?r.sendTo(e._event,e.to,o===eB):r.send(e._event);break;case V:r.cancel(e.sendId);break;case z:if(r.status!==v.Running)return;var l=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[l.id||l.type])break;if(l.type===c.Invoke){var s=eA(l.src),u=r.machine.options.services?r.machine.options.services[s.type]:void 0,d=l.id,p=l.data,f="autoForward"in l?l.autoForward:!!l.forward;if(!u)return;var h=p?ep(p,t,o):void 0;if("string"==typeof u)return;var g=em(u)?u(t,o.data,{data:h,src:s,meta:l.meta}):u;if(!g)return;var m=void 0;ex(g)&&(g=h?g.withContext(h):g,m={autoForward:f}),r.spawn(g,d,m)}else r.spawnActivity(l);break;case W:r.stopChild(e.activity.id);break;case $:var y=e.label,b=e.value;y?r.logger(y,b):r.logger(b)}};var n=P(P({},e.defaultOptions),o),a=n.clock,i=n.logger,l=n.parent,s=n.id,u=void 0!==s?s:t.id;this.id=u,this.logger=i,this.clock=a,this.parent=l,this.options=n,this.scheduler=new e8({deferEvents:this.options.deferEvents}),this.sessionId=tn.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:e7(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var o,r;try{for(var n=D(e.actions),a=n.next();!a.done;a=n.next()){var i=a.value;this.exec(i,e,t)}}catch(e){o={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}},e.prototype.update=function(e,t){var o,r,n,a,i,l,s,u,c=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||t===eB)&&this.options.execute)this.execute(this.state);else for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);if(this.children.forEach(function(e){c.state.children[e.id]=e}),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=D(this.eventListeners),v=p.next();!v.done;v=p.next()){var f=v.value;f(e.event)}}catch(e){o={error:e}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(o)throw o.error}}try{for(var h=D(this.listeners),g=h.next();!g.done;g=h.next()){var f=g.value;f(e,e.event)}}catch(e){n={error:e}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error}}try{for(var m=D(this.contextListeners),y=m.next();!y.done;y=m.next())(0,y.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(e){i={error:e}}finally{try{y&&!y.done&&(l=m.return)&&l.call(m)}finally{if(i)throw i.error}}if(this.state.done){var b=e.configuration.find(function(e){return"final"===e.type&&e.parent===c.machine}),E=b&&b.doneData?ep(b.doneData,e.context,t):void 0;this._doneEvent=eQ(this.id,E);try{for(var x=D(this.doneListeners),C=x.next();!C.done;C=x.next()){var f=C.value;f(this._doneEvent)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(u=x.return)&&u.call(x)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),tn.free(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===v.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,o){var r=this,n=eR(e,t,o);this.listeners.add(n.next),this.status!==v.NotStarted&&n.next(this.state);var a=function(){r.doneListeners.delete(a),r.stopListeners.delete(a),n.complete()};return this.status===v.Stopped?n.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){r.listeners.delete(n.next),r.doneListeners.delete(a),r.stopListeners.delete(a)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===v.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===v.Running)return this;this.machine._init(),tn.register(this.sessionId,this),this.initialized=!0,this.status=v.Running;var o=void 0===e?this.initialState:e7(this,function(){return"object"==typeof e&&null!==e&&"value"in e&&"_event"in e?t.machine.resolveState(e):t.machine.resolveState(e4.from(e,t.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){t.update(o,eB)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(e){em(e.stop)&&e.stop()}),this.children.clear()},e.prototype._stop=function(){var e,t,o,r,n,a,i,l,s,u;try{for(var c=D(this.listeners),d=c.next();!d.done;d=c.next()){var p=d.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}try{for(var f=D(this.stopListeners),h=f.next();!h.done;h=f.next()){var p=h.value;p(),this.stopListeners.delete(p)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(o)throw o.error}}try{for(var g=D(this.contextListeners),m=g.next();!m.done;m=g.next()){var p=m.value;this.contextListeners.delete(p)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(n)throw n.error}}try{for(var y=D(this.doneListeners),b=y.next();!b.done;b=y.next()){var p=b.value;this.doneListeners.delete(p)}}catch(e){i={error:e}}finally{try{b&&!b.done&&(l=y.return)&&l.call(y)}finally{if(i)throw i.error}}if(!this.initialized)return this;this.initialized=!1,this.status=v.Stopped,this._initialState=void 0;try{for(var E=D(Object.keys(this.delayedEventsMap)),x=E.next();!x.done;x=E.next()){var C=x.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(e){s={error:e}}finally{try{x&&!x.done&&(u=E.return)&&u.call(E)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new e8({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule(function(){if(null===(t=e._state)||void 0===t||!t.done){var t,o=ew({type:"xstate.stop"}),r=e7(e,function(){var t=ec(M([],O(e.state.configuration),!1).sort(function(e,t){return t.order-e.order}).map(function(t){return ej(t.onExit,e.machine.options.actions)})),r=O(e3(e.machine,e.state,e.state.context,o,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),n=r[0],a=r[1],i=new e4({value:e.state.value,context:a,_event:o,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:n.filter(function(e){return!eN(e)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return i.changed=!0,i});e.update(r,o),e._stopChildren(),tn.free(e.sessionId)}}),this},e.prototype.batch=function(e){var t=this;if(this.status===v.NotStarted&&this.options.deferEvents);else if(this.status!==v.Running)throw Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var o=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var r,n,a=t.state,i=!1,l=[];try{for(var s=D(e),u=s.next();!u.done;u=s.next()){var c=u.value;!function(e){var r=ew(e);t.forward(r),a=e7(t,function(){return t.machine.transition(a,r,void 0,o||void 0)}),l.push.apply(l,M([],O(t.machine.config.predictableActionArguments?a.actions:a.actions.map(function(e){var t,o;return t=a,o=e.exec,P(P({},e),{exec:void 0!==o?function(){return o(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})})),!1)),i=i||!!a.changed}(c)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}a.changed=i,a.actions=l,t.update(a,ew(e[e.length-1]))})}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var o=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=ew(e);if(0===r.name.indexOf(Y)&&!this.state.nextEvents.some(function(e){return 0===e.indexOf(Y)}))throw r.data.data;return e7(this,function(){return o.machine.transition(o.state,r,void 0,t||void 0)})},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,o;try{for(var r=D(this.forwardTo),n=r.next();!n.done;n=r.next()){var a=n.value,i=this.children.get(a);if(!i)throw Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));i.send(e)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,o=this.clock.setTimeout(function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=o)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,o){void 0===o&&(o=this.machine.options.actions),this._exec(e,t.context,t._event,o)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),em(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,o){if(this.status!==v.Running)return tt(e,t);if(ev(e))return this.spawnPromise(Promise.resolve(e),t);if(em(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(e)&&"id"in e)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&em(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(ex(e))return this.spawnMachine(e,P(P({},o),{id:t}));if(null!==e&&"object"==typeof e&&"transition"in e&&"function"==typeof e.transition)return this.spawnBehavior(e,t);throw Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'))},e.prototype.spawnMachine=function(t,o){var r=this;void 0===o&&(o={});var n=new e(t,P(P({},this.options),{parent:this,id:o.id||t.id})),a=P(P({},ti),o);return a.sync&&n.onTransition(function(e){r.send(J,{state:e,id:n.id})}),this.children.set(n.id,n),a.autoForward&&this.forwardTo.add(n.id),n.onDone(function(e){r.removeChild(n.id),r.send(ew(e,{origin:n.id}))}).start(),n},e.prototype.spawnBehavior=function(e,t){var o,r,n,a,i,l,s,u,c,d,p=(o={id:t,parent:this},r=e.initialState,n=new Set,a=[],i=!1,l=function(){if(!i){for(i=!0;a.length>0;){var t=a.shift();r=e.transition(r,t,d),n.forEach(function(e){return e.next(r)})}i=!1}},s={id:o.id,send:function(e){a.push(e),l()},getSnapshot:function(){return r},subscribe:function(e,t,o){var a=eR(e,t,o);return n.add(a),a.next(r),{unsubscribe:function(){n.delete(a)}}}},c=P(((u={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[eE]=function(){return this},u),s),d={parent:o.parent,self:c,id:o.id||"anonymous",observers:n},r=e.start?e.start(d):r,c);return this.children.set(t,p),p},e.prototype.spawnPromise=function(e,t){var o,r,n=this,a=!1;e.then(function(e){a||(r=e,n.removeChild(t),n.send(ew(eQ(t,e),{origin:t})))},function(e){if(!a){n.removeChild(t);var o=e0(t,e);try{n.send(ew(o,{origin:t}))}catch(e){n.devTools&&n.devTools.send(o,n.state),n.machine.strict&&n.stop()}}});var i=((o={id:t,send:function(){},subscribe:function(t,o,r){var n=eR(t,o,r),a=!1;return e.then(function(e){!a&&(n.next(e),a||n.complete())},function(e){a||n.error(e)}),{unsubscribe:function(){return a=!0}}},stop:function(){a=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[eE]=function(){return this},o);return this.children.set(t,i),i},e.prototype.spawnCallback=function(e,t){var o,r,n,a=this,i=!1,l=new Set,s=new Set;try{n=e(function(e){r=e,s.forEach(function(t){return t(e)}),i||a.send(ew(e,{origin:t}))},function(e){l.add(e)})}catch(e){this.send(e0(t,e))}if(ev(n))return this.spawnPromise(n,t);var u=((o={id:t,send:function(e){return l.forEach(function(t){return t(e)})},subscribe:function(e){var t=eR(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){i=!0,em(n)&&n()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[eE]=function(){return this},o);return this.children.set(t,u),u},e.prototype.spawnObservable=function(e,t){var o,r,n=this,a=e.subscribe(function(e){r=e,n.send(ew(e,{origin:t}))},function(e){n.removeChild(t),n.send(ew(e0(t,e),{origin:t}))},function(){n.removeChild(t),n.send(ew(eQ(t),{origin:t}))}),i=((o={id:t,send:function(){},subscribe:function(t,o,r){return e.subscribe(t,o,r)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[eE]=function(){return this},o);return this.children.set(t,i),i},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var o=t(this.state.context,e);this.spawnEffect(e.id,o)}},e.prototype.spawnEffect=function(e,t){var o;this.children.set(e,((o={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[eE]=function(){return this},o))},e.prototype.attachDev=function(){var e=ta();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(P(P({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:P({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(e){if(ta()){var t=function(){var e=ta();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[eE]=function(){return this},e.prototype.getSnapshot=function(){return this.status===v.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=tu,e}();function ts(e,t){var o,r=ey(t)?P(P({},ti),{name:t}):P(P(P({},ti),{name:eC()}),t);return(o=e9[e9.length-1])?o.spawn(e,r.name,r):tt(e,r.name)}function tu(e,t){return new tl(e,t)}function tc(e){var t=y.useRef();return t.current||(t.current={v:e()}),t.current.v}var td=function(){return(td=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},tp=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o},tv=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,a=o.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},tf=o(32205),th=o(79188);let tg=({payload:e},t,o)=>{let{event:r}=e,{send:n}=t,{onSignIn:a,onSignOut:i}=o??{};switch(r){case"signedIn":(0,E.mf)(a)&&a(e);break;case"signInWithRedirect":n("SIGN_IN_WITH_REDIRECT");break;case"signedOut":case"tokenRefresh_failure":"signedOut"===r&&(0,E.mf)(i)&&i(),n("SIGN_OUT")}},tm=(e,t=tg)=>th.Xb.listen("auth",o=>t(o,e),"authenticator-hub-handler");function ty(e){return P(P({type:Z},e),{toJSON:function(){e.onDone,e.onError;var t=U(e,["onDone","onError"]);return P(P({},t),{type:Z,src:function(e){if("string"==typeof e){var t={type:e};return t.toString=function(){return e},t}return e}(e.src)})}})}var tb={},tE=function(e){return"#"===e[0]},tx=function(){function e(t,o,r,n){void 0===r&&(r="context"in t?t.context:void 0);var a,i=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},o),this.parent=null==n?void 0:n.parent,this.key=this.config.key||(null==n?void 0:n.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:"."),this.id=this.config.id||M([this.machine.key],O(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(a=this.config.schema)&&void 0!==a?a:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?ei(this.config.states,function(t,o){var r,n=new e(t,{},void 0,{parent:i,key:o});return Object.assign(i.idMap,P(((r={})[n.id]=n,r),n.idMap)),n}):tb;var l=0;!function e(t){var o,r;t.order=l++;try{for(var n=D(eF(t)),a=n.next();!a.done;a=n.next()){var i=a.value;e(i)}}catch(e){o={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(e){return""===e.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=ed(this.config.entry||this.config.onEntry).map(function(e){return eW(e)}),this.onExit=ed(this.config.exit||this.config.onExit).map(function(e){return eW(e)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=ed(this.config.invoke).map(function(e,t){if(ex(e)){var o,r,n=ek(i.id,t);return i.machine.options.services=P(((o={})[n]=e,o),i.machine.options.services),ty({src:n,id:n})}if(ey(e.src)){var n=e.id||ek(i.id,t);return ty(P(P({},e),{id:n,src:e.src}))}if(ex(e.src)||em(e.src)){var n=e.id||ek(i.id,t);return i.machine.options.services=P(((r={})[n]=e.src,r),i.machine.options.services),ty(P(P({id:n},e),{src:n}))}var a=e.src;return ty(P(P({id:ek(i.id,t)},e),{src:a}))}),this.activities=ed(this.config.activities).concat(this.invoke).map(function(e){return eH(e)}),this.transition=this.transition.bind(this),this.tags=ed(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||(function e(t){var o=[t];return eT(t)?o:o.concat(ec(eP(t).map(e)))})(this).forEach(function(e){return e.on})},e.prototype.withConfig=function(t,o){var r=this.options,n=r.actions,a=r.activities,i=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:P(P({},n),t.actions),activities:P(P({},a),t.activities),guards:P(P({},i),t.guards),services:P(P({},l),t.services),delays:P(P({},s),t.delays)},null!=o?o:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return em(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:ei(this.states,function(e){return e.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 e=this.transitions;return this.__cache.on=e.reduce(function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e},{})},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(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=""===e,o=this.transitions.filter(function(o){var r=o.eventType===e;return t?r:r||"*"===o.eventType});return this.__cache.candidates[e]=o,o},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var o=function(t,o){var r=eX(em(t)?"".concat(e.id,":delay[").concat(o,"]"):t,e.id);return e.onEntry.push(eG(r,{delay:t})),e.onExit.push(e$(r)),r};return(eg(t)?t.map(function(e,t){var r=o(e.delay,t);return P(P({},e),{event:r})}):ec(Object.keys(t).map(function(e,r){var n=t[e],a=ey(n)?{target:n}:n,i=isNaN(+e)?e:+e,l=o(i,r);return ed(a).map(function(e){return P(P({},e),{event:l,delay:i})})}))).map(function(t){var o=t.delay;return P(P({},e.formatTransition(t)),{delay:o})})},e.prototype.getStateNodes=function(e){var t,o=this;if(!e)return[];var r=e instanceof e4?e.value:en(e,this.delimiter);if(ey(r)){var n=this.getStateNode(r).initial;return void 0!==n?this.getStateNodes(((t={})[r]=n,t)):[this,this.states[r]]}var a=Object.keys(r),i=[this];return i.push.apply(i,M([],O(ec(a.map(function(e){return o.getStateNode(e).getStateNodes(r[e])}))),!1)),i},e.prototype.handles=function(e){var t=eo(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof e4?e:e4.create(e),o=Array.from(eU([],this.getStateNodes(t.value)));return new e4(P(P({},t),{value:this.resolve(t.value),configuration:o,done:eM(o,this),tags:eL(o),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,o){var r=this.getStateNode(e).next(t,o);return r&&r.transitions.length?r:this.next(t,o)},e.prototype.transitionCompoundNode=function(e,t,o){var r=Object.keys(e),n=this.getStateNode(r[0])._transition(e[r[0]],t,o);return n&&n.transitions.length?n:this.next(t,o)},e.prototype.transitionParallelNode=function(e,t,o){var r,n,a={};try{for(var i=D(Object.keys(e)),l=i.next();!l.done;l=i.next()){var s=l.value,u=e[s];if(u){var c=this.getStateNode(s)._transition(u,t,o);c&&(a[s]=c)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var d=Object.keys(a).map(function(e){return a[e]}),p=ec(d.map(function(e){return e.transitions}));if(!d.some(function(e){return e.transitions.length>0}))return this.next(t,o);var v=ec(Object.keys(a).map(function(e){return a[e].configuration}));return{transitions:p,exitSet:ec(d.map(function(e){return e.exitSet})),configuration:v,source:t,actions:ec(Object.keys(a).map(function(e){return a[e].actions}))}},e.prototype._transition=function(e,t,o){return ey(e)?this.transitionLeafNode(e,t,o):1===Object.keys(e).length?this.transitionCompoundNode(e,t,o):this.transitionParallelNode(e,t,o)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,ew(t))},e.prototype.next=function(e,t){var o,r,n,a=this,i=t.name,l=[],s=[];try{for(var u=D(this.getCandidates(i)),c=u.next();!c.done;c=u.next()){var d=c.value,p=d.cond,v=d.in,f=e.context,h=!v||(ey(v)&&tE(v)?e.matches(en(this.getStateNodeById(v).path,this.delimiter)):et(en(v,this.delimiter),es(this.path.slice(0,-2))(e.value))),g=!1;try{g=!p||e_(this.machine,p,f,t,e)}catch(e){throw Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(i,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&h){void 0!==d.target&&(s=d.target),l.push.apply(l,M([],O(d.actions),!1)),n=d;break}}}catch(e){o={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}if(n){if(!s.length)return{transitions:[n],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=ec(s.map(function(t){return a.getRelativeStateNodes(t,e.historyValue)})),y=!!n.internal;return{transitions:[n],exitSet:y?[]:ec(s.map(function(e){return a.getPotentiallyReenteringNodes(e)})),configuration:m,source:e,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],o=this;o&&o!==e;)t.push(o),o=o.parent;return o!==e?[]:(t.push(e),t)},e.prototype.getActions=function(e,t,o,r,n,a,i){var l,s,u,c,d=this,p=a?eU([],this.getStateNodes(a.value)):[],v=new Set;try{for(var f=D(Array.from(e).sort(function(e,t){return e.order-t.order})),h=f.next();!h.done;h=f.next()){var g=h.value;(!eO(p,g)||eO(o.exitSet,g)||g.parent&&v.has(g.parent))&&v.add(g)}}catch(e){l={error:e}}finally{try{h&&!h.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var m=D(p),y=m.next();!y.done;y=m.next()){var g=y.value;(!eO(e,g)||eO(o.exitSet,g.parent))&&o.exitSet.push(g)}}catch(e){u={error:e}}finally{try{y&&!y.done&&(c=m.return)&&c.call(m)}finally{if(u)throw u.error}}o.exitSet.sort(function(e,t){return t.order-e.order});var b=Array.from(v).sort(function(e,t){return e.order-t.order}),E=new Set(o.exitSet),x=ec(b.map(function(e){var t=[];if("final"!==e.type)return t;var a=e.parent;if(!a.parent)return t;t.push(eJ(e.id,e.doneData),eJ(a.id,e.doneData?ep(e.doneData,r,n):void 0));var i=a.parent;return"parallel"===i.type&&eP(i).every(function(e){return eM(o.configuration,e)})&&t.push(eJ(i.id)),t})),C=b.map(function(e){var t=e.onEntry,o=e.activities.map(function(e){return eK(e)});return{type:"entry",actions:ej(i?M(M([],O(t),!1),O(o),!1):M(M([],O(o),!1),O(t),!1),d.machine.options.actions)}}).concat({type:"state_done",actions:x.map(function(e){return eV(e)})}),S=Array.from(E).map(function(e){return{type:"exit",actions:ej(M(M([],O(e.onExit),!1),O(e.activities.map(function(e){return eZ(e)})),!1),d.machine.options.actions)}}).concat({type:"transition",actions:ej(o.actions,this.machine.options.actions)}).concat(C);if(t){var w=ej(ec(M([],O(e),!1).sort(function(e,t){return t.order-e.order}).map(function(e){return e.onExit})),this.machine.options.actions).filter(function(e){return!eN(e)});return S.concat({type:"stop",actions:w})}return S},e.prototype.transition=function(e,t,o,r){void 0===e&&(e=this.initialState);var n,a,i=ew(t);if(e instanceof e4)a=void 0===o?e:this.resolveState(e4.from(e,o));else{var l=ey(e)?this.resolve(ea(this.getResolvedPath(e))):this.resolve(e),s=null!=o?o:this.machine.context;a=this.resolveState(e4.from(l,s))}if(this.strict&&!this.events.includes(i.name)&&(n=i.name,!/^(done|error)\./.test(n)))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var u=this._transition(a.value,a,i)||{transitions:[],configuration:[],exitSet:[],source:a,actions:[]},c=eU([],this.getStateNodes(a.value)),d=u.configuration.length?eU(c,u.configuration):c;return u.configuration=M([],O(d),!1),this.resolveTransition(u,a,a.context,r,i)},e.prototype.resolveRaisedTransition=function(e,t,o,r){var n,a=e.actions;return(e=this.transition(e,t,void 0,r))._event=o,e.event=o.data,(n=e.actions).unshift.apply(n,M([],O(a),!1)),e},e.prototype.resolveTransition=function(e,t,o,r,n){var a,i,l,s,u,c,d=this;void 0===n&&(n=eB);var p=e.configuration,v=!t||e.transitions.length>0,f=v?e.configuration:t?t.configuration:[],h=eM(f,this),g=v?(i=eU([a=this.machine],p),function e(t,o){var r=o.get(t);if(!r)return{};if("compound"===t.type){var n=r[0];if(!n)return{};if(eT(n))return n.key}var a={};return r.forEach(function(t){a[t.key]=e(t,o)}),a}(a,eD(i))):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,y=this.getActions(new Set(f),h,e,o,n,t,r),b=t?P({},t.activities):{};try{for(var E=D(y),x=E.next();!x.done;x=E.next()){var C=x.value;try{for(var S=(u=void 0,D(C.actions)),w=S.next();!w.done;w=S.next()){var I=w.value;I.type===z?b[I.activity.id||I.activity.type]=I:I.type===W&&(b[I.activity.id||I.activity.type]=!1)}}catch(e){u={error:e}}finally{try{w&&!w.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}}}catch(e){l={error:e}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(l)throw l.error}}var _=O(e3(this,t,o,n,y,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),A=_[0],R=_[1],k=O(function(e,t){var o,r,n=O([[],[]],2),a=n[0],i=n[1];try{for(var l=D(e),s=l.next();!s.done;s=l.next()){var u=s.value;t(u)?a.push(u):i.push(u)}}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(o)throw o.error}}return[a,i]}(A,eN),2),N=k[0],T=k[1],F=A.filter(function(e){var t;return e.type===z&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Z}).reduce(function(e,t){var o,r,a,i,l,s,u,c;return e[t.activity.id]=(o=t.activity,r=d.machine,a=n,l=eA(o.src),s=null===(i=null==r?void 0:r.options.services)||void 0===i?void 0:i[l.type],u=o.data?ep(o.data,R,a):void 0,(c=s?tt(s,o.id,u):te(o.id)).meta=o,c),e},t?P({},t.children):{}),U=new e4({value:g||t.value,context:R,_event:n,_sessionid:t?t._sessionid:null,historyValue:g?m?{current:g,states:function e(t,o){return ei(t.states,function(t,r){if(t){var n=(ey(o)?void 0:o[r])||(t?t.current:void 0);if(n)return{current:n,states:e(t,n)}}})}(m,g)}:void 0:t?t.historyValue:void 0,history:!g||e.source?t:void 0,actions:g?T:[],activities:g?b:t?t.activities:{},events:[],configuration:f,transitions:e.transitions,children:F,done:h,tags:eL(f),machine:this}),M=o!==R;U.changed=n.name===J||M;var L=U.history;L&&delete L.history;var B=!h&&(this._transient||p.some(function(e){return e._transient}));if(!v&&(!B||""===n.name))return U;var j=U;if(!h)for(B&&(j=this.resolveRaisedTransition(j,{type:G},n,r));N.length;){var H=N.shift();j=this.resolveRaisedTransition(j,H._event,n,r)}var V=j.changed||(L?!!j.actions.length||M||typeof L.value!=typeof j.value||!function e(t,o){if(t===o)return!0;if(void 0===t||void 0===o)return!1;if(ey(t)||ey(o))return t===o;var r=Object.keys(t),n=Object.keys(o);return r.length===n.length&&r.every(function(r){return e(t[r],o[r])})}(j.value,L.value):void 0);return j.changed=V,j.history=L,j},e.prototype.getStateNode=function(e){if(tE(e))return this.machine.getStateNodeById(e);if(!this.states)throw Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=tE(e)?e.slice(1):e;if(t===this.id)return this;var o=this.machine.idMap[t];if(!o)throw Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return o},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&tE(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=er(e,this.delimiter).slice(),o=this;t.length;){var r=t.shift();if(!r.length)break;o=o.getStateNode(r)}return o},e.prototype.resolve=function(e){var t,o=this;if(!e)return this.initialStateValue||tb;switch(this.type){case"parallel":return ei(this.initialStateValue,function(t,r){return t?o.getStateNode(r).resolve(e[r]||t):tb});case"compound":if(ey(e)){var r=this.getStateNode(e);if("parallel"===r.type||"compound"===r.type)return(t={})[e]=r.initialStateValue,t;return e}if(!Object.keys(e).length)return this.initialStateValue||{};return ei(e,function(e,t){return e?o.getStateNode(t).resolve(e):tb});default:return e||tb}},e.prototype.getResolvedPath=function(e){if(tE(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw Error("Unable to find state node '".concat(e,"'"));return t.path}return er(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=el(this.states,function(e){return e.initialStateValue||tb},function(e){return"history"!==e.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=eT(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var o=this.getStateNodes(e);return this.resolveTransition({configuration:o,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=ey(t.target)&&tE(t.target)?ea(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,o){return void 0===o&&(o=!0),o?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return eT(this)?[this]:"compound"!==this.type||this.initial?ec(eu(this.initialStateValue).map(function(t){return e.getFromRelativePath(t)})):[this]},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=O(e),o=t[0],r=t.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(o,"' from node with no states"));var n=this.getStateNode(o);if("history"===n.type)return n.resolveHistory();if(!this.states[o])throw Error("Child state '".concat(o,"' does not exist on '").concat(this.id,"'"));return this.states[o].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:el(this.states,function(t,o){if(!e)return t.historyValue();var r=ey(e)?void 0:e[o];return t.historyValue(r||t.initialStateValue)},function(e){return!e.history})}},e.prototype.resolveHistory=function(e){var t,o=this;if("history"!==this.type)return[this];var r=this.parent;if(!e){var n=this.target;return n?ec(eu(n).map(function(e){return r.getFromRelativePath(e)})):r.initialStateNodes}var a=(t=r.path,function(e){var o,r,n=e;try{for(var a=D(t),i=a.next();!i.done;i=a.next()){var l=i.value;n=n.states[l]}}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return n})(e).current;return ey(a)?[r.getStateNode(a)]:ec(eu(a).map(function(e){return"deep"===o.history?r.getFromRelativePath(e):[r.states[e[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=ec(Object.keys(this.states).map(function(t){return e.states[t].stateIds}));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var e,t,o,r,n=this.states,a=new Set(this.ownEvents);if(n)try{for(var i=D(Object.keys(n)),l=i.next();!l.done;l=i.next()){var s=n[l.value];if(s.states)try{for(var u=(o=void 0,D(s.events)),c=u.next();!c.done;c=u.next()){var d=c.value;a.add("".concat(d))}}catch(e){o={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(e){return!(!e.target&&!e.actions.length&&e.internal)}).map(function(e){return e.eventType})))},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map(function(e){if(!ey(e))return e;var o=e[0]===t.delimiter;if(o&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=o?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}})},e.prototype.formatTransition=function(e){var t=this,o=function(e){if(void 0!==e&&""!==e)return ed(e)}(e.target),r="internal"in e?e.internal:!o||o.some(function(e){return ey(e)&&e[0]===t.delimiter}),n=this.machine.options.guards,a=this.resolveTarget(o),i=P(P({},e),{actions:ej(ed(e.actions)),cond:eb(e.cond,n),target:a,source:this,internal:r,eventType:e.event,toJSON:function(){return P(P({},i),{target:i.target?i.target.map(function(e){return"#".concat(e.id)}):void 0,source:"#".concat(t.id)})}});return i},e.prototype.formatTransitions=function(){var e,t,o,r=this;if(this.config.on){if(Array.isArray(this.config.on))o=this.config.on;else{var n=this.config.on,a=n["*"],i=U(n,["*"]);o=ec(Object.keys(i).map(function(e){return eI(e,i[e])}).concat(eI("*",void 0===a?[]:a)))}}else o=[];var l=this.config.always?eI("",this.config.always):[],s=this.config.onDone?eI(String(eJ(this.id)),this.config.onDone):[],u=ec(this.invoke.map(function(e){var t=[];return e.onDone&&t.push.apply(t,M([],O(eI(String(eQ(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,M([],O(eI(String(e0(e.id)),e.onError)),!1)),t})),c=this.after,d=ec(M(M(M(M([],O(s),!1),O(u),!1),O(o),!1),O(l),!1).map(function(e){return ed(e).map(function(e){return r.formatTransition(e)})}));try{for(var p=D(c),v=p.next();!v.done;v=p.next()){var f=v.value;d.push(f)}}catch(t){e={error:t}}finally{try{v&&!v.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}return d},e}();function tC(e,t){return new tx(e,t)}var tS=eq,tw=o(69809);let tI=e=>{let t=e.trim().split("");for(let e=0;e<t.length;e++)e>0&&e<t.length-1&&(t[e]="*");return t.join("")},t_=e=>{if(e.length<4)return e;let t=e.split("");for(let e=0;e<t.length-4;e++)t[e]="*";return t.join("")},tA=e=>{let t=e.split("@"),o=tI(t[0]);return`${o}@${t[1]}`},tR=(e,t)=>"Phone Number"===e?t_(t):tA(t),tk=e=>tw.Xo.some(t=>e.includes(t)),tN=(e,t,o)=>encodeURI(`otpauth://totp/${e}:${t}?secret=${o}&issuer=${e}`);var tT=o(2923);let tF=(e,t)=>`${e}${t}`.replace(/[^A-Z0-9+]/gi,""),tP=(e,t)=>{switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}},tU=e=>{let{phone_number:t,...o}=tT(e,tP);if((0,E.HD)(t)&&""!==t){let{country_code:r}=e;return{...o,phone_number:tF(r,t)}}return o},tD=(e,t,o)=>{let{password:r,...n}=t,a=tU(n),i={autoSignIn:!0,userAttributes:{..."phone_number"===o?{...a,phone_number:e}:a}};return{username:e,password:r,options:i}},{assign:tO}=m,tM=tO({actorDoneData:void 0}),tL=tO({challengeName:void 0}),tB=tO({missingAttributes:void 0}),tz=tO({remoteError:void 0}),tW=tO({formValues:{}}),tj=tO({touched:{}}),tH=tO({user:void 0}),tV=tO({validationError:{}}),tG=tO({totpSecretCode:(e,{data:t})=>{let{sharedSecret:o}=t.nextStep?.totpSetupDetails??{};return o}}),tq=tO({step:"SIGN_IN"}),t$=tO({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),tK=tO({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),tZ=tO({challengeName:(e,{data:t})=>{let{signInStep:o}=t.nextStep;return"CONFIRM_SIGN_IN_WITH_SMS_CODE"===o?"SMS_MFA":"CONFIRM_SIGN_IN_WITH_TOTP_CODE"===o?"SOFTWARE_TOKEN_MFA":void 0}}),tY=tO({username:({formValues:e,loginMechanisms:t})=>{let o=t[0],{username:r,country_code:n}=e;return"phone_number"===o?tF(n,r):r}}),tX=tO({username:({formValues:e,loginMechanisms:t})=>{let o=t[0];if("phone_number"===o){let{country_code:t,phone_number:o}=e;return tF(t,o)}return e[o]}}),tJ=tO({username:({formValues:e,loginMechanisms:t})=>{let o=t[0],{username:r,country_code:n}=e;return"phone_number"===o?tF(n,r):r}}),tQ=tO({step:(e,{data:t})=>"DONE"===t.nextStep.signInStep?"SIGN_IN_COMPLETE":t.nextStep.signInStep}),t0=tO({step:(e,{data:t})=>"DONE"===t.nextStep.signUpStep?"SIGN_UP_COMPLETE":t.nextStep.signUpStep}),t1=tO({step:(e,{data:t})=>"DONE"===t.nextStep.resetPasswordStep?"RESET_PASSWORD_COMPLETE":t.nextStep.resetPasswordStep}),t2=tO({missingAttributes:(e,{data:t})=>t.nextStep?.missingAttributes}),t5=tO({validationError:(e,{data:t})=>t}),t3=tO({remoteError:(e,{data:t})=>"NoUserPoolError"===t.name?`Configuration error (see console) – please contact the administrator`:t?.message||t}),t4=tO({user:(e,{data:t})=>t}),t6=e=>({Destination:e.destination,DeliveryMedium:e.deliveryMedium,AttributeName:e.attributName}),t8=tO({codeDeliveryDetails:(e,{data:t})=>t?.nextStep?.codeDeliveryDetails?t6(t.nextStep.codeDeliveryDetails):t6(t)}),t9=tO({formValues:(e,{data:t})=>{let{name:o,value:r}=t;return{...e.formValues,[o]:r}}}),t7=tO({formValues:(e,{data:t})=>(function(e,...t){return Object.entries(e).reduce((e,[o,r])=>({...e,[o]:t.includes(o)?r:r?.trim()}),{})})({...e.formValues,...t},"password")}),oe=tO({touched:(e,{data:t})=>({...e.touched,[t.name]:!0})}),ot=tO({unverifiedUserAttributes:(e,{data:t})=>{let{email:o,phone_number:r}=t;return{...o&&{email:o},...r&&{phone_number:r}}}}),oo=tO({selectedUserAttribute:void 0}),or=tO({selectedUserAttribute:e=>e.formValues?.unverifiedAttr}),on={clearActorDoneData:tM,clearChallengeName:tL,clearError:tz,clearFormValues:tW,clearMissingAttributes:tB,clearSelectedUserAttribute:oo,clearTouched:tj,clearUser:tH,clearValidationError:tV,handleBlur:oe,handleInput:t9,handleSubmit:t7,setChallengeName:tZ,setCodeDeliveryDetails:t8,setFieldErrors:t5,setMissingAttributes:t2,setNextResetPasswordStep:t1,setNextSignInStep:tQ,setNextSignUpStep:t0,setRemoteError:t3,setConfirmAttributeCompleteStep:tK,setConfirmSignUpSignUpStep:tO({step:"CONFIRM_SIGN_UP"}),setShouldVerifyUserAttributeStep:t$,setSelectedUserAttribute:or,setSignInStep:tq,setTotpSecretCode:tG,setUser:t4,setUnverifiedUserAttributes:ot,setUsernameForgotPassword:tY,setUsernameSignIn:tJ,setUsernameSignUp:tX},oa=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE"],oi={hasCompletedAttributeConfirmation:(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_COMPLETE",hasCompletedResetPassword:(e,{data:t})=>t?.nextStep.resetPasswordStep==="DONE",hasCompletedSignIn:(e,{data:t})=>t?.nextStep.signInStep==="DONE",hasCompletedSignUp:(e,{data:t})=>t?.nextStep.signUpStep==="DONE",isConfirmSignUpStep:(e,{data:t})=>t?.step==="CONFIRM_SIGN_UP",isConfirmUserAttributeStep:(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_WITH_CODE",isResetPasswordStep:(e,{data:t})=>t?.step==="RESET_PASSWORD",isShouldConfirmUserAttributeStep:(e,{data:t})=>t?.step==="SHOULD_CONFIRM_USER_ATTRIBUTE",isUserAlreadyConfirmed:(e,{data:t})=>"User is already confirmed."===t.message,shouldAutoSignIn:(e,{data:t})=>t?.nextStep.signUpStep==="COMPLETE_AUTO_SIGN_IN",shouldConfirmResetPassword:({step:e})=>"CONFIRM_RESET_PASSWORD_WITH_CODE"===e,shouldConfirmSignIn:({step:e})=>oa.includes(e),shouldConfirmSignInWithNewPassword:(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",shouldConfirmSignUp:({step:e})=>"CONFIRM_SIGN_UP"===e,shouldConfirmSignUpFromSignIn:(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_UP",shouldResetPassword:({step:e})=>"RESET_PASSWORD"===e,shouldResetPasswordFromSignIn:(e,{data:t})=>t?.nextStep?.signInStep==="RESET_PASSWORD",shouldSetupTotp:({step:e})=>"CONTINUE_SIGN_IN_WITH_TOTP_SETUP"===e,shouldVerifyAttribute:(e,{data:t})=>{let{phone_number_verified:o,email_verified:r}=t;return(void 0===r||"false"===r)&&(void 0===o||"false"===o)}};var ol=o(73957);let os=async(e,t,o,r)=>{let n=ol({},...await Promise.all(r.map(r=>r(e,t,o))));return(0,E.xb)(n)?Promise.resolve():Promise.reject(n)};var ou=o(58144),oc=o(75365),od=o(83826),op=o(26011),ov=o(16609),of=o(65841),oh=o(22289);let og=e=>Array.isArray(e),om=e=>e?og(e)?Object.entries(e).map(([e,t])=>Object.keys(t)[0]):Object.keys(e):void 0,oy={async getAmplifyConfig(){let e=ou.V.getConfig(),t=e.Auth?.Cognito,{loginWith:o,userAttributes:r}=e.Auth?.Cognito??{},n=o?Object.entries(o).filter(([e,t])=>"oauth"!==e).filter(([e,t])=>!!t).map(e=>"phone"===e[0]?"phone_number":e[0]):void 0,a=om(r),i=o?.oauth?.providers?o.oauth.providers?.map(e=>e.toString().toLowerCase()):void 0;return{...t,loginMechanisms:n,signUpAttributes:a,socialProviders:i}},getCurrentUser:tf.t,handleSignIn:oc.z,handleSignUp:od.y,handleConfirmSignIn:op.t,handleConfirmSignUp:ov._,handleForgotPasswordSubmit:of.f,handleForgotPassword:oh.c,async validateCustomSignUp(e,t){},async validateFormPassword(e,t,o){let{password:r}=e,{password:n}=t;if(!n||!o)return null;let a=[],i=o.minLength??8;return r.length<i&&a.push(`Password must have at least ${i} characters`),o.requireLowercase&&!/[a-z]/.test(r)&&a.push("Password must have lower case letters"),o.requireUppercase&&!/[A-Z]/.test(r)&&a.push("Password must have upper case letters"),o.requireNumbers&&!/[0-9]/.test(r)&&a.push("Password must have numbers"),o.requireSpecialCharacters&&!tk(r)&&a.push("Password must have special characters"),0!==a.length?{password:a}:null},async validateConfirmPassword(e,t){let{password:o,confirm_password:r}=e,{confirm_password:n,password:a}=t;return o||r?(o||r)&&o!==r&&(n&&a||o?.length>=6&&r?.length>=6)?{confirm_password:"Your passwords must match"}:void 0:null},async validatePreferredUsername(e,t){}};var ob=o(59709),oE=o(69826),ox=o(33853),oC=o(38633),oS=o(64914),ow=o(49467),oI=o(68707),o_=o(62291),oA=o(57082);async function oR(e){let t=e.username;(0,oC.n)(!!t,oS.X.EmptySignUpUsername);let o=oE.d.getConfig().Auth?.Cognito;(0,ox.FG)(o);let{userPoolClientId:r,userPoolId:n}=o,a=e.options?.clientMetadata,i=(0,oA.u)({username:t,userPoolId:n,userPoolClientId:r}),{CodeDeliveryDetails:l}=await (0,oI.S5)({region:(0,ow.u)(o.userPoolId),userAgentValue:(0,o_.W)(w.g4.ResendSignUpCode)},{Username:t,ClientMetadata:a,ClientId:o.userPoolClientId,UserContextData:i}),{DeliveryMedium:s,AttributeName:u,Destination:c}={...l};return{destination:c,deliveryMedium:s,attributeName:u||void 0}}var ok=o(61291),oN=o(94145);let oT=new(o(2439)).R(oN.Fm);var oF=o(66070),oP=o(27046),oU=o(37753);(l=f||(f={})).NoConfig="noConfig",l.MissingAuthConfig="missingAuthConfig",l.EmptyUsername="emptyUsername",l.InvalidUsername="invalidUsername",l.EmptyPassword="emptyPassword",l.EmptyCode="emptyCode",l.SignUpError="signUpError",l.NoMFA="noMFA",l.InvalidMFA="invalidMFA",l.EmptyChallengeResponse="emptyChallengeResponse",l.NoUserSession="noUserSession",l.Default="default",l.DeviceConfig="deviceConfig",l.NetworkError="networkError",l.AutoSignInError="autoSignInError",l.OAuthSignInError="oauthSignInError";let oD=async e=>{let t=await oT.loadOAuthState(),o=e===t?t:void 0;if(!o)throw new oU.l({name:f.OAuthSignInError,message:null===e?"`signInWithRedirect` has been canceled.":"An error occurred while validating the state.",recoverySuggestion:null===e?void 0:"Try to initiate an OAuth flow from Amplify"});return o},oO=[],oM=e=>{oO.push(e)},oL=()=>{for(;oO.length;)oO.pop()?.()};var oB=o(21541),oz=o(90002),oW=o(40848);new oz.k("AuthError");let oj={oauthSignInError:{message:oW.AL.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:oW.AL.DEFAULT_MSG,log:`
            Error: Amplify has not been configured correctly.
            This error is typically caused by one of the following scenarios:

            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point
                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information
            
            2. There might be multiple conflicting versions of amplify packages in your node_modules.
				Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)
        `},missingAuthConfig:{message:oW.AL.DEFAULT_MSG,log:`
            Error: Amplify has not been configured correctly. 
            The configuration object is missing required auth properties.
            This error is typically caused by one of the following scenarios:

            1. Did you run \`amplify push\` after adding auth via \`amplify add auth\`?
                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information

            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.
        `},emptyUsername:{message:oW.AL.EMPTY_USERNAME},invalidUsername:{message:oW.AL.INVALID_USERNAME},emptyPassword:{message:oW.AL.EMPTY_PASSWORD},emptyCode:{message:oW.AL.EMPTY_CODE},signUpError:{message:oW.AL.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:oW.AL.NO_MFA},invalidMFA:{message:oW.AL.INVALID_MFA},emptyChallengeResponse:{message:oW.AL.EMPTY_CHALLENGE},noUserSession:{message:oW.AL.NO_USER_SESSION},deviceConfig:{message:oW.AL.DEVICE_CONFIG},networkError:{message:oW.AL.NETWORK_ERROR},autoSignInError:{message:oW.AL.AUTOSIGNIN_ERROR},default:{message:oW.AL.DEFAULT_MSG}},oH=(e,t)=>new oU.l({message:e??"An error has occurred during the oauth process.",name:oW.kq.OAuthSignInError,recoverySuggestion:t??oj.oauthSignInError.log});var oV=o(29723),oG=o(31567);let oq=async({currentUrl:e,userAgentValue:t,clientId:o,redirectUri:r,responseType:n,domain:a,preferPrivateSession:i})=>{let l=new oF.a(e),s=l.searchParams.get("error"),u=l.searchParams.get("error_description");if(s)throw oH(u??s);return"code"===n?o$({currentUrl:e,userAgentValue:t,clientId:o,redirectUri:r,domain:a,preferPrivateSession:i}):oK({currentUrl:e,redirectUri:r,preferPrivateSession:i})},o$=async({currentUrl:e,userAgentValue:t,clientId:o,redirectUri:r,domain:n,preferPrivateSession:a})=>{let i=new oF.a(e),l=i.searchParams.get("code"),s=i.searchParams.get("state");if(!l||!s)throw oH("User cancelled OAuth flow.");let u=await oD(s),c=await oT.loadPKCE(),d=Object.entries({grant_type:"authorization_code",code:l,client_id:o,redirect_uri:r,...c?{code_verifier:c}:{}}).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&"),{access_token:p,refresh_token:v,id_token:f,error:h,error_message:g,token_type:m,expires_in:y}=await (await fetch("https://"+n+"/oauth2/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[oP.Mt]:t},body:d})).json();if(h)throw oH(g??h);let b=(p&&(0,ox.xp)(p).payload.username)??"username";return await (0,oB.x)({username:b,AccessToken:p,IdToken:f,RefreshToken:v,TokenType:m,ExpiresIn:y}),oZ({redirectUri:r,state:u,preferPrivateSession:a})},oK=async({currentUrl:e,redirectUri:t,preferPrivateSession:o})=>{let{id_token:r,access_token:n,state:a,token_type:i,expires_in:l,error_description:s,error:u}=(new oF.a(e).hash??"#").substring(1).split("&").map(e=>e.split("=")).reduce((e,[t,o])=>({...e,[t]:o}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(u)throw oH(s??u);if(!n)throw oH("No access token returned from OAuth flow.");let c=await oD(a),d=(n&&(0,ox.xp)(n).payload.username)??"username";return await (0,oB.x)({username:d,AccessToken:n,IdToken:r,TokenType:i,ExpiresIn:l}),oZ({redirectUri:t,state:c,preferPrivateSession:o})},oZ=async({redirectUri:e,state:t,preferPrivateSession:o})=>{await oT.clearOAuthData(),await oT.storeOAuthSignIn(!0,o),oL(),oV.D.setWaitForInflightOAuth(async()=>{}),oY(t)&&th.Xb.dispatch("auth",{event:"customOAuthState",data:(oX(t).match(/.{2}/g)||[]).map(e=>String.fromCharCode(parseInt(e,16))).join("")},"Auth",th.SQ),th.Xb.dispatch("auth",{event:"signInWithRedirect"},"Auth",th.SQ),await (0,oG.O)(),oJ(e)},oY=e=>/-/.test(e),oX=e=>e.split("-").splice(1).join("-"),oJ=e=>{"undefined"!=typeof window&&void 0!==window.history&&window.history.replaceState(window.history.state,"",e)};var oQ=o(56766);let o0=async e=>{oL(),await oT.clearOAuthInflightData(),th.Xb.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",th.SQ)},o1=async e=>{try{(0,ox.FG)(e),(0,ox.V0)(e),oT.setAuthConfig(e)}catch(e){return}if(!await oT.loadOAuthInFlight())return;let t=new Promise((e,t)=>{oM(e)});oV.D.setWaitForInflightOAuth(()=>t);try{let t=window.location.href,{loginWith:o,userPoolClientId:r}=e,{domain:n,redirectSignIn:a,responseType:i}=o.oauth,l=(0,oQ.B)(a);await oq({currentUrl:t,clientId:r,domain:n,redirectUri:l,responseType:i,userAgentValue:(0,o_.W)(w.g4.SignInWithRedirect)})}catch(e){await o0(e)}};"undefined"!=typeof window&&void 0!==window.document&&oE.d[ok.w](o1);let o2={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"};var o5=o(87886),o3=o(29404),o4=o(50146),o6=o(12307),o8=o(24497);let o9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o7=e=>{let t;let o=new Uint8Array(e);(0,o6.MX)().getRandomValues(o);let r="";for(let e of o)r+=o9.charAt(e%o9.length);return{value:r,method:"S256",toCodeChallenge:()=>t||(t=function(e){let t=new o4.f;return t.update(e),o8.u.convert(t.digestSync(),{urlSafe:!0}).replace(/=/g,"")}(r))}},re=e=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o="";for(let r=0;r<e;r++)o+=t.charAt(Math.floor(Math.random()*t.length));return o},rt=()=>re(32);async function ro(e){let t=oE.d.getConfig().Auth?.Cognito;(0,ox.FG)(t),(0,ox.V0)(t),oT.setAuthConfig(t),await (0,o3.OP)();let o="COGNITO";return"string"==typeof e?.provider?o=o2[e.provider]:e?.provider?.custom&&(o=e.provider.custom),rr({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:o,customState:e?.customState,preferPrivateSession:e?.options?.preferPrivateSession})}let rr=async({oauthConfig:e,provider:t,clientId:o,customState:r,preferPrivateSession:n})=>{let{domain:a,redirectSignIn:i,responseType:l,scopes:s}=e,u=rt(),c=r?`${u}-${r.split("").map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}`:u,{value:d,method:p,toCodeChallenge:v}=o7(128),f=(0,oQ.B)(e.redirectSignIn);oT.storeOAuthInFlight(!0),oT.storeOAuthState(c),oT.storePKCE(d);let h=Object.entries({redirect_uri:f,response_type:l,client_id:o,identity_provider:t,scope:s.join(" "),state:c,..."code"===l&&{code_challenge:v(),code_challenge_method:p}}).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&"),g=`https://${a}/oauth2/authorize?${h}`,{type:m,error:y,url:b}=await (0,o5.A)(g)??{};try{if("error"===m)throw oH(String(y));"success"===m&&b&&await oq({currentUrl:b,clientId:o,domain:a,redirectUri:f,responseType:l,userAgentValue:(0,o_.W)(w.g4.SignInWithRedirect),preferPrivateSession:n})}catch(e){throw await o0(e),e}},rn=e=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:e},onError:{actions:"setRemoteError",target:e}}}),ra={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signInActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:["setMissingAttributes","setNextSignInStep"],target:"#signInActor.forceChangePassword"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resendSignUpCode"},{actions:["setChallengeName","setMissingAttributes","setNextSignInStep","setTotpSecretCode"],target:"#signInActor.init"}],onError:{actions:"setRemoteError",target:"edit"}},ri={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signInActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}};var rl=o(84430);let rs={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},ru={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signUpActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:"setNextSignInStep",target:"#signUpActor.resolved"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resendSignUpCode"},{actions:["setNextSignInStep","setChallengeName","setMissingAttributes","setTotpSecretCode"],target:"#signUpActor.resolved"}],onError:{actions:"setRemoteError",target:"#signUpActor.resolved"}},rc={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signUpActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}};var rd=o(32775);let rp=()=>tC({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:"pending",invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>(0,rd.w)()}});var rv=o(59809),rf=o(93822);let rh=async e=>{let{userAttributeKey:t,options:o}=e,r=oE.d.getConfig().Auth?.Cognito,n=o?.clientMetadata;(0,ox.FG)(r);let{tokens:a}=await (0,rv.y)({forceRefresh:!1});(0,rf.CA)(a);let{CodeDeliveryDetails:i}=await (0,oI.V3)({region:(0,ow.u)(r.userPoolId),userAgentValue:(0,o_.W)(w.g4.SendUserAttributeVerificationCode)},{AccessToken:a.accessToken.toString(),ClientMetadata:n,AttributeName:t}),{DeliveryMedium:l,AttributeName:s,Destination:u}={...i};return{destination:u,deliveryMedium:l,attributeName:s}};async function rg(e){let t=oE.d.getConfig().Auth?.Cognito;(0,ox.FG)(t);let{confirmationCode:o,userAttributeKey:r}=e;(0,oC.n)(!!o,oS.X.EmptyConfirmUserAttributeCode);let{tokens:n}=await (0,rv.y)({forceRefresh:!1});(0,rf.CA)(n),await (0,oI.tl)({region:(0,ow.u)(t.userPoolId),userAgentValue:(0,o_.W)(w.g4.ConfirmUserAttribute)},{AccessToken:n.accessToken.toString(),AttributeName:r,Code:o})}let rm=(e,t)=>({...e.actorDoneData,step:e?.actorDoneData?.step??t,formValues:{},touched:{},validationError:{},formFields:e.config?.formFields,loginMechanisms:e.config?.loginMechanisms,passwordSettings:e.config?.passwordSettings,signUpAttributes:e.config?.signUpAttributes,socialProviders:e.config?.socialProviders}),{choose:ry,stop:rb}=m,rE=e=>rb(e),rx={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},rC={always:{actions:"configure",target:"getConfig"}};function rS(e){let{useNextWaitConfig:t,...o}=e??{};return tC({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:oy,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"setup"},onError:{target:"setup"}}},setup:{initial:"initConfig",states:{initConfig:t?rC:rx,getConfig:{invoke:{src:"getAmplifyConfig",onDone:[{actions:["applyAmplifyConfig","setHasSetup"],cond:"hasUser",target:"#authenticator.authenticated"},{actions:["applyAmplifyConfig","setHasSetup"],target:"goToInitialState"}]}},goToInitialState:{always:[{cond:"isInitialStateSignUp",target:"#authenticator.signUpActor"},{cond:"isInitialStateResetPassword",target:"#authenticator.forgotPasswordActor"},{target:"#authenticator.signInActor"}]}}},getCurrentUser:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"#authenticator.authenticated"},onError:{target:"#authenticator.setup"}}},signInActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:rE("signInActor")}},on:{FORGOT_PASSWORD:"forgotPasswordActor",SIGN_IN:"signInActor",SIGN_UP:"signUpActor","done.invoke.signInActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isResetPasswordStep",actions:"setActorDoneData",target:"#authenticator.forgotPasswordActor"},{cond:"isConfirmSignUpStep",actions:"setActorDoneData",target:"#authenticator.signUpActor"}]}},signUpActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:rE("signUpActor")}},on:{SIGN_IN:"signInActor","done.invoke.signUpActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isConfirmUserAttributeStep",target:"#authenticator.verifyUserAttributesActor"},{actions:"setActorDoneData",target:"#authenticator.signInActor"}]}},forgotPasswordActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnForgotPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:rE("forgotPasswordActor")}},on:{SIGN_IN:"signInActor","done.invoke.forgotPasswordActor":[{target:"#authenticator.signInActor"}]}},verifyUserAttributesActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnVerifyUserAttributesActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:rE("verifyUserAttributesActor")}},on:{"done.invoke.verifyUserAttributesActor":[{actions:"setActorDoneData",target:"#authenticator.getCurrentUser"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"#authenticator.getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:rE("signOutActor")}},on:{"done.invoke.signOutActor":{actions:"clearUser",target:"setup.getConfig"}}}},on:{SIGN_IN_WITH_REDIRECT:{target:"#authenticator.getCurrentUser"},CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{...on,forwardToActor:ry([{cond:"hasActor",actions:e1(({actorRef:e})=>e)}]),setActorDoneData:eY({actorDoneData:(e,t)=>({codeDeliveryDetails:t.data.codeDeliveryDetails,missingAttributes:t.data.missingAttributes,remoteError:t.data.remoteError,username:t.data.username,step:t.data.step,totpSecretCode:t.data.totpSecretCode,unverifiedUserAttributes:t.data.unverifiedUserAttributes})}),applyAmplifyConfig:eY({config(e,{data:t}){let{loginMechanisms:o=t.loginMechanisms??[],signUpAttributes:r=t.signUpAttributes??[],socialProviders:n=t.socialProviders??[],initialState:a,formFields:i,passwordSettings:l=t.passwordFormat??{}}=e.config;return 0===o.length&&o.push("username"),{formFields:(i&&Object.keys(i).forEach(e=>{Object.keys(i[e]).forEach(t=>{let o=i[e][t];o.required=o.isRequired})}),i??{}),initialState:a,loginMechanisms:o,passwordSettings:l,signUpAttributes:r,socialProviders:n}}}),spawnSignInActor:eY({actorRef:(e,t)=>{let{services:o}=e;return ts((function({services:e}){return tC({id:"signInActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignIn",target:"confirmSignIn"},{cond:"shouldSetupTotp",target:"setupTotp"},{cond:({step:e})=>"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED"===e,actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:rn("signIn"),fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...ri}},resendSignUpCode:{invoke:{src:"handleResendSignUpCode",onDone:{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resetPassword:{invoke:{src:"resetPassword",onDone:[{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}}},signIn:{initial:"edit",exit:"clearTouched",states:{edit:{entry:"sendUpdate",on:{CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:{target:"#signInActor.federatedSignIn"},SUBMIT:{actions:"handleSubmit",target:"submit"}}},submit:{tags:"pending",entry:["clearError","sendUpdate","setUsernameSignIn"],exit:"clearFormValues",invoke:{src:"handleSignIn",...ra}}}},confirmSignIn:{initial:"edit",exit:["clearChallengeName","clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",...ra}}}},forceChangePassword:{entry:"sendUpdate",type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:{actions:"setSignInStep",target:"#signInActor.resolved"},CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"edit",entry:"clearError",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{actions:"clearValidationError",target:"pending"},onError:{actions:"setFieldErrors",target:"edit"}}},pending:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"handleForceChangePassword",...ra}}}}}},setupTotp:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"confirmSignIn",...ra}}}},resolved:{type:"final",data:e=>({codeDeliveryDetails:e.codeDeliveryDetails,remoteError:e.remoteError,step:e.step,unverifiedUserAttributes:e.unverifiedUserAttributes,username:e.username})}}},{actions:{...on,sendUpdate:tS()},guards:oi,services:{fetchUserAttributes:async()=>(0,ob.v)(),resetPassword:({username:e})=>(0,oh.c)({username:e}),handleResendSignUpCode:({username:e})=>oR({username:e}),handleSignIn({formValues:t,username:o}){let{password:r}=t;return e.handleSignIn({username:o,password:r})},confirmSignIn({formValues:t}){let{confirmation_code:o}=t;return e.handleConfirmSignIn({challengeResponse:o})},async handleForceChangePassword({formValues:e}){let t,{password:o,phone_number:r,country_code:n,confirm_password:a,...i}=e;r&&(t=`${n}${r}`.replace(/[^A-Z0-9+]/gi,""),i={...i,phone_number:t});let l={challengeResponse:o,options:{userAttributes:i}};return(0,op.t)(l)},signInWithRedirect:(e,{data:t})=>ro(t),validateFields:async e=>os(e.formValues,e.touched,e.passwordSettings,[oy.validateFormPassword,oy.validateConfirmPassword])}})})({services:o}).withContext(rm(e,"SIGN_IN")),{name:"signInActor"})}}),spawnSignUpActor:eY({actorRef:(e,t)=>{let{services:o}=e;return ts((function({services:e}){return tC({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]},autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...ru}},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...rc}},federatedSignIn:rn("signUp"),resetPassword:{invoke:{src:"resetPassword",...rs}},resendSignUpCode:{tags:"pending",entry:"sendUpdate",exit:"sendUpdate",invoke:{src:"resendSignUpCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"#signUpActor.confirmSignUp"},onError:[{cond:"isUserAlreadyConfirmed",target:"#signUpActor.resolved"},{actions:["setRemoteError","sendUpdate"]}]}},signUp:{type:"parallel",exit:"clearTouched",on:{FEDERATED_SIGN_IN:{target:"federatedSignIn"}},states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{actions:"clearValidationError",target:"valid"},onError:{actions:"setFieldErrors",target:"invalid"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{BLUR:{actions:"handleBlur",target:".pending"},CHANGE:{actions:"handleInput",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:["sendUpdate"],on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"handleSignUp",actions:"clearValidationError"},onError:{actions:"setFieldErrors",target:"idle"}}},handleSignUp:{tags:"pending",entry:["setUsernameSignUp","clearError"],exit:"sendUpdate",invoke:{src:"handleSignUp",onDone:[{cond:"hasCompletedSignUp",actions:"setNextSignUpStep",target:"#signUpActor.resolved"},{cond:"shouldAutoSignIn",actions:"setNextSignUpStep",target:"#signUpActor.autoSignIn"},{actions:["setCodeDeliveryDetails","setNextSignUpStep"],target:"#signUpActor.init"}],onError:{actions:["sendUpdate","setRemoteError"],target:"idle"}}}}}}},confirmSignUp:{initial:"edit",entry:"sendUpdate",states:{edit:{on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"#signUpActor.resendSignUpCode"}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignUp",onDone:[{cond:"shouldAutoSignIn",actions:["setNextSignUpStep","clearFormValues"],target:"#signUpActor.autoSignIn"},{actions:"setNextSignUpStep",target:"#signUpActor.init"}],onError:{actions:["setRemoteError","sendUpdate"],target:"edit"}}}}},resolved:{type:"final",data:e=>({challengeName:e.challengeName,missingAttributes:e.missingAttributes,remoteError:e.remoteError,step:e.step,totpSecretCode:e.totpSecretCode,username:e.username,unverifiedUserAttributes:e.unverifiedUserAttributes})}}},{actions:{...on,sendUpdate:tS()},guards:oi,services:{autoSignIn:()=>(0,rl.Zl)(),fetchUserAttributes:async()=>(0,ob.v)(),confirmSignUp({formValues:t,username:o}){let{confirmation_code:r}=t;return e.handleConfirmSignUp({username:o,confirmationCode:r})},resendSignUpCode:({username:e})=>oR({username:e}),signInWithRedirect:(e,{data:t})=>ro(t),handleSignUp(t){let{formValues:o,loginMechanisms:r,username:n}=t,a=tD(n,o,r[0]);return e.handleSignUp(a)},validateSignUp:async t=>os(t.formValues,t.touched,t.passwordSettings,[e.validateFormPassword,e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}})})({services:o}).withContext(rm(e,"SIGN_UP")),{name:"signUpActor"})}}),spawnForgotPasswordActor:eY({actorRef:(e,t)=>{let{services:o}=e;return ts((function({services:e}){return tC({id:"forgotPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldResetPassword",target:"confirmResetPassword"},{cond:"shouldConfirmResetPassword",target:"confirmResetPassword"},{target:"forgotPassword"}]},forgotPassword:{initial:"edit",entry:"sendUpdate",exit:["clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:"pending",entry:["sendUpdate","clearError","setUsernameForgotPassword"],invoke:{src:"handleResetPassword",onDone:{actions:["setCodeDeliveryDetails","setNextResetPasswordStep"],target:"#forgotPasswordActor.confirmResetPassword"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleResetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleConfirmResetPassword",onDone:[{cond:"hasCompletedResetPassword",actions:"setNextResetPasswordStep",target:"#forgotPasswordActor.resolved"},{actions:"setSignInStep",target:"#forgotPasswordActor.resolved"}],onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...on,sendUpdate:tS()},guards:oi,services:{handleResetPassword:({username:t})=>e.handleForgotPassword({username:t}),handleConfirmResetPassword({formValues:t,username:o}){let{confirmation_code:r,password:n}=t;return e.handleForgotPasswordSubmit({confirmationCode:r,newPassword:n,username:o})},validateFields:e=>os(e.formValues,e.touched,e.passwordSettings,[oy.validateFormPassword,oy.validateConfirmPassword])}})})({services:o}).withContext(rm(e,"FORGOT_PASSWORD")),{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:eY({actorRef:e=>ts(tC({id:"verifyUserAttributesActor",initial:"selectUserAttributes",predictableActionArguments:!0,states:{selectUserAttributes:{initial:"edit",exit:["clearError","clearTouched","sendUpdate"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:{target:"#verifyUserAttributesActor.resolved"},CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"sendUserAttributeVerificationCode",onDone:{actions:["setSelectedUserAttribute","setCodeDeliveryDetails"],target:"#verifyUserAttributesActor.confirmVerifyUserAttribute"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUserAttribute:{initial:"edit",exit:["clearError","clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#verifyUserAttributesActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmVerifyUserAttribute",onDone:{actions:["setConfirmAttributeCompleteStep","clearSelectedUserAttribute"],target:"#verifyUserAttributesActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...on,sendUpdate:tS()},services:{sendUserAttributeVerificationCode:({formValues:{unverifiedAttr:e}})=>rh({userAttributeKey:e}),confirmVerifyUserAttribute:async({formValues:{confirmation_code:e},selectedUserAttribute:t})=>rg({confirmationCode:e,userAttributeKey:t}),validateFields:async e=>os(e.formValues,e.touched,e.passwordSettings,[oy.validateFormPassword,oy.validateConfirmPassword])}}).withContext(rm(e)),{name:"verifyUserAttributesActor"})}),spawnSignOutActor:eY({actorRef:e=>ts(rp().withContext({user:e?.user}),{name:"signOutActor"})}),configure:eY((e,t)=>{let{services:r,...n}=(0,E.Qr)(o)?t.data??{}:o;return{services:{...oy,...r},config:n}}),setHasSetup:eY({hasSetup:!0})},guards:{...oi,hasActor:({actorRef:e})=>!!e,isInitialStateSignUp:({config:e})=>"signUp"===e.initialState,isInitialStateResetPassword:({config:e})=>"forgotPassword"===e.initialState,shouldSetup:({hasSetup:e})=>!e,hasUser:({user:e})=>!!e},services:{getAmplifyConfig:({services:e})=>e.getAmplifyConfig(),handleGetCurrentUser:({services:e})=>e.getCurrentUser()}})}var rw=o(46162);let rI=e=>(t,o)=>{tg(t,o,e)};function r_({children:e}){let[t,o]=y.useState("configuring");y.useEffect(()=>{(0,tf.t)().then(()=>{o("authenticated")}).catch(()=>{o("unauthenticated")})},[]);let r=(0,y.useContext)(rw.x),n=function(e){for(var t,o,r,n,a,i,l,s,u,c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var p=tv(c,2),f=p[0],h=void 0===f?{}:f,g=p[1],m=(t=tc(function(){return"function"==typeof e?e():e}),o=h.context,r=h.guards,n=h.actions,a=h.activities,i=h.services,l=h.delays,h.state,s=tp(h,["context","guards","actions","activities","services","delays","state"]),u=tc(function(){return tu(t.withConfig({context:o,guards:r,actions:n,activities:a,services:i,delays:l},function(){return td(td({},t.context),o)}),s)}),(0,F.Z)(function(){Object.assign(u.machine.options.actions,n),Object.assign(u.machine.options.guards,r),Object.assign(u.machine.options.activities,a),Object.assign(u.machine.options.services,i),Object.assign(u.machine.options.delays,l)},[n,r,a,i,l]),u);return(0,y.useEffect)(function(){if(g){var e=m.subscribe(eR(g));return function(){e.unsubscribe()}}},[g]),(0,y.useEffect)(function(){var e=h.state;return m.start(e?e4.create(e):void 0),function(){m.stop(),m.status=v.NotStarted}},[]),m}(rS),a=(0,y.useMemo)(()=>r||{authStatus:t,service:n},[t,r,n]),{service:i}=a;return(0,y.useEffect)(()=>tm(i,rI({onSignIn:()=>{o("authenticated")},onSignOut:()=>{o("unauthenticated")}})),[i]),y.createElement(rw.x.Provider,{value:a},e)}let rA=({shouldWarn:e,message:t})=>{y.useEffect(()=>{e&&console.warn(t)},[e,t])};var rR=o(25566);let rk=({message:e,shouldWarn:t})=>{rA({message:e,shouldWarn:t&&(void 0===rR||rR&&!1)})},rN=y.createContext(null),rT=()=>{let e=y.useContext(rN);if(!e)throw Error("`useCustomComponents` cannot be used outside of a `CustomComponentsContext.Provider`");return e};var rF=o(69589);let rP={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},rU={getBackToSignInText:()=>(0,rF.Iu)(rF.uF.BACK_SIGN_IN),getChangePasswordText:()=>(0,rF.Iu)(rF.uF.CHANGE_PASSWORD),getChangingText:()=>(0,rF.Iu)(rF.uF.CHANGING_PASSWORD),getConfirmText:()=>(0,rF.Iu)(rF.uF.CONFIRM),getConfirmingText:()=>(0,rF.Iu)(rF.uF.CONFIRMING),getCopyText:()=>(0,rF.Iu)(rF.uF.UPPERCASE_COPY),getHidePasswordText:()=>(0,rF.Iu)(rF.uF.HIDE_PASSWORD),getLoadingText:()=>(0,rF.Iu)(rF.uF.LOADING),getOrText:()=>(0,rF.Iu)(rF.uF.OR),getResendCodeText:()=>(0,rF.Iu)(rF.uF.RESEND_CODE),getSendCodeText:()=>(0,rF.Iu)(rF.uF.SEND_CODE),getSendingText:()=>(0,rF.Iu)(rF.uF.SENDING),getShowPasswordText:()=>(0,rF.Iu)(rF.uF.SHOW_PASSWORD),getSubmitText:()=>(0,rF.Iu)(rF.uF.SUBMIT),getSubmittingText:()=>(0,rF.Iu)(rF.uF.SUBMITTING),getSignInTabText:()=>(0,rF.Iu)(rF.uF.SIGN_IN_TAB),getSignUpTabText:()=>(0,rF.Iu)(rF.uF.CREATE_ACCOUNT),getForgotPasswordText:e=>(0,rF.Iu)(e?rF.uF.FORGOT_PASSWORD:rF.uF.FORGOT_YOUR_PASSWORD),getSigningInText:()=>(0,rF.Iu)(rF.uF.SIGNING_IN_BUTTON),getSignInText:()=>(0,rF.Iu)(rF.uF.SIGN_IN_BUTTON),getCreatingAccountText:()=>(0,rF.Iu)(rF.uF.CREATING_ACCOUNT),getCreateAccountText:()=>(0,rF.Iu)(rF.uF.CREATE_ACCOUNT),getDeliveryMessageText:e=>{let{DeliveryMedium:t,Destination:o}=e??{},r="EMAIL"===t,n=(0,rF.Iu)(rF.uF.CODE_ARRIVAL);if(!(r||"SMS"===t))return`${(0,rF.Iu)(rF.uF.CODE_SENT)}. ${n}.`;let a=r?(0,rF.Iu)(rF.uF.CODE_EMAILED):(0,rF.Iu)(rF.uF.CODE_TEXTED);return`${a} ${o}. ${n}.`},getDeliveryMethodText:e=>{let{DeliveryMedium:t}=e??{},o="EMAIL"===t;return o||"SMS"!==t?o?(0,rF.Iu)(rF.uF.WE_EMAILED):(0,rF.Iu)(rF.uF.WE_TEXTED):(0,rF.Iu)(rF.uF.WE_SENT_CODE)},getChallengeText:e=>{switch(e){case"SMS_MFA":return(0,rF.Iu)(rF.uF.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return(0,rF.Iu)(rF.uF.CONFIRM_TOTP);default:throw Error(`${(0,rF.Iu)("Unexpected challengeName encountered in ConfirmSignIn:")} ${e}`)}},getResetYourPasswordText:()=>(0,rF.Iu)(rF.uF.RESET_PASSWORD),getSetupTotpText:()=>(0,rF.Iu)(rF.uF.SETUP_TOTP),getSetupTotpInstructionsText:()=>(0,rF.Iu)("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."),getCopiedText:()=>(0,rF.Iu)("COPIED"),getSignInWithFederationText:(e,t)=>(0,rF.Iu)(`Sign ${"signIn"===e?"In":"Up"} with ${rP[t]}`),getSkipText:()=>(0,rF.Iu)(rF.uF.SKIP),getVerifyText:()=>(0,rF.Iu)(rF.uF.VERIFY),getVerifyContactText:()=>(0,rF.Iu)(rF.uF.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>(0,rF.Iu)(rF.uF.VERIFY_HEADING),getInvalidEmailText:()=>(0,rF.Iu)("Please enter a valid email"),getRequiredFieldText:()=>(0,rF.Iu)("This field is required")},rD=(...e)=>{let t=[];for(let o of e)if(o){if((0,E.HD)(o)){t.push(o);continue}if("number"==typeof o){t.push(o.toString());continue}if(Array.isArray(o)){t.push(rD(...o));continue}if((0,E.Kn)(o)){if(o.toString!==Object.prototype.toString&&"[object Object]"!==o.toString()){t.push(o.toString());continue}for(let e in o)(0,E.e$)(o,e)&&o[e]&&t.push(e)}}return t.join(" ")},rO={Alert:"amplify-alert",AlertIcon:"amplify-alert__icon",AlertHeading:"amplify-alert__heading",AlertBody:"amplify-alert__body",AlertDismiss:"amplify-alert__dismiss",Button:"amplify-button",ButtonLoaderWrapper:"amplify-button__loader-wrapper",CountryCodeSelect:"amplify-countrycodeselect",DialCodeSelect:"amplify-dialcodeselect",Divider:"amplify-divider",Field:"amplify-field",FieldDescription:"amplify-field__description",FieldErrorMessage:"amplify-field__error-message",FieldGroup:"amplify-field-group",FieldGroupControl:"amplify-field-group__control",FieldGroupOuterEnd:"amplify-field-group__outer-end",FieldGroupOuterStart:"amplify-field-group__outer-start",FieldGroupInnerEnd:"amplify-field-group__inner-end",FieldGroupInnerStart:"amplify-field-group__inner-start",FieldGroupHasInnerEnd:"amplify-field-group--has-inner-end",FieldGroupHasInnerStart:"amplify-field-group--has-inner-start",FieldShowPassword:"amplify-field__show-password",FieldGroupFieldWrapper:"amplify-field-group__field-wrapper",Fieldset:"amplify-fieldset",FieldsetLegend:"amplify-fieldset__legend",Flex:"amplify-flex",Heading:"amplify-heading",Icon:"amplify-icon",Input:"amplify-input",Label:"amplify-label",Loader:"amplify-loader",LoaderLabel:"amplify-loader__label",PasswordField:"amplify-passwordfield",PhoneNumberField:"amplify-phonenumberfield",Radio:"amplify-radio",RadioButton:"amplify-radio__button",RadioInput:"amplify-radio__input",RadioLabel:"amplify-radio__label",RadioGroupField:"amplify-radiogroupfield",RadioGroup:"amplify-radiogroup",Select:"amplify-select",SelectField:"amplify-selectfield",SelectWrapper:"amplify-select__wrapper",SelectIcon:"amplify-select__icon",Tabs:"amplify-tabs",TabsList:"amplify-tabs__list",TabsItem:"amplify-tabs__item",TabsPanel:"amplify-tabs__panel",Text:"amplify-text",TextField:"amplify-textfield",VisuallyHidden:"amplify-visually-hidden"};var rM=o(82112);let rL=y.createContext({isFieldsetDisabled:!1}),rB=()=>y.useContext(rL);var rz=o(22541);let rW=(0,rM.R)(({className:e,children:t,...o},r)=>y.createElement(rz.G,{className:rD(rO.Flex,e),ref:r,...o},t));rW.displayName="Flex";let rj=84*Math.PI,rH=(0,rM.R)(({className:e,filledColor:t,emptyColor:o,size:r,variation:n,isDeterminate:a=!1,isPercentageTextHidden:i=!1,percentage:l=0,...s},u)=>{l=Math.max(l=Math.min(l,100),0);let c=`${l}%`,d=rD(rO.Loader,(0,E.wq)(rO.Loader,r),(0,E.wq)(rO.Loader,n),(0,E.T2)(rO.Loader,"determinate",a),e),p=y.createElement("g",null,y.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(o)},"data-testid":"linear-empty"}),y.createElement("line",{x1:"0",x2:a?c:"100%",y1:"50%",y2:"50%",style:{stroke:a&&0===l?"none":t?String(t):void 0},"data-testid":"linear-filled"}),a?y.createElement("text",{"aria-live":"polite",className:rD(rO.LoaderLabel,i?rO.VisuallyHidden:null),x:`${-1+l}%`,y:"200%"},c):null),v=y.createElement("g",null,y.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(o)},"data-testid":"circular-empty"}),y.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(t),strokeDasharray:a?`${rj}% ${rj}%`:void 0,strokeDashoffset:a?`${rj-rj*l/100}%`:void 0},"data-testid":"circular-filled"}),a?y.createElement("text",{"aria-live":"polite",className:rD(rO.LoaderLabel,i?rO.VisuallyHidden:null),x:"130%",y:"80%"},c):null);return y.createElement(rz.G,{as:"svg",className:d,ref:u,role:"img",...s},"linear"===n?p:v)});rH.displayName="Loader";let rV=["link","primary",void 0],rG=(0,rM.R)(({className:e,children:t,colorTheme:o,isFullWidth:r=!1,isDisabled:n,isLoading:a,loadingText:i="",size:l,type:s="button",variation:u,...c},d)=>{let p=rV.includes(u)&&o?`${u??"outlined"}--${o}`:void 0,{isFieldsetDisabled:v}=rB(),f=v||(n??a??c.disabled),h=rD(rO.Button,rO.FieldGroupControl,(0,E.wq)(rO.Button,u),(0,E.wq)(rO.Button,p),(0,E.wq)(rO.Button,l),(0,E.T2)(rO.Button,"disabled",f),(0,E.T2)(rO.Button,"loading",a),(0,E.T2)(rO.Button,"fullwidth",r),e);return y.createElement(rz.G,{ref:d,as:"button",className:h,isDisabled:f,type:s,...c},a?y.createElement(rW,{as:"span",className:rO.ButtonLoaderWrapper},y.createElement(rH,{size:l}),i||null):t)});rG.displayName="Button";let rq={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},r$=(0,rM.R)(({className:e,children:t,isTruncated:o,level:r=6,...n},a)=>y.createElement(rz.G,{as:rq[r],className:rD(rO.Heading,(0,E.wq)(rO.Heading,r),(0,E.T2)(rO.Heading,"truncated",o),e),ref:a,...n},t));r$.displayName="Heading";let rK=(0,rM.R)(({as:e="p",className:t,children:o,isTruncated:r,variation:n,...a},i)=>{let l=rD(rO.Text,(0,E.wq)(rO.Text,n),(0,E.T2)(rO.Text,"truncated",r),t);return y.createElement(rz.G,{as:e,className:l,ref:i,...a},o)});rK.displayName="Text";let rZ=e=>Object.fromEntries(new FormData(e.target));function rY(){let{submitForm:e,updateBlur:t,updateForm:o}=(0,x.Z)(e=>[e.submitForm,e.updateBlur,e.updateForm]);return{handleBlur:(0,y.useCallback)(({target:{name:e}})=>{t({name:e})},[t]),handleChange:(0,y.useCallback)(({target:{checked:e,name:t,type:r,value:n}})=>{o({name:t,value:"checkbox"!==r||e?n:void 0})},[o]),handleSubmit:(0,y.useCallback)(t=>{t.preventDefault(),e(rZ(t))},[e])}}var rX=o(20435);let rJ=y.createContext({});function rQ(e){let t=y.useContext(rJ);if(e&&t)return t[e]}let r0=e=>{let{className:t,...o}=e;return y.createElement(rz.G,{as:"span",width:"1em",height:"1em",className:rD(rO.Icon,t),...o},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})))},r1=e=>{let{className:t,...o}=e;return y.createElement(rz.G,{as:"span",width:"1em",height:"1em",className:rD(rO.Icon,t),...o},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})))},r2=e=>{let{className:t,...o}=e;return y.createElement(rz.G,{as:"span",width:"1em",height:"1em",className:rD(rO.Icon,t),...o},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})))},r5=e=>{let{className:t,...o}=e;return y.createElement(rz.G,{as:"span",width:"1em",height:"1em",className:rD(rO.Icon,t),...o},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},r3=({variation:e,ariaHidden:t,ariaLabel:o,role:r})=>{let n;let a=rQ("alert");switch(e){case"info":n=a?.info??y.createElement(r2,{"aria-hidden":t,"aria-label":o,role:r});break;case"error":n=a?.error??y.createElement(r1,{"aria-hidden":t,"aria-label":o,role:r});break;case"warning":n=a?.warning??y.createElement(r5,{"aria-hidden":t,"aria-label":o,role:r});break;case"success":n=a?.success??y.createElement(r0,{"aria-hidden":t,"aria-label":o,role:r})}return n?y.createElement("span",{className:rO.AlertIcon},n):null};r3.displayName="AlertIcon";let r4=e=>{let{className:t,size:o,...r}=e;return y.createElement(rz.G,{as:"span",width:o??"1em",height:o??"1em",className:rD(rO.Icon,t),...r},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o?{width:o,height:o}:void 0},y.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})))},r6=(0,rM.R)(({buttonRef:e,children:t,className:o,dismissButtonLabel:r=rX.ComponentText.Alert.dismissButtonLabel,hasIcon:n=!0,heading:a,isDismissible:i=!1,onDismiss:l,variation:s,...u},c)=>{let[d,p]=y.useState(!1),v=rQ("alert"),f=y.useCallback(()=>{p(!d),(0,E.mf)(l)&&l()},[p,l,d]);return d?null:y.createElement(rW,{className:rD(rO.Alert,o,(0,E.wq)(rO.Alert,s)),ref:c,role:"alert",...u},n&&y.createElement(r3,{variation:s,ariaHidden:!0}),y.createElement(rz.G,{flex:"1"},a&&y.createElement(rz.G,{className:rO.AlertHeading},a),y.createElement(rz.G,{className:rO.AlertBody},t)),i&&y.createElement(rG,{ariaLabel:r,variation:"link",className:rO.AlertDismiss,onClick:f,ref:e},v?.close??y.createElement(r4,{"aria-hidden":"true"})))});r6.displayName="Alert";let r8=()=>{let{error:e}=(0,x.Z)(e=>[e.error]);return y.createElement(y.Fragment,null,e?y.createElement(r6,{variation:"error",isDismissible:!0},(0,rF.Iu)(e)):null)};var r9=o(57351);let r7=(0,rM.R)(({as:e="span",children:t,className:o,...r},n)=>y.createElement(rz.G,{as:e,className:rD(rO.VisuallyHidden,o),ref:n,...r},t));r7.displayName="VisuallyHidden";let ne=e=>{let{className:t,...o}=e;return y.createElement(rz.G,{as:"span",width:"1em",height:"1em",className:rD(rO.Icon,t),...o},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})))},nt=e=>{let{className:t,...o}=e;return y.createElement(rz.G,{as:"span",width:"1em",height:"1em",className:rD(rO.Icon,t),...o},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})))},{passwordIsHidden:no,passwordIsShown:nr,showPassword:nn}=rX.ComponentText.PasswordField,na=(0,rM.R)(({fieldType:e,passwordIsHiddenLabel:t=no,passwordIsShownLabel:o=nr,showPasswordButtonLabel:r=nn,size:n,hasError:a,...i},l)=>{let s=rQ("passwordField"),u=rD(rO.FieldShowPassword,(0,E.T2)(rO.FieldShowPassword,"error",a)),c="password"===e?s?.visibility??y.createElement(nt,{"aria-hidden":"true"}):s?.visibilityOff??y.createElement(ne,{"aria-hidden":"true"});return y.createElement(rG,{"aria-checked":"password"!==e,ariaLabel:r,className:u,colorTheme:a?"error":void 0,ref:l,role:"switch",size:n,...i},y.createElement(r7,{"aria-live":"polite"},"password"===e?t:o),c)});na.displayName="ShowPasswordButton";let ni=({descriptiveText:e,labelHidden:t,...o})=>e?y.createElement(rK,{"data-testid":"qa-field-description",className:rD(rO.FieldDescription,{[rO.VisuallyHidden]:t}),...o},e):null;ni.displayName="FieldDescription";let nl=({errorMessage:e,hasError:t,...o})=>t&&e?y.createElement(rK,{className:rO.FieldErrorMessage,...o},e):null;nl.displayName="FieldErrorMessage";let ns=(0,rM.R)(({children:e,className:t,innerEndComponent:o,innerStartComponent:r,orientation:n="horizontal",outerEndComponent:a,outerStartComponent:i,variation:l,...s},u)=>{let c=null!=o,d=null!=r?rO.FieldGroupHasInnerStart:null,p=c?rO.FieldGroupHasInnerEnd:null,v=rD(rO.FieldGroup,d,p,(0,E.wq)(rO.FieldGroup,n),t);return y.createElement(rW,{className:v,ref:u,...s},i&&y.createElement(rz.G,{className:rD(rO.FieldGroupOuterStart,(0,E.wq)(rO.FieldGroupOuterStart,l))},i),y.createElement(rz.G,{className:rD(rO.FieldGroupFieldWrapper,(0,E.wq)(rO.FieldGroupFieldWrapper,n))},r&&y.createElement(rz.G,{className:rO.FieldGroupInnerStart},r),e,o&&y.createElement(rz.G,{className:rO.FieldGroupInnerEnd},o)),a&&y.createElement(rz.G,{className:rD(rO.FieldGroupOuterEnd,(0,E.wq)(rO.FieldGroupOuterEnd,l))},a))});ns.displayName="FieldGroup";let nu=(0,rM.R)(({autoComplete:e,checked:t,className:o,defaultChecked:r,defaultValue:n,id:a,isDisabled:i,isReadOnly:l,isRequired:s,size:u,type:c="text",hasError:d=!1,value:p,variation:v,...f},h)=>{let g=rD(rO.Input,rO.FieldGroupControl,(0,E.wq)(rO.Input,v),(0,E.T2)(rO.Input,"error",d),(0,E.wq)(rO.Input,u),o),{isFieldsetDisabled:m}=rB();return y.createElement(rz.G,{"aria-invalid":d,as:"input",autoComplete:e,checked:t,className:g,defaultChecked:r,defaultValue:n,isDisabled:m||i,id:a,readOnly:l,ref:h,required:s,type:c,value:p,...f})});nu.displayName="Input";let nc=(0,rM.R)(({children:e,className:t,visuallyHidden:o,...r},n)=>y.createElement(rz.G,{as:"label",className:rD(rO.Label,t,{[rO.VisuallyHidden]:o}),ref:n,...r},e));nc.displayName="Label";var nd=o(17374);let np=e=>e in nd.Q,nv=e=>{let t={styleProps:{},rest:{}};return Object.keys(e).forEach(o=>{np(o)?t.styleProps={...t.styleProps,[o]:e[o]}:t.rest={...t.rest,[o]:e[o]}}),t},nf=globalThis?.document?y.useLayoutEffect:()=>{},nh=b["useId".toString()]||(()=>void 0),ng=0,nm=e=>{let[t,o]=y.useState(nh());return nf(()=>{e||o(e=>e??String(ng++))},[e]),e??(t?`amplify-id-${t}`:"")},ny=(0,rM.R)((e,t)=>{let{className:o,descriptiveText:r,errorMessage:n,hasError:a=!1,id:i,innerEndComponent:l,innerStartComponent:s,label:u,labelHidden:c=!1,outerEndComponent:d,outerStartComponent:p,size:v,testId:f,variation:h,inputStyles:g,...m}=e,b=nm(i),x=nm(),C=r?x:void 0,{styleProps:S,rest:w}=nv(m);return y.createElement(rW,{className:rD(rO.Field,(0,E.wq)(rO.Field,v),rO.TextField,o),testId:f,...S},y.createElement(nc,{htmlFor:b,visuallyHidden:c},u),y.createElement(ni,{id:x,labelHidden:c,descriptiveText:r}),y.createElement(ns,{outerStartComponent:p,outerEndComponent:d,innerStartComponent:s,innerEndComponent:l,variation:h},y.createElement(nu,{"aria-describedby":C,hasError:a,id:b,ref:t,size:v,variation:h,...g,...w})),y.createElement(nl,{hasError:a,errorMessage:n}))});ny.displayName="TextField";let nb=(0,rM.R)(({autoComplete:e="current-password",label:t,className:o,hideShowPassword:r=!1,passwordIsHiddenLabel:n,passwordIsShownLabel:a,showPasswordButtonLabel:i,showPasswordButtonRef:l,size:s,hasError:u,...c},d)=>{let[p,v]=y.useState("password"),f=y.useCallback(()=>{"password"===p?v("text"):v("password")},[v,p]);return y.createElement(ny,{autoComplete:e,outerEndComponent:r?null:y.createElement(na,{fieldType:p,onClick:f,passwordIsHiddenLabel:n,passwordIsShownLabel:a,ref:l,size:s,showPasswordButtonLabel:i,hasError:u}),size:s,type:p,label:t,className:rD(rO.PasswordField,o),ref:d,hasError:u,...c})});nb.displayName="PasswordField";var nE=o(90959);let nx=e=>{let{className:t,...o}=e;return y.createElement(rz.G,{as:"span",width:"1em",height:"1em",className:rD(rO.Icon,t),...o},y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},nC=(0,rM.R)(({autoComplete:e,className:t,size:o,variation:r,value:n,defaultValue:a,hasError:i,icon:l,iconColor:s,children:u,placeholder:c,isDisabled:d,isRequired:p,isMultiple:v=!1,selectSize:f=1,...h},g)=>{let m=void 0===n&&void 0===a&&c,b=v||f>1,x=rD(rO.Select,rO.FieldGroupControl,(0,E.wq)(rO.Select,o),(0,E.wq)(rO.Select,r),(0,E.T2)(rO.Select,"error",i),(0,E.T2)(rO.Select,"expanded",b),t),C=rQ("select"),{isFieldsetDisabled:S}=rB();return y.createElement(rz.G,{className:rO.SelectWrapper},y.createElement(rz.G,{"aria-invalid":i,as:"select",autoComplete:e,value:n,defaultValue:m?"":a,isDisabled:S||d,multiple:v,size:f,required:p,className:x,ref:g,...h},c&&y.createElement("option",{value:""},c),u),b?null:y.createElement(rW,{className:rD(rO.SelectIcon,(0,E.wq)(rO.SelectIcon,o)),color:s},l??C?.expand??y.createElement(nx,null)))});nC.displayName="Select";let nS=({children:e,options:t})=>e?(t?.length&&console.warn("Amplify UI: <SelectField> component  defaults to rendering children over `options`. When using the `options` prop, omit children."),e):t?.map((e,t)=>y.createElement("option",{label:e,value:e,key:`${e}-${t}`},e)),nw=(0,rM.R)((e,t)=>{let{children:o,className:r,descriptiveText:n,errorMessage:a,hasError:i=!1,id:l,label:s,labelHidden:u=!1,options:c,size:d,testId:p,inputStyles:v,...f}=e,h=nm(l),g=nm(),m=n?g:void 0,{styleProps:b,rest:x}=nv(f);return y.createElement(rW,{className:rD(rO.Field,(0,E.wq)(rO.Field,d),rO.SelectField,r),testId:p,...b},y.createElement(nc,{htmlFor:h,visuallyHidden:u},s),y.createElement(ni,{id:g,labelHidden:u,descriptiveText:n}),y.createElement(nC,{"aria-describedby":m,hasError:i,id:h,ref:t,size:d,...x,...v},nS({children:o,options:c})),y.createElement(nl,{hasError:i,errorMessage:a}))});nw.displayName="SelectField";let nI=(0,rM.R)(({className:e,dialCodeList:t,isReadOnly:o,...r},n)=>{let a=t??nE.u,i=y.useMemo(()=>a.map(e=>y.createElement("option",{key:e,value:e,disabled:o},e)),[a,o]);return y.createElement(nw,{"aria-disabled":o,autoComplete:"tel-country-code",className:rD(rO.CountryCodeSelect,rO.DialCodeSelect,e),labelHidden:!0,ref:n,...r},i)});nI.displayName="DialCodeSelect";let n_=(0,rM.R)(({autoComplete:e="tel-national",className:t,defaultDialCode:o,dialCodeLabel:r=rX.ComponentText.PhoneNumberField.countryCodeLabel,dialCodeList:n,dialCodeName:a,dialCodeRef:i,hasError:l,isDisabled:s,isReadOnly:u,onDialCodeChange:c,onInput:d,size:p,variation:v,...f},h)=>y.createElement(ny,{outerStartComponent:y.createElement(nI,{defaultValue:o,dialCodeList:n,className:t,hasError:l,isDisabled:s,isReadOnly:u,label:r,name:a,onChange:c,ref:i,size:p,variation:v}),autoComplete:e,className:rD(rO.PhoneNumberField,t),hasError:l,isDisabled:s,isReadOnly:u,onInput:d,ref:h,size:p,type:"tel",variation:v,...f}));n_.displayName="PhoneNumberField";let nA=({errors:e,id:t,dataAttr:o})=>e?.length>0?y.createElement(rz.G,{...o?{[o]:!0}:{},id:t},e.map(e=>y.createElement(rK,{key:e,role:"alert",variation:"error"},(0,rF.Iu)(e)))):null;function nR({autocomplete:e,dialCode:t,name:o,type:r,...n}){let{validationErrors:a}=(0,x.Z)(({validationErrors:e})=>[e]),i=y.useMemo(()=>(0,r9.FU)(a[o]),[o,a]),l=i?.length>0,s=nm(),u=l?s:void 0;return"tel"===r?y.createElement(y.Fragment,null,y.createElement(n_,{...n,name:o,defaultDialCode:t,dialCodeName:"country_code",autoComplete:e,hasError:l,"aria-describedby":u}),y.createElement(nA,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:s})):"password"===r?y.createElement(y.Fragment,null,y.createElement(nb,{...n,name:o,autoComplete:e,hasError:l,"aria-describedby":u}),y.createElement(nA,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:s})):y.createElement(y.Fragment,null,y.createElement(ny,{...n,name:o,autoComplete:e,hasError:l,type:r,"aria-describedby":u}),y.createElement(nA,{dataAttr:"data-amplify-sign-up-errors",errors:i,id:s}))}function nk(){let{fields:e}=(0,x.Z)(({route:e})=>[e]),t=y.useRef(e.map((e,t)=>y.createElement(nR,{key:t,...e}))).current;return y.createElement(y.Fragment,null,t)}let nN=e=>"signIn"===e||"signUp";function nT({children:e,className:t,variation:o="default"}){let{route:r}=(0,x.Z)(({route:e})=>[e]),{components:{Header:n,Footer:a}}=rT();return y.createElement(rz.G,{className:t,"data-amplify-authenticator":"","data-variation":o},y.createElement(rz.G,{"data-amplify-container":""},y.createElement(n,null),y.createElement(rz.G,{"data-amplify-router":"","data-amplify-router-content":nN(r)?void 0:""},e),y.createElement(a,null)))}let{getDeliveryMessageText:nF,getDeliveryMethodText:nP,getConfirmingText:nU,getConfirmText:nD,getResendCodeText:nO}=rU;function nM({className:e,variation:t}){let{isPending:o,resendCode:r,codeDeliveryDetails:n}=(0,x.Z)(e=>[e.isPending,e.resendCode,e.codeDeliveryDetails]),{handleChange:a,handleSubmit:i}=rY(),{components:{ConfirmSignUp:{Header:l=nM.Header,Footer:s=nM.Footer}}}=rT();return y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onChange:a,onSubmit:i},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:o},y.createElement(l,null),y.createElement(rW,{direction:"column"},y.createElement(rK,{className:"amplify-authenticator__subtitle"},nF(n)),y.createElement(nk,null),y.createElement(r8,null),y.createElement(rG,{variation:"primary",isDisabled:o,type:"submit",loadingText:nU(),isLoading:o,fontWeight:"normal"},nD()),y.createElement(rG,{onClick:r,type:"button",fontWeight:"normal"},nO())),y.createElement(s,null))))}nM.Header=()=>{let{codeDeliveryDetails:e}=(0,x.Z)(e=>[e.codeDeliveryDetails]);return y.createElement(r$,{level:4},nP(e))},nM.Footer=function(){return null};let{getChangePasswordText:nL,getChangingText:nB,getBackToSignInText:nz}=rU,nW=({className:e,variation:t})=>{let{isPending:o,toSignIn:r}=(0,x.Z)(e=>[e.isPending,e.toSignIn]),{handleBlur:n,handleChange:a,handleSubmit:i}=rY(),{components:{ForceNewPassword:{FormFields:l=nW.FormFields,Header:s=nW.Header,Footer:u=nW.Footer}}}=rT();return y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:a,onSubmit:i,onBlur:n},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:o},y.createElement(s,null),y.createElement(l,null),y.createElement(r8,null),y.createElement(rG,{isDisabled:o,type:"submit",variation:"primary",isLoading:o,loadingText:nB(),fontWeight:"normal"},nL()),y.createElement(rG,{onClick:r,type:"button",fontWeight:"normal",variation:"link",size:"small"},nz()),y.createElement(u,null))))};nW.FormFields=function(){return y.createElement(nk,null)},nW.Header=function(){return y.createElement(r$,{level:4},nL())},nW.Footer=function(){return null};var nj=o(52644);let{getConfirmText:nH,getConfirmingText:nV,getBackToSignInText:nG}=rU,nq=()=>{let{isPending:e,toSignIn:t}=(0,x.Z)(e=>[e.isPending,e.toSignIn]);return y.createElement(rW,{direction:"column"},y.createElement(rG,{isDisabled:e,type:"submit",variation:"primary",fontWeight:"normal",isLoading:e,loadingText:nV()},nH()),y.createElement(rG,{onClick:t,type:"button",variation:"link",fontWeight:"normal",size:"small"},nG()))},n$=new oz.k("SetupTotp-logger"),{getSetupTotpText:nK,getCopiedText:nZ,getLoadingText:nY}=rU,nX=({className:e,variation:t})=>{let{totpSecretCode:o,isPending:r,username:n,QRFields:a}=(0,x.Z)(e=>[e.isPending,e.totpSecretCode,e.username]),{handleChange:i,handleSubmit:l}=rY(),{components:{SetupTotp:{Header:s=nX.Header,Footer:u=nX.Footer}}}=rT(),[c,d]=y.useState(!0),[p,v]=y.useState(),[f,h]=y.useState("COPY"),{totpIssuer:g="AWSCognito",totpUsername:m=n}=a??{},b=y.useCallback(async()=>{try{let e=tN(g,m,o),t=await nj.toDataURL(e);v(t)}catch(e){n$.error(e)}finally{d(!1)}},[g,m,o]);return y.useEffect(()=>{p||b()},[b,p]),y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:i,onSubmit:l},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:r},y.createElement(s,null),y.createElement(rW,{direction:"column"},c?y.createElement("p",null,nY(),"…"):y.createElement("img",{"data-amplify-qrcode":!0,src:p,alt:"qr code",width:"228",height:"228"}),y.createElement(rW,{"data-amplify-copy":!0},y.createElement("div",null,o),y.createElement(rW,{"data-amplify-copy-svg":!0,onClick:()=>{navigator.clipboard.writeText(o),h(nZ())}},y.createElement("div",{"data-amplify-copy-tooltip":!0},f),y.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})))),y.createElement(nk,null),y.createElement(r8,null)),y.createElement(nq,null),y.createElement(u,null))))};nX.Header=function(){return y.createElement(r$,{level:3},nK())},nX.Footer=function(){return null};let nJ=y.createContext({activeTab:"",setActiveTab:()=>{}}),nQ=(0,rM.R)(({className:e,value:t,children:o,onClick:r,as:n="button",role:a="tab",...i},l)=>{let{activeTab:s,setActiveTab:u}=y.useContext(nJ),c=s===t;return y.createElement(rz.G,{...i,role:a,as:n,id:`${t}-tab`,"aria-selected":c,"aria-controls":`${t}-panel`,tabIndex:c?void 0:-1,className:rD(rO.TabsItem,(0,E.T2)(rO.TabsItem,"active",s===t),e),ref:l,onClick:e=>{(0,E.YX)(r)&&r?.(e),u(t)}},o)});nQ.displayName="Tabs.Item";let n0=e=>y.isValidElement(e),n1=(0,rM.R)(({className:e,children:t,indicatorPosition:o,spacing:r,role:n="tablist",...a},i)=>{let l=y.useRef(null),{activeTab:s,setActiveTab:u}=y.useContext(nJ);y.useImperativeHandle(i,()=>l.current);let c=y.useMemo(()=>y.Children.toArray(t).map(e=>{if(e&&n0(e))return e.props.value}).filter(e=>!!e),[t]),d=c.indexOf(s),p=y.useCallback(()=>{let e=d===c.length-1?0:d+1,t=l.current?.querySelectorAll("button")??[];for(;t[e].disabled;)e===c.length-1?e=0:e++;let o=c[e];if(o){u(o);let r=t[e];r?.focus(),r?.click()}},[d,u,c]),v=y.useCallback(()=>{let e=0===d?c.length-1:d-1,t=l.current?.querySelectorAll("button")??[];for(;t[e].disabled;)0===e?e=c.length-1:e--;let o=c[e];if(o){u(o);let r=t[e];r?.focus(),r?.click()}},[d,u,c]),f=y.useCallback(e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),e.stopPropagation(),v();break;case"ArrowUp":case"ArrowRight":e.preventDefault(),e.stopPropagation(),p()}},[v,p]);return y.createElement(rz.G,{...a,role:n,onKeyDown:f,className:rD(rO.TabsList,o?(0,E.wq)(rO.TabsList,o):null,r?(0,E.wq)(rO.TabsList,r):null,e),ref:l},t)});n1.displayName="Tabs.List";let n2=(0,rM.R)(({className:e,value:t,children:o,role:r="tabpanel",...n},a)=>{let{activeTab:i,isLazy:l}=y.useContext(nJ);return l&&i!==t?null:y.createElement(rz.G,{...n,role:r,id:`${t}-panel`,"aria-labelledby":`${t}-tab`,className:rD(rO.TabsPanel,(0,E.T2)(rO.TabsPanel,"active",i===t),e),ref:a},o)});n2.displayName="Tabs.Panel";let n5=(0,rM.R)(({children:e,defaultValue:t,className:o,value:r,onValueChange:n,isLazy:a,...i},l)=>{let s=void 0!==r,[u,c]=y.useState(()=>s?r:t),d=s?r:u??"",p=y.useCallback(e=>{(0,E.mf)(n)&&n(e),s||c(e)},[n,s]),v=y.useMemo(()=>({activeTab:d,isLazy:a,setActiveTab:p}),[d,p,a]);return y.createElement(nJ.Provider,{value:v},y.createElement(rz.G,{...i,ref:l,className:rD(o,rO.Tabs)},e))});n5.displayName="Tabs.Container";let n3=Object.assign((0,rM.R)(({items:e,indicatorPosition:t,justifyContent:o,spacing:r,...n},a)=>y.createElement(n5,{...n,ref:a},y.createElement(n1,{indicatorPosition:t,justifyContent:o,spacing:r},e?.map(({value:e,label:t,content:o,...r})=>y.createElement(nQ,{...r,key:e,value:e},t))),e?.map(({value:e,content:t,isDisabled:o})=>y.createElement(n2,{key:e,value:e,isDisabled:o},t)))),{Item:nQ,List:n1,Panel:n2,Container:n5});n3.displayName="Tabs",(s=h||(h={})).Apple="Apple",s.Amazon="Amazon",s.Facebook="Facebook",s.Google="Google",(u=g||(g={})).Email="email",u.PhoneNumber="phone_number";let n4=(0,rM.R)(({className:e,orientation:t="horizontal",size:o,label:r,...n},a)=>{let i=rD(rO.Divider,(0,E.wq)(rO.Divider,t),(0,E.wq)(rO.Divider,o),e);return y.createElement(rz.G,{"aria-orientation":t,as:"hr",className:i,"data-label":r,ref:a,...n})});n4.displayName="Divider";let n6={minX:0,minY:0,width:24,height:24},n8=(0,rM.R)(({className:e,as:t="svg",fill:o="currentColor",pathData:r,viewBox:n=n6,children:a,paths:i,...l},s)=>{let u;let c=n.minX?n.minX:n6.minX,d=n.minY?n.minY:n6.minY,p=n.width?n.width:n6.width,v=n.height?n.height:n6.height;return a&&(u=a),i&&(u=i.map((e,t)=>y.createElement("path",{...e,key:t}))),r&&(u=y.createElement("path",{d:r,fill:o})),y.createElement(rz.G,{as:t,className:rD(rO.Icon,e),ref:s,viewBox:`${c} ${d} ${p} ${v}`,...l},u)});n8.displayName="Icon";let n9=()=>y.createElement("svg",{"aria-label":"Apple icon",className:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})),n7=()=>y.createElement("svg",{"aria-label":"Google icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},y.createElement("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),y.createElement("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),y.createElement("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),y.createElement("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})),ae=()=>y.createElement(n8,{className:"federated-sign-in-icon",ariaLabel:"Facebook icon",viewBox:{minX:0,minY:0,width:279,height:538},pathData:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"}),at=()=>y.createElement("svg",{"aria-label":"Amazon icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 243 264",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},y.createElement("path",{d:"M230.826 208.039C227.468 203.683 208.551 205.982 200.056 206.998C197.471 207.321 197.076 205.042 199.407 203.405C214.475 192.665 239.201 195.766 242.082 199.364C244.966 202.982 241.337 228.071 227.173 240.049C225.001 241.888 222.93 240.904 223.898 238.468C227.077 230.431 234.205 212.419 230.826 208.039ZM123.769 264C71.0234 264 39.0764 241.955 14.7853 217.542C9.97339 212.706 3.71799 206.296 0.311513 200.691C-1.09773 198.372 2.59096 195.022 5.04421 196.844C35.239 219.268 79.1012 239.538 122.53 239.538C151.82 239.538 188.046 227.47 217.669 214.868C222.147 212.966 222.147 219.18 221.512 221.061C221.183 222.032 206.515 236.221 186.247 247.047C167.304 257.166 143.397 264 123.769 264Z",fill:"#F2541B"}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.943 111.185C142.943 124.756 143.268 136.054 136.406 148.123C130.856 157.913 122.027 163.95 112.222 163.95C98.8288 163.95 90.9806 153.772 90.9806 138.693C90.9806 109.036 117.677 103.647 142.943 103.647V111.185ZM178.166 196.081C175.858 198.15 171.635 198.22 169.914 196.894C157.974 187.684 149.89 173.688 149.89 173.688C130.706 193.156 117.127 199 92.2879 199C62.8772 199 40 180.905 40 144.729C40 116.461 55.3552 97.2408 77.2563 87.823C96.2094 79.5256 122.684 78.0173 142.943 75.7517C142.943 75.7517 144.633 53.933 138.699 45.9806C134.098 39.8163 126.272 36.9329 119.089 36.9329C106.127 36.8829 93.61 43.9051 91.1262 57.4188C90.4136 61.2829 87.5533 64.5261 84.54 64.206L51.0823 60.5922C48.5156 60.2951 45.0381 57.6639 45.8636 53.3081C53.644 12.3684 90.7373 0 123.989 0C140.983 0 163.21 4.51651 176.608 17.3349C193.597 33.1648 191.969 54.2755 191.969 77.2722V131.51C191.969 147.835 198.768 154.987 205.151 163.775C207.376 166.953 207.886 170.714 205.04 173.032C197.902 178.999 178.166 196.081 178.166 196.081Z",fill:"#F2541B"})),ao=e=>{let t;let{icon:o,provider:r,text:n}=e,{toFederatedSignIn:a}=(0,x.Z)();return"facebook"===o?t=y.createElement(ae,null):"google"===o?t=y.createElement(n7,null):"amazon"===o?t=y.createElement(at,null):"apple"===o&&(t=y.createElement(n9,null)),y.createElement(rG,{onClick:e=>{e.preventDefault(),a({provider:r})},className:"federated-sign-in-button",fontWeight:"normal",gap:"1rem"},t,y.createElement(rK,{as:"span"},n))},{getSignInWithFederationText:ar,getOrText:an}=rU;function aa(){let{route:e,socialProviders:t}=(0,x.Z)(({route:e,socialProviders:t})=>[e,t]);return 0===t.length?null:y.createElement(rW,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},t.map(t=>{switch(t){case"amazon":return y.createElement(ao,{icon:"amazon",key:t,provider:h.Amazon,text:ar(e,t)});case"apple":return y.createElement(ao,{icon:"apple",key:t,provider:h.Apple,text:ar(e,t)});case"facebook":return y.createElement(ao,{icon:"facebook",key:t,provider:h.Facebook,text:ar(e,t)});case"google":return y.createElement(ao,{icon:"google",key:t,provider:h.Google,text:ar(e,t)});default:console.error(`Authenticator does not support ${t}. Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose`)}}),y.createElement(n4,{size:"small",label:an()}))}let{getSignInText:ai,getSigningInText:al,getForgotPasswordText:as}=rU;function au(){let{isPending:e}=(0,x.Z)(e=>[e.isPending]),{handleChange:t,handleSubmit:o}=rY(),{components:{SignIn:{Header:r=au.Header,Footer:n=au.Footer}}}=rT();return y.createElement(rz.G,null,y.createElement(r,null),y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signin":"",method:"post",onSubmit:o,onChange:t},y.createElement(aa,null),y.createElement(rW,{direction:"column"},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:e},y.createElement(r7,null,y.createElement("legend",null,ai())),y.createElement(nk,null)),y.createElement(r8,null),y.createElement(rG,{isDisabled:e,isFullWidth:!0,type:"submit",variation:"primary",isLoading:e,loadingText:al()},ai()))),y.createElement(n,null))}au.Footer=()=>{let{toForgotPassword:e}=(0,x.Z)(e=>[e.toForgotPassword]);return y.createElement(rz.G,{"data-amplify-footer":""},y.createElement(rG,{fontWeight:"normal",onClick:e,size:"small",variation:"link"},as()))},au.Header=function(){return null};let{getCreateAccountText:ac,getCreatingAccountText:ad}=rU;function ap(){let{hasValidationErrors:e,isPending:t}=(0,x.Z)(e=>[e.hasValidationErrors,e.isPending]),{handleChange:o,handleBlur:r,handleSubmit:n}=rY(),{components:{SignUp:{Header:a=ap.Header,FormFields:i=ap.FormFields,Footer:l=ap.Footer}}}=rT();return y.createElement(rz.G,null,y.createElement(a,null),y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signup":"",method:"post",onChange:o,onSubmit:n,onBlur:r},y.createElement(aa,null),y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:t},y.createElement(rW,{direction:"column"},y.createElement(i,null),y.createElement(r8,null)),y.createElement(rG,{isDisabled:e||t,isFullWidth:!0,type:"submit",variation:"primary",isLoading:t,loadingText:ad()},ac()))),y.createElement(l,null))}ap.Header=function(){return null},ap.FormFields=function(){return y.createElement(nk,null)},ap.Footer=function(){return null};let{getSignInTabText:av,getSignUpTabText:af}=rU,ah=({className:e,hideSignUp:t,variation:o})=>{let{route:r,toSignIn:n,toSignUp:a}=(0,x.Z)(e=>[e.route,e.toSignIn,e.toSignUp]);return y.createElement(nT,{className:e,variation:o},t?y.createElement(rz.G,{"data-amplify-router-content":""},"signIn"===r&&y.createElement(au,null)):y.createElement(n3.Container,{value:r,isLazy:!0,onValueChange:()=>"signIn"===r?a():n()},y.createElement(n3.List,{spacing:"equal",indicatorPosition:"top"},y.createElement(n3.Item,{value:"signIn"},av()),y.createElement(n3.Item,{value:"signUp"},af())),y.createElement(n3.Panel,{value:"signIn","data-amplify-router-content":""},y.createElement(au,null)),y.createElement(n3.Panel,{value:"signUp","data-amplify-router-content":""},y.createElement(ap,null))))},{getSubmitText:ag,getSubmittingText:am}=rU,ay=e=>{let{cancelButtonSendType:t,cancelButtonText:o,submitButtonText:r}=e,{isPending:n,resendCode:a,skipVerification:i,toSignIn:l}=(0,x.Z)(e=>[e.isPending]),s=n?y.createElement(y.Fragment,null,am(),"…"):y.createElement(y.Fragment,null,ag());return y.createElement(rW,{direction:"column"},y.createElement(rG,{fontWeight:"normal",variation:"primary",isDisabled:n,type:"submit"},r??s),y.createElement(rG,{onClick:()=>{switch(t){case"SKIP":i();break;case"RESEND":a();break;case"SIGN_IN":l();break;default:return}},type:"button",variation:"link",fontWeight:"normal",size:"small"},o))},{getAccountRecoveryInfoText:ab,getSkipText:aE}=rU,ax=({className:e,variation:t})=>{let{isPending:o}=(0,x.Z)(e=>[e.isPending]),{handleChange:r,handleSubmit:n}=rY(),{components:{ConfirmVerifyUser:{Header:a=ax.Header,Footer:i=ax.Footer}}}=rT();return y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:r,onSubmit:n},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:o},y.createElement(a,null),y.createElement(rW,{direction:"column"},y.createElement(nk,null)),y.createElement(r8,null),y.createElement(ay,{cancelButtonText:aE(),cancelButtonSendType:"SKIP"}),y.createElement(i,null))))};ax.Header=function(){return y.createElement(r$,{level:3},ab())},ax.Footer=function(){return null};let aC=y.createContext({name:"default"}),aS=()=>(0,y.useContext)(aC),aw=(0,rM.R)(({children:e,className:t,id:o,isDisabled:r=!1,testId:n,value:a,labelPosition:i,...l},s)=>{let{currentValue:u,defaultValue:c,name:d,hasError:p,isGroupDisabled:v=!1,isRequired:f,isReadOnly:h,onChange:g,size:m,labelPosition:b}=aS(),{isFieldsetDisabled:x}=rB(),C=x||v||r||h&&c!==a,S=i||b;return y.createElement(rW,{as:"label",className:rD(rO.Radio,(0,E.T2)(rO.Radio,"disabled",C),S?`amplify-label-${S}`:null,t)},e&&y.createElement(rK,{as:"span",className:rD(rO.RadioLabel,(0,E.T2)(rO.RadioLabel,"disabled",C))},e),y.createElement(nu,{checked:void 0!==u?a===u:void 0,className:rD(rO.VisuallyHidden,rO.RadioInput),defaultChecked:void 0!==c?a===c:void 0,hasError:p,id:o,isDisabled:C,isReadOnly:h,isRequired:f,onChange:g,ref:s,type:"radio",name:d,value:a,...l}),y.createElement(rW,{"aria-hidden":"true",as:"span",className:rD(rO.RadioButton,(0,E.wq)(rO.RadioButton,m)),testId:n}))});aw.displayName="Radio";let aI=(0,rM.R)(({children:e,className:t,isDisabled:o,legend:r,legendHidden:n,size:a,testId:i,variation:l="plain",...s},u)=>{let{isFieldsetDisabled:c}=rB(),d=c||o,p=y.useMemo(()=>({isFieldsetDisabled:d}),[d]),v=rD(rO.Fieldset,(0,E.wq)(rO.Fieldset,l),(0,E.wq)(rO.Fieldset,a),t),f=rD(rO.FieldsetLegend,(0,E.wq)(rO.FieldsetLegend,a),{[rO.VisuallyHidden]:n});return y.createElement(rL.Provider,{value:p},y.createElement(rW,{as:"fieldset",className:v,ref:u,disabled:d,testId:i,...s},y.createElement(r7,{as:"legend"},r),y.createElement(rz.G,{as:"div","aria-hidden":"true",className:f},r),e))});aI.displayName="Fieldset";let a_=(e,t)=>e&&t?`${e}-${t}`:void 0,aA=(0,rM.R)(({children:e,className:t,defaultValue:o,descriptiveText:r,errorMessage:n,hasError:a=!1,id:i,isDisabled:l,isRequired:s,isReadOnly:u,legend:c,legendHidden:d=!1,labelPosition:p,onChange:v,name:f,size:h,testId:g,value:m,variation:b,...x},C)=>{let S=nm(i),w=nm(),I=r?w:void 0,_=a_(g,rO.RadioGroup),A=y.useMemo(()=>({currentValue:m,defaultValue:o,hasError:a,isRequired:s,isReadOnly:u,isGroupDisabled:l,onChange:v,size:h,name:f,labelPosition:p}),[o,a,l,s,u,v,h,f,m,p]);return y.createElement(aI,{className:rD(rO.Field,(0,E.wq)(rO.Field,h),rO.RadioGroupField,t),isDisabled:l,legend:c,legendHidden:d,ref:C,role:"radiogroup",size:h,testId:g,variation:b,...x},y.createElement(ni,{id:w,labelHidden:d,descriptiveText:r}),y.createElement(rW,{"aria-describedby":I,className:rO.RadioGroup,id:S,testId:_},y.createElement(aC.Provider,{value:A},e)),y.createElement(nl,{hasError:a,errorMessage:n}))});aA.displayName="RadioGroupField";let{getSkipText:aR,getVerifyText:ak,getVerifyContactText:aN,getAccountRecoveryInfoText:aT}=rU,aF=e=>Object.entries(e).map(([e,t])=>{let o=tw.zn[e].label;return y.createElement(aw,{name:"unverifiedAttr",value:e,key:e},(0,rF.Iu)(o),":"," ",tR(o,t))}),aP=({className:e,variation:t})=>{let{components:{VerifyUser:{Header:o=aP.Header,Footer:r=aP.Footer}}}=rT(),{isPending:n,unverifiedUserAttributes:a}=(0,x.Z)(({isPending:e,unverifiedUserAttributes:t})=>[e,t]),{handleChange:i,handleSubmit:l}=rY(),s=n?y.createElement(y.Fragment,null,"Verifying…"):y.createElement(y.Fragment,null,ak()),u=y.createElement(aA,{legend:aN(),name:"verify_context",isDisabled:n,legendHidden:!0},aF(a));return y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:i,onSubmit:l},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:n},y.createElement(o,null),u,y.createElement(r8,null),y.createElement(ay,{cancelButtonText:aR(),cancelButtonSendType:"SKIP",submitButtonText:s}),y.createElement(r,null))))};aP.Header=function(){return y.createElement(r$,{level:3},aT())},aP.Footer=function(){return null};let{getChallengeText:aU}=rU,aD=({className:e,variation:t})=>{let{isPending:o}=(0,x.Z)(e=>[e.isPending]),{handleChange:r,handleSubmit:n}=rY(),{components:{ConfirmSignIn:{Header:a=aD.Header,Footer:i=aD.Footer}}}=rT();return y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:r,onSubmit:n},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:o},y.createElement(a,null),y.createElement(rW,{direction:"column"},y.createElement(nk,null),y.createElement(r8,null)),y.createElement(nq,null),y.createElement(i,null))))};aD.Header=function(){let{challengeName:e}=(0,x.Z)(({challengeName:e})=>[e]);return y.createElement(r$,{level:3},aU(e))},aD.Footer=function(){return null};let{getResendCodeText:aO,getResetYourPasswordText:aM}=rU,aL=({className:e,variation:t})=>{let{isPending:o}=(0,x.Z)(e=>[e.isPending]),{handleBlur:r,handleChange:n,handleSubmit:a}=rY(),{components:{ConfirmResetPassword:{Header:i=aL.Header,Footer:l=aL.Footer}}}=rT();return y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:a,onChange:n,onBlur:r},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:o},y.createElement(i,null),y.createElement(rW,{direction:"column"},y.createElement(nk,null)),y.createElement(r8,null),y.createElement(ay,{cancelButtonSendType:"RESEND",cancelButtonText:aO()}),y.createElement(l,null))))};aL.Header=function(){let e=aM();return y.createElement(r$,{level:3},e)},aL.Footer=function(){return null};let{getBackToSignInText:aB,getSendingText:az,getSendCodeText:aW,getResetYourPasswordText:aj}=rU,aH=({className:e,variation:t})=>{let{isPending:o}=(0,x.Z)(e=>[e.isPending]),{handleChange:r,handleSubmit:n}=rY(),{components:{ForgotPassword:{Header:a=aH.Header,Footer:i=aH.Footer}}}=rT();return y.createElement(nT,{className:e,variation:t},y.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forgotpassword":"",method:"post",onChange:r,onSubmit:n},y.createElement(rW,{as:"fieldset",direction:"column",isDisabled:o},y.createElement(a,null),y.createElement(rW,{direction:"column"},y.createElement(nk,null)),y.createElement(r8,null),y.createElement(ay,{cancelButtonText:aB(),cancelButtonSendType:"SIGN_IN",submitButtonText:o?y.createElement(y.Fragment,null,az(),"…"):y.createElement(y.Fragment,null,aW())}),y.createElement(i,null))))};aH.Header=function(){return y.createElement(r$,{level:3},aj())},aH.Footer=function(){return null};let aV=e=>"signIn"===e||"signUp"===e;function aG(){return null}let aq=e=>{switch(e){case"authenticated":case"idle":case"setup":case"transition":return aG;case"confirmSignUp":return nM;case"confirmSignIn":return aD;case"setupTotp":return nX;case"signIn":case"signUp":return ah;case"forceNewPassword":return nW;case"forgotPassword":return aH;case"confirmResetPassword":return aL;case"verifyUser":return aP;case"confirmVerifyUser":return ax;default:return console.warn(`Unhandled Authenticator route - please open an issue: ${e}`),aG}};function a$({className:e,hideSignUp:t,variation:o}){let{route:r}=(0,x.Z)(({route:e})=>[e]),n=(0,y.useMemo)(()=>aq(r),[r]);return y.createElement(n,{className:e,hideSignUp:aV(r)?t:void 0,variation:o})}let aK={Header:()=>null,SignIn:{Header:au.Header,Footer:au.Footer},SignUp:{Header:ap.Header,FormFields:ap.FormFields,Footer:ap.Footer},ConfirmSignUp:{Header:nM.Header,Footer:nM.Footer},SetupTotp:{Header:nX.Header,Footer:nX.Footer},ConfirmResetPassword:{Header:aL.Header,Footer:aL.Footer},ConfirmSignIn:{Header:aD.Header,Footer:aD.Footer},VerifyUser:{Header:aP.Header,Footer:aP.Footer},ConfirmVerifyUser:{Header:ax.Header,Footer:ax.Footer},ForceNewPassword:{Header:nW.Header,Footer:nW.Footer,FormFields:nW.FormFields},ForgotPassword:{Header:aH.Header,Footer:aH.Footer},Footer:()=>null};function aZ({children:e,className:t,components:o,formFields:r,hideSignUp:n,initialState:a,loginMechanisms:i,passwordSettings:l,signUpAttributes:s,services:u,socialProviders:c,variation:d}){rk({message:"The `passwordSettings` prop has been deprecated and will be removed in a future major version of Amplify UI.",shouldWarn:!1});let{route:p,signOut:v,user:f}=(0,x.Z)(({route:e,signOut:t,user:o})=>[e,t,o]);!function(e){let{route:t,initializeMachine:o}=(0,x.Z)(C),r=y.useRef(!1);y.useEffect(()=>{r.current||"setup"!==t||(o(e),r.current=!0)},[o,t,e])}({initialState:a,loginMechanisms:i,passwordSettings:l,services:u,signUpAttributes:s,socialProviders:c,formFields:r});let h=y.useMemo(()=>({components:{...aK,...o}}),[o]);return"authenticated"===p||"signOut"===p?e?y.createElement(y.Fragment,null,(0,E.mf)(e)?e({signOut:v,user:f}):e):null:y.createElement(rN.Provider,{value:h},y.createElement(a$,{className:t,hideSignUp:n,variation:d}))}function aY(e){return!function({componentName:e,packageName:t,version:o}){(0,y.useEffect)(()=>T({componentName:e,packageName:t,version:o}),[e,t,o])}({componentName:"Authenticator",packageName:"react",version:"6.1.5"}),y.createElement(r_,null,y.createElement(aZ,{...e}))}aY.Provider=r_,aY.ForgotPassword=aH,aY.SetupTotp=nX,aY.SignIn=au,aY.SignUp=ap,aY.ForceNewPassword=nW},22541:function(e,t,o){"use strict";o.d(t,{G:function(){return q}});var r=o(2265),n=o(8278),a=o(84314),i=o(86373);let l=["offsetX","offsetY","blurRadius","spreadRadius","color"];function s(e){if(!e)return"";if(a(e)){let t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${u({path:t})})`}return e}function u({path:e=[]}){return`${n(["amplify",...e].join(" "))}`}function c(e){return(0,i.Kn)(e)&&(0,i.e$)(e,"value")}function d(e){return(0,i.Kn)(e)&&(0,i.e$)(e,"offsetX")}function p({tokens:e,path:t=[],setupToken:o}){if((0,i.e$)(e,"value"))return o({token:e,path:t});let r={};for(let n in e)if((0,i.e$)(e,n)){let a=e[n],l=(0,i.Kn)(a)?a:{value:a};r[n]=p({tokens:l,path:t.concat(n),setupToken:o})}return r}var v=o(17374);let f={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
        'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
        sans-serif`},static:{value:`'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
        'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}},h={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:"2.5rem"},xxxxl:{value:"3rem"}},g={zero:{value:"0"},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.375em"},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"},full:{value:"100%"}}};h.xxs,h.xs,h.small,h.medium,h.large,h.xl,h.xxl,h.xxxl,g.xxxs,g.xs,g.small,g.medium,g.large,g.xl,g.xxl,g.xxxl;let m={tokens:{components:{accordion:{backgroundColor:{value:"{colors.background.primary.value}"},item:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small.value}"},trigger:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"inherit"},gap:{value:"{space.small.value}"},justifyContent:{value:"space-between"},paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},_hover:{color:{value:"inherit"},backgroundColor:{value:"{colors.overlay.5.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},content:{color:{value:"inherit"},paddingInline:{value:"{space.small.value}"},paddingBlockEnd:{value:"{space.small.value}"},paddingBlockStart:{value:"{space.xxxs.value}"}},icon:{color:{value:"{colors.font.tertiary.value}"},transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}},alert:{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}"}}},authenticator:{maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},autocomplete:{menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},badge:{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}"}}},breadcrumbs:{flexDirection:{value:"row"},flexWrap:{value:"wrap"},gap:{value:"0"},color:{value:"{colors.font.tertiary}"},item:{flexDirection:{value:"row"},color:{value:"inherit"},fontSize:{value:"inherit"},alignItems:{value:"center"},lineHeight:{value:"1"}},separator:{color:{value:"inherit"},fontSize:{value:"inherit"},paddingInline:{value:"{space.xxs}"}},link:{color:{value:"{components.link.color}"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"},paddingInline:{value:"{space.xs}"},paddingBlock:{value:"{space.xxs}"},current:{color:{value:"inherit"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"}}}},button:{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}"},backgroundColor:{value:"transparent"},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.primary.10.value}"},borderColor:{value:"{colors.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.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.primary.20.value}"},borderColor:{value:"{colors.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.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}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.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.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.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}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},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}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},card:{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}"},boxShadow:{value:"{components.card.boxShadow.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}"}}},checkbox:{cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.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.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.border.error.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},icon:{backgroundColor:{value:"{colors.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}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},checkboxfield:{alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},collection:{pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},copy:{fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},countrycodeselect:{height:{value:"{space.relative.full.value}"}},divider:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.font.primary}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.primary}"}},_disabled:{backgroundColor:{value:"{colors.background.disabled}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.disabled}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.disabled}"}},accepted:{backgroundColor:{value:"{colors.background.success}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.success}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.success}"}},rejected:{backgroundColor:{value:"{colors.background.error}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.error}"}}},field:{gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},flexDirection:{value:"column"},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}"}}},fieldcontrol:{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.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.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"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",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}"},color:{value:"{colors.font.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}},info:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.blue.100.value}"}}}},warning:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.orange.100.value}"}}}},success:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.green.100.value}"}}}},overlay:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.overlay.90.value}"}}}}},fieldgroup:{gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},fieldmessages:{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}"}}},fieldset:{backgroundColor:{value:"transparent"},borderRadius:{value:"{radii.xs.value}"},flexDirection:{value:"column"},gap:{value:"{components.field.gap.value}"},legend:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{components.field.fontSize.value}"},fontWeight:{value:"{fontWeights.bold.value}"},lineHeight:{value:"{lineHeights.medium.value}"},small:{fontSize:"{components.field.small.fontSize.value}"},large:{fontSize:"{components.field.large.fontSize.value}"}},outlined:{padding:"{space.medium.value}",borderColor:"{colors.neutral.40.value}",borderWidth:"{borderWidths.small.value}",borderStyle:"solid",small:{padding:"{space.small.value}"},large:{padding:"{space.large.value}"}},small:{gap:"{components.field.small.gap.value}"},large:{gap:"{components.field.large.gap.value}"}},flex:{gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},heading:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},icon:{lineHeight:{value:1},height:{value:"1em"}},highlightmatch:{highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},image:{maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},inappmessaging:{banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},input:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},link:{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}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},liveness:{cameraModule:{backgroundColor:{value:"{colors.black}"}}},loader:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.xxxs.value}"},fontSize:{value:"{fontSizes.xxxs.value}"}},large:{strokeWidth:{value:"{fontSizes.xs.value}"},fontSize:{value:"{fontSizes.xs.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},menu:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},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}"}}},message:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderColor:{value:"transparent"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.xs.value}"},color:{value:"{colors.font.primary.value}"},justifyContent:{value:"flex-start"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},lineHeight:{value:"{lineHeights.small.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},dismiss:{gap:{value:"{space.xxs.value}"}},plain:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}}},outlined:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.primary.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.error.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.success.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.warning.value}"}}},filled:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.secondary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"transparent"}}}},pagination:{current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.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}"}}},passwordfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_error:{color:{value:"{components.button.outlined.error.color.value}"},backgroundColor:{value:"{components.button.outlined.error.backgroundColor.value}"},borderColor:{value:"{components.button.outlined.error.borderColor.value}"},_active:{borderColor:{value:"{components.button.outlined.error._active.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._active.backgroundColor.value}"},color:{value:"{components.button.outlined.error._active.color.value}"}},_focus:{borderColor:{value:"{components.button.outlined.error._focus.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._focus.backgroundColor.value}"},color:{value:"{components.button.outlined.error._focus.color.value}"},boxShadow:{value:"{components.button.outlined.error._focus.boxShadow.value}"}},_hover:{borderColor:{value:"{components.button.outlined.error._hover.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._hover.backgroundColor.value}"},color:{value:"{components.button.outlined.error._hover.color.value}"}}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},phonenumberfield:{color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},placeholder:{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}"}}},radio:{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.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.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.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:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},radiogroup:{radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},legend:{color:{value:"{components.fieldset.legend.color}"},fontWeight:{value:"{fontWeights.normal}"}}},rating:{large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},searchfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},select:{color:{value:"{components.fieldcontrol.color}"},backgroundColor:{value:"{colors.background.primary.value}"},paddingInlineEnd:{value:"{space.xxl.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"},small:{right:{value:"{space.xs.value}"}},large:{right:{value:"{space.medium.value}"}}},option:{backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"},paddingInlineEnd:{value:"{space.xl.value}"}},large:{minWidth:{value:"7.5rem"},paddingInlineEnd:{value:"{space.xxl.value}"}},expanded:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},option:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"}}}},selectfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},sliderfield:{paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.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.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.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:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.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"}}}},stepperfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},storagemanager:{dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.storagemanager.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.storagemanager.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},switchfield:{_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},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.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},table:{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}"}}}},tabs:{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:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.hover.value}"}},_focus:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"{borderWidths.medium}",color:"{colors.border.focus.value}"}},color:{value:"{colors.font.focus.value}"}},_active:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.font.interactive.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.interactive.value}"}},_disabled:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.disabled.value}"}}},panel:{backgroundColor:{value:"transparent"},paddingInline:{value:"0"},paddingBlock:{value:"{space.small.value}"}}},text:{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}"}}},textareafield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},textfield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},togglebutton:{borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.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.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.primary.80.value}"},borderColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.primary.60.value}"},backgroundColor:{value:"{colors.primary.60.value}"},boxShadow:{value:"{colors.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},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:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},togglebuttongroup:{alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}},borderWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},colors:{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, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},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.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.primary.80.value}"},hover:{value:"{colors.primary.90.value}"},focus:{value:"{colors.primary.100.value}"},active:{value:"{colors.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}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.10.value}"},warning:{value:"{colors.orange.10.value}"},error:{value:"{colors.red.10.value}"},success:{value:"{colors.green.10.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}"},pressed:{value:"{colors.primary.100.value}"},focus:{value:"{colors.primary.100.value}"},error:{value:"{colors.red.80.value}"},info:{value:"{colors.blue.80.value}"},success:{value:"{colors.green.80.value}"},warning:{value:"{colors.orange.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:{5:{value:"hsla(0, 0%, 0%, 0.05)"},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"}},fonts:f,fontSizes:h,fontWeights:{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}},lineHeights:{small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},opacities:{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"}},outlineOffsets:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},outlineWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},radii:{xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},shadows:{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}"}}},space:g,time:{short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},transforms:{slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}}},breakpoints:{values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},name:"default-theme"};var y=o(20435);let b=e=>e in y.e5,E=e=>"string"==typeof e&&0===e.length,x=e=>null==e||E(e),C=e=>Object.keys(e),S=(e,t,o)=>{if("string"!=typeof t)return t;if(t.includes(" "))return t.split(" ").map(t=>S(e,t,o)).join(" ");if(b(e)){let r=t.split("."),n=o[y.e5[e]];for(let e=0;e<r.length;e++){if(n){n=n[r[e]];continue}break}return c(n)?`var(--${u({path:[y.e5[e],...r]})})`:t}return t},w=({breakpoint:e,breakpoints:t,values:o})=>{let r=o[e];if(void 0!==r)return r;let n=C(t).sort((e,o)=>t[o]-t[e]);for(let t of n.slice(n.indexOf(e))){let e=o[t];if(void 0!==e)return e}return null},I=e=>C(e).reduce((t,o)=>o in m.breakpoints.values?{...t,[o]:e[o]}:t,{}),_=({breakpoint:e,breakpoints:t,values:o})=>{let r={},n=C(t).sort((e,o)=>t[e]-t[o]);return Array.isArray(o)?o.forEach((e,t)=>{r[n[t]]=e}):"object"==typeof o&&(r=I(o)),w({breakpoint:e,breakpoints:t,values:r})},A=({breakpoints:e})=>{let t=C(e).sort((t,o)=>e[o]-e[t]);return t.map((o,r)=>{let n="",a=e[o],i=t[r-1],l=i?e[i]-1:null;return a>=0&&(n=`(min-width: ${a}px)`),null!==l&&(n&&(n+=" and "),n+=`(max-width: ${l}px)`),{breakpoint:o,query:n,maxWidth:l,minWidth:a}})},R="undefined"==typeof window?r.useEffect:r.useLayoutEffect,k=({breakpoints:e,defaultBreakpoint:t})=>{let o="undefined"!=typeof window&&void 0!==window.matchMedia?window.matchMedia:null,n=r.useMemo(()=>A({breakpoints:e}),[e]),[a,i]=r.useState(t),l=r.useCallback((e,t)=>{e&&i(t)},[i]);return R(()=>{if(!o)return;let e=n.map(({query:e,breakpoint:t})=>{let r=o(e);l(r.matches,t);let n=e=>{e.matches&&i(t)};return r.addEventListener("change",n),()=>r.removeEventListener("change",n)});return()=>{e.forEach(e=>e())}},[e,i,o,n]),r.useDebugValue(a,e=>e),a};var N=o(26583),T=o(67744);let F=({token:e,path:t})=>{let o=`--${u({path:t})}`,{value:r}=e;return{name:o,original:r,path:t,value:function(e){let{value:t}=e;return(0,i.HD)(t)?s(t):d(t)?l.map(o=>s(d(e)?e[o]:t[o])).join(" "):t}(e),toString:()=>`var(${o})`}};function P({keys:e,value:t}){return e.reduce((e,o)=>({...e,[o]:{value:`{colors.${t}.${o}.value}`}}),{})}function U(e,t=m){let o=N([{},t,e]),{primaryColor:r,secondaryColor:n}=o;(0,i.HD)(r)&&(o.tokens.colors.primary=P({keys:Object.keys(o.tokens.colors[r]),value:r})),(0,i.HD)(n)&&(o.tokens.colors.secondary=P({keys:Object.keys(o.tokens.colors[n]),value:n}));let a=p({tokens:o.tokens,setupToken:F}),{breakpoints:l,name:s}=o,u=`[data-amplify-theme="${s}"] {
`+T(a).map(e=>`${e.name}: ${e.value};`).join("\n")+`
}
`,c=[];return o.overrides&&(c=o.overrides.map(e=>{let t=p({tokens:e.tokens,setupToken:F}),r=T(t).map(e=>`${e.name}: ${e.value};`).join("\n");if("selector"in e&&(u+=`
${e.selector} {
${r}
}
`),"mediaQuery"in e&&(u+=`
@media (${e.mediaQuery}) {
  [data-amplify-theme="${s}"] {
    ${r}
  }
}
`),"breakpoint"in e){let t=o.breakpoints.values[e.breakpoint];u+=`
@media (min-width: ${t}px) {
  [data-amplify-theme="${s}"] {
    ${r}
  }
}
`}return"colorMode"in e&&(u+=`
@media (prefers-color-scheme: ${e.colorMode}) {
          [data-amplify-theme="${s}"][data-amplify-color-mode="system"] {
            ${r}
            color-scheme: ${e.colorMode};
          }
        }

[data-amplify-theme="${s}"][data-amplify-color-mode="${e.colorMode}"] {
          ${r}
          color-scheme: ${e.colorMode};
        }
`),{...e,tokens:t}})),{tokens:a,breakpoints:l,name:s,cssText:u,overrides:c}}let D=r.createContext({theme:U(),colorMode:void 0}),O=e=>void 0===e||void 0===e.theme?U():e.theme,M=()=>O(r.useContext(D)),L=({value:e,propKey:t,tokens:o})=>c(e)?e.toString():(0,i.HD)(e)?(0,i.HD)(t)?S(t,e,o):e:null,B=e=>"auto"===e||"number"==typeof e&&!isNaN(e)||"string"==typeof e&&!isNaN(parseFloat(e)),z=e=>"auto"===e?"auto":`span ${e}`,W=e=>B(e)?z(e):Array.isArray(e)?e.map(e=>z(e)):"object"==typeof e&&null!=e?Object.entries(e).reduce((e,[t,o])=>({...e,[t]:z(o)}),{}):null,j=e=>{let{rowSpan:t,columnSpan:o,row:n,column:a,...i}=e,{rowFromSpanValue:l,columnFromSpanValue:s}=r.useMemo(()=>({rowFromSpanValue:W(t),columnFromSpanValue:W(o)}),[t,o]);return{row:x(n)?l:n,column:x(a)?s:a,...i}},H=e=>e in v.Q,V=({props:e={},style:t={},breakpoint:o,breakpoints:r,tokens:n})=>{let a={};return Object.keys(e).filter(t=>null!==e[t]).forEach(i=>{if(H(i)){let a=e[i];if(!a||E(a))return;let l=v.Q[i],s="";c(a)?s=a.toString():"string"==typeof a?s=S(i,a,n):"number"==typeof a?s=a:"object"==typeof a&&(s=L({propKey:i,tokens:n,value:_({values:a,breakpoint:o,breakpoints:r})})),t={...t,[l]:s}}else void 0!==e[i]&&(a[i]=e[i])}),{propStyles:t,nonStyleProps:a}},G=(e,t)=>{let{breakpoints:{values:o,defaultBreakpoint:n},tokens:a}=M(),i=k({breakpoints:o,defaultBreakpoint:n}),l=j(e);return r.useMemo(()=>V({props:l,style:t,breakpoint:i,breakpoints:o,tokens:a}),[l,t,o,i,a])},q=(0,o(82112).R)(({as:e="div",children:t,testId:o,ariaLabel:n,isDisabled:a,style:i,inert:l,...s},u)=>{let{propStyles:c,nonStyleProps:d}=G(s,i);return r.createElement(e,{"aria-label":n,"data-testid":o,disabled:a,ref:u,inert:l?"":null,style:c,...d},t)});q.displayName="View"},20435:function(e,t,o){"use strict";o.d(t,{ComponentText:function(){return r},e5:function(){return n}});let r={Alert:{dismissButtonLabel:"Dismiss alert"},Autocomplete:{emptyText:"No options found",loadingText:"Loading options..."},Collection:{searchButtonLabel:"Search",searchNoResultsFound:"No results found"},Fields:{clearButtonLabel:"Clear input"},Message:{dismissLabel:"Dismiss message"},PaginationItem:{currentPageLabel:"Page",nextLabel:"Go to next page",pageLabel:"Go to page",previousLabel:"Go to previous page"},PhoneNumberField:{countryCodeLabel:"Country code"},SearchField:{searchButtonLabel:"Search"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"},StepperField:{increaseButtonLabel:"Increase to",decreaseButtonLabel:"Decrease to"}},n={backgroundColor:"colors",borderColor:"colors",borderWidth:"borderWidths",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"}},17374:function(e,t,o){"use strict";o.d(t,{Q:function(){return r}});let r={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",aspectRatio:"aspectRatio",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",borderColor:"borderColor",borderWidth:"borderWidth",borderStyle:"borderStyle",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"};Object.keys(r)},82112:function(e,t,o){"use strict";o.d(t,{R:function(){return n}});var r=o(2265);let n=e=>r.forwardRef(e)},58144:function(e,t,o){"use strict";o.d(t,{V:function(){return K}});var r=o(69826),n=o(98955);class a{constructor(e={}){let{path:t,domain:o,expires:r,sameSite:n,secure:a}=e;if(this.domain=o,this.path=t||"/",this.expires=Object.prototype.hasOwnProperty.call(e,"expires")?r:365,this.secure=!Object.prototype.hasOwnProperty.call(e,"secure")||a,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!n||!["strict","lax","none"].includes(n))throw Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===n&&!this.secure)throw Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=n}}async setItem(e,t){n.Z.set(e,t,this.getData())}async getItem(e){return n.Z.get(e)??null}async removeItem(e){n.Z.remove(e,this.getData())}async clear(){let e=Object.keys(n.Z.get()).map(e=>this.removeItem(e));await Promise.all(e)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}var i=o(94145),l=o(3949),s=o(29723),u=o(90002),c=o(33853);let d={identityId:"identityId"};var p=o(19486);let v=new u.k("DefaultIdentityIdStore");class f{setAuthConfig(e){(0,c.YE)(e.Cognito),this.authConfig=e,this._authKeys=h("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this.keyValueStorage=e}async loadIdentityId(){(0,c.YE)(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{let e=await this.keyValueStorage.getItem(this._authKeys.identityId);if(e)return{id:e,type:"guest"};return null}}catch(e){return v.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){(0,c.YE)(this.authConfig?.Cognito),"guest"===e.type?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0):(this._primaryIdentityId=e.id,this.keyValueStorage.removeItem(this._authKeys.identityId))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}let h=(e,t)=>(0,p._X)(d)(`com.amplify.${e}`,t);o(50146);let g={},m={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),g[e]=t,m[t]=e}var y=o(15610),b=o(67728),E=o(77579),x=o(56046),C=o(46750),S=o(6759),w=o(10017),I=o(66070),_=o(69464),A=o(13279),R=o(92188);let k=(0,_.V)(C.y,[()=>e=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),N={service:"cognito-identity",endpointResolver:({region:e})=>({url:new I.a(`https://cognito-identity.${e}.${(0,x.b)(e)}`)}),retryDecider:(0,w.j)(b.f),computeDelay:S.k,userAgentValue:(0,A.Zm)(),cache:"no-store"};(0,R.QW)(()=>{N.userAgentValue=(0,A.Zm)()});let T=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),F=({url:e},t,o)=>({headers:t,url:e,body:o,method:"POST"}),P=async e=>{if(!(e.statusCode>=300))return{IdentityId:(await (0,b.e)(e)).IdentityId,$metadata:(0,y.B)(e)};throw await (0,b.f)(e)},U=(0,E.z)(k,(e,t)=>F(t,T("GetId"),JSON.stringify(e)),P,N);var D=o(37753),O=o(49467);function M(e){let t=(0,c.xp)(e).payload.iss,o={};if(!t)throw new D.l({name:"InvalidIdTokenException",message:"Invalid Idtoken."});return o[t.replace(/(^\w+:|^)\/\//,"")]=e,o}let L=new u.k("CognitoIdentityIdProvider");async function B({tokens:e,authConfig:t,identityIdStore:o}){o.setAuthConfig({Cognito:t});let r=await o.loadIdentityId();if(e){if(r&&"primary"===r.type)return r.id;{let o=e.idToken?M(e.idToken.toString()):{},n=await z(o,t);r&&r.id===n&&L.debug(`The guest identity ${r.id} has become the primary identity.`),r={id:n,type:"primary"}}}else{if(r&&"guest"===r.type)return r.id;r={id:await z({},t),type:"guest"}}return o.storeIdentityId(r),r.id}async function z(e,t){let o=t?.identityPoolId,r=(0,O.N)(o),n=(await U({region:r},{IdentityPoolId:o,Logins:e})).IdentityId;if(!n)throw new D.l({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return n}let W=async e=>{if(e.statusCode>=300)throw await (0,b.f)(e);{let t=await (0,b.e)(e);return{IdentityId:t.IdentityId,Credentials:j(t.Credentials),$metadata:(0,y.B)(e)}}},j=({AccessKeyId:e,SecretKey:t,SessionToken:o,Expiration:r}={})=>({AccessKeyId:e,SecretKey:t,SessionToken:o,Expiration:r&&new Date(1e3*r)}),H=(0,E.z)(k,(e,t)=>F(t,T("GetCredentialsForIdentity"),JSON.stringify(e)),W,N);var V=o(93822);let G=new u.k("CognitoCredentialsProvider");class q{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){G.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){G.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){let t=e.authenticated,o=e.tokens,r=e.authConfig;try{(0,c.YE)(r?.Cognito)}catch{return}if(!t&&!r.Cognito.allowGuestAccess)return;let n=e.forceRefresh,a=this.hasTokenChanged(o),i=await B({tokens:o,authConfig:r.Cognito,identityIdStore:this._identityIdStore});return((n||a)&&this.clearCredentials(),t)?((0,V.Cg)(o),this.credsForOIDCTokens(r.Cognito,o,i)):this.getGuestCredentials(i,r.Cognito)}async getGuestCredentials(e,t){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!1===this._credentialsAndIdentityId.isAuthenticatedCreds)return G.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();let o=(0,O.N)(t.identityPoolId),r=await H({region:o},{IdentityId:e});if(r.Credentials&&r.Credentials.AccessKeyId&&r.Credentials.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+3e6;let t={credentials:{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration},identityId:e},o=r.IdentityId;return o&&(t.identityId=o,this._identityIdStore.storeIdentityId({id:o,type:"guest"})),this._credentialsAndIdentityId={...t,isAuthenticatedCreds:!1},t}throw new D.l({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,t,o){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!0===this._credentialsAndIdentityId.isAuthenticatedCreds)return G.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();let r=t.idToken?M(t.idToken.toString()):{},n=(0,O.N)(e.identityPoolId),a=await H({region:n},{IdentityId:o,Logins:r});if(a.Credentials&&a.Credentials.AccessKeyId&&a.Credentials.SecretKey){let e={credentials:{accessKeyId:a.Credentials.AccessKeyId,secretAccessKey:a.Credentials.SecretKey,sessionToken:a.Credentials.SessionToken,expiration:a.Credentials.Expiration},identityId:o};this._credentialsAndIdentityId={...e,isAuthenticatedCreds:!0,associatedIdToken:t.idToken?.toString()},this._nextCredentialsRefresh=new Date().getTime()+3e6;let r=a.IdentityId;return r&&(e.identityId=r,this._identityIdStore.storeIdentityId({id:r,type:"primary"})),e}throw new D.l({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return void 0===this._nextCredentialsRefresh||this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}let $=new q(new f(i.Fm)),K={configure(e,t){let o;if(!(o=Object.keys(e).some(e=>e.startsWith("aws_"))?(0,l.h)(e):e).Auth||t?.Auth){r.d.configure(o,t);return}if(!r.d.libraryOptions.Auth){s.D.setAuthConfig(o.Auth),s.D.setKeyValueStorage(t?.ssr?new a({sameSite:"lax"}):i.Fm),r.d.configure(o,{...t,Auth:{tokenProvider:s.D,credentialsProvider:$}});return}if(t){void 0!==t.ssr&&s.D.setKeyValueStorage(t.ssr?new a({sameSite:"lax"}):i.Fm),r.d.configure(o,{Auth:r.d.libraryOptions.Auth,...t});return}r.d.configure(o)},getConfig:()=>r.d.getConfig()}},98955:function(e,t,o){"use strict";/*! js-cookie v3.0.5 | MIT */function r(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)e[r]=o[r]}return e}o.d(t,{Z:function(){return n}});var n=function e(t,o){function n(e,n,a){if("undefined"!=typeof document){"number"==typeof(a=r({},o,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var l in a)a[l]&&(i+="; "+l,!0!==a[l]&&(i+="="+a[l].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+i}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var o=document.cookie?document.cookie.split("; "):[],r={},n=0;n<o.length;n++){var a=o[n].split("="),i=a.slice(1).join("=");try{var l=decodeURIComponent(a[0]);if(r[l]=t.read(i,l),e===l)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){n(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);