(window.webpackJsonp=window.webpackJsonp||[]).push([[3],[function(e,t,n){"use strict";e.exports=n(1325)},function(e,t,n){"use strict";(function(e){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(330),a=n(0),i=r(a),s=r(n(1612)),c=r(n(1613)),l=r(n(639)),u=r(n(1935)),d=r(n(136));function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var k=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.2.0");var i=E();return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},S=function(){function e(e){var t=this.element=k(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&A(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a=M&&(M=t+1),T.set(e,t),P.set(t,e)},D="style["+w+'][data-styled-version="5.2.0"]',H=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),G=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=function(e){return V(5381,e)},$=/^\s*\/\/.*$/gm,q=[":","[",".","#"];function K(e){var t,n,r,o,a=void 0===e?m:e,i=a.options,s=void 0===i?m:i,l=a.plugins,u=void 0===l?g:l,d=new c(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,i,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,a){return 0===r&&q.includes(a[n.length])||a.match(o)?e:"."+t};function b(e,a,i,s){void 0===s&&(s="&");var c=e.replace($,""),l=a&&i?i+" "+a+" { "+c+" }":c;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(i||!a?"":a,l)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),b.hash=u.length?u.reduce((function(e,t){return t.name||A(15),V(e,t.name)}),5381).toString():"",b}var Y=i.createContext(),X=Y.Consumer,Q=i.createContext(),Z=(Q.Consumer,new U),J=K();function ee(){return a.useContext(Y)||Z}function te(){return a.useContext(Q)||J}function ne(e){var t=a.useState(e.stylisPlugins),n=t[0],r=t[1],o=ee(),c=a.useMemo((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=a.useMemo((function(){return K({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return a.useEffect((function(){s(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.createElement(Y.Provider,{value:c},i.createElement(Q.Provider,{value:l},e.children))}var re=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=J);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return A(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=J),this.name+e.hash},e}(),oe=/([A-Z])/,ae=new RegExp(oe,"g"),ie=/^ms-/,se=function(e){return"-"+e.toLowerCase()};function ce(e){return oe.test(e)?e.replace(ae,se).replace(ie,"-ms-"):e}var le=function(e){return null==e||!1===e||""===e};function ue(e,t,n,r){if(Array.isArray(e)){for(var o,a=[],i=0,s=e.length;i1?t-1:0),r=1;r1?t-1:0),r=1;r25?39:97))};function ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=be(t%52)+n;return(be(t%52)+n).replace(me,"$1-$2")}function ye(e){for(var t=0;t>>0);if(!t.hasNameForId(r,i)){var s=n(a,"."+i,void 0,r);t.insertRules(r,i,s)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,l=V(this.baseHash,n.hash),u="",d=0;d>>0);if(!t.hasNameForId(r,g)){var m=n(u,"."+g,void 0,r);t.insertRules(r,g,m)}o.push(g)}}return o.join(" ")},e}(),Oe=(new Set,function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme}),xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function Ae(e){return e.replace(xe,"-").replace(Ee,"")}function ke(e){return"string"==typeof e&&!0}var Se=function(e){return ve(W(e)>>>0)},Le=i.createContext(),je=Le.Consumer,Ce={};function Te(e,t,n){var r=y(e),o=!ke(e),s=t.displayName,c=void 0===s?function(e){return ke(e)?"styled."+e:"Styled("+v(e)+")"}(e):s,l=t.componentId,p=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ae(e);Ce[n]=(Ce[n]||0)+1;var r=n+"-"+Se("5.2.0"+n+Ce[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,h=t.attrs,w=void 0===h?g:h,_=t.displayName&&t.componentId?Ae(t.displayName)+"-"+t.componentId:t.componentId||p,O=r&&e.attrs?Array.prototype.concat(e.attrs,w).filter(Boolean):w,x=t.shouldForwardProp;r&&e.shouldForwardProp&&(x=x?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var E,A=new _e(n,_,r?e.componentStyle:void 0),k=function(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,l=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=m);var r=f({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,a,i=e;for(t in b(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],a=i[t],n&&a?n+" "+a:n||a):i[t]})),[r,o]}(Oe(t,a.useContext(Le),i)||m,t,r),h=p[0],g=p[1],v=function(e,t,n,r){var o=ee(),a=te();return e.isStatic&&!t?e.generateAndInjectStyles(m,o,a):e.generateAndInjectStyles(n,o,a)}(o,r.length>0,h),y=n,w=g.$as||t.$as||g.as||t.as||d,_=ke(w),O=g!==t?f({},t,{},g):t,x=c||_&&u,E={};for(var A in O)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?E.as=O[A]:x&&!x(A,u)||(E[A]=O[A]));return t.style&&g.style!==t.style&&(E.style=f({},t.style,{},g.style)),E.className=Array.prototype.concat(s,l,v!==l?v:null,t.className,g.className).filter(Boolean).join(" "),E.ref=y,a.createElement(w,E)}(E,e,t)};return k.displayName=c,(E=i.forwardRef(k)).attrs=O,E.componentStyle=A,E.displayName=c,E.shouldForwardProp=x,E.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,E.styledComponentId=_,E.target=r?e.target:e,E.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["componentId"]),a=r&&r+"-"+(ke(e)?e:Ae(v(e)));return Te(e,f({},o,{attrs:O,componentId:a}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ge({},e.defaultProps,t):t}}),E.toString=function(){return"."+E.styledComponentId},o&&d(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var Pe=function(e){return function e(t,n,r){if(void 0===r&&(r=m),!o.isValidElementType(n))return A(1,String(n));var a=function(){return t(n,r,de.apply(void 0,arguments))};return a.withConfig=function(o){return e(t,n,f({},r,{},o))},a.attrs=function(o){return e(t,n,f({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},a}(Te,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Pe[e]=Pe(e)}));var Me=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ye(e),U.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ue(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&U.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),Ne=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=E();return""},this.getStyleTags=function(){return e.sealed?A(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return A(2);var n=((t={})[w]="",t["data-styled-version"]="5.2.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=E();return r&&(n.nonce=r),[i.createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new U({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?A(2):i.createElement(ne,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return A(3)},e}(),Re={StyleSheet:U,masterSheet:Z};t.ServerStyleSheet=Ne,t.StyleSheetConsumer=X,t.StyleSheetContext=Y,t.StyleSheetManager=ne,t.ThemeConsumer=je,t.ThemeContext=Le,t.ThemeProvider=function(e){var t=a.useContext(Le),n=a.useMemo((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?A(8):t?f({},t,{},e):e:A(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.createElement(Le.Provider,{value:n},e.children):null},t.__PRIVATE__=Re,t.createGlobalStyle=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r{r+="color"===t?u(r)?e[t]:Object(c.a)(e[t]):`${u(r)?t:Object(c.a)(t)}${Object(c.a)(e[t].toString())}`}),r}const f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=["theme"],h=["theme"];function g(e){return 0===Object.keys(e).length}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const b=Object(i.a)();var v=n(277);n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return w}));const y=e=>m(e)&&"classes"!==e,w=m,_=function(e={}){const{defaultTheme:t=b,rootShouldForwardProp:n=m,slotShouldForwardProp:i=m}=e;return(e,c={})=>{const{name:l,slot:u,skipVariantsResolver:b,skipSx:v,overridesResolver:y}=c,w=Object(o.a)(c,f),_=void 0!==b?b:u&&"Root"!==u||!1,O=v||!1;let x=m;"Root"===u?x=n:u&&(x=i);const E=Object(a.a)(e,Object(r.a)({shouldForwardProp:x,label:void 0},w)),A=(e,...n)=>{const a=n?n.map(e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:a}=n,i=Object(o.a)(n,p);return e(Object(r.a)({theme:g(a)?t:a},i))}:e):[];let i=e;l&&y&&a.push(e=>{const n=g(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(r){const t={};return Object.entries(r).forEach(([n,r])=>{t[n]="function"==typeof r?r(e):r}),y(e,t)}return null}),l&&!_&&a.push(e=>{const n=g(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,a;const{ownerState:i={}}=e,s=[],c=null==n?void 0:null==(o=n.components)?void 0:null==(a=o[r])?void 0:a.variants;return c&&c.forEach(n=>{let r=!0;Object.keys(n.props).forEach(t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)}),r&&s.push(t[d(n.props)])}),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(e=>{const t=d(e.props);r[t]=e.style}),r})(l,n),n,l)}),O||a.push(e=>{const n=g(e.theme)?t:e.theme;return Object(s.a)(Object(r.a)({},e,{theme:n}))});const c=a.length-n.length;if(Array.isArray(e)&&c>0){const t=new Array(c).fill("");i=[...e,...t],i.raw=[...e.raw,...t]}else"function"==typeof e&&(i=n=>{let{theme:a}=n,i=Object(o.a)(n,h);return e(Object(r.a)({theme:g(a)?t:a},i))});return E(i,...a)};return E.withConfig&&(A.withConfig=E.withConfig),A}}({defaultTheme:v.a,rootShouldForwardProp:y});t.a=_},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return l})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return i})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return O})),n.d(t,"__importStar",(function(){return x})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return A})),n.d(t,"__classPrivateFieldSet",(function(){return k})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,l):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var r=n(1278);t.a=r.a},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&o<1?(s=a,c=i):o>=1&&o<2?(s=i,c=a):o>=2&&o<3?(c=a,l=i):o>=3&&o<4?(c=i,l=a):o>=4&&o<5?(s=i,l=a):o>=5&&o<6&&(s=a,l=i);var u=n-a/2;return r(s+u,c+u,l+u)}var p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var h=/^#[a-fA-F0-9]{6}$/,g=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,v=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,y=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,w=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function O(e){if("string"!=typeof e)throw new l(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return p[t]?"#"+p[t]:e}(e);if(t.match(h))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(g)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(m))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=v.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=y.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=w.exec(t);if(i){var s="rgb("+f(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=v.exec(s);if(!c)throw new l(4,t,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=_.exec(t.substring(0,50));if(u){var d="rgb("+f(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",O=v.exec(d);if(!O)throw new l(4,t,d);return{red:parseInt(""+O[1],10),green:parseInt(""+O[2],10),blue:parseInt(""+O[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new l(5)}function x(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=a-i,l=s>.5?c/(2-a-i):c/(a+i);switch(a){case n:t=(r-o)/c+(r=1?L(e,t,n):"rgba("+f(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?L(e.hue,e.saturation,e.lightness):"rgba("+f(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new l(2)}function T(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return E("#"+A(e)+A(t)+A(n));if("object"==typeof e&&void 0===t&&void 0===n)return E("#"+A(e.red)+A(e.green)+A(e.blue));throw new l(6)}function P(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=O(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?T(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?T(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new l(7)}function M(e){if("object"!=typeof e)throw new l(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return P(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return T(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return C(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return j(e);throw new l(8)}function N(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function R(e,t,n){return Math.max(e,Math.min(t,n))}function I(e,t){if("transparent"===t)return t;var n=x(t);return M(r({},n,{lightness:R(0,1,n.lightness-parseFloat(e))}))}var D=N(I);function H(e,t){if("transparent"===t)return t;var n=x(t);return M(r({},n,{lightness:R(0,1,n.lightness+parseFloat(e))}))}var G=N(H);function F(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var o=O(t),a=r({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=O(n),s=r({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),c=a.alpha-s.alpha,l=2*parseFloat(e)-1,u=((l*c==-1?l:l+c)/(1+l*c)+1)/2,d=1-u;return P({red:Math.floor(a.red*u+s.red*d),green:Math.floor(a.green*u+s.green*d),blue:Math.floor(a.blue*u+s.blue*d),alpha:a.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))})}var z=N(F);function B(e,t){return"transparent"===t?t:z(parseFloat(e),"rgb(0, 0, 0)",t)}var U=N(B);function V(e,t){return"transparent"===t?t:z(parseFloat(e),"rgb(255, 255, 255)",t)}var W=N(V);function $(e,t){if("transparent"===t)return t;var n=O(t);return P(r({},n,{alpha:R(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}var q=N($)},function(e,t,n){"use strict";var r=n(231),o=n(414),a=n(212),i="__",s=[i,i].join("DEV");var c=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(o.a,s,{value:"production"!==Object(a.a)((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),o.a[s]}}(),l=n(360),u=n(682);n.d(t,"c",(function(){return a.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a})),u.a,Object(l.a)(),__DEV__?Object(r.b)("boolean"==typeof c,c):Object(r.b)("boolean"==typeof c,36)},function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(495),o=n(983),a=n(984),i=n(230);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;n.d(t,"b",(function(){return r.a})),n.d(t,"a",(function(){return o.a})),n.d(t,"d",(function(){return a.a})),n.d(t,"c",(function(){return i.IconList}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Trans",{enumerable:!0,get:function(){return r.Trans}}),Object.defineProperty(t,"useTranslation",{enumerable:!0,get:function(){return o.useTranslation}}),Object.defineProperty(t,"withTranslation",{enumerable:!0,get:function(){return a.withTranslation}}),Object.defineProperty(t,"Translation",{enumerable:!0,get:function(){return i.Translation}}),Object.defineProperty(t,"I18nextProvider",{enumerable:!0,get:function(){return s.I18nextProvider}}),Object.defineProperty(t,"withSSR",{enumerable:!0,get:function(){return c.withSSR}}),Object.defineProperty(t,"useSSR",{enumerable:!0,get:function(){return l.useSSR}}),Object.defineProperty(t,"I18nContext",{enumerable:!0,get:function(){return u.I18nContext}}),Object.defineProperty(t,"initReactI18next",{enumerable:!0,get:function(){return u.initReactI18next}}),Object.defineProperty(t,"setDefaults",{enumerable:!0,get:function(){return u.setDefaults}}),Object.defineProperty(t,"getDefaults",{enumerable:!0,get:function(){return u.getDefaults}}),Object.defineProperty(t,"setI18n",{enumerable:!0,get:function(){return u.setI18n}}),Object.defineProperty(t,"getI18n",{enumerable:!0,get:function(){return u.getI18n}}),Object.defineProperty(t,"composeInitialProps",{enumerable:!0,get:function(){return u.composeInitialProps}}),Object.defineProperty(t,"getInitialProps",{enumerable:!0,get:function(){return u.getInitialProps}});var r=n(1784),o=n(626),a=n(1796),i=n(1797),s=n(1798),c=n(1799),l=n(1018),u=n(334)},function(e,t,n){"use strict";var r=n(1056),o=n(1057),a=(n(1059),n(1060)),i=n(1061),s=n(1062),c=n(1063),l=n(510),u=n(1064),d=(n(513),n(1066)),f=n(1067),p=(n(308),n(1068),n(1069)),h=n(1070),g=n(1071),m=n(1072),b=(n(1073),n(1074)),v=n(1075),y=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1076),n(129)),w=n(1114),_=n(1115),O=(n(1116),n(1117)),x=n(1118),E=n(1119),A=n(1120),k=n(1121),S=n(1122),L=n(1123),j=n(1124),C=n(1125),T=n(1126),P=n(1127),M=n(1128),N=n(1129),R=n(1130),I=n(1131),D=n(1132),H=n(1133),G=(n(1134),n(1135),n(1136)),F=(n(1137),n(1138),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(343),n(1139),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(515),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1140),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1141),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1143),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1144),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1145),n(1146),n(1147),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1148),n(417),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1150));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1151),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1152),n(1153),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1154),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1155),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1156),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(490),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(344),n(1157),n(1158),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1159),n(345),n(1160),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(418),n(1161),n(1162),n(217),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(191),n(517),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;n.d(t,"F",(function(){return r.c})),n.d(t,"H",(function(){return r.e})),n.d(t,"b",(function(){return r.a})),n.d(t,"E",(function(){return r.b})),n.d(t,"G",(function(){return r.d})),n.d(t,"I",(function(){return r.f})),n.d(t,"g",(function(){return o.a})),n.d(t,"P",(function(){return a.b})),n.d(t,"J",(function(){return a.a})),n.d(t,"L",(function(){return i.b})),n.d(t,"N",(function(){return i.c})),n.d(t,"O",(function(){return i.d})),n.d(t,"K",(function(){return i.a})),n.d(t,"f",(function(){return s.a})),n.d(t,"j",(function(){return c.b})),n.d(t,"R",(function(){return c.d})),n.d(t,"Q",(function(){return c.c})),n.d(t,"c",(function(){return c.a})),n.d(t,"C",(function(){return l.b})),n.d(t,"U",(function(){return u.a})),n.d(t,"h",(function(){return d.a})),n.d(t,"i",(function(){return f.a})),n.d(t,"M",(function(){return p.a})),n.d(t,"a",(function(){return h.a})),n.d(t,"d",(function(){return g.a})),n.d(t,"D",(function(){return m.a})),n.d(t,"T",(function(){return b.a})),n.d(t,"hb",(function(){return v.b})),n.d(t,"S",(function(){return v.a})),n.d(t,"eb",(function(){return y.k})),n.d(t,"db",(function(){return y.i})),n.d(t,"Z",(function(){return y.e})),n.d(t,"V",(function(){return y.a})),n.d(t,"X",(function(){return y.c})),n.d(t,"fb",(function(){return y.l})),n.d(t,"ab",(function(){return y.f})),n.d(t,"bb",(function(){return y.g})),n.d(t,"cb",(function(){return y.h})),n.d(t,"W",(function(){return y.b})),n.d(t,"Y",(function(){return y.d})),n.d(t,"jb",(function(){return w.b})),n.d(t,"ib",(function(){return w.a})),n.d(t,"gb",(function(){return _.a})),n.d(t,"l",(function(){return O.a})),n.d(t,"m",(function(){return x.a})),n.d(t,"n",(function(){return E.a})),n.d(t,"o",(function(){return A.a})),n.d(t,"p",(function(){return k.a})),n.d(t,"q",(function(){return S.a})),n.d(t,"r",(function(){return L.a})),n.d(t,"s",(function(){return j.a})),n.d(t,"t",(function(){return C.a})),n.d(t,"u",(function(){return T.a})),n.d(t,"v",(function(){return P.a})),n.d(t,"w",(function(){return M.a})),n.d(t,"x",(function(){return N.a})),n.d(t,"y",(function(){return R.a})),n.d(t,"z",(function(){return I.a})),n.d(t,"A",(function(){return D.a})),n.d(t,"B",(function(){return H.a})),n.d(t,"k",(function(){return G.a})),n.d(t,"e",(function(){return F.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ls})),n.d(t,"b",(function(){return us})),n.d(t,"c",(function(){return fs})),n.d(t,"d",(function(){return ds})),n.d(t,"e",(function(){return ps}));var r=n(0),o=n.n(r),a=n(50),i=n.n(a);var s=function(e){const t=new Error(e);if(void 0===t.stack)try{throw t}catch(e){}return t};var c=function(e){return!!e&&"function"==typeof e.then};var l=function(e,t){if(null!=e)return e;throw s(null!=t?t:"Got unexpected null or undefined")};function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d{getValue(){throw s("BaseLoadable")}toPromise(){throw s("BaseLoadable")}valueMaybe(){throw s("BaseLoadable")}valueOrThrow(){throw s(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw s("BaseLoadable")}promiseOrThrow(){throw s(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw s("BaseLoadable")}errorOrThrow(){throw s(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw s("BaseLoadable")}}class f extends d{constructor(e){super(),u(this,"state","hasValue"),u(this,"contents",void 0),this.contents=e}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(e){try{const t=e(this.contents);return c(t)?b(t):w(t)?t:g(t)}catch(t){return c(t)?b(t.next(()=>this.map(e))):m(t)}}}class p extends d{constructor(e){super(),u(this,"state","hasError"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class h extends d{constructor(e){super(),u(this,"state","loading"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return b(this.contents.then(t=>{const n=e(t);if(w(n)){const e=n;switch(e.state){case"hasValue":return e.contents;case"hasError":throw e.contents;case"loading":return e.contents}}return n}).catch(t=>{if(c(t))return t.then(()=>this.map(e).contents);throw t}))}}function g(e){return Object.freeze(new f(e))}function m(e){return Object.freeze(new p(e))}function b(e){return Object.freeze(new h(e))}function v(){return Object.freeze(new h(new Promise(()=>{})))}function y(e){const t=function(e){return e.every(e=>"hasValue"===e.state)?g(e.map(e=>e.contents)):e.some(e=>"hasError"===e.state)?m(l(e.find(e=>"hasError"===e.state),"Invalid loadable passed to loadableAll").contents):b(Promise.all(e.map(e=>e.contents)))}((Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])).map(e=>w(e)?e:c(e)?b(e):g(e)));return Array.isArray(e)?t:t.map(t=>Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{}))}function w(e){return e instanceof d}const _={of:e=>c(e)?b(e):w(e)?e:g(e),error:e=>m(e),loading:()=>v(),all:y,isLoadable:w};var O={loadableWithValue:g,loadableWithError:m,loadableWithPromise:b,loadableLoading:v,loadableAll:y,isLoadable:w,RecoilLoadable:_},x=O.loadableWithValue,E=O.loadableWithError,A=O.loadableWithPromise,k=O.loadableLoading,S=O.loadableAll,L=O.isLoadable,j=O.RecoilLoadable,C=Object.freeze({__proto__:null,loadableWithValue:x,loadableWithError:E,loadableWithPromise:A,loadableLoading:k,loadableAll:S,isLoadable:L,RecoilLoadable:j});const T={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};var P;void 0!==e&&null!=(null===(P=e)||void 0===P?void 0:P.env)&&(function(t,n){var r,o;const a=null===(r=e.env[t])||void 0===r?void 0:null===(o=r.toLowerCase())||void 0===o?void 0:o.trim();if(null!=a&&""!==a){if(!["true","false"].includes(a))throw s(`process.env.${t} value must be 'true', 'false', or empty: ${a}`);n("true"===a)}}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",e=>{T.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e}),function(t,n){var r;const o=null===(r=e.env[t])||void 0===r?void 0:r.trim();null!=o&&""!==o&&n(o.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",e=>{e.forEach(e=>{T.RECOIL_GKS_ENABLED.add(e)})}));var M=T;function N(e){return M.RECOIL_GKS_ENABLED.has(e)}N.setPass=e=>{M.RECOIL_GKS_ENABLED.add(e)},N.setFail=e=>{M.RECOIL_GKS_ENABLED.delete(e)},N.clear=()=>{M.RECOIL_GKS_ENABLED.clear()};var R=N;var I,D,H,G=function(e,t,{error:n}={}){return null};const F=null!==(I=o.a.createMutableSource)&&void 0!==I?I:o.a.unstable_createMutableSource,z=null!==(D=o.a.useMutableSource)&&void 0!==D?D:o.a.unstable_useMutableSource,B=null!==(H=o.a.useSyncExternalStore)&&void 0!==H?H:o.a.unstable_useSyncExternalStore;let U=!1;var V={createMutableSource:F,useMutableSource:z,useSyncExternalStore:B,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=o.a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=null!=(null!==(e=null==t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!B||r||U||(U=!0,G("A React renderer without React 18+ API support is being used with React 18+.")),r},reactMode:function(){return R("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:R("recoil_sync_external_store")&&null!=B?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:R("recoil_mutable_source")&&null!=z&&"undefined"!=typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?R("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:R("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class W{constructor(e){u(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class $ extends W{}class q extends W{}var K={AbstractRecoilValue:W,RecoilState:$,RecoilValueReadOnly:q,isRecoilValue:function(e){return e instanceof $||e instanceof q}},Y=K.AbstractRecoilValue,X=K.RecoilState,Q=K.RecoilValueReadOnly,Z=K.isRecoilValue,J=Object.freeze({__proto__:null,AbstractRecoilValue:Y,RecoilState:X,RecoilValueReadOnly:Q,isRecoilValue:Z});var ee=function(e,...t){0};var te=function(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()};const{isFastRefreshEnabled:ne}=V;class re{}const oe=new re,ae=new Map,ie=new Map;class se extends Error{}const ce=new Map;function le(e){return ce.get(e)}var ue={nodes:ae,recoilValues:ie,registerNode:function(e){M.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(ae.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;console.warn(t)}}(e.key),ae.set(e.key,e);const t=null==e.set?new J.RecoilValueReadOnly(e.key):new J.RecoilState(e.key);return ie.set(e.key,t),t},getNode:function(e){const t=ae.get(e);if(null==t)throw new se(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return ae.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!R("recoil_memory_managament_2020"))return;const n=ae.get(e);var r;null!=n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(ae.delete(e),null===(r=le(e))||void 0===r||r(),ce.delete(e))},setConfigDeletionHandler:function(e,t){R("recoil_memory_managament_2020")&&(void 0===t?ce.delete(e):ce.set(e,t))},getConfigDeletionHandler:le,recoilValuesForKeys:function(e){return te(e,e=>l(ie.get(e)))},NodeMissingError:se,DefaultValue:re,DEFAULT_VALUE:oe};var de={enqueueExecution:function(e,t){t()}};var fe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={},r=Math.pow(2,5),o=r-1,a=r/2,i=r/4,s={},c=function(e){return function(){return e}},l=n.hash=function(e){var n=void 0===e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,a=e.length;o>>e&o},d=function(e){return 1<>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,n+=n>>8,127&(n+=n>>16);var n},p=function(e,t,n,r){var o=r;if(!e){var a=r.length;o=new Array(a);for(var i=0;i1?v(e,this.hash,c):c[0]}var l=r();return l===s?this:(++i.value,_(e,n,this.hash,this,o,b(e,o,a,l)))},A=function(e,t,n,r,o,i,s){var c=this.mask,l=this.children,b=u(n,o),v=d(b),_=f(c,v),x=c&v,E=x?l[_]:g,A=E._modify(e,t,n+5,r,o,i,s);if(E===A)return this;var k,S=O(e,this),L=c,j=void 0;if(x&&m(A)){if(!(L&=~v))return g;if(l.length<=2&&((k=l[1^_])===g||1===k.type||2===k.type))return l[1^_];j=h(S,_,l)}else if(x||m(A))j=p(S,_,A,l);else{if(l.length>=a)return function(e,t,n,r,o){for(var a=[],i=r,s=0,c=0;i;++c)1&i&&(a[c]=o[s++]),i>>>=1;return a[t]=n,w(e,s+1,a)}(e,b,A,c,l);L|=v,j=function(e,t,n,r){var o=r.length;if(e){for(var a=o;a>=t;)r[a--]=r[a];return r[t]=n,r}for(var i=0,s=0,c=new Array(o+1);i{n.set(r,t(e,r))}),n};function we(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:a}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const s=null==i?t:ve(t,i);for(const t of s){a.has(t)||a.set(t,new Set),l(a.get(t)).add(e)}if(i){const n=ve(i,t);for(const t of n){if(!a.has(t))return;const n=l(a.get(t));n.delete(e),0===n.size&&a.delete(t)}}}var _e={cloneGraph:function(e){return{nodeDeps:ye(e.nodeDeps,e=>new Set(e)),nodeToNodeSubscriptions:ye(e.nodeToNodeSubscriptions,e=>new Set(e))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,r){var o,a,i,s;const c=n.getState();r!==c.currentTree.version&&r!==(null===(o=c.nextTree)||void 0===o?void 0:o.version)&&r!==(null===(a=c.previousTree)||void 0===a?void 0:a.version)&&G("Tried to save dependencies to a discarded tree");const l=n.getGraph(r);if(we(e,t,l),r===(null===(i=c.previousTree)||void 0===i?void 0:i.version)){we(e,t,n.getGraph(c.currentTree.version),l)}if(r===(null===(s=c.previousTree)||void 0===s?void 0:s.version)||r===c.currentTree.version){var u;const r=null===(u=c.nextTree)||void 0===u?void 0:u.version;if(void 0!==r){we(e,t,n.getGraph(r),l)}}}};let Oe=0;let xe=0;let Ee=0;var Ae={getNextTreeStateVersion:()=>Oe++,getNextStoreID:()=>xe++,getNextComponentID:()=>Ee++};const{persistentMap:ke}=be,{graph:Se}=_e,{getNextTreeStateVersion:Le}=Ae;function je(){const e=Le();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ke(),nonvalidatedAtoms:ke()}}var Ce={makeEmptyTreeState:je,makeEmptyStoreState:function(){const e=je();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(e.version,Se()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:Le};class Te{}var Pe={RetentionZone:Te,retentionZone:function(){return new Te}};var Me={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach(e=>n.delete(e)),n}};var Ne=function*(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)};var Re=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};const{getNode:Ie,getNodeMaybe:De,recoilValuesForKeys:He}=ue,{RetentionZone:Ge}=Pe,{setByAddingToSet:Fe}=Me,ze=Object.freeze(new Set);class Be extends Error{}function Ue(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const a=Ie(n),i=function(e,t,n){if(!R("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof Ge)o(n);else if(Array.isArray(n))for(const e of n)o(e);return()=>{if(!R("recoil_memory_managament_2020"))return;const{retention:r}=e.getState();function o(e){const n=r.nodesRetainedByZone.get(e);null==n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}if(n instanceof Ge)o(n);else if(Array.isArray(n))for(const e of n)o(e)}}(e,n,a.retainedBy),s=a.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{s(),i()})}function Ve(e,t,n){return Ie(n).peek(e,t)}function We(e,t,n){const r=new Set,o=Array.from(n),a=e.getGraph(t.version);for(let e=o.pop();e;e=o.pop()){var i;r.add(e);const t=null!==(i=a.nodeToNodeSubscriptions.get(e))&&void 0!==i?i:ze;for(const e of t)r.has(e)||o.push(e)}return r}var $e={getNodeLoadable:function(e,t,n){return Ue(e,t,n,"get"),Ie(n).get(e,t)},peekNodeLoadable:Ve,setNodeValue:function(e,t,n,r){const o=Ie(n);if(null==o.set)throw new Be(`Attempt to set read-only RecoilValue: ${n}`);const a=o.set;return Ue(e,t,n,"set"),a(e,t,r)},initializeNode:function(e,t,n){Ue(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;const o=De(t);return null==o||null===(r=o.invalidate)||void 0===r||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Fe(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const r=e.getState(),o=e.getGraph(t.version),a=Ie(n).nodeType;return Re({type:a},{loadable:()=>Ve(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==a&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return He(null!==(e=o.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var o,a;return{nodes:He(Ne(We(e,t,new Set([n])),e=>e!==n)),components:te(null!==(o=null===(a=r.nodeToComponentSubscriptions.get(n))||void 0===a?void 0:a.values())&&void 0!==o?o:[],([e])=>({name:e}))}}})},getDownstreamNodes:We};let qe=null;var Ke={setInvalidateMemoizedSnapshot:function(e){qe=e},invalidateMemoizedSnapshot:function(){var e;null===(e=qe)||void 0===e||e()}};const{getDownstreamNodes:Ye,getNodeLoadable:Xe,setNodeValue:Qe}=$e,{getNextComponentID:Ze}=Ae,{getNode:Je,getNodeMaybe:et}=ue,{DefaultValue:tt}=ue,{reactMode:nt}=V,{AbstractRecoilValue:rt,RecoilState:ot,RecoilValueReadOnly:at,isRecoilValue:it}=J,{invalidateMemoizedSnapshot:st}=Ke;function ct(e,t,n){if("set"===n.type){const{recoilValue:r,valueOrUpdater:o}=n,a=function(e,t,{key:n},r){if("function"==typeof r){const o=Xe(e,t,n);if("loading"===o.state){const e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw G(e),s(e)}if("hasError"===o.state)throw o.contents;return r(o.contents)}return r}(e,t,r,o),i=Qe(e,t,r.key,a);for(const[e,n]of i.entries())lt(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:r}=n;lt(t,e,r)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;const{recoilValue:{key:e},unvalidatedValue:o}=n,a=et(e);null==a||null===(r=a.invalidate)||void 0===r||r.call(a,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,o),t.dirtyAtoms.add(e)}else G(`Unknown action ${n.type}`)}function lt(e,t,n){"hasValue"===n.state&&n.contents instanceof tt?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function ut(e,t){e.replaceState(n=>{const r=pt(n);for(const n of t)ct(e,r,n);return ht(e,r),st(),r})}function dt(e,t){if(ft.length){const n=ft[ft.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else ut(e,[t])}const ft=[];function pt(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function ht(e,t){const n=Ye(e,t,t.dirtyAtoms);for(const e of n){var r,o;null===(r=et(e))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,t)}}function gt(e,t,n){dt(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var mt={RecoilValueReadOnly:at,AbstractRecoilValue:rt,RecoilState:ot,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,o;const a=e.getState();n.version!==a.currentTree.version&&n.version!==(null===(r=a.nextTree)||void 0===r?void 0:r.version)&&n.version!==(null===(o=a.previousTree)||void 0===o?void 0:o.version)&&G("Tried to read from a discarded tree");const i=Xe(e,n,t);return"loading"===i.state&&i.contents.catch(()=>{}),i},setRecoilValue:gt,setRecoilValueLoadable:function(e,t,n){if(n instanceof tt)return gt(e,t,n);dt(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){dt(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){dt(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){const o=Ze(),a=e.getState();a.nodeToComponentSubscriptions.has(t)||a.nodeToComponentSubscriptions.set(t,new Map),l(a.nodeToComponentSubscriptions.get(t)).set(o,[null!=r?r:"",n]);const i=nt();if(i.early&&("LEGACY"===i.mode||"MUTABLE_SOURCE"===i.mode)){const r=e.getState().nextTree;r&&r.dirtyAtoms.has(t)&&n(r)}return{release:()=>{const n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);void 0!==r&&r.has(o)?(r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(t)):G(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`)}}},isRecoilValue:it,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach((e,t)=>{"hasValue"===e.state&&e.contents instanceof tt?n.delete(t):n.set(t,e)}),n},batchStart:function(){const e=new Map;return ft.push(e),()=>{for(const[t,n]of e)ut(t,n);ft.pop()!==e&&G("Incorrect order of batch popping")}},writeLoadableToTreeState:lt,invalidateDownstreams:ht,copyTreeState:pt,refreshRecoilValue:function(e,t){var n;const{currentTree:r}=e.getState(),o=Je(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)}};var bt=function(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const a=o.value;if(t.call(n,a[1],a[0],e))return!0;o=r.next()}return!1};const{cleanUpNode:vt}=$e,{deleteNodeConfigIfPossible:yt,getNode:wt}=ue,{RetentionZone:_t}=Pe,Ot=new Set;function xt(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return void G("releaseNodesNowOnCurrentTree should only be called at the end of a batch");const o=new Set;for(const e of t)if(e instanceof _t)for(const t of At(n,e))o.add(t);else o.add(e);const a=function(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),a=new Set,i=new Set;return s(t),a;function s(t){const c=new Set,u=function(e,t,n,r,o){const a=e.getGraph(t.version),i=[],s=new Set;for(;n.size>0;)c(l(n.values().next().value));return i;function c(e){if(r.has(e)||o.has(e))return void n.delete(e);if(s.has(e))return;const t=a.nodeToNodeSubscriptions.get(e);if(t)for(const e of t)c(e);s.add(e),n.delete(e),i.push(e)}}(e,r,t,a,i);for(const e of u){var d;if("recoilRoot"===wt(e).retainedBy){i.add(e);continue}if((null!==(d=n.retention.referenceCounts.get(e))&&void 0!==d?d:0)>0){i.add(e);continue}if(kt(e).some(e=>n.retention.referenceCounts.get(e))){i.add(e);continue}const t=o.nodeToNodeSubscriptions.get(e);t&&bt(t,e=>i.has(e))?i.add(e):(a.add(e),c.add(e))}const f=new Set;for(const e of c)for(const t of null!==(p=o.nodeDeps.get(e))&&void 0!==p?p:Ot){var p;a.has(t)||f.add(t)}f.size&&s(f)}}(e,o);for(const t of a)Et(e,r,t)}function Et(e,t,n){if(!R("recoil_memory_managament_2020"))return;vt(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=kt(n);for(const e of o){var a;null===(a=r.retention.nodesRetainedByZone.get(e))||void 0===a||a.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const e=i.nodeDeps.get(n);if(void 0!==e){i.nodeDeps.delete(n);for(const t of e){var s;null===(s=i.nodeToNodeSubscriptions.get(t))||void 0===s||s.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}yt(n)}function At(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:Ot}function kt(e){const t=wt(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof _t?[t]:t}function St(e,t){if(!R("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):xt(e,new Set([t]))}(e,t)}var Lt={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var r;if(!R("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,a=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===a?St(e,t):o.set(t,a)},updateRetainCountToZero:St,releaseScheduledRetainablesNow:function(e){if(!R("recoil_memory_managament_2020"))return;const t=e.getState();xt(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};const{unstable_batchedUpdates:jt}=i.a;var Ct={unstable_batchedUpdates:jt};const{unstable_batchedUpdates:Tt}=Ct;var Pt={unstable_batchedUpdates:Tt};const{batchStart:Mt}=mt,{unstable_batchedUpdates:Nt}=Pt;let Rt=Nt||(e=>e());var It={getBatcher:()=>Rt,setBatcher:e=>{Rt=e},batchUpdates:e=>{Rt(()=>{let t=()=>{};try{t=Mt(),e()}finally{t()}})}};var Dt=function*(e){for(const t of e)for(const e of t)yield e};const Ht="undefined"==typeof Window||"undefined"==typeof window,Gt="undefined"!=typeof navigator&&"ReactNative"===navigator.product;var Ft={isSSR:Ht,isReactNative:Gt,isWindow:e=>!Ht&&(e===window||e instanceof Window)};var zt={memoizeWithArgsHash:function(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}},memoizeOneWithArgsHash:function(e,t){let n,r;return(...o)=>{const a=t(...o);return n===a?r:(n=a,r=e(...o),r)}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,r;return[(...o)=>{const a=t(...o);return n===a?r:(n=a,r=e(...o),r)},()=>{n=null}]}};const{batchUpdates:Bt}=It,{initializeNode:Ut,peekNodeInfo:Vt}=$e,{graph:Wt}=_e,{getNextStoreID:$t}=Ae,{DEFAULT_VALUE:qt,recoilValues:Kt,recoilValuesForKeys:Yt}=ue,{AbstractRecoilValue:Xt,getRecoilValueAsLoadable:Qt,setRecoilValue:Zt,setUnvalidatedRecoilValue:Jt}=mt,{updateRetainCount:en}=Lt,{setInvalidateMemoizedSnapshot:tn}=Ke,{getNextTreeStateVersion:nn,makeEmptyStoreState:rn}=Ce,{isSSR:on}=Ft,{memoizeOneWithArgsHashAndInvalidation:an}=zt;class sn{constructor(e,t){u(this,"_store",void 0),u(this,"_refCount",1),u(this,"getLoadable",e=>(this.checkRefCount_INTERNAL(),Qt(this._store,e))),u(this,"getPromise",e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise())),u(this,"getNodes_UNSTABLE",e=>{if(this.checkRefCount_INTERNAL(),!0===(null==e?void 0:e.isModified)){if(!1===(null==e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return Yt(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null==e?void 0:e.isInitialized)?Kt.values():!0===e.isInitialized?Yt(Dt([t,n])):Ne(Kt.values(),({key:e})=>!t.has(e)&&!n.has(e))}),u(this,"getInfo_UNSTABLE",({key:e})=>(this.checkRefCount_INTERNAL(),Vt(this._store,this._store.getState().currentTree,e))),u(this,"map",e=>{this.checkRefCount_INTERNAL();const t=new dn(this,Bt);return e(t),t}),u(this,"asyncMap",async e=>{this.checkRefCount_INTERNAL();const t=new dn(this,Bt);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t}),this._store={storeID:$t(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return l(n.get(t));const r=Wt();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw s("Cannot subscribe to Snapshots")}};for(const e of this._store.getState().knownAtoms)Ut(this._store,e,"get"),en(this._store,e,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&G("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){on||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach(e=>e()),this._store.getState().nodeCleanupFunctions.clear(),!R("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){R("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function cn(e,t,n=!1){const r=e.getState(),o=n?nn():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(te(r.nodeCleanupFunctions.entries(),([e])=>[e,()=>{}]))}}const[ln,un]=an((e,t)=>{var n;const r=e.getState(),o="latest"===t?null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree:l(r.previousTree);return new sn(cn(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(r=e.getState().previousTree)||void 0===r?void 0:r.version)});tn(un);class dn extends sn{constructor(e,t){super(cn(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),u(this,"_batch",void 0),u(this,"set",(e,t)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch(()=>{en(n,e.key,1),Zt(this.getStore_INTERNAL(),e,t)})}),u(this,"reset",e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch(()=>{en(t,e.key,1),Zt(this.getStore_INTERNAL(),e,qt)})}),u(this,"setUnvalidatedAtomValues_DEPRECATED",e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();Bt(()=>{for(const[n,r]of e.entries())en(t,n,1),Jt(t,new Xt(n),r)})}),this._batch=t}}var fn={Snapshot:sn,MutableSnapshot:dn,freshSnapshot:function(e){const t=new sn(rn());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){const n=ln(e,t);return n.isRetained()?n:(un(),ln(e,t))}},pn=fn.Snapshot,hn=fn.MutableSnapshot,gn=fn.freshSnapshot,mn=fn.cloneSnapshot,bn=Object.freeze({__proto__:null,Snapshot:pn,MutableSnapshot:hn,freshSnapshot:gn,cloneSnapshot:mn});var vn=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:yn}=o.a;var wn=function(e){const t=yn(e);return t.current===e&&"function"==typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:_n,makeEmptyStoreState:On}=Ce,{cleanUpNode:xn,getDownstreamNodes:En,initializeNode:An,setNodeValue:kn,setUnvalidatedAtomValue_DEPRECATED:Sn}=$e,{graph:Ln}=_e,{cloneGraph:jn}=_e,{getNextStoreID:Cn}=Ae,{createMutableSource:Tn,reactMode:Pn}=V,{applyAtomValueWrites:Mn}=mt,{releaseScheduledRetainablesNow:Nn}=Lt,{freshSnapshot:Rn}=bn,{useCallback:In,useContext:Dn,useEffect:Hn,useMemo:Gn,useRef:Fn,useState:zn}=o.a;function Bn(){throw s("This component must be used inside a component.")}const Un=Object.freeze({storeID:Cn(),getState:Bn,replaceState:Bn,getGraph:Bn,subscribeToTransactions:Bn,addTransactionMetadata:Bn});let Vn=!1;function Wn(e){if(Vn)throw s("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(null===t.nextTree){R("recoil_memory_managament_2020")&&R("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Nn(e);const n=t.currentTree.version,r=_n();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,jn(l(t.graphsByVersion.get(n))))}}const $n=o.a.createContext({current:Un}),qn=()=>Dn($n),Kn=o.a.createContext(null);function Yn(e,t,n){const r=En(e,n,n.dirtyAtoms);for(const e of r){const r=t.nodeToComponentSubscriptions.get(e);if(r)for(const[e,[t,o]]of r)o(n)}}function Xn(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[n,o]of t.nodeTransactionSubscriptions)if(r.has(n))for(const[t,n]of o)n(e);for(const[n,r]of t.transactionSubscriptions)r(e);(!Pn().early||t.suspendedComponentResolvers.size>0)&&(Yn(e,t,n),t.suspendedComponentResolvers.forEach(e=>e()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(e=>e(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Qn({setNotifyBatcherOfChange:e}){const t=qn(),[,n]=zn([]);return e(()=>n({})),Hn(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),Hn(()=>{de.enqueueExecution("Batcher",()=>{!function(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Xn(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):G("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,R("recoil_memory_managament_2020")&&null==n&&Nn(e)}finally{t.commitDepth--}}(t.current)})}),null}let Zn=0;function Jn({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let a;const i=e=>{const t=a.current.graphsByVersion;if(t.has(e))return l(t.get(e));const n=Ln();return t.set(e,n),n},s=(e,t)=>{if(null==t){const{transactionSubscriptions:t}=p.current.getState(),n=Zn++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=p.current.getState();n.has(t)||n.set(t,new Map);const r=Zn++;return l(n.get(t)).set(r,e),{release:()=>{const e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},c=e=>{Wn(p.current);for(const t of Object.keys(e))l(p.current.getState().nextTree).transactionMetadata[t]=e[t]},u=e=>{Wn(p.current);const t=l(a.current.nextTree);let n;try{Vn=!0,n=e(t)}finally{Vn=!1}n!==t&&(a.current.nextTree=n,Pn().early&&Yn(p.current,a.current,n),l(d.current)())},d=Fn(null),f=In(e=>{d.current=e},[d]),p=wn(()=>null!=n?n:{storeID:Cn(),getState:()=>a.current,replaceState:u,getGraph:i,subscribeToTransactions:s,addTransactionMetadata:c});null!=n&&(p.current=n),a=wn(()=>null!=e?function(e,t){const n=On();return t({set:(t,r)=>{const o=n.currentTree,a=kn(e,o,t.key,r),i=new Set(a.keys()),s=o.nonvalidatedAtoms.clone();for(const e of i)s.delete(e);n.currentTree={...o,dirtyAtoms:vn(o.dirtyAtoms,i),atomValues:Mn(o.atomValues,a),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:e=>{e.forEach((e,t)=>{n.currentTree=Sn(n.currentTree,t,e)})}}),n}(p.current,e):null!=t?function(e){const t=Rn(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(e=>e()),n.nodeCleanupFunctions.clear(),n}(t):On());const h=Gn(()=>null==Tn?void 0:Tn(a,()=>a.current.currentTree.version),[a]);return Hn(()=>{const e=p.current;for(const t of new Set(e.getState().knownAtoms))An(e,t,"get");return()=>{for(const t of e.getState().knownAtoms)xn(e,t)}},[p]),o.a.createElement($n.Provider,{value:p},o.a.createElement(Kn.Provider,{value:h},o.a.createElement(Qn,{setNotifyBatcherOfChange:f}),r))}var er={RecoilRoot:function(e){const{override:t,...n}=e,r=qn();return!1===t&&r.current!==Un?e.children:o.a.createElement(Jn,n)},useStoreRef:qn,useRecoilMutableSource:function(){const e=Dn(Kn);return null==e&&ee("Attempted to use a Recoil hook outside of a . must be an ancestor of any component that uses Recoil hooks."),e},useRecoilStoreID:function(){return qn().current.storeID},notifyComponents_FOR_TESTING:Yn,sendEndOfBatchNotifications_FOR_TESTING:Xn};var tr=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current};const{useStoreRef:ar}=er,{SUSPENSE_TIMEOUT_MS:ir}=Lt,{updateRetainCount:sr}=Lt,{RetentionZone:cr}=Pe,{useEffect:lr,useRef:ur}=o.a,{isSSR:dr}=Ft;var fr=function(e){if(R("recoil_memory_managament_2020"))return function(e){const t=(Array.isArray(e)?e:[e]).map(e=>e instanceof cr?e:e.key),n=ar();lr(()=>{if(!R("recoil_memory_managament_2020"))return;const e=n.current;if(r.current&&!dr)window.clearTimeout(r.current),r.current=null;else for(const n of t)sr(e,n,1);return()=>{for(const n of t)sr(e,n,-1)}},[n,...t]);const r=ur(),o=or(t);if(!(dr||void 0!==o&&tr(o,t))){const e=n.current;for(const n of t)sr(e,n,1);if(o)for(const t of o)sr(e,t,-1);r.current&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>{r.current=null;for(const n of t)sr(e,n,-1)},ir)}}(e)};var pr=function(){return""};const{batchUpdates:hr}=It,{DEFAULT_VALUE:gr}=ue,{currentRendererSupportsUseSyncExternalStore:mr,reactMode:br,useMutableSource:vr,useSyncExternalStore:yr}=V,{useRecoilMutableSource:wr,useStoreRef:_r}=er,{isRecoilValue:Or}=J,{AbstractRecoilValue:xr,getRecoilValueAsLoadable:Er,setRecoilValue:Ar,setUnvalidatedRecoilValue:kr,subscribeToRecoilValue:Sr}=mt,{useCallback:Lr,useEffect:jr,useMemo:Cr,useRef:Tr,useState:Pr}=o.a,{setByAddingToSet:Mr}=Me,{isSSR:Nr}=Ft;function Rr(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){throw new Promise(t=>{const r=n.current.getState().suspendedComponentResolvers;r.add(t),Nr&&c(e.contents)&&e.contents.finally(()=>{r.delete(t)})})}throw"hasError"===e.state?e.contents:s(`Invalid value of loadable atom "${t.key}"`)}function Ir(e){const t=_r(),n=pr(),r=Lr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:Er(r,e,a),key:e.key}},[t,e]),o=Lr(e=>{let t;return()=>{var n,r;const o=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===o.key?t:(t=o,o)}},[]),a=Cr(()=>o(r),[r,o]),i=Lr(r=>{const o=t.current;return Sr(o,e,r,n).release},[t,e,n]);return yr(i,a,a).loadable}function Dr(e){const t=_r(),n=Lr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return Er(r,e,a)},[t,e]),r=Lr(()=>n(),[n]),o=pr(),a=Lr((r,a)=>{const i=t.current;return Sr(i,e,()=>{if(!R("recoil_suppress_rerender_in_callback"))return a();const e=n();l.current.is(e)||a(),l.current=e},o).release},[t,e,o,n]),i=wr();if(null==i)throw s("Recoil hooks must be used in components contained within a component.");const c=vr(i,r,a),l=Tr(c);return jr(()=>{l.current=c}),c}function Hr(e){const t=_r(),n=pr(),r=Lr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return Er(r,e,a)},[t,e]),o=Lr(()=>({loadable:r(),key:e.key}),[r,e.key]),a=Lr(e=>{const t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t},[o]);jr(()=>{const r=Sr(t.current,e,e=>{s(a)},n);return s(a),r.release},[n,e,t,a]);const[i,s]=Pr(o);return i.key!==e.key?o().loadable:i.loadable}function Gr(e){const t=_r(),[,n]=Pr([]),r=pr(),o=Lr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return Er(r,e,a)},[t,e]),a=o(),i=Tr(a);return jr(()=>{i.current=a}),jr(()=>{const a=t.current,s=a.getState(),c=Sr(a,e,e=>{var t;if(!R("recoil_suppress_rerender_in_callback"))return n([]);const r=o();null!==(t=i.current)&&void 0!==t&&t.is(r)||n(r),i.current=r},r);if(s.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var l;if(!R("recoil_suppress_rerender_in_callback"))return n([]);const e=o();null!==(l=i.current)&&void 0!==l&&l.is(e)||n(e),i.current=e}return c.release},[r,o,e,t]),a}function Fr(e){return R("recoil_memory_managament_2020")&&fr(e),{TRANSITION_SUPPORT:Hr,SYNC_EXTERNAL_STORE:mr()?Ir:Hr,MUTABLE_SOURCE:Dr,LEGACY:Gr}[br().mode](e)}function zr(e){const t=_r();return Rr(Fr(e),e,t)}function Br(e){const t=_r();return Lr(n=>{Ar(t.current,e,n)},[t,e])}function Ur(e){return R("recoil_memory_managament_2020")&&fr(e),Hr(e)}function Vr(e){const t=_r();return Rr(Ur(e),e,t)}var Wr={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e=pr(),t=_r(),[,n]=Pr([]),r=Tr(new Set);r.current=new Set;const o=Tr(new Set),a=Tr(new Map),i=Lr(e=>{const t=a.current.get(e);t&&(t.release(),a.current.delete(e))},[a]),s=Lr((e,t)=>{a.current.has(t)&&n([])},[]);return jr(()=>{const n=t.current;ve(r.current,o.current).forEach(t=>{if(a.current.has(t))return void ee(`Double subscription to RecoilValue "${t}"`);const r=Sr(n,new xr(t),e=>s(e,t),e);a.current.set(t,r),n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(n.getState(),t)}):s(n.getState(),t)}),ve(o.current,r.current).forEach(e=>{i(e)}),o.current=r.current}),jr(()=>{const n=a.current;return ve(r.current,new Set(n.keys())).forEach(r=>{const o=Sr(t.current,new xr(r),e=>s(e,r),e);n.set(r,o)}),()=>n.forEach((e,t)=>i(t))},[e,t,i,s]),Cr(()=>{function e(e){return n=>{Ar(t.current,e,n)}}function n(e){var n;r.current.has(e.key)||(r.current=Mr(r.current,e.key));const o=t.current.getState();return Er(t.current,e,br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree)}function o(e){return Rr(n(e),e,t)}return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(t){return[o(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>Ar(t.current,e,gr)}}},[r,t])},useRecoilState:function(e){return[zr(e),Br(e)]},useRecoilStateLoadable:function(e){return[Fr(e),Br(e)]},useRecoilValue:zr,useRecoilValueLoadable:Fr,useResetRecoilState:function(e){const t=_r();return Lr(()=>{Ar(t.current,e,gr)},[t,e])},useSetRecoilState:Br,useSetUnvalidatedAtomValues:function(){const e=_r();return(t,n={})=>{hr(()=>{e.current.addTransactionMetadata(n),t.forEach((t,n)=>kr(e.current,new xr(n),t))})}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ur,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Vr,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[Vr(e),Br(e)]}};var $r=function(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n};var qr=function(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n};var Kr=function(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function uo(e){const t=e.atomValues.toMap(),n=ye($r(t,(e,t)=>{const n=Qr(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state}),e=>e.contents);return Kr(e.nonvalidatedAtoms.toMap(),n)}function fo(e,t){var n;const r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;Yr(()=>{const n=new Set;for(const e of[o.atomValues.keys(),a.atomValues.keys()])for(const t of e){var r,i;(null===(r=o.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(i=a.atomValues.get(t))||void 0===i?void 0:i.contents)&&Qr(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach(t=>{to(e,new eo(t),a.atomValues.has(t)?l(a.atomValues.get(t)):Xr)}),e.replaceState(e=>({...e,stateID:t.getID()}))})}var po={useRecoilSnapshot:function(){const e=Jr(),[t,n]=so(()=>ro(e.current)),r=or(t),o=io(),a=io();if(lo(oo(e=>n(ro(e)),[])),ao(()=>{const e=t.retain();var n;o.current&&!co&&(window.clearTimeout(o.current),o.current=null,null===(n=a.current)||void 0===n||n.call(a),a.current=null);return()=>{window.setTimeout(e,10)}},[t]),r!==t&&!co){var i;if(o.current)window.clearTimeout(o.current),o.current=null,null===(i=a.current)||void 0===i||i.call(a),a.current=null;a.current=t.retain(),o.current=window.setTimeout(()=>{var e;o.current=null,null===(e=a.current)||void 0===e||e.call(a),a.current=null},no)}return t},gotoSnapshot:fo,useGotoRecoilSnapshot:function(){const e=Jr();return oo(t=>fo(e.current,t),[e])},useRecoilTransactionObserver:function(e){lo(oo(t=>{const n=ro(t,"latest"),r=ro(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))},useTransactionObservation_DEPRECATED:function(e){lo(oo(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(G("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);const o=uo(r),a=uo(n),i=ye(Zr,e=>{var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}}),s=qr(r.dirtyAtoms,e=>o.has(e)||a.has(e));e({atomValues:o,previousAtomValues:a,atomInfo:i,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))},useTransactionSubscription_DEPRECATED:lo};const{peekNodeInfo:ho}=$e,{useStoreRef:go}=er;var mo=function(){const e=go();return({key:t})=>ho(e.current,e.current.getState().currentTree,t)};const{reactMode:bo}=V,{RecoilRoot:vo,useStoreRef:yo}=er,{useMemo:wo}=o.a;var _o=function(){"MUTABLE_SOURCE"===bo().mode&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=yo().current;return wo(()=>function({children:t}){return o.a.createElement(vo,{store_INTERNAL:e},t)},[e])};const{loadableWithValue:Oo}=C,{initializeNode:xo}=$e,{DEFAULT_VALUE:Eo,getNode:Ao}=ue,{copyTreeState:ko,getRecoilValueAsLoadable:So,invalidateDownstreams:Lo,writeLoadableToTreeState:jo}=mt;function Co(e){return"atom"===Ao(e.key).nodeType}class To{constructor(e,t){u(this,"_store",void 0),u(this,"_treeState",void 0),u(this,"_changes",void 0),u(this,"get",e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!Co(e))throw s("Reading selectors within atomicUpdate is not supported");const t=So(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:s(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)}),u(this,"set",(e,t)=>{if(!Co(e))throw s("Setting selectors within atomicUpdate is not supported");if("function"==typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else xo(this._store,e.key,"set"),this._changes.set(e.key,t)}),u(this,"reset",e=>{this.set(e,Eo)}),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=ko(this._treeState);for(const[t,n]of this._changes)jo(e,t,Oo(n));return Lo(this._store,e),e}}var Po=function(e){return t=>{e.replaceState(n=>{const r=new To(e,n);return t(r),r.newTreeState_INTERNAL()})}},Mo=Object.freeze({__proto__:null,atomicUpdater:Po});var No=function(e,t){if(!e)throw new Error(t)};const{atomicUpdater:Ro}=Mo,{batchUpdates:Io}=It,{DEFAULT_VALUE:Do}=ue,{useStoreRef:Ho}=er,{refreshRecoilValue:Go,setRecoilValue:Fo}=mt,{cloneSnapshot:zo}=bn,{gotoSnapshot:Bo}=po,{useCallback:Uo}=o.a;class Vo{}const Wo=new Vo;function $o(e,t,n,r){let o,a=Wo;var i;(Io(()=>{const i="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if("function"!=typeof t)throw s(i);const c=Re({...null!=r?r:{},set:(t,n)=>Fo(e,t,n),reset:t=>Fo(e,t,Do),refresh:t=>Go(e,t),gotoSnapshot:t=>Bo(e,t),transact_UNSTABLE:t=>Ro(e)(t)},{snapshot:()=>{const t=zo(e);return o=t.retain(),t}}),l=t(c);if("function"!=typeof l)throw s(i);a=l(...n)}),a instanceof Vo&&No(!1),c(a))?a=a.finally(()=>{var e;null===(e=o)||void 0===e||e()}):null===(i=o)||void 0===i||i();return a}var qo={recoilCallback:$o,useRecoilCallback:function(e,t){const n=Ho();return Uo((...t)=>$o(n.current,e,t),null!=t?[...t,n]:void 0)}};const{useStoreRef:Ko}=er,{refreshRecoilValue:Yo}=mt,{useCallback:Xo}=o.a;var Qo=function(e){const t=Ko();return Xo(()=>{const n=t.current;Yo(n,e)},[e,t])};const{atomicUpdater:Zo}=Mo,{useStoreRef:Jo}=er,{useMemo:ea}=o.a;var ta=function(e,t){const n=Jo();return ea(()=>(...t)=>{Zo(n.current)(n=>{e(n)(...t)})},null!=t?[...t,n]:void 0)};var na=class{constructor(e){u(this,"value",void 0),this.value=e}},ra=Object.freeze({__proto__:null,WrappedValue:na});const{isFastRefreshEnabled:oa}=V;class aa extends Error{}var ia=class{constructor(e){var t,n,r;u(this,"_name",void 0),u(this,"_numLeafs",void 0),u(this,"_root",void 0),u(this,"_onHit",void 0),u(this,"_onSet",void 0),u(this,"_mapNodeValue",void 0),this._name=null==e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null==e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null==e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null==e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null==t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;const r=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(r)}}set(e,t,n){const r=()=>{var r,o,a,i;let s,c;for(const[t,r]of e){var l,u,d;const e=this._root;if("leaf"===(null==e?void 0:e.type))throw this.invalidCacheError();const o=s;if(s=o?o.branches.get(c):e,s=null!==(l=s)&&void 0!==l?l:{type:"branch",nodeKey:t,parent:o,branches:new Map,branchKey:c},"branch"!==s.type||s.nodeKey!==t)throw this.invalidCacheError();null==o||o.branches.set(c,s),null==n||null===(u=n.onNodeVisit)||void 0===u||u.call(n,s),c=this._mapNodeValue(r),this._root=null!==(d=this._root)&&void 0!==d?d:s}const f=s?null===(r=s)||void 0===r?void 0:r.branches.get(c):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==c))throw this.invalidCacheError();const p={type:"leaf",value:t,parent:s,branchKey:c};null===(o=s)||void 0===o||o.branches.set(c,p),this._root=null!==(a=this._root)&&void 0!==a?a:p,this._numLeafs++,this._onSet(p),null==n||null===(i=n.onNodeVisit)||void 0===i||i.call(n,p)};try{r()}catch(e){if(!(e instanceof aa))throw e;this.clear(),r()}}delete(e){const t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,r=e.branchKey;for(;n;){var o;if(n.branches.delete(r),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;r=null===(o=n)||void 0===o?void 0:o.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const e=oa()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw G(e+(null!=this._name?` - ${this._name}`:"")),new aa}},sa=Object.freeze({__proto__:null,TreeCache:ia});var ca=class{constructor(e){var t;u(this,"_maxSize",void 0),u(this,"_size",void 0),u(this,"_head",void 0),u(this,"_tail",void 0),u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const r=this.head(),o={key:e,right:r,left:null,value:t};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=l(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},la=Object.freeze({__proto__:null,LRUCache:ca});const{LRUCache:ua}=la,{TreeCache:da}=sa;var fa=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const r=new ua({maxSize:t}),o=new da({name:e,mapNodeValue:n,onHit:e=>{r.set(e,!0)},onSet:e=>{const n=r.tail();r.set(e,!0),n&&o.size()>t&&o.delete(n.key)}});return o};var pa=function(e,t={allowFunctions:!1}){return function e(t,n,r){if("string"==typeof t&&!t.includes('"')&&!t.includes("\\"))return`"${t}"`;switch(typeof t){case"undefined":return"";case"boolean":return t?"true":"false";case"number":case"symbol":return String(t);case"string":return JSON.stringify(t);case"function":if(!0!==(null==n?void 0:n.allowFunctions))throw s("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${t.name})__`}if(null===t)return"null";var o;if("object"!=typeof t)return null!==(o=JSON.stringify(t))&&void 0!==o?o:"";if(c(t))return"__PROMISE__";if(Array.isArray(t))return`[${t.map((t,r)=>e(t,n,r.toString()))}]`;if("function"==typeof t.toJSON)return e(t.toJSON(r),n,r);if(t instanceof Map){const o={};for(const[r,a]of t)o["string"==typeof r?r:e(r,n)]=a;return e(o,n,r)}return t instanceof Set?e(Array.from(t).sort((t,r)=>e(t,n).localeCompare(e(r,n))),n,r):void 0!==Symbol&&null!=t[Symbol.iterator]&&"function"==typeof t[Symbol.iterator]?e(Array.from(t),n,r):`{${Object.keys(t).filter(e=>void 0!==t[e]).sort().map(r=>`${e(r,n)}:${e(t[r],n,r)}`).join(",")}}`}(e,t)};const{TreeCache:ha}=sa,ga={equality:"reference",eviction:"keep-all",maxSize:1/0};var ma=function({equality:e=ga.equality,eviction:t=ga.eviction,maxSize:n=ga.maxSize}=ga,r){return function(e,t,n,r){switch(e){case"keep-all":return new ha({name:r,mapNodeValue:n});case"lru":return fa({name:r,maxSize:l(t),mapNodeValue:n});case"most-recent":return fa({name:r,maxSize:1,mapNodeValue:n})}throw s(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>pa(e)}throw s(`Unrecognized equality policy ${e}`)}(e),r)};const{isReactNative:ba,isWindow:va}=Ft;var ya={startPerfBlock:function(e){return()=>null}};const{isLoadable:wa,loadableWithError:_a,loadableWithPromise:Oa,loadableWithValue:xa}=C,{WrappedValue:Ea}=ra,{getNodeLoadable:Aa,peekNodeLoadable:ka,setNodeValue:Sa}=$e,{saveDepsToStore:La}=_e,{DEFAULT_VALUE:ja,getConfigDeletionHandler:Ca,getNode:Ta,registerNode:Pa}=ue,{isRecoilValue:Ma}=J,{markRecoilValueModified:Na}=mt,{retainedByOptionWithDefault:Ra}=Lt,{recoilCallback:Ia}=qo,{startPerfBlock:Da}=ya;class Ha{}const Ga=new Ha,Fa=[],za=new Map,Ba=(()=>{let e=0;return()=>e++})();function Ua(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,a=null!=e.set?e.set:void 0;const i=new Set,u=ma(null!=o?o:{equality:"reference",eviction:"keep-all"},n),d=Ra(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!R("recoil_memory_managament_2020")||p>0}function g(e){return e.getState().knownSelectors.add(n),p++,()=>{p--}}function m(){return void 0!==Ca(n)&&!h()}function b(e,t,n,r,o){C(t,r,o),v(e,n)}function v(e,t){j(e,t)&&L(e),y(t,!0)}function y(e,n){const r=za.get(e);if(null!=r){for(const e of r)Na(e,l(t));n&&za.delete(e)}}function w(e,t){let n=za.get(t);null==n&&za.set(t,n=new Set),n.add(e)}function _(e,t,n,r,o,a){return t.then(r=>{if(!h())throw L(e),Ga;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,xa(r)):e.getState().knownSelectors.forEach(e=>{n.atomValues.delete(e)});const i=E(e,n);if(i&&"loading"!==i.state){if((j(e,o)||null==S(e))&&v(e,o),"hasValue"===i.state)return i.contents;throw i.contents}if(!j(e,o)){const t=k(e,n);if(null!=t)return t.loadingLoadable.contents}const[s,c]=x(e,n,o);if("loading"!==s.state&&b(e,n,o,s,c),"hasError"===s.state)throw s.contents;return s.contents}).catch(t=>{if(t instanceof Ha)throw Ga;if(!h())throw L(e),Ga;const a=_a(t);throw b(e,n,o,a,r),t})}function O(e,t,r,o){var a,s,c,l,u,d,f;(j(e,o)||t.version===(null===(a=e.getState())||void 0===a?void 0:null===(s=a.currentTree)||void 0===s?void 0:s.version)||t.version===(null===(c=e.getState())||void 0===c?void 0:null===(l=c.nextTree)||void 0===l?void 0:l.version))&&La(n,r,e,null!==(u=null===(d=e.getState())||void 0===d?void 0:null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==u?u:e.getState().currentTree.version);for(const e of r)i.add(e)}function x(e,o,a){const i=Da(n);let u=!0,d=!0;const f=()=>{i(),d=!1};let p,g,m=!1;const v={loadingDepKey:null,loadingDepPromise:null},w=new Map;function x({key:t}){const n=Aa(e,o,t);switch(w.set(t,n),u||(O(e,o,new Set(w.keys()),a),function(e,t){if(j(e,t)){l(S(e)).stateVersions.clear(),y(t,!1)}}(e,a)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw v.loadingDepKey=t,v.loadingDepPromise=n.contents,n.contents}throw s("Invalid Loadable state")}const E=n=>(...r)=>{if(d)throw s("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null==t&&No(!1),Ia(e,n,r,{node:t})};try{p=r({get:x,getCallback:E}),p=Ma(p)?x(p):p,wa(p)&&("hasError"===p.state&&(m=!0),p=p.contents),c(p)?p=function(e,t,n,r,o,a){return t.then(t=>{if(!h())throw L(e),Ga;const a=xa(t);return b(e,n,o,a,r),t}).catch(t=>{if(!h())throw L(e),Ga;if(c(t))return _(e,t,n,r,o,a);const i=_a(t);throw b(e,n,o,i,r),t})}(e,p,o,w,a,v).finally(f):f(),p=p instanceof Ea?p.value:p}catch(t){p=t,c(p)?p=_(e,p,o,w,a,v).finally(f):(m=!0,f())}return g=m?_a(p):c(p)?Oa(p):xa(p),u=!1,function(e,t,n){if(j(e,t)){const t=S(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,a,w),O(e,o,new Set(w.keys()),a),[g,w]}function E(e,t){let r=t.atomValues.get(n);if(null!=r)return r;const o=new Set;try{r=u.get(n=>("string"!=typeof n&&No(!1),Aa(e,t,n).contents),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&o.add(e.nodeKey)}})}catch(e){throw s(`Problem with cache lookup for selector "${n}": ${e.message}`)}var a;r&&(t.atomValues.set(n,r),O(e,t,o,null===(a=S(e))||void 0===a?void 0:a.executionID));return r}function A(e,t){const n=E(e,t);if(null!=n)return L(e),n;const r=k(e,t);var o;if(null!=r)return"loading"===(null===(o=r.loadingLoadable)||void 0===o?void 0:o.state)&&w(e,r.executionID),r.loadingLoadable;const a=Ba(),[i,s]=x(e,t,a);return"loading"===i.state?(!function(e,t,n,r,o){f.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:r,executionID:t,loadingLoadable:n,stateVersions:new Map([[o.version,!0]])})}(e,a,i,s,t),w(e,a)):(L(e),C(t,i,s)),i}function k(e,t){const n=Dt([f.has(e)?[l(f.get(e))]:[],te(Ne(f,([t])=>t!==e),([,e])=>e)]);function r(n){for(const[r,o]of n)if(!Aa(e,t,r).is(o))return!0;return!1}for(const e of n){if(e.stateVersions.get(t.version)||!r(e.depValuesDiscoveredSoFarDuringAsyncWork))return e.stateVersions.set(t.version,!0),e;e.stateVersions.set(t.version,!1)}}function S(e){return f.get(e)}function L(e){f.delete(e)}function j(e,t){var n;return t===(null===(n=S(e))||void 0===n?void 0:n.executionID)}function C(e,t,r){e.atomValues.set(n,t);try{u.set(function(e){return Array.from(e.entries()).map(([e,t])=>[e,t.contents])}(r),t)}catch(e){throw s(`Problem with setting cache for selector "${n}": ${e.message}`)}}function T(e,t){const r=t.atomValues.get(n);return null!=r?r:u.get(n=>{var r;return"string"!=typeof n&&No(!1),null===(r=ka(e,t,n))||void 0===r?void 0:r.contents})}function P(e,t){return function(e){if(Fa.includes(n)){const e=`Recoil selector has circular dependencies: ${Fa.slice(Fa.indexOf(n)).join(" → ")}`;return _a(s(e))}Fa.push(n);try{return e()}finally{Fa.pop()}}(()=>A(e,t))}function M(e){e.atomValues.delete(n)}function N(e,n){null==t&&No(!1);for(const t of i){var r;const o=Ta(t);null===(r=o.clearCache)||void 0===r||r.call(o,e,n)}i.clear(),M(n),u.clear(),Na(e,t)}if(null!=a){return t=Pa({key:n,nodeType:"selector",peek:T,get:P,set:(e,t,r)=>{let o=!1;const i=new Map;function l({key:r}){if(o)throw s("Recoil: Async selector sets are not currently supported.");const a=Aa(e,t,r);if("hasValue"===a.state)return a.contents;if("loading"===a.state){const e=`Getting value of asynchronous atom or selector "${r}" in a pending state while setting selector "${n}" is not yet supported.`;throw G(e),s(e)}throw a.contents}function u(n,r){if(o){const e="Recoil: Async selector sets are not currently supported.";throw G(e),s(e)}const a="function"==typeof r?r(l(n)):r;Sa(e,t,n.key,a).forEach((e,t)=>i.set(t,e))}const d=a({set:u,get:l,reset:function(e){u(e,ja)}},r);if(void 0!==d)throw c(d)?s("Recoil: Async selector sets are not currently supported."):s("Recoil: selector set should be a void function.");return o=!0,i},init:g,invalidate:M,clearCache:N,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}return t=Pa({key:n,nodeType:"selector",peek:T,get:P,init:g,invalidate:M,clearCache:N,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}Ua.value=e=>new Ea(e);var Va=Ua;const{isLoadable:Wa,loadableWithError:$a,loadableWithPromise:qa,loadableWithValue:Ka}=C,{WrappedValue:Ya}=ra,{peekNodeInfo:Xa}=$e,{DEFAULT_VALUE:Qa,DefaultValue:Za,getConfigDeletionHandler:Ja,registerNode:ei,setConfigDeletionHandler:ti}=ue,{isRecoilValue:ni}=J,{getRecoilValueAsLoadable:ri,markRecoilValueModified:oi,setRecoilValue:ai,setRecoilValueLoadable:ii}=mt,{retainedByOptionWithDefault:si}=Lt,ci=e=>e instanceof Ya?e.value:e;function li(e){const{key:t,persistence_UNSTABLE:n}=e,r=si(e.retainedBy_UNSTABLE);let o=0;function a(e){return qa(e.then(e=>(i=Ka(e),e)).catch(e=>{throw i=$a(e),e}))}let i=c(e.default)?a(e.default):Wa(e.default)?"loading"===e.default.state?a(e.default.contents):e.default:Ka(ci(e.default));f(i.contents);let u=void 0;const d=new Map;function f(e){return e}function p(e,n){var r,o;return null!==(r=null!==(o=n.atomValues.get(t))&&void 0!==o?o:u)&&void 0!==r?r:i}const h=ei({key:t,nodeType:"atom",peek:p,get:function(e,r){if(r.atomValues.has(t))return l(r.atomValues.get(t));if(r.nonvalidatedAtoms.has(t)){if(null!=u)return u;if(null==n)return ee(`Tried to restore a persisted value for atom ${t} but it has no persistence settings.`),i;const e=r.nonvalidatedAtoms.get(t),o=n.validator(e,Qa),a=o instanceof Za?i:Ka(o);return u=a,u}return i},set:function(e,n,r){if(n.atomValues.has(t)){const e=l(n.atomValues.get(t));if("hasValue"===e.state&&r===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof Za)return new Map;return u=void 0,(new Map).set(t,Ka(r))},init:function(n,r,a){var l;if(o++,n.getState().knownAtoms.add(t),"loading"===i.state){const e=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||oi(n,h)};i.contents.finally(e)}const u=null!==(l=e.effects)&&void 0!==l?l:e.effects_UNSTABLE;if(null!=u){let e=Qa,o=!0,l=!1,y=null;function f(a){if(o&&a.key===t){const t=e;return t instanceof Za?p(n,r):c(t)?qa(t.then(e=>e instanceof Za?i.toPromise():e)):Ka(t)}return ri(n,a)}function g(e){return f(e).toPromise()}function m(r){var a;const i=Xa(n,null!==(a=n.getState().nextTree)&&void 0!==a?a:n.getState().currentTree,r.key);return!o||r.key!==t||e instanceof Za?i:{...i,isSet:!0,loadable:f(r)}}const w=t=>r=>{if(o){const n=f(h),o="hasValue"===n.state?n.contents:Qa;e="function"==typeof r?r(o):r,c(e)&&(e=e.then(e=>(y={effect:t,value:e},e)))}else{if(c(r))throw s("Setting atoms to async values is not implemented.");"function"!=typeof r&&(y={effect:t,value:ci(r)}),ai(n,h,"function"==typeof r?e=>{const n=ci(r(e));return y={effect:t,value:n},n}:ci(r))}},_=e=>()=>w(e)(Qa),O=e=>r=>{var o;const{release:a}=n.subscribeToTransactions(n=>{var o;let{currentTree:a,previousTree:s}=n.getState();s||(G("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),s=a);const c=null!==(o=a.atomValues.get(t))&&void 0!==o?o:i;if("hasValue"===c.state){var l,u,d,f;const n=c.contents,o=null!==(l=s.atomValues.get(t))&&void 0!==l?l:i,p="hasValue"===o.state?o.contents:Qa;(null===(u=y)||void 0===u?void 0:u.effect)!==e||(null===(d=y)||void 0===d?void 0:d.value)!==n?r(n,p,!a.atomValues.has(t)):(null===(f=y)||void 0===f?void 0:f.effect)===e&&(y=null)}},t);d.set(n,[...null!==(o=d.get(n))&&void 0!==o?o:[],a])};for(const t of u)try{const e=t({node:h,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:a,setSelf:w(t),resetSelf:_(t),onSet:O(t),getPromise:g,getLoadable:f,getInfo_UNSTABLE:m});var b;if(null!=e)d.set(n,[...null!==(b=d.get(n))&&void 0!==b?b:[],e])}catch(t){e=t,l=!0}if(o=!1,!(e instanceof Za)){var v;const o=l?$a(e):c(e)?qa(function(e,n){const r=n.then(n=>{var o,a;return(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&ai(e,h,n),n}).catch(n=>{var o,a;throw(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&ii(e,h,$a(n)),n});return r}(n,e)):Ka(ci(e));o.contents,r.atomValues.set(t,o),null===(v=n.getState().nextTree)||void 0===v||v.atomValues.set(t,o)}}return()=>{var e;o--,null===(e=d.get(n))||void 0===e||e.forEach(e=>e()),d.delete(n)}},invalidate:function(){u=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==Ja(t)&&o<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function ui(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return ni(n)?function(e){const t=ui({...e,default:Qa,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof Za?t:l(e.persistence_UNSTABLE).validator(t,Qa)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Va({key:`${e.key}__withFallback`,get:({get:n})=>{const r=n(t);return r instanceof Za?e.default:r},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return ti(n.key,Ja(e.key)),n}({...t,default:n}):li({...t,default:n})}ui.value=e=>new Ya(e);var di=ui;var fi=class{constructor(e){var t;u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null==e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},pi=Object.freeze({__proto__:null,MapCache:fi});const{LRUCache:hi}=la,{MapCache:gi}=pi,mi={equality:"reference",eviction:"none",maxSize:1/0};var bi=function({equality:e=mi.equality,eviction:t=mi.eviction,maxSize:n=mi.maxSize}=mi){return function(e,t,n){switch(e){case"keep-all":return new gi({mapKey:n});case"lru":return new hi({mapKey:n,maxSize:l(t)});case"most-recent":return new hi({mapKey:n,maxSize:1})}throw s(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>pa(e)}throw s(`Unrecognized equality policy ${e}`)}(e))};const{setConfigDeletionHandler:vi}=ue;var yi=function(e){var t,n;const r=bi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n,o;const a=r.get(t);if(null!=a)return a;const{cachePolicyForParams_UNSTABLE:i,...s}=e,c="default"in e?e.default:new Promise(()=>{}),l=di({...s,key:`${e.key}__${null!==(n=pa(t))&&void 0!==n?n:"void"}`,default:"function"==typeof c?c(t):c,retainedBy_UNSTABLE:"function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"==typeof e.effects?e.effects(t):"function"==typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(o=e.effects)&&void 0!==o?o:e.effects_UNSTABLE});return r.set(t,l),vi(l.key,()=>{r.delete(t)}),l}};const{setConfigDeletionHandler:wi}=ue;let _i=0;var Oi=function(e){var t,n;const r=bi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let o;try{o=r.get(t)}catch(t){throw s(`Problem with cache lookup for selector ${e.key}: ${t.message}`)}if(null!=o)return o;const a=`${e.key}__selectorFamily/${null!==(n=pa(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${_i++}`,i=n=>e.get(t)(n),c=e.cachePolicy_UNSTABLE,l="function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let u;if(null!=e.set){const n=e.set;u=Va({key:a,get:i,set:(e,r)=>n(t)(e,r),cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else u=Va({key:a,get:i,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return r.set(t,u),wi(u.key,()=>{r.delete(t)}),u}};const xi=Oi({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ei=function(e){return xi(e)};const Ai=Oi({key:"__error",get:e=>()=>{throw s(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var ki=function(e){return Ai(e)};var Si=function(e){return e};const{loadableWithError:Li,loadableWithPromise:ji,loadableWithValue:Ci}=C;function Ti(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,a]of t.entries())try{n[o]=e(a)}catch(e){r[o]=e}return[n,r]}function Pi(e){return null!=e&&!c(e)}function Mi(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function Ni(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{})}function Ri(e,t,n){return Ni(e,n.map((e,n)=>null==e?Ci(t[n]):c(e)?ji(e):Li(e)))}var Ii={waitForNone:Oi({key:"__waitForNone",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Ti(t,n);return Ri(e,r,o)},dangerouslyAllowMutability:!0}),waitForAny:Oi({key:"__waitForAny",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Ti(t,n);return o.some(e=>!c(e))?Ri(e,r,o):new Promise(t=>{for(const[n,a]of o.entries())c(a)&&a.then(a=>{r[n]=a,o[n]=void 0,t(Ri(e,r,o))}).catch(a=>{o[n]=a,t(Ri(e,r,o))})})},dangerouslyAllowMutability:!0}),waitForAll:Oi({key:"__waitForAll",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Ti(t,n);if(o.every(e=>null==e))return Ni(e,r);const a=o.find(Pi);if(null!=a)throw a;return Promise.all(o).then(t=>{return Ni(e,(n=r,t.map((e,t)=>void 0===e?n[t]:e)));var n})},dangerouslyAllowMutability:!0}),waitForAllSettled:Oi({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Ti(t,n);return o.every(e=>!c(e))?Ri(e,r,o):Promise.all(o.map((e,t)=>c(e)?e.then(e=>{r[t]=e,o[t]=void 0}).catch(e=>{r[t]=void 0,o[t]=e}):null)).then(()=>Ri(e,r,o))},dangerouslyAllowMutability:!0}),noWait:Oi({key:"__noWait",get:e=>({get:t})=>{try{return Va.value(Ci(t(e)))}catch(e){return Va.value(c(e)?ji(e):Li(e))}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:Di}=C,{DefaultValue:Hi}=ue,{RecoilRoot:Gi,useRecoilStoreID:Fi}=er,{isRecoilValue:zi}=J,{retentionZone:Bi}=Pe,{freshSnapshot:Ui}=bn,{useRecoilState:Vi,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Wi,useRecoilStateLoadable:$i,useRecoilValue:qi,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ki,useRecoilValueLoadable:Yi,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Xi,useResetRecoilState:Qi,useSetRecoilState:Zi}=Wr,{useGotoRecoilSnapshot:Ji,useRecoilSnapshot:es,useRecoilTransactionObserver:ts}=po,{useRecoilCallback:ns}=qo,{noWait:rs,waitForAll:os,waitForAllSettled:as,waitForAny:is,waitForNone:ss}=Ii;var cs={DefaultValue:Hi,isRecoilValue:zi,RecoilLoadable:Di,RecoilEnv:M,RecoilRoot:Gi,useRecoilStoreID:Fi,useRecoilBridgeAcrossReactRoots_UNSTABLE:_o,atom:di,selector:Va,atomFamily:yi,selectorFamily:Oi,constSelector:Ei,errorSelector:ki,readOnlySelector:Si,noWait:rs,waitForNone:ss,waitForAny:is,waitForAll:os,waitForAllSettled:as,useRecoilValue:qi,useRecoilValueLoadable:Yi,useRecoilState:Vi,useRecoilStateLoadable:$i,useSetRecoilState:Zi,useResetRecoilState:Qi,useGetRecoilValueInfo_UNSTABLE:mo,useRecoilRefresher_UNSTABLE:Qo,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Xi,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ki,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Wi,useRecoilCallback:ns,useRecoilTransaction_UNSTABLE:ta,useGotoRecoilSnapshot:Ji,useRecoilSnapshot:es,useRecoilTransactionObserver_UNSTABLE:ts,snapshot_UNSTABLE:Ui,useRetain:fr,retentionZone:Bi},ls=cs.RecoilRoot,us=cs.atom,ds=cs.useRecoilValue,fs=cs.useRecoilState,ps=cs.useSetRecoilState}).call(this,n(152))},function(e,t,n){"use strict";n(761);var r=n(207),o=n(171),a=(n(494),n(94)),i=n(32),s=(n(275),n(37),n(126)),c=n(1019),l=n(1053),u=n(39),d=n(1054),f=(n(128),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(509)),p=n(98),h=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(51)),g=n(38);n.d(t,"b",(function(){return r.a})),n.d(t,"n",(function(){return o.c})),n.d(t,"o",(function(){return o.d})),n.d(t,"p",(function(){return o.e})),n.d(t,"w",(function(){return o.g})),n.d(t,"m",(function(){return o.a})),n.d(t,"i",(function(){return a.a})),n.d(t,"h",(function(){return i.h})),n.d(t,"j",(function(){return i.j})),n.d(t,"f",(function(){return f.a})),n.d(t,"c",(function(){return p.a})),n.d(t,"y",(function(){return s.a})),n.d(t,"e",(function(){return c.a})),n.d(t,"d",(function(){return l.a})),n.d(t,"g",(function(){return u.c})),n.d(t,"a",(function(){return d.a})),n.d(t,"A",(function(){return h.c})),n.d(t,"z",(function(){return h.a})),n.d(t,"q",(function(){return g.f})),n.d(t,"x",(function(){return g.l})),n.d(t,"v",(function(){return g.k})),n.d(t,"k",(function(){return g.d})),n.d(t,"t",(function(){return g.i})),n.d(t,"l",(function(){return g.e})),n.d(t,"s",(function(){return g.h})),n.d(t,"r",(function(){return g.g})),n.d(t,"u",(function(){return g.j}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n(18);function o(e){Object(r.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";var r=n(666),o=n(306);var a=n(277);function i({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){const a=Object(o.a)(n);return Object(r.a)({theme:a,name:t,props:e})}({props:e,name:t,defaultTheme:a.a})}n.d(t,"a",(function(){return i}))},,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;te&&e[t]?e[t]:null,e):null}function i(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o)),o}t.a=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:c}=e,l=e=>{if(null==e[t])return null;const l=e[t],u=a(e.theme,s)||{};return Object(o.b)(e,l,e=>{let o=i(u,c,e);return e===o&&"string"==typeof e&&(o=i(u,c,`${t}${"default"===e?"":Object(r.a)(e)}`,e)),!1===n?o:{[n]:o}})};return l.propTypes={},l.filterProps=[t],l}},,function(e,t,n){"use strict";t.__esModule=!0,t.Card=t.Image=t.Button=t.Link=t.Heading=t.Text=t.Flex=t.Box=void 0;a(n(0));var r=a(n(1)),o=n(824);function a(e){return e&&e.__esModule?e:{default:e}}function i(){return(i=Object.assign||function(e){for(var t=1;t=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,n){return w(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,n){return w(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function u(e,t,n){return w(e)?[{...t,queryKey:e},n]:[e||{},t]}function d(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(w(i))if(r){if(t.queryHash!==p(i,t.options))return!1}else if(!g(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function f(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(w(a)){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!g(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function g(e,t){return function e(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(t&&n&&"object"==typeof t&&"object"==typeof n)return!Object.keys(n).some(r=>!e(t[r],n[r]));return!1}(e,t)}function m(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!y(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!y(n)&&!!n.hasOwnProperty("isPrototypeOf")}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return Array.isArray(e)}function _(e){return new Promise(t=>{setTimeout(t,e)})}function O(e){_(0).then(e)}function x(){if("function"==typeof AbortController)return new AbortController}function E(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;const r=b(t)&&b(n);if(r||v(t)&&v(n)){const o=r?t.length:Object.keys(t).length,a=r?n:Object.keys(n),i=a.length,s=r?[]:{};let c=0;for(let o=0;o{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Object(d.a)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Object(o.a)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=a.forwardRef((function(e,t){const n=Object(u.a)({props:e,name:"MuiTypography"}),a=(e=>y[e]||e)(n.color),l=Object(s.a)(Object(o.a)({},n,{color:a})),{align:f="inherit",className:p,component:w,gutterBottom:_=!1,noWrap:O=!1,paragraph:x=!1,variant:E="body1",variantMapping:A=v}=l,k=Object(r.a)(l,m),S=Object(o.a)({},l,{align:f,color:a,className:p,component:w,gutterBottom:_,noWrap:O,paragraph:x,variant:E,variantMapping:A}),L=w||(x?"p":A[E]||v[E])||"span",j=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,"inherit"!==e.align&&`align${Object(d.a)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Object(c.a)(s,h,i)})(S);return Object(g.jsx)(b,Object(o.a)({as:L,ref:t,ownerState:S,className:Object(i.a)(j.root,p)},k))}));t.a=w},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n(1614),o=n(1615),a=n(775);function i(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var a,i=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var u=-1;for(a=n;as&&(n=s-c),a=n;a>=0;a--){for(var d=!0,f=0;fo&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[o+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(c=(15&l)<<12|(63&a)<<6|63&i)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[o+1],i=e[o+2],s=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),s=Math.min(a,i),l=this.slice(r,o),u=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,o,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function R(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,a){return a||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,a){return a||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],o=1,a=0;++a=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var a=0,i=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var a=n-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(67))},function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return g}));var r=n(104),o=n.n(r),a=function(e,t){var n=o()({},e,t);for(var r in e){var a;e[r]&&"object"==typeof t[r]&&o()(n,((a={})[r]=o()(e[r],t[r]),a))}return n},i={breakpoints:[40,52,64].map((function(e){return e+"em"}))},s=function(e){return"@media screen and (min-width: "+e+")"},c=function(e,t){return l(t,e,e)},l=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r1&&c.forEach((function(n){var o;r[n]=e(((o={})[n]=t[n],o))})),r},d=function(e,t,n,r,a){var i={};return r.slice(0,e.length).forEach((function(r,s){var c,l=e[s],u=t(r,n,a);l?o()(i,((c={})[l]=o()({},i[l],u),c)):o()(i,u)})),i},f=function(e,t,n,r,a){var i={};for(var c in r){var l=e[c],u=t(r[c],n,a);if(l){var d,f=s(l);o()(i,((d={})[f]=o()({},i[f],u),d))}else o()(i,u)}return i},p=function(e){var t=e.properties,n=e.property,r=e.scale,o=e.transform,a=void 0===o?c:o,i=e.defaultScale;t=t||[n];var s=function(e,n,r){var o={},i=a(e,n,r);if(null!==i)return t.forEach((function(e){o[e]=i})),o};return s.scale=r,s.defaults=i,s},h=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!=typeof r?p(r):r:p({property:n,scale:n})})),u(t)},g=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(36),o=n(591),a=n(75),i=n(108),s=n(384),c=n(730),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,d){var f,p,h,g,m,b,v,y=i(t,n,u?2:1);if(d)f=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,g=a(e.length);g>h;h++)if((m=u?y(r(v=e[h])[0],v[1]):y(e[h]))&&m instanceof l)return m;return new l(!1)}f=p.call(e)}for(b=f.next;!(v=b.call(f)).done;)if("object"==typeof(m=c(f,y,v.value,u))&&m&&m instanceof l)return m;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"f",(function(){return O})),n.d(t,"a",(function(){return x})),n.d(t,"j",(function(){return E})),n.d(t,"i",(function(){return A})),n.d(t,"h",(function(){return k})),n.d(t,"g",(function(){return S})),n.d(t,"e",(function(){return L}));var r,o,a,i,s,c,l,u,d,f,p,h=n(1);function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&p(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var m,b,v="3rem",y=Object(h.css)(r||(r=g(["\n background-color: ",";\n"])),(function(e){return e.theme.colors.lightContrast})),w=Object(h.css)(o||(o=g(["\n color: ",";\n"])),(function(e){return e.theme.colors.forms.placeholder})),_=Object(h.css)(a||(a=g(["\n outline: none;\n border: ",";\n"])),(function(e){return e.theme.borders.forms.focus})),O=_,x=Object(h.css)(i||(i=g(["\n border: ",";\n color: ",";\n\n ","\n"])),(function(e){return e.theme.borders.forms.input}),(function(e){return e.theme.colors.forms.input}),y),E=Object(h.css)(s||(s=g(["\n font-family: ",";\n"])),(function(e){return e.theme.fonts.primary})),A=Object(h.css)(c||(c=g(["\n ","\n"])),(function(e){var t=e.theme;return e.error?Object(h.css)(l||(l=g(["\n border: ",";\n "])),t.borders.forms.error):null})),k=Object(h.css)(u||(u=g(["\n font-weight: ",";\n font-size: ",";\n"])),(function(e){return e.theme.fontWeights.light}),(function(e){return e.theme.fontSizes.baseline})),S=Object(h.css)(d||(d=g(["\n & + & {\n margin-top: ",";\n }\n"])),(function(e){return e.theme.space[4]})),L=Object(h.css)(f||(f=g(["\n background-color: ",";\n"])),(function(e){return e.theme.colors.lightRegular}));(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(m.register(v,"FORM_CONTROL_HEIGHT","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(y,"FORM_CONTROL_BG_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(w,"FORM_CONTROL_PLACEHOLDER_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(_,"FORM_CONTROL_FOCUS_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(O,"FORM_CONTROL_RADIO_HOVER_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(x,"FORM_CONTROL_COLORATION_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(E,"FORM_FONT_FAMILY","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(A,"FORM_ERROR_COLORATION_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(k,"FORM_CONTROL_TYPOGRAPHY_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(S,"FORM_CONTROL_SPACING_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts"),m.register(L,"FORM_CONTROL_RADIO_FOCUS_CSS","/__w/1255/s/packages/ui/src/forms/constants.ts")),(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&b(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";var r=n(66),o=n(431),a=n(1276),i={},s=function(){function e(){}return e.setItem=function(e,t){return i[e]=t,i[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0},e.removeItem=function(e){return delete i[e]},e.clear=function(){return i={}},e}(),c=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=s}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),l=n(209),u=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},f=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},h=function(){for(var e=[],t=0;te)&&n}}(n))},v=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},y=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}var F,z,B,U,V,W,$,q,K,Y,X,Q,Z,J,ee,te,ne,re,oe,ae,ie,se,ce,le,ue,de,fe,pe,he,ge,me,be,ve,ye,we,_e,Oe,xe,Ee,Ae,ke,Se,Le,je,Ce,Te,Pe,Me,Ne,Re,Ie,De,He,Ge,Fe,ze,Be;Object.create;!function(e){e.AUTHENTICATED_ROLE="AuthenticatedRole",e.DENY="Deny"}(F||(F={})),(z||(z={})).filterSensitiveLog=function(e){return I({},e)},(B||(B={})).filterSensitiveLog=function(e){return I({},e)},(U||(U={})).filterSensitiveLog=function(e){return I({},e)},(V||(V={})).filterSensitiveLog=function(e){return I({},e)},(W||(W={})).filterSensitiveLog=function(e){return I({},e)},($||($={})).filterSensitiveLog=function(e){return I({},e)},(q||(q={})).filterSensitiveLog=function(e){return I({},e)},(K||(K={})).filterSensitiveLog=function(e){return I({},e)},(Y||(Y={})).filterSensitiveLog=function(e){return I({},e)},(X||(X={})).filterSensitiveLog=function(e){return I({},e)},function(e){e.ACCESS_DENIED="AccessDenied",e.INTERNAL_SERVER_ERROR="InternalServerError"}(Q||(Q={})),(Z||(Z={})).filterSensitiveLog=function(e){return I({},e)},(J||(J={})).filterSensitiveLog=function(e){return I({},e)},(ee||(ee={})).filterSensitiveLog=function(e){return I({},e)},(te||(te={})).filterSensitiveLog=function(e){return I({},e)},(ne||(ne={})).filterSensitiveLog=function(e){return I({},e)},(re||(re={})).filterSensitiveLog=function(e){return I({},e)},(oe||(oe={})).filterSensitiveLog=function(e){return I({},e)},(ae||(ae={})).filterSensitiveLog=function(e){return I({},e)},(ie||(ie={})).filterSensitiveLog=function(e){return I({},e)},(se||(se={})).filterSensitiveLog=function(e){return I({},e)},(ce||(ce={})).filterSensitiveLog=function(e){return I({},e)},(le||(le={})).filterSensitiveLog=function(e){return I({},e)},(ue||(ue={})).filterSensitiveLog=function(e){return I({},e)},(de||(de={})).filterSensitiveLog=function(e){return I({},e)},(fe||(fe={})).filterSensitiveLog=function(e){return I({},e)},function(e){e.CONTAINS="Contains",e.EQUALS="Equals",e.NOT_EQUAL="NotEqual",e.STARTS_WITH="StartsWith"}(pe||(pe={})),(he||(he={})).filterSensitiveLog=function(e){return I({},e)},(ge||(ge={})).filterSensitiveLog=function(e){return I({},e)},function(e){e.RULES="Rules",e.TOKEN="Token"}(me||(me={})),(be||(be={})).filterSensitiveLog=function(e){return I({},e)},(ve||(ve={})).filterSensitiveLog=function(e){return I({},e)},(ye||(ye={})).filterSensitiveLog=function(e){return I({},e)},(we||(we={})).filterSensitiveLog=function(e){return I({},e)},(_e||(_e={})).filterSensitiveLog=function(e){return I({},e)},(Oe||(Oe={})).filterSensitiveLog=function(e){return I({},e)},(xe||(xe={})).filterSensitiveLog=function(e){return I({},e)},(Ee||(Ee={})).filterSensitiveLog=function(e){return I({},e)},(Ae||(Ae={})).filterSensitiveLog=function(e){return I({},e)},(ke||(ke={})).filterSensitiveLog=function(e){return I({},e)},(Se||(Se={})).filterSensitiveLog=function(e){return I({},e)},(Le||(Le={})).filterSensitiveLog=function(e){return I({},e)},(je||(je={})).filterSensitiveLog=function(e){return I({},e)},(Ce||(Ce={})).filterSensitiveLog=function(e){return I({},e)},(Te||(Te={})).filterSensitiveLog=function(e){return I({},e)},(Pe||(Pe={})).filterSensitiveLog=function(e){return I({},e)},(Me||(Me={})).filterSensitiveLog=function(e){return I({},e)},(Ne||(Ne={})).filterSensitiveLog=function(e){return I({},e)},(Re||(Re={})).filterSensitiveLog=function(e){return I({},e)},(Ie||(Ie={})).filterSensitiveLog=function(e){return I({},e)},(De||(De={})).filterSensitiveLog=function(e){return I({},e)},(He||(He={})).filterSensitiveLog=function(e){return I({},e)},(Ge||(Ge={})).filterSensitiveLog=function(e){return I({},e)},(Fe||(Fe={})).filterSensitiveLog=function(e){return I({},e)},(ze||(ze={})).filterSensitiveLog=function(e){return I({},e)},(Be||(Be={})).filterSensitiveLog=function(e){return I({},e)};var Ue=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}(),Ve=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(Object(M.__assign)(Object(M.__assign)({},this),{headers:Object(M.__assign)({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var r,o=t[n];return Object(M.__assign)(Object(M.__assign)({},e),((r={})[n]=Array.isArray(o)?Object(M.__spread)(o):o,r))}),{}))),n},e}();var We=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b;return H(this,(function(v){switch(v.label){case 0:return r=[I({},e)],b={},[4,wt(e.body,t)];case 1:switch(n=I.apply(void 0,r.concat([(b.body=v.sent(),b)])),a="UnknownError",i=n.body.__type.split("#"),a=void 0===i[1]?i[0]:i[1],a){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return s=[{}],[4,qe(n,t)];case 3:return o=I.apply(void 0,[I.apply(void 0,s.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 4:return c=[{}],[4,Ke(n,t)];case 5:return o=I.apply(void 0,[I.apply(void 0,c.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 6:return l=[{}],[4,Ye(n,t)];case 7:return o=I.apply(void 0,[I.apply(void 0,l.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 8:return u=[{}],[4,Xe(n,t)];case 9:return o=I.apply(void 0,[I.apply(void 0,u.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 10:return d=[{}],[4,Ze(n,t)];case 11:return o=I.apply(void 0,[I.apply(void 0,d.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 12:return f=[{}],[4,Je(n,t)];case 13:return o=I.apply(void 0,[I.apply(void 0,f.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 14:return p=[{}],[4,et(n,t)];case 15:return o=I.apply(void 0,[I.apply(void 0,p.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 16:return h=[{}],[4,tt(n,t)];case 17:return o=I.apply(void 0,[I.apply(void 0,h.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 18:g=n.body,a=g.code||g.Code||a,o=I(I({},g),{name:""+a,message:g.message||g.Message||a,$fault:"client",$metadata:bt(e)}),v.label=19;case 19:return m=o.message||o.Message||a,o.message=m,delete o.Message,[2,Promise.reject(Object.assign(new Error(m),o))]}}))}))},$e=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b;return H(this,(function(v){switch(v.label){case 0:return r=[I({},e)],b={},[4,wt(e.body,t)];case 1:switch(n=I.apply(void 0,r.concat([(b.body=v.sent(),b)])),a="UnknownError",i=n.body.__type.split("#"),a=void 0===i[1]?i[0]:i[1],a){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return s=[{}],[4,qe(n,t)];case 3:return o=I.apply(void 0,[I.apply(void 0,s.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 4:return c=[{}],[4,Ke(n,t)];case 5:return o=I.apply(void 0,[I.apply(void 0,c.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 6:return l=[{}],[4,Xe(n,t)];case 7:return o=I.apply(void 0,[I.apply(void 0,l.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 8:return u=[{}],[4,Qe(n,t)];case 9:return o=I.apply(void 0,[I.apply(void 0,u.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 10:return d=[{}],[4,Ze(n,t)];case 11:return o=I.apply(void 0,[I.apply(void 0,d.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 12:return f=[{}],[4,Je(n,t)];case 13:return o=I.apply(void 0,[I.apply(void 0,f.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 14:return p=[{}],[4,et(n,t)];case 15:return o=I.apply(void 0,[I.apply(void 0,p.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 16:return h=[{}],[4,tt(n,t)];case 17:return o=I.apply(void 0,[I.apply(void 0,h.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 18:g=n.body,a=g.code||g.Code||a,o=I(I({},g),{name:""+a,message:g.message||g.Message||a,$fault:"client",$metadata:bt(e)}),v.label=19;case 19:return m=o.message||o.Message||a,o.message=m,delete o.Message,[2,Promise.reject(Object.assign(new Error(m),o))]}}))}))},qe=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=it(n,t),[2,I({name:"ExternalServiceException",$fault:"client",$metadata:bt(e)},r)]}))}))},Ke=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=lt(n,t),[2,I({name:"InternalErrorException",$fault:"server",$metadata:bt(e)},r)]}))}))},Ye=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=ut(n,t),[2,I({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:bt(e)},r)]}))}))},Xe=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=dt(n,t),[2,I({name:"InvalidParameterException",$fault:"client",$metadata:bt(e)},r)]}))}))},Qe=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=ft(n,t),[2,I({name:"LimitExceededException",$fault:"client",$metadata:bt(e)},r)]}))}))},Ze=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=pt(n,t),[2,I({name:"NotAuthorizedException",$fault:"client",$metadata:bt(e)},r)]}))}))},Je=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=ht(n,t),[2,I({name:"ResourceConflictException",$fault:"client",$metadata:bt(e)},r)]}))}))},et=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=gt(n,t),[2,I({name:"ResourceNotFoundException",$fault:"client",$metadata:bt(e)},r)]}))}))},tt=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=mt(n,t),[2,I({name:"TooManyRequestsException",$fault:"client",$metadata:bt(e)},r)]}))}))},nt=function(e,t){return I(I(I({},void 0!==e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&{Logins:ot(e.Logins,t)})},rt=function(e,t){return I(I(I({},void 0!==e.AccountId&&{AccountId:e.AccountId}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.Logins&&{Logins:ot(e.Logins,t)})},ot=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=G(t,2),o=r[0],a=r[1];return I(I({},e),((n={})[o]=a,n))}),{})},at=function(e,t){return{AccessKeyId:void 0!==e.AccessKeyId&&null!==e.AccessKeyId?e.AccessKeyId:void 0,Expiration:void 0!==e.Expiration&&null!==e.Expiration?new Date(Math.round(1e3*e.Expiration)):void 0,SecretKey:void 0!==e.SecretKey&&null!==e.SecretKey?e.SecretKey:void 0,SessionToken:void 0!==e.SessionToken&&null!==e.SessionToken?e.SessionToken:void 0}},it=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},st=function(e,t){return{Credentials:void 0!==e.Credentials&&null!==e.Credentials?at(e.Credentials):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},ct=function(e,t){return{IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},lt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ut=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},dt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ft=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},pt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ht=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},gt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},mt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},bt=function(e){return{httpStatusCode:e.statusCode,httpHeaders:e.headers,requestId:e.headers["x-amzn-requestid"]}},vt=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},yt=function(e,t,n,r,o){return D(void 0,void 0,void 0,(function(){var a,i,s,c,l,u;return H(this,(function(d){switch(d.label){case 0:return[4,e.endpoint()];case 1:return a=d.sent(),i=a.hostname,s=a.protocol,c=void 0===s?"https":s,l=a.port,u={protocol:c,hostname:i,port:l,method:"POST",path:n,headers:t},void 0!==r&&(u.hostname=r),void 0!==o&&(u.body=o),[2,new Ve(u)]}}))}))},wt=function(e,t){return function(e,t){return vt(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},_t={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"]},Ot={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"]};function xt(e,t,n){return{applyToStack:function(r){r.add(function(e,t){return function(n,r){return function(o){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var a,i,s,c,l;return Object(M.__generator)(this,(function(u){switch(u.label){case 0:return a=r.logger,i=r.outputFilterSensitiveLog,[4,n(o)];case 1:return s=u.sent().response,"function"==typeof(null==a?void 0:a.debug)&&a.debug({httpResponse:s}),[4,t(s,e)];case 2:return c=u.sent(),c.$metadata,l=Object(M.__rest)(c,["$metadata"]),"function"==typeof(null==a?void 0:a.info)&&a.info({output:i(l)}),[2,{response:s,output:c}]}}))}))}}}(e,n),_t),r.add(function(e,t){return function(n,r){return function(o){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var a,i,s;return Object(M.__generator)(this,(function(c){switch(c.label){case 0:return a=r.logger,i=r.inputFilterSensitiveLog,"function"==typeof(null==a?void 0:a.info)&&a.info({input:i(o.input)}),[4,t(o.input,e)];case 1:return s=c.sent(),"function"==typeof(null==a?void 0:a.debug)&&a.debug({httpRequest:s}),[2,n(Object(M.__assign)(Object(M.__assign)({},o),{request:s}))]}}))}))}}}(e,t),Ot)}}}var Et=function(){var e=[],t=[],n=new Set,r=function(n){return e.forEach((function(e){n.add(e.middleware,Object(M.__assign)({},e))})),t.forEach((function(e){n.addRelativeTo(e.middleware,Object(M.__assign)({},e))})),n},o=function(e){var t=[];return e.before.forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(M.__spread)(o(e)))})),t.push(e),e.after.reverse().forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(M.__spread)(o(e)))})),t},a=function(){var n,r=[],a=[],i={};return e.forEach((function(e){var t=Object(M.__assign)(Object(M.__assign)({},e),{before:[],after:[]});t.name&&(i[t.name]=t),r.push(t)})),t.forEach((function(e){var t=Object(M.__assign)(Object(M.__assign)({},e),{before:[],after:[]});t.name&&(i[t.name]=t),a.push(t)})),a.forEach((function(e){if(e.toMiddleware){var t=i[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}})),(n=r,n.sort((function(e,t){return At[t.step]-At[e.step]||kt[t.priority||"normal"]-kt[e.priority||"normal"]}))).map(o).reduce((function(e,t){return e.push.apply(e,Object(M.__spread)(t)),e}),[]).map((function(e){return e.middleware}))},i={add:function(t,r){void 0===r&&(r={});var o=r.name,a=Object(M.__assign)({step:"initialize",priority:"normal",middleware:t},r);if(o){if(n.has(o))throw new Error("Duplicate middleware name '"+o+"'");n.add(o)}e.push(a)},addRelativeTo:function(e,r){var o=r.name,a=Object(M.__assign)({middleware:e},r);if(o){if(n.has(o))throw new Error("Duplicated middleware name '"+o+"'");n.add(o)}t.push(a)},clone:function(){return r(Et())},use:function(e){e.applyToStack(i)},remove:function(r){return"string"==typeof r?function(r){var o=!1,a=function(e){return!e.name||e.name!==r||(o=!0,n.delete(r),!1)};return e=e.filter(a),t=t.filter(a),o}(r):function(r){var o=!1,a=function(e){return e.middleware!==r||(o=!0,e.name&&n.delete(e.name),!1)};return e=e.filter(a),t=t.filter(a),o}(r)},removeByTag:function(r){var o=!1,a=function(e){var t=e.tags,a=e.name;return!t||!t.includes(r)||(a&&n.delete(a),o=!0,!1)};return e=e.filter(a),t=t.filter(a),o},concat:function(e){var t=r(Et());return t.use(e),t},applyToStack:r,resolve:function(e,t){var n,r;try{for(var o=Object(M.__values)(a().reverse()),i=o.next();!i.done;i=o.next()){e=(0,i.value)(e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}};return i},At={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},kt={high:3,normal:2,low:1},St=function(){function e(e){this.middlewareStack=Et(),this.config=e}return e.prototype.send=function(e,t,n){var r="function"!=typeof t?t:void 0,o="function"==typeof t?t:n,a=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!o)return a(e).then((function(e){return e.output}));a(e).then((function(e){return o(null,e.output)}),(function(e){return o(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),Lt=function(){this.middlewareStack=Et()};var jt=function(){var e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,Object(M.__spread)([null],arguments)),n=new t;return Object.setPrototypeOf(n,e.prototype),n};jt.prototype=Object.create(String.prototype,{constructor:{value:jt,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(jt,String);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(M.__extends)(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:new t(e instanceof String||"string"==typeof e?e:JSON.stringify(e))}}(jt);var Ct=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return R(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(xt(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.logger,a={logger:o,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:ie.filterSensitiveLog,outputFilterSensitiveLog:ce.filterSensitiveLog};"function"==typeof o.info&&o.info({clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand"});var i=t.requestHandler;return r.resolve((function(e){return i.handle(e.request,n||{})}),a)},t.prototype.serialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},r=JSON.stringify(nt(e,t)),[2,yt(t,n,"/",void 0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o;return H(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,We(e,t)]:[4,wt(e.body,t)];case 1:return n=a.sent(),{},r=st(n,t),o=I({$metadata:bt(e)},r),[2,Promise.resolve(o)]}}))}))}(e,t)},t}(Lt),Tt=function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this,t)||this;return r.tryNextLink=n,r}return Object(M.__extends)(t,e),t}(Error);function Pt(e){return Promise.all(Object.keys(e).reduce((function(t,n){var r=e[n];return"string"==typeof r?t.push([n,r]):t.push(r().then((function(e){return[n,e]}))),t}),[])).then((function(e){return e.reduce((function(e,t){var n=Object(M.__read)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}))}function Mt(e){var t=this;return function(){return Object(M.__awaiter)(t,void 0,void 0,(function(){var t,n,r,o,a,i,s,c,l,u,d,f,p;return Object(M.__generator)(this,(function(h){switch(h.label){case 0:return u=(l=e.client).send,d=Ct.bind,p={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,Pt(e.logins)]:[3,2];case 1:return f=h.sent(),[3,3];case 2:f=void 0,h.label=3;case 3:return[4,u.apply(l,[new(d.apply(Ct,[void 0,(p.Logins=f,p)]))])];case 4:return t=h.sent().Credentials,n=void 0===t?function(){throw new Tt("Response from Amazon Cognito contained no credentials")}():t,r=n.AccessKeyId,o=void 0===r?function(){throw new Tt("Response from Amazon Cognito contained no access key ID")}():r,a=n.Expiration,i=n.SecretKey,s=void 0===i?function(){throw new Tt("Response from Amazon Cognito contained no secret key")}():i,c=n.SessionToken,[2,{identityId:e.identityId,accessKeyId:o,secretAccessKey:s,sessionToken:c,expiration:a}]}}))}))}}var Nt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return R(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(xt(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.logger,a={logger:o,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:ue.filterSensitiveLog,outputFilterSensitiveLog:de.filterSensitiveLog};"function"==typeof o.info&&o.info({clientName:"CognitoIdentityClient",commandName:"GetIdCommand"});var i=t.requestHandler;return r.resolve((function(e){return i.handle(e.request,n||{})}),a)},t.prototype.serialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},r=JSON.stringify(rt(e,t)),[2,yt(t,n,"/",void 0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o;return H(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,$e(e,t)]:[4,wt(e.body,t)];case 1:return n=a.sent(),{},r=ct(n,t),o=I({$metadata:bt(e)},r),[2,Promise.resolve(o)]}}))}))}(e,t)},t}(Lt),Rt=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",(function(t){var n=t.get(e);return new Promise((function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}}))})).catch((function(){return null}))},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",(function(t){var n=t.delete(e);return new Promise((function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}}))}))},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",(function(n){var r=n.put({id:e,value:t});return new Promise((function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}}))}))},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}}))},e.prototype.withObjectStore=function(e,t){return this.getDb().then((function(n){var r=n.transaction("IdentityIds",e);return r.oncomplete=function(){return n.close()},new Promise((function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore("IdentityIds")))})).catch((function(e){throw n.close(),e}))}))},e}(),It=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}());function Dt(e){var t=this,n=e.accountId,r=e.cache,o=void 0===r?"object"==typeof self&&self.indexedDB?new Rt:"object"==typeof window&&window.localStorage?window.localStorage:It:r,a=e.client,i=e.customRoleArn,s=e.identityPoolId,c=e.logins,l=e.userIdentifier,u=void 0===l?c&&0!==Object.keys(c).length?void 0:"ANONYMOUS":l,d=u?"aws:cognito-identity-credentials:"+s+":"+u:void 0,f=function(){return Object(M.__awaiter)(t,void 0,void 0,(function(){var e,t,r,l,u,p,h,g,m;return Object(M.__generator)(this,(function(b){switch(b.label){case 0:return(t=d)?[4,o.getItem(d)]:[3,2];case 1:t=b.sent(),b.label=2;case 2:return(e=t)?[3,7]:(p=(u=a).send,h=Nt.bind,m={AccountId:n,IdentityPoolId:s},c?[4,Pt(c)]:[3,4]);case 3:return g=b.sent(),[3,5];case 4:g=void 0,b.label=5;case 5:return[4,p.apply(u,[new(h.apply(Nt,[void 0,(m.Logins=g,m)]))])];case 6:r=b.sent().IdentityId,l=void 0===r?function(){throw new Tt("Response from Amazon Cognito contained no identity ID")}():r,e=l,d&&Promise.resolve(o.setItem(d,e)).catch((function(){})),b.label=7;case 7:return[2,(f=Mt({client:a,customRoleArn:i,logins:c,identityId:e}))()]}}))}))};return function(){return f().catch((function(e){return Object(M.__awaiter)(t,void 0,void 0,(function(){return Object(M.__generator)(this,(function(t){throw d&&Promise.resolve(o.removeItem(d)).catch((function(){})),e}))}))}))}}var Ht=n(653),Gt=n(1180),Ft=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,zt)},zt=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};for(var Bt=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null==t?void 0:t.abortSignal,r=this.httpOptions.requestTimeout;if(null==n?void 0:n.aborted){var o=new Error("Request aborted");return o.name="AbortError",Promise.reject(o)}var a=e.path;if(e.query){var i=function(e){var t,n,r=[];try{for(var o=Object(M.__values)(Object.keys(e).sort()),a=o.next();!a.done;a=o.next()){var i=a.value,s=e[i];if(i=Ft(i),Array.isArray(s))for(var c=0,l=s.length;c>=6;var l=o/4*3;a>>=i%8;for(var u=Math.floor(i/8),d=0;d>f)}}return new Uint8Array(n)}function Qt(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var o=null!==(e=r.result)&&void 0!==e?e:"",a=o.indexOf(","),i=a>-1?a+1:o.length;t(o.substring(i))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}var Zt={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high"},Jt=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){return Object(M.__generator)(this,(function(r){return[2,e.retryStrategy.retry(t,n)]}))}))}}}(e),Zt)}}},en=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],tn=["Throttling","ThrottlingException","ThrottledException","RequestThrottledException","TooManyRequestsException","ProvisionedThroughputExceededException","TransactionInProgressException","RequestLimitExceeded","BandwidthLimitExceeded","LimitExceededException","RequestThrottled","SlowDown","PriorRequestNotComplete","EC2ThrottledException"],nn=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],rn=[500,502,503,504],on=function(e){var t;return tn.includes(e.name)||1==(null===(t=e.$retryable)||void 0===t?void 0:t.throttling)},an=n(1179),sn=function(e,t){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},cn=function(e){return!!e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return en.includes(e.name)}(e)||on(e)||function(e){var t;return nn.includes(e.name)||rn.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)}(e))},ln=function(){function e(e,t){var n,r,o,a,i,s,c,l;this.maxAttemptsProvider=e,this.retryDecider=null!==(n=null==t?void 0:t.retryDecider)&&void 0!==n?n:cn,this.delayDecider=null!==(r=null==t?void 0:t.delayDecider)&&void 0!==r?r:sn,this.retryQuota=null!==(o=null==t?void 0:t.retryQuota)&&void 0!==o?o:(i=a=500,s=a,c=function(e){return"TimeoutError"===e.name?10:5},l=function(e){return c(e)<=s},Object.freeze({hasRetryTokens:l,retrieveRetryTokens:function(e){if(!l(e))throw new Error("No retry token available");var t=c(e);return s-=t,t},releaseRetryTokens:function(e){s+=null!=e?e:1,s=Math.min(s,i)}}))}return e.prototype.shouldRetry=function(e,t,n){return t>l]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:function(){},defaultUserAgent:(fn=Ht.name,pn=Ht.version,"aws-sdk-js-v3-"+fn+"/"+pn+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")),maxAttempts:3,region:(dn="Region is missing",function(){throw new Error(dn)}),requestHandler:new Bt,sha256:Gt.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(M.__generator)(this,(function(r){switch(r.label){case 0:return[4,Qt(e)];case 1:return t=r.sent(),n=Xt(t),[2,new Uint8Array(n)]}}))}))}(e):function(e){return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,a,i,s;return Object(M.__generator)(this,(function(c){switch(c.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,c.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return o=c.sent(),a=o.done,(i=o.value)&&(s=t,(t=new Uint8Array(s.length+i.length)).set(s),t.set(i,s.length)),r=a,[3,1];case 3:return[2,t]}}))}))}(e)},urlParser:function(e){var t,n=new URL(e),r=n.hostname,o=n.pathname,a=n.port,i=n.protocol,s=n.search;return s&&(t=function(e){var t,n,r={};if(e=e.replace(/^\?/,""))try{for(var o=Object(M.__values)(e.split("&")),a=o.next();!a.done;a=o.next()){var i=a.value,s=Object(M.__read)(i.split("="),2),c=s[0],l=s[1],u=void 0===l?null:l;c=decodeURIComponent(c),u&&(u=decodeURIComponent(u)),c in r?Array.isArray(r[c])?r[c].push(u):r[c]=[r[c],u]:r[c]=u}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(s)),{hostname:r,port:a?parseInt(a):void 0,protocol:i,path:o,query:t}},utf8Decoder:hn.a,utf8Encoder:hn.b}),On=function(e){var t=e.endpoint,n=e.urlParser;if("string"==typeof t){var r=Promise.resolve(n(t));return function(){return r}}if("object"==typeof t){var o=Promise.resolve(t);return function(){return o}}return t},xn=function(e){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,a;return Object(M.__generator)(this,(function(i){switch(i.label){case 0:return t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=i.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");return[4,e.regionInfoProvider(r)];case 2:if(!(o=(null!==(a=i.sent())&&void 0!==a?a:{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,e.urlParser((n?"https:":"http:")+"//"+o)]}}))}))},En=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};var An={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware"},kn=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(M.__awaiter)(t,void 0,void 0,(function(){var t,o,a,i,s;return Object(M.__generator)(this,(function(c){return t=r.request,Ve.isInstance(t)&&(o=t.body,a=t.headers,o&&-1===Object.keys(a).map((function(e){return e.toLowerCase()})).indexOf("content-length")&&void 0!==(i=e(o))&&(t.headers=Object(M.__assign)(Object(M.__assign)({},t.headers),((s={})["content-length"]=String(i),s)))),[2,n(Object(M.__assign)(Object(M.__assign)({},r),{request:t}))]}))}))}}}(e.bodyLengthChecker),An)}}};var Sn={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"]},Ln=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var r,o;return Object(M.__generator)(this,(function(a){return Ve.isInstance(n.request)?(r=n.request,o=(e.requestHandler.metadata||{}).handlerProtocol,(void 0===o?"":o).indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),Sn)}}},jn={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize"},Cn=function(e){return{applyToStack:function(e){e.add((function(e,t){return function(n){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var r,o,a,i;return Object(M.__generator)(this,(function(s){switch(s.label){case 0:return r=t.logger,[4,e(n)];case 1:return o=s.sent(),r?(a=o.response,"function"==typeof r.info&&r.info({metadata:{statusCode:a.statusCode,requestId:null!==(i=a.headers["x-amzn-requestid"])&&void 0!==i?i:a.headers["x-amzn-request-id"],extendedRequestId:a.headers["x-amz-id-2"],cfId:a.headers["x-amz-cf-id"]}}),[2,o]):[2,o]}}))}))}}),jn)}}},Tn="X-Amz-Date".toLowerCase(),Pn=["authorization",Tn,"date"],Mn="X-Amz-Signature".toLowerCase(),Nn="X-Amz-Security-Token".toLowerCase(),Rn={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},In=/^proxy-/,Dn=/^sec-/,Hn="AWS4-HMAC-SHA256-PAYLOAD",Gn={},Fn=[];function zn(e,t,n){return e+"/"+t+"/"+n+"/aws4_request"}for(var Bn={},Un={},Vn=0;Vn<256;Vn++){var Wn=Vn.toString(16).toLowerCase();1===Wn.length&&(Wn="0"+Wn),Bn[Vn]=Wn,Un[Wn]=Vn}function $n(e){for(var t="",n=0;n-1&&delete e.headers[a]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function Zn(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var Jn=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,o=e.service,a=e.sha256,i=e.uriEscapePath,s=void 0===i||i;this.service=o,this.sha256=a,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=nr(r),this.credentialProvider=rr(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(M.__awaiter)(this,void 0,void 0,(function(){var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v,y,w,_,O,x,E;return Object(M.__generator)(this,(function(A){switch(A.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,o=t.expiresIn,a=void 0===o?3600:o,i=t.unsignableHeaders,s=t.signableHeaders,c=t.signingRegion,l=t.signingService,[4,this.credentialProvider()];case 1:return u=A.sent(),null==c?[3,2]:(f=c,[3,4]);case 2:return[4,this.regionProvider()];case 3:f=A.sent(),A.label=4;case 4:return d=f,p=er(r),h=p.longDate,g=p.shortDate,a>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(m=zn(g,d,null!=l?l:this.service),b=function(e){var t,n,r="function"==typeof e.clone?e.clone():Yn(e),o=r.headers,a=r.query,i=void 0===a?{}:a;try{for(var s=Object(M.__values)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var l=c.value;"x-amz-"===l.toLowerCase().substr(0,6)&&(i[l]=o[l],delete o[l])}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return Object(M.__assign)(Object(M.__assign)({},e),{headers:o,query:i})}(Qn(e)),u.sessionToken&&(b.query["X-Amz-Security-Token"]=u.sessionToken),b.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",b.query["X-Amz-Credential"]=u.accessKeyId+"/"+m,b.query["X-Amz-Date"]=h,b.query["X-Amz-Expires"]=a.toString(10),v=qn(b,i,s),b.query["X-Amz-SignedHeaders"]=tr(v),y=b.query,w="X-Amz-Signature",_=this.getSignature,O=[h,m,this.getSigningKey(u,d,g,l)],x=this.createCanonicalRequest,E=[b,v],[4,Kn(e,this.sha256)]);case 5:return[4,_.apply(this,O.concat([x.apply(this,E.concat([A.sent()]))]))];case 6:return y[w]=A.sent(),[2,b]}}))}))},e.prototype.sign=function(e,t){return Object(M.__awaiter)(this,void 0,void 0,(function(){return Object(M.__generator)(this,(function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,o=t.signingDate,a=void 0===o?new Date:o,i=t.priorSignature,s=t.signingRegion,c=t.signingService;return Object(M.__awaiter)(this,void 0,void 0,(function(){var e,t,o,l,u,d,f,p,h,g,m;return Object(M.__generator)(this,(function(b){switch(b.label){case 0:return null==s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=b.sent(),b.label=3;case 3:return e=t,o=er(a),l=o.shortDate,u=o.longDate,d=zn(l,e,null!=c?c:this.service),[4,Kn({headers:{},body:r},this.sha256)];case 4:return f=b.sent(),(p=new this.sha256).update(n),g=$n,[4,p.digest()];case 5:return h=g.apply(void 0,[b.sent()]),m=[Hn,u,d,i,h,f].join("\n"),[2,this.signString(m,{signingDate:a,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,a=n.signingRegion,i=n.signingService;return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n,r,s,c,l,u,d;return Object(M.__generator)(this,(function(f){switch(f.label){case 0:return[4,this.credentialProvider()];case 1:return t=f.sent(),null==a?[3,2]:(r=a,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=f.sent(),f.label=4;case 4:return n=r,s=er(o).shortDate,u=(l=this.sha256).bind,[4,this.getSigningKey(t,n,s,i)];case 5:return(c=new(u.apply(l,[void 0,f.sent()]))).update(e),d=$n,[4,c.digest()];case 6:return[2,d.apply(void 0,[f.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,a=n.signableHeaders,i=n.unsignableHeaders,s=n.signingRegion,c=n.signingService;return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n,r,l,u,d,f,p,h,g,m;return Object(M.__generator)(this,(function(b){switch(b.label){case 0:return[4,this.credentialProvider()];case 1:return t=b.sent(),null==s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=b.sent(),b.label=4;case 4:return n=r,l=Qn(e),u=er(o),d=u.longDate,f=u.shortDate,p=zn(f,n,null!=c?c:this.service),l.headers[Tn]=d,t.sessionToken&&(l.headers[Nn]=t.sessionToken),[4,Kn(l,this.sha256)];case 5:return h=b.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var o=Object(M.__values)(Object.keys(t)),a=o.next();!a.done;a=o.next()){if(e===a.value.toLowerCase())return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}("x-amz-content-sha256",l.headers)&&this.applyChecksum&&(l.headers["x-amz-content-sha256"]=h),g=qn(l,i,a),[4,this.getSignature(d,p,this.getSigningKey(t,n,f,c),this.createCanonicalRequest(l,g,h))];case 6:return m=b.sent(),l.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+p+", SignedHeaders="+tr(g)+", Signature="+m,[2,l]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,o=void 0===r?{}:r,a=[],i={},s=function(e){if(e.toLowerCase()===Mn)return"continue";a.push(e);var t=o[e];"string"==typeof t?i[e]=Ft(e)+"="+Ft(t):Array.isArray(t)&&(i[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([Ft(e)+"="+Ft(n)])}),[]).join("&"))};try{for(var c=Object(M.__values)(Object.keys(o).sort()),l=c.next();!l.done;l=c.next()){s(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a.map((function(e){return i[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+r.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Object(M.__awaiter)(this,void 0,void 0,(function(){var r,o;return Object(M.__generator)(this,(function(a){switch(a.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return o=a.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+$n(o)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return Object(M.__awaiter)(this,void 0,void 0,(function(){var o,a,i,s,c;return Object(M.__generator)(this,(function(l){switch(l.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return o=l.sent(),s=(i=this.sha256).bind,[4,n];case 2:return(a=new(s.apply(i,[void 0,l.sent()]))).update(o),c=$n,[4,a.digest()];case 3:return[2,c.apply(void 0,[l.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,o){var a=n+":"+r+":"+o+":"+t.accessKeyId+":"+t.sessionToken;if(a in Gn)return Gn[a];for(Fn.push(a);Fn.length>50;)delete Gn[Fn.shift()];return Gn[a]=new Promise((function(i,s){var c,l,u=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(u=u.then((function(n){return r=t,(o=new e(n)).update(r),o.digest();var r,o}))).catch((function(){}))};try{for(var f=Object(M.__values)([n,r,o,"aws4_request"]),p=f.next();!p.done;p=f.next()){d(p.value)}}catch(e){c={error:e}}finally{try{p&&!p.done&&(l=f.return)&&l.call(f)}finally{if(c)throw c.error}}u.then(i,(function(e){delete Gn[a],s(e)}))}))}(this.sha256,e,n,t,r||this.service)},e}(),er=function(e){var t=Zn(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},tr=function(e){return Object.keys(e).sort().join(";")},nr=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},rr=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function or(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var ar={name:"getUserAgentMiddleware",step:"build",tags:["SET_USER_AGENT","USER_AGENT"]},ir=function(e){return{applyToStack:function(t){var n;t.add((n=e,function(e){return function(t){var r=t.request;if(!Ve.isInstance(r))return e(t);var o=r.headers,a="node"===n.runtime?"user-agent":"x-amz-user-agent";return o[a]?o[a]+=" "+n.defaultUserAgent:o[a]=""+n.defaultUserAgent,n.customUserAgent&&(o[a]+=" "+n.customUserAgent),e(Object(M.__assign)(Object(M.__assign)({},t),{request:r}))}}),ar)}}},sr=function(e){function t(t){var n,r,o=this,a=function(e){if(!e.region)throw new Error("Region is missing");return Object(M.__assign)(Object(M.__assign)({},e),{region:En(e.region)})}(I(I({},_n),t)),i=function(e){var t=un(e.maxAttempts);return Object(M.__assign)(Object(M.__assign)({},e),{maxAttempts:t,retryStrategy:e.retryStrategy||new ln(t)})}(function(e){var t,n=this,r=or(e.credentials||e.credentialDefaultProvider(e)),o=e.signingEscapePath,a=void 0===o||o,i=e.systemClockOffset,s=void 0===i?e.systemClockOffset||0:i,c=e.sha256;return t=e.signer?or(e.signer):function(){return or(e.region)().then((function(t){return Object(M.__awaiter)(n,void 0,void 0,(function(){return Object(M.__generator)(this,(function(n){switch(n.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||{},t]]}}))}))})).then((function(t){var n=Object(M.__read)(t,2),o=n[0],i=n[1],s=o.signingRegion,l=void 0===s?e.signingRegion:s,u=o.signingService,d=void 0===u?e.signingName:u;return e.signingRegion=e.signingRegion||l||i,e.signingName=e.signingName||d,new Jn({credentials:r,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:a})}))},Object(M.__assign)(Object(M.__assign)({},e),{systemClockOffset:s,signingEscapePath:a,credentials:r,signer:t})}((n=a,Object(M.__assign)(Object(M.__assign)({},n),{tls:null===(r=n.tls)||void 0===r||r,endpoint:n.endpoint?On(n):function(){return xn(n)},isCustomEndpoint:!!n.endpoint}))));return(o=e.call(this,i)||this).config=i,o.middlewareStack.use(Jt(o.config)),o.middlewareStack.use(ir(o.config)),o.middlewareStack.use(kn(o.config)),o.middlewareStack.use(Ln(o.config)),o.middlewareStack.use(Cn(o.config)),o}return R(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(St),cr=function(){return(cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1](new Date).getTime()?(dr.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:o,expires_at:a})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(dr.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(dr.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,o=e.user;return b(n,[],1e4).then((function(e){return dr.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:o,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),dr.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return dr.debug("no credentials for expiration check"),!0;dr.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return lr(this,void 0,void 0,(function(){var e,t,n,r,o,a,i,s=this;return ur(this,(function(c){switch(c.label){case 0:if(dr.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return dr.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!n)return dr.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];r=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),r=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=r,[3,4];case 3:return o=c.sent(),dr.debug("Failed to get the cached identityId",o),[3,4];case 4:return a=new sr({region:n,customUserAgent:T()}),i=void 0,i=r?Mt({identityId:r,client:a})():function(){return lr(s,void 0,void 0,(function(){var e;return ur(this,(function(n){switch(n.label){case 0:return[4,a.send(new Nt({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,Mt({client:a,identityId:e})()]}}))}))}().catch((function(e){return lr(s,void 0,void 0,(function(){return ur(this,(function(t){throw e}))}))})),[2,this._loadCredentials(i,"guest",!1,null).then((function(e){return e})).catch((function(e){return lr(s,void 0,void 0,(function(){var n=this;return ur(this,(function(o){return"ResourceNotFoundException"===e.name&&e.message==="Identity '"+r+"' not found."?(dr.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+t),i=function(){return lr(n,void 0,void 0,(function(){var e;return ur(this,(function(n){switch(n.label){case 0:return[4,a.send(new Nt({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,Mt({client:a,identityId:e})()]}}))}))}().catch((function(e){return lr(n,void 0,void 0,(function(){return ur(this,(function(t){throw e}))}))})),[2,this._loadCredentials(i,"guest",!1,null)]):[2,e]}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!o)return Promise.reject("You must specify a federated provider");var a={};a[o]=n;var i=this._config,s=i.identityPoolId,c=i.region;if(!s)return dr.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!c)return dr.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var l=new sr({region:c,customUserAgent:T()}),u=void 0;r?u=Mt({identityId:r,logins:a,client:l})():u=Dt({logins:a,identityPoolId:s,client:l})();return this._loadCredentials(u,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;dr.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,o=r.region,a=r.userPoolId,i=r.identityPoolId;if(!i)return dr.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!o)return dr.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+o+".amazonaws.com/"+a]=n;var c=new sr({region:o,customUserAgent:T()}),l=lr(t,void 0,void 0,(function(){var e;return ur(this,(function(t){switch(t.label){case 0:return[4,c.send(new Nt({IdentityPoolId:i,Logins:s}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,Mt({client:c,logins:s,identityId:e})()]}}))})).catch((function(e){return lr(t,void 0,void 0,(function(){return ur(this,(function(t){throw e}))}))}));return this._loadCredentials(l,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var o=this,a=this,i=this._config.identityPoolId;return new Promise((function(s,c){e.then((function(e){return lr(o,void 0,void 0,(function(){var o,c,l,u,d,f;return ur(this,(function(p){switch(p.label){case 0:if(dr.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),a._credentials=e,a._credentials.authenticated=n,a._credentials_source=t,a._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){o=Object.assign({id:this._credentials.identityId},r.user),c=r.provider,l=r.token,u=r.expires_at,d=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:c,token:l,user:o,expires_at:u,identity_id:d}))}catch(e){dr.debug("Failed to put federated info into auth storage",e)}}if("guest"!==t)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this._storageSync];case 2:return p.sent(),this._storage.setItem("CognitoIdentityId-"+i,e.identityId),[3,4];case 3:return f=p.sent(),dr.debug("Failed to cache identityId",f),[3,4];case 4:return s(a._credentials),[2]}}))}))})).catch((function(t){if(t)return dr.debug("Failed to load credentials",e),dr.debug("Error loading credentials",t),void c(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(dr.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return lr(this,void 0,void 0,(function(){return ur(this,(function(e){return this._credentials=null,this._credentials_source=null,dr.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);P.a.register(fr);var pr=new o.a("Parser"),hr=function(e){var t,n={};if(e.aws_mobile_analytics_app_id){var r={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};n.Analytics=r}return(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(n.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in}),t=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},n.Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,e.Auth),n.Storage=Object.assign({},t),pr.debug("parse config",e,"to amplifyconfig",n),n},gr=function(){function e(){}return e.parseMobilehubConfig=hr,e}(),mr=n(358);function br(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var vr=function(){return(vr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}(),wr=Object(l.b)().isBrowser,_r=function(){function e(e){void 0===e&&(e={}),this.cookies=new yr,this.store=wr?window.localStorage:Object.create(null),this.cookies=e.req?new yr(e.req.headers.cookie):new yr,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(new Array(this.length)).map((function(t,n){return e.key(n)})).forEach((function(t){return e.removeItem(t)}))},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){switch(this.setLocalItem(e,t),e.split(".").pop()){case"LastAuthUser":case"accessToken":case"idToken":this.setUniversalItem(e,t)}},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t){this.cookies.set(e,t,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},e}();var Or=n(159),xr=n(215),Er=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},Ar=n(407),kr=n.n(Ar),Sr=n(426),Lr=n.n(Sr),jr=function(){return(jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Mr="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Nr=function(e,t,n){a.a.dispatch("auth",{event:e,data:t,message:n},"Auth",Mr)},Rr=new o.a("OAuth"),Ir=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,o=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||Er,this._config=t,this._cognitoClientId=n,!this.isValidScopes(o))throw Error("scopes must be a String Array");this._scopes=o}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))},e.prototype.oauthSignIn=function(e,t,n,o,a,i){void 0===e&&(e="code"),void 0===a&&(a=r.b.Cognito);var s=this._generateState(32),c=i?s+"-"+i.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):s;!function(e){window.sessionStorage.setItem("oauth_state",e)}(c);var l,u=this._generateRandom(128);l=u,window.sessionStorage.setItem("ouath_pkce_key",l);var d=this._generateChallenge(u),f=this._scopes.join(" "),p="https://"+t+"/oauth2/authorize?"+Object.entries(jr(jr({redirect_uri:n,response_type:e,client_id:o,identity_provider:a,scope:f,state:c},"code"===e?{code_challenge:d}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=Pr(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");Rr.debug("Redirecting to "+p),this._urlOpener(p,n)},e.prototype._handleCodeFlow=function(e){return Cr(this,void 0,void 0,(function(){var t,n,o,a,i,s,c,l,u,d,f,p;return Tr(this,(function(h){switch(h.label){case 0:return(t=(Object(xr.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Pr(t,2),o=r[0],a=r[1];return jr(jr({},e),((n={})[o]=a,n))}),{code:void 0}).code)&&Object(xr.parse)(e).pathname===Object(xr.parse)(this._config.redirectSignIn).pathname?(n="https://"+this._config.domain+"/oauth2/token",Nr("codeFlow",{},"Retrieving tokens from "+n),o=Object(r.d)(this._config)?this._cognitoClientId:this._config.clientID,a=Object(r.d)(this._config)?this._config.redirectSignIn:this._config.redirectUri,g=window.sessionStorage.getItem("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),s=jr({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:a},(i=g)?{code_verifier:i}:{}),Rr.debug("Calling token endpoint: "+n+" with",s),c=Object.entries(s).map((function(e){var t=Pr(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c})]):[2];case 1:return[4,h.sent().json()];case 2:if(l=h.sent(),u=l.access_token,d=l.refresh_token,f=l.id_token,p=l.error)throw new Error(p);return[2,{accessToken:u,refreshToken:d,idToken:f}]}var g}))}))},e.prototype._handleImplicitFlow=function(e){return Cr(this,void 0,void 0,(function(){var t,n,r;return Tr(this,(function(o){return t=(Object(xr.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Pr(t,2),o=r[0],a=r[1];return jr(jr({},e),((n={})[o]=a,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,Nr("implicitFlow",{},"Got tokens from "+e),Rr.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return Cr(this,void 0,void 0,(function(){var t,n,r,o,a,i,s;return Tr(this,(function(c){switch(c.label){case 0:if(c.trys.push([0,5,,6]),t=e?jr(jr({},(Object(xr.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Pr(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),(Object(xr.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Pr(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return o=this._validateState(t),Rr.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(a=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,jr.apply(void 0,[jr.apply(void 0,a.concat([c.sent()])),{state:o}])];case 2:return i=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,jr.apply(void 0,[jr.apply(void 0,i.concat([c.sent()])),{state:o}])];case 4:return[3,6];case 5:throw s=c.sent(),Rr.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t,n=(t=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeItem("oauth_state"),t),r=e.state;if(n&&n!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return Cr(this,void 0,void 0,(function(){var e,t,n;return Tr(this,(function(o){return e="https://"+this._config.domain+"/logout?",t=Object(r.d)(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=Object(r.d)(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=Pr(e,2);return t[0]+"="+t[1]})).join("&"),Nr("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),Rr.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(kr()(e))},e.prototype._base64URL=function(e){return e.toString(Lr.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},qr=new o.a("AuthClass"),Kr="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Yr=function(e,t,n){a.a.dispatch("auth",{event:e,data:t,message:n},"Auth",Kr)},Xr=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=fr,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?Yr("tokenRefresh",void 0,"New token retrieved"):Yr("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),a.a.listen("auth",(function(e){switch(e.payload.event){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};qr.debug("configure Auth");var n=Object.assign({},this._config,gr.parseMobilehubConfig(e).Auth,e);this._config=n;var o=this._config,a=o.userPoolId,i=o.userPoolWebClientId,s=o.cookieStorage,u=o.oauth,d=o.region,f=o.identityPoolId,p=o.mandatorySignIn,h=o.refreshHandlers,g=o.identityPoolRegion,m=o.clientMetadata,b=o.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw qr.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=s?new Or.i(s):e.ssr?new _r:(new c).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),a){var v={UserPoolId:a,ClientId:i,endpoint:b};v.Storage=this._storage,this.userPool=new Or.g(v,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:p,region:g||d,userPoolId:a,identityPoolId:f,refreshHandlers:h,storage:this._storage});var y=u?Object(r.d)(this._config.oauth)?u:u.awsCognito:void 0;if(y){var w=Object.assign({cognitoClientId:i,UserPoolId:a,domain:y.domain,scopes:y.scope,redirectSignIn:y.redirectSignIn,redirectSignOut:y.redirectSignOut,responseType:y.responseType,Storage:this._storage,urlOpener:y.urlOpener,clientMetadata:m},y.options);this._oAuthHandler=new Ir({scopes:w.scopes,config:w,cognitoClientId:w.cognitoClientId});var _={};!function(e){if(l.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!l.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;_[n]||(_[n]=!0,t._handleAuthResponse(n))}))}return Yr("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],o=1;o=0&&E.indexOf(A,k)===k))}var E,A,k;return!1}(e,t)}finally{s.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}var d="{ [native code] }";function f(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},function(e,t,n){"use strict";var r;function o(e){return!!e&&e<7}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},function(e,t,n){var r=n(55),o=n(324),a=n(376),i=n(722),s=r.Symbol,c=o("wks");e.exports=function(e){return c[e]||(c[e]=i&&s[e]||(i?s:a)("Symbol."+e))}},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return i(e)?e:B(e)}function r(e){return s(e)?e:U(e)}function o(e){return c(e)?e:V(e)}function a(e){return i(e)&&!l(e)?e:W(e)}function i(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function c(e){return!(!e||!e[p])}function l(e){return s(e)||c(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(a,n),n.isIterable=i,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g={},m={value:!1},b={value:!1};function v(e){return e.value=!1,e}function y(e){e&&(e.value=!0)}function w(){}function _(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function E(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function k(e,t){return L(e,t,0)}function S(e,t){return L(e,t,t)}function L(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j,C,T,P="function"==typeof Symbol&&Symbol.iterator,M=P||"@@iterator";function N(e){this.next=e}function R(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function I(){return{value:void 0,done:!0}}function D(e){return!!F(e)}function H(e){return e&&"function"==typeof e.next}function G(e){var t=F(e);return t&&t.call(e)}function F(e){var t=e&&(P&&e[P]||e["@@iterator"]);if("function"==typeof t)return t}function z(e){return e&&"number"==typeof e.length}function B(e){return null==e?Q():i(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new q(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function U(e){return null==e?Q().toKeyedSeq():i(e)?s(e)?e.toSeq():e.fromEntrySeq():Z(e)}function V(e){return null==e?Q():i(e)?s(e)?e.entrySeq():e.toIndexedSeq():J(e)}function W(e){return(null==e?Q():i(e)?s(e)?e.entrySeq():e:J(e)).toSetSeq()}function $(e){this._array=e,this.size=e.length}function q(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function K(e){this._iterable=e,this.size=e.length||e.size}function Y(e){this._iterator=e,this._iteratorCache=[]}function X(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function Q(){return j||(j=new $([]))}function Z(e){var t=Array.isArray(e)?new $(e).fromEntrySeq():H(e)?new Y(e).fromEntrySeq():D(e)?new K(e).fromEntrySeq():"object"==typeof e?new q(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function J(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return z(e)?new $(e):H(e)?new Y(e):D(e)?new K(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var s=o[n?a-i:i];if(!1===t(s[1],r?s[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new N((function(){var e=o[n?a-i:i];return i++>a?{value:void 0,done:!0}:R(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,V(n).map((function(r,o){return e(t,r,o,n)}))):ae(n)?t.call(o,r,U(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?V(e).map(oe).toList():ae(e)?U(e).map(oe).toMap():e}function ae(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ie(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ie(o[1],e)&&(n||ie(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!ie(t,e.get(r,g)):!ie(e.get(r,g),t))return d=!1,!1}));return d&&e.size===f}function ce(e,t){if(!(this instanceof ce))return new ce(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(C)return C;C=this}}function le(e,t){if(!e)throw new Error(t)}function ue(e,t,n){if(!(this instanceof ue))return new ue(e,t,n);if(le(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:R(e,o,n[t?r-o++:o++])}))},t(q,U),q.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},q.prototype.has=function(e){return this._object.hasOwnProperty(e)},q.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(!1===e(n[i],i,this))return a+1}return a},q.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new N((function(){var i=r[t?o-a:a];return a++>o?{value:void 0,done:!0}:R(e,i,n[i])}))},q.prototype[h]=!0,t(K,V),K.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=G(this._iterable),r=0;if(H(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},K.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=G(this._iterable);if(!H(n))return new N(I);var r=0;return new N((function(){var t=n.next();return t.done?t:R(e,r++,t.value)}))},t(Y,V),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,a=0;a=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return R(e,o,r[o++])}))},t(ce,V),ce.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ce.prototype.get=function(e,t){return this.has(e)?this._value:t},ce.prototype.includes=function(e){return ie(this._value,e)},ce.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new ce(this._value,S(t,n)-k(e,n))},ce.prototype.reverse=function(){return this},ce.prototype.indexOf=function(e){return ie(this._value,e)?0:-1},ce.prototype.lastIndexOf=function(e){return ie(this._value,e)?this.size:-1},ce.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ue.prototype.get=function(e,t){return this.has(e)?this._start+x(this,e)*this._step:t},ue.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:R(e,a++,i)}))},ue.prototype.equals=function(e){return e instanceof ue?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(de,n),t(fe,de),t(pe,de),t(he,de),de.Keyed=fe,de.Indexed=pe,de.Set=he;var ge="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function be(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>Ae?function(e){var t=Le[e];return void 0===t&&(t=ve(e),Se===ke&&(Se=0,Le={}),Se++,Le[e]=t),t}(e):ve(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Oe&&void 0!==(t=ye.get(e)))return t;if(void 0!==(t=e[Ee]))return t;if(!_e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ee]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++xe,1073741824&xe&&(xe=0),Oe)ye.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(_e)Object.defineProperty(e,Ee,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ee]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ee]=t}}return t}(e);if("function"==typeof e.toString)return ve(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ve(e){for(var t=0,n=0;n>>n),s=31&(0===n?r:r>>>n);return new Ie(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}Ne[Me]=!0,Ne.delete=Ne.remove,Ne.removeIn=Ne.deleteIn,Re.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a=tt)return function(e,t,n,r){e||(e=new w);for(var o=new Ge(e,be(n),[n,r]),a=0;a>>e)),a=this.bitmap;return 0==(a&o)?r:this.nodes[Je(a&o-1)].get(e+5,t,n,r)},Ie.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=be(r));var s=31&(0===t?n:n>>>t),c=1<=nt)return function(e,t,n,r,o){for(var a=0,i=new Array(32),s=0;0!==n;s++,n>>>=1)i[s]=1&n?t[a++]:void 0;return i[r]=o,new De(e,a+1,i)}(e,f,l,s,h);if(u&&!h&&2===f.length&&qe(f[1^d]))return f[1^d];if(u&&h&&1===f.length&&qe(h))return h;var m=e&&e===this.ownerID,b=u?h?l:l^c:l|c,v=u?h?et(f,d,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i>>e),a=this.nodes[o];return a?a.get(e+5,t,n,r):r},De.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=be(r));var s=31&(0===t?n:n>>>t),c=o===g,l=this.nodes,u=l[s];if(c&&!u)return this;var d=$e(u,e,t+5,n,r,o,a,i);if(d===u)return this;var f=this.count;if(u){if(!d&&--f0&&r<32?pt(0,r,5,null,new ct(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function at(e){return!(!e||!e[it])}t(ot,pe),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=x(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?vt(e,t).set(0,n):vt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a=v(b);return t>=wt(e._capacity)?r=gt(r,e.__ownerID,0,t,n,a):o=gt(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){vt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new ct([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-5,n))===i&&a)return this}if(a&&!o)return this;var s=mt(this,e);if(!a)for(var c=0;c>>t&31;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var i=mt(this,e);return i.array.splice(o+1),r&&(i.array[o]=r),i};var lt,ut,dt={};function ft(e,t){var n=e._origin,r=e._capacity,o=wt(r),a=e._tail;return i(e._root,e._level,0);function i(e,s,c){return 0===s?function(e,i){var s=i===o?a&&a.array:e&&e.array,c=i>n?0:n-i,l=r-i;return l>32&&(l=32),function(){if(c===l)return dt;var e=t?--l:c++;return s&&s[e]}}(e,c):function(e,o,a){var s,c=e&&e.array,l=a>n?0:n-a>>o,u=1+(r-a>>o);return u>32&&(u=32),function(){for(;;){if(s){var e=s();if(e!==dt)return e;s=null}if(l===u)return dt;var n=t?--u:l++;s=i(c&&c[n],o-5,a+(n<>>n&31,c=e&&s0){var l=e&&e.array[s],u=gt(l,t,n-5,r,o,a);return u===l?e:((i=mt(e,t)).array[s]=u,i)}return c&&e.array[s]===o?e:(y(a),i=mt(e,t),void 0===o&&s===i.array.length-1?i.array.pop():i.array[s]=o,i)}function mt(e,t){return t&&e&&t===e.ownerID?e:new ct(e?e.array.slice():[],t)}function bt(e,t){if(t>=wt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function vt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new w,o=e._origin,a=e._capacity,i=o+t,s=void 0===n?a:n<0?a+n:o+n;if(i===o&&s===a)return e;if(i>=s)return e.clear();for(var c=e._level,l=e._root,u=0;i+u<0;)l=new ct(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=5);u&&(i+=u,o+=u,s+=u,a+=u);for(var d=wt(a),f=wt(s);f>=1<d?new ct([],r):p;if(p&&f>d&&i5;m-=5){var b=d>>>m&31;g=g.array[b]=mt(g.array[b],r)}g.array[d>>>5&31]=p}if(s=f)i-=f,s-=f,c=5,l=null,h=h&&h.removeBefore(r,0,i);else if(i>o||f>>c&31;if(v!==f>>>c&31)break;v&&(u+=(1<o&&(l=l.removeBefore(r,c,i-u)),l&&fa&&(a=l.size),i(c)||(l=l.map((function(e){return re(e)}))),r.push(l)}return a>e.size&&(e=e.setSize(a)),Ze(e,t,r)}function wt(e){return e<32?0:e-1>>>5<<5}function _t(e){return null==e?Et():Ot(e)?e:Et().withMutations((function(t){var n=r(e);je(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ot(e){return Te(e)&&u(e)}function xt(e,t,n,r){var o=Object.create(_t.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Et(){return ut||(ut=xt(Ve(),ht()))}function At(e,t,n){var r,o,a=e._map,i=e._list,s=a.get(t),c=void 0!==s;if(n===g){if(!c)return e;i.size>=32&&i.size>=2*a.size?(r=(o=i.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=s===i.size-1?i.pop():i.set(s,void 0))}else if(c){if(n===i.get(s)[1])return e;r=a,o=i.set(s,[t,n])}else r=a.set(t,i.size),o=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):xt(r,o)}function kt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function St(e){this._iter=e,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function jt(e){this._iter=e,this.size=e.size}function Ct(e){var t=$t(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=qt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new N((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Tt(e,t,n){var r=$t(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,g);return a===g?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(2,o);return new N((function(){var o=a.next();if(o.done)return o;var i=o.value,s=i[0];return R(r,s,t.call(n,i[1],s,e),o)}))},r}function Pt(e,t){var n=$t(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ct(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=qt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Mt(e,t,n,r){var o=$t(e);return r&&(o.has=function(r){var o=e.get(r,g);return o!==g&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,g);return a!==g&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,s=0;return e.__iterate((function(e,a,c){if(t.call(n,e,a,c))return s++,o(e,r?a:s-1,i)}),a),s},o.__iteratorUncached=function(o,a){var i=e.__iterator(2,a),s=0;return new N((function(){for(;;){var a=i.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return R(o,r?l:s++,u,a)}}))},o}function Nt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var a=k(t,o),i=S(n,o);if(a!=a||i!=i)return Nt(e.toSeq().cacheResult(),t,n,r);var s,c=i-a;c==c&&(s=c<0?0:c);var l=$t(e);return l.size=0===s?s:e.size&&s||void 0,!r&&X(e)&&s>=0&&(l.get=function(t,n){return(t=x(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:R(t,c-1,0===t?void 0:e.value[1],e)}))},l}function Rt(e,t,n,r){var o=$t(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var s=!0,c=0;return e.__iterate((function(e,a,l){if(!s||!(s=t.call(n,e,a,l)))return c++,o(e,r?a:c-1,i)})),c},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var s=e.__iterator(2,a),c=!0,l=0;return new N((function(){var e,a,u;do{if((e=s.next()).done)return r||1===o?e:R(o,l++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&(c=t.call(n,u,a,i))}while(c);return 2===o?e:R(o,a,u,e)}))},o}function It(e,t){var n=s(e),o=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?Z(e):J(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var a=o[0];if(a===e||n&&s(a)||c(e)&&c(a))return a}var l=new $(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function Dt(e,t,n){var r=$t(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(c,l){var u=this;c.__iterate((function(o,c){return(!t||l0}function zt(e,t,r){var o=$t(e);return o.size=new $(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=r.map((function(e){return e=n(e),G(o?e.reverse():e)})),i=0,s=!1;return new N((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:R(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Bt(e,t){return X(e)?t:e.constructor(t)}function Ut(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Vt(e){return je(e.size),O(e)}function Wt(e){return s(e)?r:c(e)?o:a}function $t(e){return Object.create((s(e)?U:c(e)?V:W).prototype)}function qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):B.prototype.cacheResult.call(this)}function Kt(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):_n(e,t)},mn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;je(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):_n(t,n)},mn.prototype.pop=function(){return this.slice(1)},mn.prototype.unshift=function(){return this.push.apply(this,arguments)},mn.prototype.unshiftAll=function(e){return this.pushAll(e)},mn.prototype.shift=function(){return this.pop.apply(this,arguments)},mn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):On()},mn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=k(e,this.size);if(S(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):_n(r,o)},mn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_n(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},mn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},mn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new N((function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return{value:void 0,done:!0}}))},mn.isStack=bn;var vn,yn="@@__IMMUTABLE_STACK__@@",wn=mn.prototype;function _n(e,t,n,r){var o=Object.create(wn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function On(){return vn||(vn=_n(0))}function xn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}wn[yn]=!0,wn.withMutations=Ne.withMutations,wn.asMutable=Ne.asMutable,wn.asImmutable=Ne.asImmutable,wn.wasAltered=Ne.wasAltered,n.Iterator=N,xn(n,{toArray:function(){je(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new St(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new kt(this,!0)},toMap:function(){return Ce(this.toKeyedSeq())},toObject:function(){je(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return _t(this.toKeyedSeq())},toOrderedSet:function(){return un(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Lt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return mn(s(this)?this.valueSeq():this)},toList:function(){return ot(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Bt(this,It(this,t))},includes:function(e){return this.some((function(t){return ie(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){je(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return Bt(this,Mt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,a){if(e.call(t,r,o,a))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return je(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){je(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Bt(this,Tt(this,e,t))},reduce:function(e,t,n){var r,o;return je(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,a,i){o?(o=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Bt(this,Pt(this,!0))},slice:function(e,t){return Bt(this,Nt(this,e,t,!0))},some:function(e,t){return!this.every(Ln(e),t)},sort:function(e){return Bt(this,Ht(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Ce().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new $(e._cache);var t=e.toSeq().map(Sn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Ln(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(E)},flatMap:function(e,t){return Bt(this,function(e,t,n){var r=Wt(e);return e.toSeq().map((function(o,a){return r(t.call(n,o,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Bt(this,Dt(this,e,!0))},fromEntrySeq:function(){return new jt(this)},get:function(e,t){return this.find((function(t,n){return ie(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Yt(e);!(n=o.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,g):g)===g)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(u(e)?_t():Ce()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=Wt(e);return o.map((function(t){return Bt(e,a(t))}))}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(kn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Gt(this,e)},maxBy:function(e,t){return Gt(this,t,e)},min:function(e){return Gt(this,e?jn(e):Pn)},minBy:function(e,t){return Gt(this,t?jn(t):Pn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Bt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Bt(this,Rt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Ln(e),t)},sortBy:function(e,t){return Bt(this,Ht(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Bt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Bt(this,function(e,t,n){var r=$t(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(2,o),s=!0;return new N((function(){if(!s)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,a)?2===r?e:R(r,c,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Ln(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return function(e,t){return t=ge(t,3432918353),t=ge(t<<15|t>>>-15,461845907),t=ge(t<<13|t>>>-13,5),t=ge((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=me((t=ge(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Mn(be(e),be(t))|0}:function(e,t){r=r+Mn(be(e),be(t))|0}:t?function(e){r=31*r+be(e)|0}:function(e){r=r+be(e)|0}),r)}(this))}});var En=n.prototype;En[d]=!0,En[M]=En.values,En.__toJS=En.toArray,En.__toStringMapper=Cn,En.inspect=En.toSource=function(){return this.toString()},En.chain=En.flatMap,En.contains=En.includes,function(){try{Object.defineProperty(En,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),xn(r,{flip:function(){return Bt(this,Ct(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ie(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ie(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Bt(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Bt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var An=r.prototype;function kn(e,t){return t}function Sn(e,t){return[t,e]}function Ln(e){return function(){return!e.apply(this,arguments)}}function jn(e){return function(){return-e.apply(this,arguments)}}function Cn(e){return"string"==typeof e?JSON.stringify(e):e}function Tn(){return _(arguments)}function Pn(e,t){return et?-1:0}function Mn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return An[f]=!0,An[M]=En.entries,An.__toJS=En.toObject,An.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Cn(e)},xn(o,{toKeyedSeq:function(){return new kt(this,!1)},filter:function(e,t){return Bt(this,Mt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Bt(this,Pt(this,!1))},slice:function(e,t){return Bt(this,Nt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=k(e,e<0?this.count():this.size);var r=this.slice(0,e);return Bt(this,1===n?r:r.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Bt(this,Dt(this,e,!1))},get:function(e,t){return(e=x(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=x(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")};e.exports=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Object(c.a)(n.color)}`],t[`fontSize${Object(c.a)(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)?void 0:null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)?void 0:null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)?void 0:null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(c=e.typography)?void 0:null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=e.typography)?void 0:null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(f=null==(p=e.palette)?void 0:null==(h=p[t.color])?void 0:h.main)?f:{action:null==(g=e.palette)?void 0:null==(m=g.action)?void 0:m.active,disabled:null==(b=e.palette)?void 0:null==(v=b.action)?void 0:v.disabled,inherit:void 0}[t.color]}}),b=o.forwardRef((function(e,t){const n=Object(l.a)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:d="inherit",component:f="svg",fontSize:b="medium",htmlColor:v,inheritViewBox:y=!1,titleAccess:w,viewBox:_="0 0 24 24"}=n,O=Object(a.a)(n,g),x=Object(r.a)({},n,{color:d,component:f,fontSize:b,inheritViewBox:y,viewBox:_}),E={};y||(E.viewBox=_);const A=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${Object(c.a)(t)}`,`fontSize${Object(c.a)(n)}`]};return Object(s.a)(o,p,r)})(x);return(Object(h.jsxs)(m,Object(r.a)({as:f,className:Object(i.a)(A.root,u),ownerState:x,focusable:"false",color:v,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},E,O,{children:[o,w?Object(h.jsx)("title",{children:w}):null]})))}));b.muiName="SvgIcon";var v=b;function y(e,t){const n=(n,o)=>Object(h.jsx)(v,Object(r.a)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=v.muiName,o.memo(o.forwardRef(n))}n.d(t,"a",(function(){return y}))},function(e,t,n){"use strict";var r,o=n(74),a=n(55),i=n(62),s=n(109),c=n(325),l=n(116),u=n(143),d=n(87).f,f=n(155),p=n(288),h=n(71),g=n(376),m=a.DataView,b=m&&m.prototype,v=a.Int8Array,y=v&&v.prototype,w=a.Uint8ClampedArray,_=w&&w.prototype,O=v&&f(v),x=y&&f(y),E=Object.prototype,A=E.isPrototypeOf,k=h("toStringTag"),S=g("TYPED_ARRAY_TAG"),L=!(!a.ArrayBuffer||!m),j=L&&!!p&&"Opera"!==c(a.opera),C=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P=function(e){return i(e)&&s(T,c(e))};for(r in T)a[r]||(j=!1);if((!j||"function"!=typeof O||O===Function.prototype)&&(O=function(){throw TypeError("Incorrect invocation")},j))for(r in T)a[r]&&p(a[r],O);if((!j||!x||x===E)&&(x=O.prototype,j))for(r in T)a[r]&&p(a[r].prototype,x);if(j&&f(_)!==x&&p(_,x),o&&!s(x,k))for(r in C=!0,d(x,k,{get:function(){return i(this)?this[S]:void 0}}),T)a[r]&&l(a[r],S,r);L&&p&&f(b)!==E&&p(b,E),e.exports={NATIVE_ARRAY_BUFFER:L,NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:C&&S,aTypedArray:function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(A.call(O,e))return e}else for(var t in T)if(s(T,r)){var n=a[t];if(n&&(e===n||A.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(o){if(n)for(var r in T){var i=a[r];i&&s(i.prototype,e)&&delete i.prototype[e]}x[e]&&!n||u(x,e,n?t:j&&y[e]||t)}},exportStatic:function(e,t,n){var r,i;if(o){if(p){if(n)for(r in T)(i=a[r])&&s(i,e)&&delete i[e];if(O[e]&&!n)return;try{return u(O,e,n?t:j&&v[e]||t)}catch(e){}}for(r in T)!(i=a[r])||i[e]&&!n||u(i,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||s(T,t)},isTypedArray:P,TypedArray:O,TypedArrayPrototype:x}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(145)},function(e,t,n){"use strict";var r=n(335),o=n(229),a=(n(203),n(765),n(304),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(520)),i=n(404),s=n(492);n.d(t,"c",(function(){return r.b})),n.d(t,"b",(function(){return o.b})),n.d(t,"d",(function(){return a.a})),n.d(t,"e",(function(){return i.a})),n.d(t,"a",(function(){return s.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(48),o={width:{property:"width",scale:"sizes",transform:function(e,t){return Object(r.d)(t,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},a=Object(r.e)(o);t.a=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(48),o={space:[0,4,8,16,32,64,128,256,512]},a={gridGap:{property:"gridGap",scale:"space",defaultScale:o.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:o.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:o.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},i=Object(r.e)(a);t.a=i},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r,o=n(16),a=n(406);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,s,c={darkContrast:"#1B2632",darkRegular:Object(o.h)(.2,"#1B2632"),darkLighterRegular:Object(o.h)(.95,"#1B2632"),darkSubtle:Object(o.h)(.4,"#1B2632"),darkNonEssential:Object(o.h)(.6,"#1B2632"),darkGrey:"#5F6770",lightContrast:"#ffffff",lightRegular:Object(o.a)(.05,"#ffffff"),lightSubtle:Object(o.a)(.1,"#ffffff"),lightNonEssential:Object(o.a)(.15,"#ffffff"),lightGrey:"#D1D4D6",lightGrey2:"#D9D9D9",mediumGrey:"#8D9298",mediumContrast:"#7b7b7b",mediumRegular:Object(o.h)(.2,"#7b7b7b"),mediumSubtle:Object(o.h)(.4,"#7b7b7b"),mediumNonEssential:Object(o.h)(.6,"#7b7b7b"),positive:"#13D273",negative:"#EA6348",warning:"#FEB707",informational:"#afbdc7",brandPrimary:"#4298B5",brandSecondary:"#4298B5",brandTertiary:"#4298B5",link:"#d6b556",lightBlue:"#08A0FF",darkWhite:"#E8E9EB",lightYellow:Object(o.h)(.6,"#D6B556")},l={borders:{subtle:"1px solid ".concat(c.lightSubtle),card:"1px solid ".concat(c.lightGrey)},breakpoints:Object.keys(a.a).map((function(e){return a.a[e]})),mediaQueries:{},radii:{small:"0.375rem",circular:"50%"},colors:c,fontBases:["16px"],fontSizes:{stepUp5:"1rem",stepUp4:"1rem",stepUp3:"1rem",stepUp2:"1rem",stepUp1:"1rem",baseline:"1rem",stepDown1:"1rem",stepDown2:"1rem",stepDown3:"1rem"},lineHeights:{fit:1,tight:1.2,baseline:1.2,open:1.2},fonts:{primary:"HelveticaNeueLTPro,arial,sans-serif",secondary:"HelveticaNeueLTPro,arial,sans-serif",tertiary:"HelveticaNeueLTPro,arial,sans-serif"},letterSpacings:{open2:"0.0125rem",open1:"0.0125rem",baseline:"0.0125rem",tight1:"0.0125rem",tight2:"0.0125rem"},fontWeights:{ultra:200,thin:300,light:400,normal:500,medium:600,bold:700},shadows:{},space:["0","0.125rem","0.25rem","0.5rem","1rem","2rem","3rem","6rem"],zIndices:{max:9999,above:1}};(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(i.register(c,"colors","/__w/1255/s/packages/themes/src/core/theme.ts"),i.register(l,"theme","/__w/1255/s/packages/themes/src/core/theme.ts")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";var r=n(501);n.d(t,"a",(function(){return r.a}));var o=n(1012);n.d(t,"c",(function(){return o.a}));n(502),n(1013);var a=n(1014);n.d(t,"b",(function(){return a.a}));var i=n(476);n.d(t,"d",(function(){return i.a})),n.d(t,"e",(function(){return i.b})),n.d(t,"f",(function(){return i.c}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},,function(e,t,n){var r=n(74),o=n(716),a=n(36),i=n(220),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=i(t,!0),a(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(1832),a=n(628),i=n(1833),s=n(482),c=n(72),l=c.OrderedSet,u=c.Record,d=c.Stack,f=u({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),p=function(){t.createEmpty=function(e){return t.createWithContent(a.createFromText(""),e)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:d(),redoStack:d(),decorator:n||null,selection:s.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=function(e){for(var t=1;t0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r0)return o.getInlineStyleAt(r-1);return b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return h(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=i.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=e.getSelection(),c=e.getCurrentContent(),l=e.getUndoStack(),u=n;s!==c.getSelectionAfter()||m(e,r)?(l=l.push(c),u=u.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",c.getSelectionBefore()));var f=e.getInlineStyleOverride(),p=["adjust-depth","change-block-type","split-block"];-1===p.indexOf(r)&&(f=null);var h={currentContent:u,directionMap:a,undoStack:l,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=i.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=i.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function h(e,t,n){return p.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function m(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}e.exports=p},function(e,t,n){"use strict";var r=n(61);n(159);t.a=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(48),o={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};o.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},o.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},o.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},o.borderBottomColor={property:"borderBottomColor",scale:"colors"},o.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},o.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},o.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},o.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},o.borderLeftColor={property:"borderLeftColor",scale:"colors"},o.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},o.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},o.borderRightColor={property:"borderRightColor",scale:"colors"},o.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var a=Object(r.e)(o);t.b=a},function(e,t,n){"use strict";e.exports=n(1809)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;!function(e){e.Successful="SUCCESSFUL",e.Failed="FAILED",e.InProgress="IN_PROGRESS"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;!function(e){e.OAuthAccessToken="accessToken",e.AWSCredentials="creds",e.FederatedIdentity="aws-amplify-federatedInfo",e.LastActiveTimestamp="lat",e.LoginPersona="loginPersona",e.ClientAccessId="clientAccessId",e.IsOnboarding="isOnboarding",e.Version="version",e.AmplifyAuthState="amplify-authenticator-authState",e.EnvOverride="env-override"}(r||(r={}))},function(e,t,n){"use strict";(function(e){var r;n.d(t,"e",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return f})),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i="999px",s=1,c=1.5,l=2,u="1rem",d="1.5rem",f="0.25rem";(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(i,"MAX_BORDER_RADIUS","/__w/1255/s/packages/ui/src/buttons/constants.ts"),o.register(s,"SMALL_BUTTON_MULTIPLIER","/__w/1255/s/packages/ui/src/buttons/constants.ts"),o.register(c,"MEDIUM_BUTTON_MULTIPLIER","/__w/1255/s/packages/ui/src/buttons/constants.ts"),o.register(l,"LARGE_BUTTON_MULTIPLIER","/__w/1255/s/packages/ui/src/buttons/constants.ts"),o.register(u,"ICON_SMALL_SIZE","/__w/1255/s/packages/ui/src/buttons/constants.ts"),o.register(d,"ICON_LARGE_SIZE","/__w/1255/s/packages/ui/src/buttons/constants.ts"),o.register(f,"ICON_TEXT_MARGIN","/__w/1255/s/packages/ui/src/buttons/constants.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,n(4)(e))},function(e,t,n){var r=n(123);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return h}));var r,o=n(23);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function f(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){f(a,r,o,i,s,"next",e)}function s(e){f(a,r,o,i,s,"throw",e)}i(void 0)}))}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2];return t in e||n},_=function(e){var t=e.mutation,n=e.cachedQuery,r=e.updateStore,o=e.cachedQueryVariables,u=void 0===o?{}:o,d=Object(c.a)(),f=Object(i.useCallback)((function(e,t){if(t.data){var o=e.readQuery({query:n,variables:b(b({},Object(s.d)()),u)});if(o){var i=a()(o),c=r(i,t.data,e);d.writeQuery({query:n,variables:b(b({},Object(s.d)()),u),data:c})}}}),[n,r,d,u]);return Object(l.a)(t,Object(s.a)(d,f))};y(_,"useApolloClient{client}\nuseCallback{update}\nuseMutation{}",(function(){return[c.a,l.a]}));var O=function(e){var t=e.mutation,n=e.useQueryData,r=e.cachedQuery,o=e.getVariables,a=e.getOptimisticResponse,c=e.updateStore,l=n().data,u=h(_({mutation:t,cachedQuery:r,updateStore:c}),2),f=u[0],g=u[1];return[Object(i.useCallback)(function(){var e=p(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return");case 2:return w(l,"id")&&w(t,"id",!0)&&(t.id=l.id),n=o(t),r=a?a(b(b({},l),t)):void 0,e.abrupt("return",f({variables:b(b({},Object(s.d)()),n),optimisticResponse:r}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[l,f,o,a]),g]};y(O,"useQueryData{{ data }}\nuseCacheUpdatingMutation{[action, result]}\nuseCallback{mutate}",(function(){return[_]}));var x=function(e){var t=e.mutation,n=e.cachedQuery,r=e.getVariables,o=e.getOptimisticResponse,a=e.updateStore,c=e.cachedQueryVariables,l=h(_({mutation:t,cachedQuery:n,updateStore:a,cachedQueryVariables:c}),2),u=l[0],f=l[1];return[Object(i.useCallback)(function(){var e=p(d().mark((function e(t){var n,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(t),a=o?o(t):void 0,e.abrupt("return",u({variables:b(b({},Object(s.d)()),n),optimisticResponse:a}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[u,r,o]),f]};y(x,"useCacheUpdatingMutation{[action, result]}\nuseCallback{mutate}",(function(){return[_]}));var E,A,k=function(e){var t=e.mutation,n=e.getVariables,r=h(Object(l.a)(t),2),o=r[0],a=r[1];return[Object(i.useCallback)((function(e){var t=n(e);return o({variables:b(b({},Object(s.d)()),t)})}),[n,o]),a]};y(k,"useMutation{[action, result]}\nuseCallback{mutate}",(function(){return[l.a]})),(E="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(E.register(w,"hasProp","/__w/1255/s/packages/cx/src/utils/mutations.ts"),E.register(_,"useCacheUpdatingMutation","/__w/1255/s/packages/cx/src/utils/mutations.ts"),E.register(O,"usePartialMutation","/__w/1255/s/packages/cx/src/utils/mutations.ts"),E.register(x,"useAtomicMutation","/__w/1255/s/packages/cx/src/utils/mutations.ts"),E.register(k,"useSimpleMutation","/__w/1255/s/packages/cx/src/utils/mutations.ts")),(A="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&A(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i=function(e){return{m:e.m,ml:e.ml,mr:e.mr,mt:e.mt,mb:e.mb,mx:e.mx,my:e.my,margin:e.margin,marginLeft:e.marginLeft,marginRight:e.marginRight,marginBottom:e.marginBottom,marginTop:e.marginTop}},s=function(e){return{m:e.m,mb:e.mb,ml:e.ml,mr:e.mr,mt:e.mt,mx:e.mx,my:e.my,margin:e.margin,marginX:e.marginX,marginY:e.marginY,marginLeft:e.marginLeft,marginRight:e.marginRight,marginBottom:e.marginBottom,marginTop:e.marginTop,p:e.p,pb:e.pb,pl:e.pl,pr:e.pr,pt:e.pt,px:e.px,py:e.py,padding:e.padding,paddingX:e.paddingX,paddingY:e.paddingY,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight,paddingBottom:e.paddingBottom,paddingTop:e.paddingTop}};(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(i,"useMarginProps","/__w/1255/s/packages/cx-guide/src/components/hooks.tsx"),o.register(s,"useSpaceProps","/__w/1255/s/packages/cx-guide/src/components/hooks.tsx")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,n(4)(e))},,function(e,t,n){var r=n(720),o=n(55),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){"use strict";var r=n(475);n.d(t,"e",(function(){return r.a}));var o=n(985);n.d(t,"f",(function(){return o.a}));var a=n(409);n.d(t,"b",(function(){return a.a}));var i=n(986);n.d(t,"a",(function(){return i.a}));var s=n(336);n.d(t,"g",(function(){return s.a}));n(987);var c=n(988);n.d(t,"c",(function(){return c.a}));var l=n(496);n.d(t,"d",(function(){return l.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=i(e),l=1;l=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c}));n(3),n(5),n(370),n(238);const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function a(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const e=a.breakpoints||o;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=a.breakpoints||o;return Object.keys(t).reduce((o,a)=>{if(-1!==Object.keys(e.values||r).indexOf(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}return o},{})}return n(t)}function i(e={}){var t;return(null==e?void 0:null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function s(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function c({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):(t[n]=null!=e[n]?e[n]:e[a]||e,a=n),t),{})}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(59);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var i;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{i=n(1650).Buffer}catch(e){}function s(e,t,n){for(var r=0,o=Math.min(e.length,n),a=t;a=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return r}function c(e,t,n,r){for(var o=0,a=Math.min(e.length,n),i=t;i=49?s-49+10:s>=17?s-17+10:s}return o}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===t?this._parseHex(e,o):this._parseBase(e,t,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o=0;o-=3)i=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[a]|=i<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(o=0,a=0;o>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)o=s(e,n,n+6),this.words[r]|=o<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(o=s(e,t,n+6),this.words[r]|=o<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var a=e.length-n,i=a%r,s=Math.min(a,a-i)+n,l=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],a=0|t.words[0],i=o*a,s=67108863&i,c=i/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&c,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var h=l-p|0;u+=(i=(o=0|e.words[h])*(a=0|t.words[p])+d)/67108864|0,d=67108863&i}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var o=0,a=0,i=0;i>>24-o&16777215)||i!==this.length-1?l[6-c.length]+c+n:c+n,(o+=2)>=26&&(o-=26,i--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],p=d[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?g+n:l[f-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),a=n||Math.max(1,o);r(o<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var i,s,c="le"===t,l=new e(a),u=this.clone();if(c){for(s=0;!u.isZero();s++)i=u.andln(255),u.iushrn(8),l[s]=i;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>>26;for(;0!==o&&a>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==a&&i>26,this.words[i]=67108863&t;if(0===a&&i>>13,p=0|i[1],h=8191&p,g=p>>>13,m=0|i[2],b=8191&m,v=m>>>13,y=0|i[3],w=8191&y,_=y>>>13,O=0|i[4],x=8191&O,E=O>>>13,A=0|i[5],k=8191&A,S=A>>>13,L=0|i[6],j=8191&L,C=L>>>13,T=0|i[7],P=8191&T,M=T>>>13,N=0|i[8],R=8191&N,I=N>>>13,D=0|i[9],H=8191&D,G=D>>>13,F=0|s[0],z=8191&F,B=F>>>13,U=0|s[1],V=8191&U,W=U>>>13,$=0|s[2],q=8191&$,K=$>>>13,Y=0|s[3],X=8191&Y,Q=Y>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,oe=0|s[6],ae=8191&oe,ie=oe>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,pe=0|s[9],he=8191&pe,ge=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(d,z))|0)+((8191&(o=(o=Math.imul(d,B))+Math.imul(f,z)|0))<<13)|0;l=((a=Math.imul(f,B))+(o>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,z),o=(o=Math.imul(h,B))+Math.imul(g,z)|0,a=Math.imul(g,B);var be=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(o=(o=o+Math.imul(d,W)|0)+Math.imul(f,V)|0))<<13)|0;l=((a=a+Math.imul(f,W)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,z),o=(o=Math.imul(b,B))+Math.imul(v,z)|0,a=Math.imul(v,B),r=r+Math.imul(h,V)|0,o=(o=o+Math.imul(h,W)|0)+Math.imul(g,V)|0,a=a+Math.imul(g,W)|0;var ve=(l+(r=r+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,K)|0)+Math.imul(f,q)|0))<<13)|0;l=((a=a+Math.imul(f,K)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,z),o=(o=Math.imul(w,B))+Math.imul(_,z)|0,a=Math.imul(_,B),r=r+Math.imul(b,V)|0,o=(o=o+Math.imul(b,W)|0)+Math.imul(v,V)|0,a=a+Math.imul(v,W)|0,r=r+Math.imul(h,q)|0,o=(o=o+Math.imul(h,K)|0)+Math.imul(g,q)|0,a=a+Math.imul(g,K)|0;var ye=(l+(r=r+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(f,X)|0))<<13)|0;l=((a=a+Math.imul(f,Q)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(x,z),o=(o=Math.imul(x,B))+Math.imul(E,z)|0,a=Math.imul(E,B),r=r+Math.imul(w,V)|0,o=(o=o+Math.imul(w,W)|0)+Math.imul(_,V)|0,a=a+Math.imul(_,W)|0,r=r+Math.imul(b,q)|0,o=(o=o+Math.imul(b,K)|0)+Math.imul(v,q)|0,a=a+Math.imul(v,K)|0,r=r+Math.imul(h,X)|0,o=(o=o+Math.imul(h,Q)|0)+Math.imul(g,X)|0,a=a+Math.imul(g,Q)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(o=(o=o+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((a=a+Math.imul(f,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(k,z),o=(o=Math.imul(k,B))+Math.imul(S,z)|0,a=Math.imul(S,B),r=r+Math.imul(x,V)|0,o=(o=o+Math.imul(x,W)|0)+Math.imul(E,V)|0,a=a+Math.imul(E,W)|0,r=r+Math.imul(w,q)|0,o=(o=o+Math.imul(w,K)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,K)|0,r=r+Math.imul(b,X)|0,o=(o=o+Math.imul(b,Q)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,Q)|0,r=r+Math.imul(h,J)|0,o=(o=o+Math.imul(h,ee)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,ee)|0;var _e=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(o=(o=o+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,re)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,z),o=(o=Math.imul(j,B))+Math.imul(C,z)|0,a=Math.imul(C,B),r=r+Math.imul(k,V)|0,o=(o=o+Math.imul(k,W)|0)+Math.imul(S,V)|0,a=a+Math.imul(S,W)|0,r=r+Math.imul(x,q)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(E,q)|0,a=a+Math.imul(E,K)|0,r=r+Math.imul(w,X)|0,o=(o=o+Math.imul(w,Q)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,Q)|0,r=r+Math.imul(b,J)|0,o=(o=o+Math.imul(b,ee)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(h,ne)|0,o=(o=o+Math.imul(h,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var Oe=(l+(r=r+Math.imul(d,ae)|0)|0)+((8191&(o=(o=o+Math.imul(d,ie)|0)+Math.imul(f,ae)|0))<<13)|0;l=((a=a+Math.imul(f,ie)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(P,z),o=(o=Math.imul(P,B))+Math.imul(M,z)|0,a=Math.imul(M,B),r=r+Math.imul(j,V)|0,o=(o=o+Math.imul(j,W)|0)+Math.imul(C,V)|0,a=a+Math.imul(C,W)|0,r=r+Math.imul(k,q)|0,o=(o=o+Math.imul(k,K)|0)+Math.imul(S,q)|0,a=a+Math.imul(S,K)|0,r=r+Math.imul(x,X)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(E,X)|0,a=a+Math.imul(E,Q)|0,r=r+Math.imul(w,J)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(b,ne)|0,o=(o=o+Math.imul(b,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(h,ae)|0,o=(o=o+Math.imul(h,ie)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,ie)|0;var xe=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(o=(o=o+Math.imul(d,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,le)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,z),o=(o=Math.imul(R,B))+Math.imul(I,z)|0,a=Math.imul(I,B),r=r+Math.imul(P,V)|0,o=(o=o+Math.imul(P,W)|0)+Math.imul(M,V)|0,a=a+Math.imul(M,W)|0,r=r+Math.imul(j,q)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,K)|0,r=r+Math.imul(k,X)|0,o=(o=o+Math.imul(k,Q)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,Q)|0,r=r+Math.imul(x,J)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(E,J)|0,a=a+Math.imul(E,ee)|0,r=r+Math.imul(w,ne)|0,o=(o=o+Math.imul(w,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(b,ae)|0,o=(o=o+Math.imul(b,ie)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,ie)|0,r=r+Math.imul(h,ce)|0,o=(o=o+Math.imul(h,le)|0)+Math.imul(g,ce)|0,a=a+Math.imul(g,le)|0;var Ee=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(o=(o=o+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((a=a+Math.imul(f,fe)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(H,z),o=(o=Math.imul(H,B))+Math.imul(G,z)|0,a=Math.imul(G,B),r=r+Math.imul(R,V)|0,o=(o=o+Math.imul(R,W)|0)+Math.imul(I,V)|0,a=a+Math.imul(I,W)|0,r=r+Math.imul(P,q)|0,o=(o=o+Math.imul(P,K)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,K)|0,r=r+Math.imul(j,X)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(C,X)|0,a=a+Math.imul(C,Q)|0,r=r+Math.imul(k,J)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(x,ne)|0,o=(o=o+Math.imul(x,re)|0)+Math.imul(E,ne)|0,a=a+Math.imul(E,re)|0,r=r+Math.imul(w,ae)|0,o=(o=o+Math.imul(w,ie)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,ie)|0,r=r+Math.imul(b,ce)|0,o=(o=o+Math.imul(b,le)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,le)|0,r=r+Math.imul(h,de)|0,o=(o=o+Math.imul(h,fe)|0)+Math.imul(g,de)|0,a=a+Math.imul(g,fe)|0;var Ae=(l+(r=r+Math.imul(d,he)|0)|0)+((8191&(o=(o=o+Math.imul(d,ge)|0)+Math.imul(f,he)|0))<<13)|0;l=((a=a+Math.imul(f,ge)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(H,V),o=(o=Math.imul(H,W))+Math.imul(G,V)|0,a=Math.imul(G,W),r=r+Math.imul(R,q)|0,o=(o=o+Math.imul(R,K)|0)+Math.imul(I,q)|0,a=a+Math.imul(I,K)|0,r=r+Math.imul(P,X)|0,o=(o=o+Math.imul(P,Q)|0)+Math.imul(M,X)|0,a=a+Math.imul(M,Q)|0,r=r+Math.imul(j,J)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(k,ne)|0,o=(o=o+Math.imul(k,re)|0)+Math.imul(S,ne)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(x,ae)|0,o=(o=o+Math.imul(x,ie)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,ie)|0,r=r+Math.imul(w,ce)|0,o=(o=o+Math.imul(w,le)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(b,de)|0,o=(o=o+Math.imul(b,fe)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,fe)|0;var ke=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(o=(o=o+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;l=((a=a+Math.imul(g,ge)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(H,q),o=(o=Math.imul(H,K))+Math.imul(G,q)|0,a=Math.imul(G,K),r=r+Math.imul(R,X)|0,o=(o=o+Math.imul(R,Q)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,Q)|0,r=r+Math.imul(P,J)|0,o=(o=o+Math.imul(P,ee)|0)+Math.imul(M,J)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(k,ae)|0,o=(o=o+Math.imul(k,ie)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,ie)|0,r=r+Math.imul(x,ce)|0,o=(o=o+Math.imul(x,le)|0)+Math.imul(E,ce)|0,a=a+Math.imul(E,le)|0,r=r+Math.imul(w,de)|0,o=(o=o+Math.imul(w,fe)|0)+Math.imul(_,de)|0,a=a+Math.imul(_,fe)|0;var Se=(l+(r=r+Math.imul(b,he)|0)|0)+((8191&(o=(o=o+Math.imul(b,ge)|0)+Math.imul(v,he)|0))<<13)|0;l=((a=a+Math.imul(v,ge)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(H,X),o=(o=Math.imul(H,Q))+Math.imul(G,X)|0,a=Math.imul(G,Q),r=r+Math.imul(R,J)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(I,J)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(P,ne)|0,o=(o=o+Math.imul(P,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(j,ae)|0,o=(o=o+Math.imul(j,ie)|0)+Math.imul(C,ae)|0,a=a+Math.imul(C,ie)|0,r=r+Math.imul(k,ce)|0,o=(o=o+Math.imul(k,le)|0)+Math.imul(S,ce)|0,a=a+Math.imul(S,le)|0,r=r+Math.imul(x,de)|0,o=(o=o+Math.imul(x,fe)|0)+Math.imul(E,de)|0,a=a+Math.imul(E,fe)|0;var Le=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(o=(o=o+Math.imul(w,ge)|0)+Math.imul(_,he)|0))<<13)|0;l=((a=a+Math.imul(_,ge)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(H,J),o=(o=Math.imul(H,ee))+Math.imul(G,J)|0,a=Math.imul(G,ee),r=r+Math.imul(R,ne)|0,o=(o=o+Math.imul(R,re)|0)+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul(P,ae)|0,o=(o=o+Math.imul(P,ie)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,ie)|0,r=r+Math.imul(j,ce)|0,o=(o=o+Math.imul(j,le)|0)+Math.imul(C,ce)|0,a=a+Math.imul(C,le)|0,r=r+Math.imul(k,de)|0,o=(o=o+Math.imul(k,fe)|0)+Math.imul(S,de)|0,a=a+Math.imul(S,fe)|0;var je=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(o=(o=o+Math.imul(x,ge)|0)+Math.imul(E,he)|0))<<13)|0;l=((a=a+Math.imul(E,ge)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(H,ne),o=(o=Math.imul(H,re))+Math.imul(G,ne)|0,a=Math.imul(G,re),r=r+Math.imul(R,ae)|0,o=(o=o+Math.imul(R,ie)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,ie)|0,r=r+Math.imul(P,ce)|0,o=(o=o+Math.imul(P,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(j,de)|0,o=(o=o+Math.imul(j,fe)|0)+Math.imul(C,de)|0,a=a+Math.imul(C,fe)|0;var Ce=(l+(r=r+Math.imul(k,he)|0)|0)+((8191&(o=(o=o+Math.imul(k,ge)|0)+Math.imul(S,he)|0))<<13)|0;l=((a=a+Math.imul(S,ge)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(H,ae),o=(o=Math.imul(H,ie))+Math.imul(G,ae)|0,a=Math.imul(G,ie),r=r+Math.imul(R,ce)|0,o=(o=o+Math.imul(R,le)|0)+Math.imul(I,ce)|0,a=a+Math.imul(I,le)|0,r=r+Math.imul(P,de)|0,o=(o=o+Math.imul(P,fe)|0)+Math.imul(M,de)|0,a=a+Math.imul(M,fe)|0;var Te=(l+(r=r+Math.imul(j,he)|0)|0)+((8191&(o=(o=o+Math.imul(j,ge)|0)+Math.imul(C,he)|0))<<13)|0;l=((a=a+Math.imul(C,ge)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(H,ce),o=(o=Math.imul(H,le))+Math.imul(G,ce)|0,a=Math.imul(G,le),r=r+Math.imul(R,de)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,fe)|0;var Pe=(l+(r=r+Math.imul(P,he)|0)|0)+((8191&(o=(o=o+Math.imul(P,ge)|0)+Math.imul(M,he)|0))<<13)|0;l=((a=a+Math.imul(M,ge)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(H,de),o=(o=Math.imul(H,fe))+Math.imul(G,de)|0,a=Math.imul(G,fe);var Me=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(o=(o=o+Math.imul(R,ge)|0)+Math.imul(I,he)|0))<<13)|0;l=((a=a+Math.imul(I,ge)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Ne=(l+(r=Math.imul(H,he))|0)+((8191&(o=(o=Math.imul(H,ge))+Math.imul(G,he)|0))<<13)|0;return l=((a=Math.imul(G,ge))+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=me,c[1]=be,c[2]=ve,c[3]=ye,c[4]=we,c[5]=_e,c[6]=Oe,c[7]=xe,c[8]=Ee,c[9]=Ae,c[10]=ke,c[11]=Se,c[12]=Le,c[13]=je,c[14]=Ce,c[15]=Te,c[16]=Pe,c[17]=Me,c[18]=Ne,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,a=0;a>>26)|0)>>>26,i&=67108863}n.words[a]=s,r=i,i=o}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,o,a){for(var i=0;i>>=1)o++;return 1<>>=13,n[2*i+1]=8191&a,a>>>=13;for(i=2*t;i>=26,t+=o/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>o}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,o=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var i=0;for(t=0;t>>26-n}i&&(this.words[t]=i,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t=0),o=t?(t-t%26)/26:0;var a=e%26,i=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<i)for(this.length-=i,l=0;l=0&&(0!==u||l>=o);l--){var d=0|this.words[l];this.words[l]=u<<26-a|d>>>a,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[o+n]=67108863&a}for(;o>26,this.words[o+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,o=0;o>26,this.words[o]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,i=0|o.words[o.length-1];0!==(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var s,c=r.length-o.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/i|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:o,mod:i}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:s.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,i,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),a=n.cmp(r);return a<0||1===o&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(t*n+(0|this.words[o]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*t;this.words[n]=o/e|0,t=o%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new a(1),i=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;0==(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||i.isOdd())&&(o.iadd(u),i.isub(d)),o.iushrn(1),i.iushrn(1);for(var h=0,g=1;0==(n.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s),i.isub(c)):(n.isub(t),s.isub(o),c.isub(i))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,i=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);for(var d=0,f=1;0==(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s)):(n.isub(t),s.isub(i))}return(o=0===t.cmpn(1)?i:s).cmpn(0)<0&&o.iadd(e),o},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var a=t;t=n,n=a}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<>>26,s&=67108863,this.words[i]=s}return 0!==a&&(this.words[i]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){ro&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new O(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},o(v,b),v.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,o=a}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},O.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),i=0;!o.isZero()&&0===o.andln(1);)i++,o.iushrn(1);r(!o.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,o),f=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),h=i;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==i?(i<<=1,i|=d,(4===++s||0===r&&0===u)&&(o=this.mul(o,n[i]),s=0,i=0)):s=0}c=26}return o},O.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new x(e)},o(x,O),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(333)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r;n(23);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i=function(){return"production"};(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&o.register(i,"getEnvironment","/__w/1255/s/packages/cx/src/utils/environment.ts"),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c}));var r,o=n(17);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var a=new Map;function i(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function s(e){var t,n,i=a.get(e);if(i)return i;__DEV__?Object(o.b)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):Object(o.b)(!!e&&!!e.kind,30);for(var s=[],c=[],l=[],u=[],d=0,f=e.definitions;d{e()},o=e=>{e()};const a=o=>{t?e.push(o):Object(r.o)(()=>{n(o)})},i=()=>{const t=e;e=[],t.length&&Object(r.o)(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(48),o={fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0},a=Object(r.e)(o);t.a=a},function(e,t,n){"use strict";var r=n(13),o=n(3),a=n(0),i=(n(5),n(106)),s=n(130),c=n(1944),l=n(370),u=n(8),d=n(25),f=n(2);const p=["component","direction","spacing","divider","children"];function h(e,t){const n=a.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o[t.root]})(({ownerState:e,theme:t})=>{let n=Object(o.a)({display:"flex"},Object(i.b)({theme:t},Object(i.d)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=Object(s.a)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(null==e.spacing[n]&&null==e.direction[n]||(t[n]=!0),t),{}),a=Object(i.d)({values:e.direction,base:o}),c=Object(i.d)({values:e.spacing,base:o}),u=(t,n)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Object(s.d)(r,t)}};var o};n=Object(l.a)(n,Object(i.b)({theme:t},c,u))}return n}),m=a.forwardRef((function(e,t){const n=Object(d.a)({props:e,name:"MuiStack"}),a=Object(c.a)(n),{component:i="div",direction:s="column",spacing:l=0,divider:u,children:m}=a,b=Object(r.a)(a,p),v={direction:s,spacing:l};return Object(f.jsx)(g,Object(o.a)({as:i,ownerState:v,ref:t},b,{children:u?h(m,u):m}))}));t.a=m},function(e,t,n){var r=n(74),o=n(87),a=n(244);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(36),o=n(59),a=n(71)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||null==(n=r(i)[a])?t:o(n)}},function(e,t,n){"use strict";var r=n(405);n.d(t,"d",(function(){return r.a}));var o=n(469);n.d(t,"e",(function(){return o.c})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b}));var a=n(261);n.d(t,"a",(function(){return a.b}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";n(989);var r=n(990),o=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(991)),a=n(992),i=n(993),s=n(994),c=n(995),l=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(337)),u=n(997),d=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(410),n(497),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(998)),f=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1004)),p=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(498)),h=n(1007),g=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1008));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;n.d(t,"h",(function(){return r.a})),n.d(t,"f",(function(){return o.a})),n.d(t,"e",(function(){return a.a})),n.d(t,"d",(function(){return i.a})),n.d(t,"c",(function(){return s.a})),n.d(t,"g",(function(){return c.a})),n.d(t,"i",(function(){return l.a})),n.d(t,"l",(function(){return u.a})),n.d(t,"b",(function(){return d.a})),n.d(t,"m",(function(){return f.a})),n.d(t,"a",(function(){return p.a})),n.d(t,"j",(function(){return h.a})),n.d(t,"k",(function(){return g.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";(function(e){var r,o,a=n(0),i=n(11),s=n(1),c=n.n(s),l=n(6),u=["children","className","color","fontFamily","fontSize","fontWeight","textAlign","textTransform","letterSpacing","lineHeight","wordBreak","flow","ref","textStyle"];function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var p,h,g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},m=Object(l.c)({prop:"flow",variants:{wrap:{wordWrap:"break-word",wordBreak:"break-word"},nowrap:{whiteSpace:"nowrap"},truncate:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}}}),b=c()(i.Text)(r||(p=["\n text-transform: ",";\n word-break: ",";\n ","\n ",";\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),(function(e){return e.textTransform}),(function(e){return e.wordBreak}),m,(function(e){var t=e.theme;return Object(l.c)({prop:"textStyle",variants:t.textStyles})})),v=function(e){var t=e.children,n=e.className,r=e.color,o=void 0===r?"darkRegular":r,i=e.fontFamily,c=void 0===i?"primary":i,l=e.fontSize,p=void 0===l?"baseline":l,h=e.fontWeight,g=void 0===h?"normal":h,m=e.textAlign,v=void 0===m?"left":m,y=e.textTransform,w=void 0===y?"none":y,_=e.letterSpacing,O=void 0===_?"baseline":_,x=e.lineHeight,E=void 0===x?"baseline":x,A=e.wordBreak,k=void 0===A?"normal":A,S=e.flow,L=(e.ref,e.textStyle),j=f(e,u),C=Object(a.useContext)(s.ThemeContext);return a.createElement(b,d({flow:S,fontFamily:c,fontSize:p,fontWeight:C.fontWeights[g],color:o,className:n,letterSpacing:O,lineHeight:E,textAlign:v,textStyle:L,textTransform:w,wordBreak:k},j),t)};g(v,"useContext{theme: ITheme}");var y,w,_=v;t.a=_,(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(y.register(m,"flowStyleVariants","/__w/1255/s/packages/ui/src/typography/typography.tsx"),y.register(b,"FluidTypography","/__w/1255/s/packages/ui/src/typography/typography.tsx"),y.register(v,"Typography","/__w/1255/s/packages/ui/src/typography/typography.tsx"),y.register(_,"default","/__w/1255/s/packages/ui/src/typography/typography.tsx")),(w="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&w(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(13),o=n(3),a=n(558),i=n(0),s=(n(5),n(12)),c=n(371),l=n(683),u=n(1947),d=n(1950),f=n(436),p=n(2);const h=["onChange","maxRows","minRows","style","value"];function g(e,t){return parseInt(e[t],10)||0}const m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var b=i.forwardRef((function(e,t){const{onChange:n,maxRows:a,minRows:s=1,style:c,value:b}=e,v=Object(r.a)(e,h),{current:y}=i.useRef(null!=b),w=i.useRef(null),_=Object(l.a)(t,w),O=i.useRef(null),x=i.useRef(0),[E,A]=i.useState({}),k=i.useCallback(()=>{const t=w.current,n=Object(u.a)(t).getComputedStyle(t);if("0px"===n.width)return;const r=O.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n["box-sizing"],i=g(n,"padding-bottom")+g(n,"padding-top"),c=g(n,"border-bottom-width")+g(n,"border-top-width"),l=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=l;s&&(f=Math.max(Number(s)*d,f)),a&&(f=Math.min(Number(a)*d,f)),f=Math.max(f,d);const p=f+("border-box"===o?i+c:0),h=Math.abs(f-l)<=1;A(e=>x.current<20&&(p>0&&Math.abs((e.outerHeightStyle||0)-p)>1||e.overflow!==h)?(x.current+=1,{overflow:h,outerHeightStyle:p}):e)},[a,s,e.placeholder]);i.useEffect(()=>{const e=Object(d.a)(()=>{x.current=0,k()}),t=Object(u.a)(w.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(w.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}},[k]),Object(f.a)(()=>{k()}),i.useEffect(()=>{x.current=0},[b]);return Object(p.jsxs)(i.Fragment,{children:[Object(p.jsx)("textarea",Object(o.a)({value:b,onChange:e=>{x.current=0,y||k(),n&&n(e)},ref:_,rows:s,style:Object(o.a)({height:E.outerHeightStyle,overflow:E.overflow?"hidden":null},c)},v)),Object(p.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:O,tabIndex:-1,style:Object(o.a)({},m,c,{padding:0})})]})})),v=n(195),y=n(190),w=n(278),_=n(138),O=n(8),x=n(25),E=n(15),A=n(65),k=n(232),S=n(1954),L=n(307),j=n(241);n.d(t,"e",(function(){return T})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return M})),n.d(t,"a",(function(){return N}));const C=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],T=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Object(E.a)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},P=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},M=Object(O.a)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:T})(({theme:e,ownerState:t})=>Object(o.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${j.a.disabled}`]:{color:e.palette.text.disabled,cursor:"default"}},t.multiline&&Object(o.a)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),N=Object(O.a)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:P})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r={color:"currentColor",opacity:n?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},i={opacity:n?.42:.5};return Object(o.a)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${j.a.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${j.a.disabled}`]:{opacity:1,WebkitTextFillColor:e.palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),R=Object(p.jsx)(S.a,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),I=i.forwardRef((function(e,t){const n=Object(x.a)({props:e,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:u,autoFocus:d,className:f,components:h={},componentsProps:g={},defaultValue:m,disabled:O,disableInjectingGlobalStyles:S,endAdornment:T,fullWidth:P=!1,id:I,inputComponent:D="input",inputProps:H={},inputRef:G,maxRows:F,minRows:z,multiline:B=!1,name:U,onBlur:V,onChange:W,onClick:$,onFocus:q,onKeyDown:K,onKeyUp:Y,placeholder:X,readOnly:Q,renderSuffix:Z,rows:J,startAdornment:ee,type:te="text",value:ne}=n,re=Object(r.a)(n,C),oe=null!=H.value?H.value:ne,{current:ae}=i.useRef(null!=oe),ie=i.useRef(),se=i.useCallback(e=>{0},[]),ce=Object(A.a)(H.ref,se),le=Object(A.a)(G,ce),ue=Object(A.a)(ie,le),[de,fe]=i.useState(!1),pe=Object(_.a)();const he=Object(y.a)({props:n,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=pe?pe.focused:de,i.useEffect(()=>{!pe&&O&&de&&(fe(!1),V&&V())},[pe,O,de,V]);const ge=pe&&pe.onFilled,me=pe&&pe.onEmpty,be=i.useCallback(e=>{Object(L.b)(e)?ge&&ge():me&&me()},[ge,me]);Object(k.a)(()=>{ae&&be({value:oe})},[oe,be,ae]);i.useEffect(()=>{be(ie.current)},[]);let ve=D,ye=H;B&&"input"===ve&&(ye=J?Object(o.a)({type:void 0,minRows:J,maxRows:J},ye):Object(o.a)({type:void 0,maxRows:F,minRows:z},ye),ve=b);i.useEffect(()=>{pe&&pe.setAdornedStart(Boolean(ee))},[pe,ee]);const we=Object(o.a)({},n,{color:he.color||"primary",disabled:he.disabled,endAdornment:T,error:he.error,focused:he.focused,formControl:pe,fullWidth:P,hiddenLabel:he.hiddenLabel,multiline:B,size:he.size,startAdornment:ee,type:te}),_e=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:u,multiline:d,size:f,startAdornment:p,type:h}=e,g={root:["root",`color${Object(E.a)(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl","small"===f&&"sizeSmall",d&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",d&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd"]};return Object(c.a)(g,j.b,t)})(we),Oe=h.Root||M,xe=g.root||{},Ee=h.Input||N;return ye=Object(o.a)({},ye,g.input),Object(p.jsxs)(i.Fragment,{children:[!S&&R,Object(p.jsxs)(Oe,Object(o.a)({},xe,!Object(v.a)(Oe)&&{ownerState:Object(o.a)({},we,xe.ownerState)},{ref:t,onClick:e=>{ie.current&&e.currentTarget===e.target&&ie.current.focus(),$&&$(e)}},re,{className:Object(s.a)(_e.root,xe.className,f),children:[ee,Object(p.jsx)(w.a.Provider,{value:null,children:Object(p.jsx)(Ee,Object(o.a)({ownerState:we,"aria-invalid":he.error,"aria-describedby":l,autoComplete:u,autoFocus:d,defaultValue:m,disabled:he.disabled,id:I,onAnimationStart:e=>{be("mui-auto-fill-cancel"===e.animationName?ie.current:{value:"x"})},name:U,placeholder:X,readOnly:Q,required:he.required,rows:J,value:oe,onKeyDown:K,onKeyUp:Y,type:te},ye,!Object(v.a)(Ee)&&{as:ve,ownerState:Object(o.a)({},we,ye.ownerState)},{ref:ue,className:Object(s.a)(_e.input,ye.className),onBlur:e=>{V&&V(e),H.onBlur&&H.onBlur(e),pe&&pe.onBlur?pe.onBlur(e):fe(!1)},onChange:(e,...t)=>{if(!ae){const t=e.target||ie.current;if(null==t)throw new Error(Object(a.a)(1));be({value:t.value})}H.onChange&&H.onChange(e,...t),W&&W(e,...t)},onFocus:e=>{he.disabled?e.stopPropagation():(q&&q(e),H.onFocus&&H.onFocus(e),pe&&pe.onFocus?pe.onFocus(e):fe(!0))}}))}),T,Z?Z(Object(o.a)({},he,{startAdornment:ee})):null]}))]})}));t.c=I},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r,o,a,i=n(718),s=n(55),c=n(62),l=n(116),u=n(109),d=n(449),f=n(377),p=s.WeakMap;if(i){var h=new p,g=h.get,m=h.has,b=h.set;r=function(e,t){return b.call(h,e,t),t},o=function(e){return g.call(h,e)||{}},a=function(e){return m.call(h,e)}}else{var v=d("state");f[v]=!0,r=function(e,t){return l(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},a=function(e){return u(e,v)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"e",(function(){return w})),n.d(t,"g",(function(){return _})),n.d(t,"c",(function(){return O})),n.d(t,"i",(function(){return x})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return S}));var r,o=n(142),a=n(0),i=n(182),s=n(97),c=n(693),l=n(99),u=n(23);function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}));return Object(c.c)(r)}),[null===(e=t.data)||void 0===e?void 0:e.connections]);return Object(a.useMemo)((function(){return h(h({},t),{},{data:r})}),[t,r])};m(b,"useQuery{result}\nuseAuthFacts{{ role }}\nuseMemo{connections}\nuseMemo{}",(function(){return[o.a,u.z]}));var v=function(){return Object(l.a)({mutation:i.c,cachedQuery:i.d,getVariables:function(e){return{connectionId:e}},getOptimisticResponse:function(e){return{deleteConnection:e}},updateStore:function(e,t){var n=t.deleteConnection;return e.connections=e.connections.filter((function(e){return e.id!==n})),e}})};m(v,"useAtomicMutation{}",(function(){return[l.a]}));var y=function(){return Object(l.c)({mutation:i.e,getVariables:function(e){return{connectionId:e||""}}})};m(y,"useSimpleMutation{}",(function(){return[l.c]}));var w=function(){return Object(l.a)({mutation:i.b,cachedQuery:i.d,getVariables:function(e){return{accountId:e}},getOptimisticResponse:function(e){return{deleteConnectedAccount:e}},updateStore:function(e,t){var n=t.deleteConnectedAccount;return e.connections.some((function(e){var t=e.accounts.findIndex((function(e){return e.id===n}));return t>-1&&(e.accounts.splice(t,1),!0)})),e}})};m(w,"useAtomicMutation{}",(function(){return[l.a]}));var _=function(){return Object(l.a)({mutation:i.b,cachedQuery:i.d,getVariables:function(e){return{accountId:e}},getOptimisticResponse:function(e){return{deleteConnectedAccount:e}},updateStore:function(e,t){var n=t.deleteConnectedAccount;return e.connections=e.connections.filter((function(e){var t=e.accounts.findIndex((function(e){return e.id===n}));return!(t>-1&&(e.accounts.splice(t,1),!e.accounts.length))})),e}})};m(_,"useAtomicMutation{}",(function(){return[l.a]}));var O=function(){var e=b().data;return Object(a.useMemo)((function(){return e.reduce((function(e,t){return e.concat(t.accounts)}),[])}),[e])};m(O,"useConnections{{ data }}\nuseMemo{}",(function(){return[b]}));var x=function(){return Object(l.a)({mutation:i.f,cachedQuery:i.d,getVariables:function(e){return{connectedAccount:e}},getOptimisticResponse:function(e){return{updateConnectedAccount:e}},updateStore:function(e,t){var n=t.updateConnectedAccount;return e.connections.some((function(e){var t=e.accounts.findIndex((function(e){return e.id===n.id}));return t>-1&&(e.accounts[t]=h(h({},e.accounts[t]),n),!0)})),e}})};m(x,"useAtomicMutation{}",(function(){return[l.a]}));var E=function(){var e=O();return Object(a.useMemo)((function(){return d(new Set(e.map((function(e){return e.category}))))}),[e])};m(E,"useConnectedAccounts{accounts}\nuseMemo{}",(function(){return[O]}));var A,k,S=function(){return Object(l.a)({mutation:i.a,cachedQuery:i.d,getVariables:function(e){return{accountId:e}},getOptimisticResponse:function(e){return{acceptConnectedAccount:{accountId:e}}},updateStore:function(e,t){var n=t.acceptConnectedAccount.accountId,r=e.connections.map((function(e){return h(h({},e),{},{accounts:e.accounts.map((function(e){return e.id!==n?e:h(h({},e),{},{acceptanceRequired:!1})}))})}));return h(h({},e),{},{connections:r})}})};m(S,"useAtomicMutation{}",(function(){return[l.a]})),(A="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(A.register(b,"useConnections","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(v,"useDeleteConnection","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(y,"useRefreshConnections","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(w,"useDeleteConnectedAccount","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(_,"useDeleteManualAccount","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(O,"useConnectedAccounts","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(x,"useUpdateConnectedAccount","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(E,"useConnectedAccountGroups","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts"),A.register(S,"useAcceptConnectedAccount","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/connected.ts")),(k="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&k(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var r,o=n(1192),a=n(0),i=n(20);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},c=function(){var e=Object(i.useTranslation)().t;return{strong:e("labels:strong"),average:e("labels:average"),weak:e("labels:weak")}};s(c,"useTranslation{{ t }}",(function(){return[i.useTranslation]}));var l=function(){var e=Object(a.useMemo)((function(){return Object(o.a)()||{}}),[]),t=e.name,n=e.os;return"chrome"===t&&"Android OS"===n||"crios"===t};s(l,"useMemo{{ name: browser, os }}");var u,d,f=function(){var e=location.hostname;return Object(a.useMemo)((function(){var t=e.replace(/^(dashboard\.)/,"");return{lookupAdvisorLink:"".concat(location.protocol,"//").concat(t,"/cx-access"),requestAppointmentLink:"".concat(location.protocol,"//").concat(t,"#appointment")}}),[e])};s(f,"useMemo{}"),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(u.register(c,"useStrengthLabels","/__w/1255/s/packages/auth-ui/src/components/client-auth/hooks.ts"),u.register(l,"useIsMobileChrome","/__w/1255/s/packages/auth-ui/src/components/client-auth/hooks.ts"),u.register(f,"useAdvisorLinks","/__w/1255/s/packages/auth-ui/src/components/client-auth/hooks.ts")),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return v}));var r,o=n(90),a=n(312);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new A(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function h(){}function g(){}var m={};l(m,o,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(k([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function s(){return new t((function(r,s){!function r(o,a,s,c){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==i(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}(o,a,r,s)}))}return r=r?r.then(s,s):s()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function c(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){c(a,r,o,i,s,"next",e)}function s(e){c(a,r,o,i,s,"throw",e)}i(void 0)}))}}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var u,d="",f=0;!function(e){e.NOT_AUTHORIZED="NotAuthorizedException",e.INVALID_PARAMETER="InvalidParameterException",e.USER_NOT_FOUND="UserNotFoundException",e.LIMIT_EXCEEDED="LimitExceededException"}(u||(u={}));var p,h,g=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,m=function(e){return g.test(e.toLowerCase())},b=function(){var e=l(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.a.confirmSignUp(t,"000000",{forceAliasCreation:!1});case 3:return e.abrupt("return",!0);case 6:e.prev=6,e.t0=e.catch(0),e.t1=e.t0.code,e.next="NotAuthorizedException"===e.t1?11:"AliasExistsException"===e.t1?11:"CodeMismatchException"===e.t1?11:"ExpiredCodeException"===e.t1?11:(e.t1,12);break;case 11:return e.abrupt("return",!0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=l(s().mark((function e(t,n,r){var o,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",{status:a.a.Valid,advisor:null});case 2:return(o=new URL("".concat(r,"/client-domain/clients/invitation-status"))).searchParams.append("email",encodeURIComponent(t)),o.searchParams.append("nonce",n),e.next=7,fetch(o.toString(),{method:"GET"});case 7:return i=e.sent,e.next=10,i.json();case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(p.register(d,"EMPTY_PASSWORD","/__w/1255/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(f,"DEFAULT_PASSWORD_SCORE","/__w/1255/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(g,"EMAIL_REGEX","/__w/1255/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(m,"isValidEmail","/__w/1255/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(b,"usernameExists","/__w/1255/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(v,"fetchInvitationStatus","/__w/1255/s/packages/auth-ui/src/components/client-auth/utils.ts")),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&h(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return s})),n.d(t,"i",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"l",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return v}));var r,o=n(22);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var a,i,s=Object(o.b)({key:"globalStateUserGoals",default:[]}),c=Object(o.b)({key:"modalOpenState",default:!1}),l=Object(o.b)({key:"globalGoalsModalStep",default:0}),u=Object(o.b)({key:"globalCurrentGoalImportanceValue",default:1}),d=Object(o.b)({key:"globalGoalsIsEditingSingleGoal",default:!1}),f=Object(o.b)({key:"globalStateSelectedTab",default:"1"}),p=Object(o.b)({key:"globalTransitionModalOpenState",default:!0}),h=Object(o.b)({key:"globalGoalsNewlyCreatedList",default:[]}),g=Object(o.b)({key:"globalGoalsNewlyCreatedListIndex",default:0}),m=Object(o.b)({key:"globalGoalsTransitionModalActive",default:!1}),b=Object(o.b)({key:"globalGoalsFormValidity",default:!0}),v=Object(o.b)({key:"globalGoalsMetadata",default:[]});(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(a.register(s,"globalStateUserGoals","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(c,"globalModalOpenState","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(l,"globalGoalsModalStep","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(u,"globalCurrentGoalImportanceValue","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(d,"globalGoalsIsEditingSingleGoal","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(f,"globalStateSelectedTab","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(p,"globalTransitionModalOpenState","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(h,"globalGoalsNewlyCreatedList","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(g,"globalGoalsNewlyCreatedListIndex","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(m,"globalGoalsTransitionModalActive","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(b,"globalGoalsFormValidity","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts"),a.register(v,"globalGoalsMetadata","/__w/1255/s/packages/design-system/src/functions/global-state/financial-goals-state.ts")),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";var r=n(106),o=n(33),a=n(238);n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return g}));const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}const[t,n]=e.split(""),r=i[t],o=s[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function p(e,t,n,r){const a=Object(o.b)(e,t)||n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,o){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce((e,r)=>(e[r]=g(t,n),e),{})}(l(n),o),i=e[n];return Object(r.b)(e,i,a)}function b(e,t){const n=h(e.theme);return Object.keys(e).map(r=>m(e,t,r,n)).reduce(a.a,{})}function v(e){return b(e,u)}function y(e){return b(e,d)}function w(e){return b(e,f)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=d,w.propTypes={},w.filterProps=f;t.c=w},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(279),o=n(1283),a=new Map,i=new Map,s=!0,c=!1;function l(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,o=l((c=e.loc).source.body.substring(c.start,c.end)),a=i.get(r);a&&!a.has(o)?s&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||i.set(r,a=new Set),a.add(o),t.has(o)||(t.add(o),n.push(e))}else n.push(e);var c})),Object(r.a)(Object(r.a)({},e),{definitions:n})}function d(e){var t=l(e);if(!a.has(t)){var n=Object(o.a)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");a.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(u(n)))}return a.get(t)}function f(e){for(var t=[],n=1;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},p=function(e){var t,n,r=e.className,i=e.icon,f=e.stroke,p=e.clickable,h=e.size,g=void 0===h?2:h,m=e.color,b=void 0===m?"darkRegular":m,v=e.onClick,y=d(e,l),w=s.a.useContext(c.ThemeContext),_=w.iconSizes[g]||g,O={className:r,color:b,icon:i,stroke:f,viewBox:y.viewBox,rotate:y.rotate,size:_};if(!p||!v)return s.a.createElement(o.b,u({},O,y));switch(b){case"lightContrast":case"lightRegular":case"lightSubtle":case"lightNonEssential":t=a.c.activeDarken(w.colors[b]),n=a.c.hoverDarken(w.colors[b]);break;default:t=a.c.active(w.colors[b]),n=a.c.hover(w.colors[b])}var x={activeColor:t,disabled:y.disabled,focusColor:n,hoverColor:n};return(s.a.createElement(o.d,u({onClick:v},x,O,y)))};f(p,"useContext{theme: TCXTheme}");var h,g,m=p;t.a=m,(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(p,"Icon","/__w/1255/s/packages/cx-guide/src/components/icon/icon.tsx"),h.register(m,"default","/__w/1255/s/packages/cx-guide/src/components/icon/icon.tsx")),(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&g(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var r;n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return c})),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a={expandedSleeveId:null,custodians:[],loading:[],registrations:[],sortColumn:"value",sortOrder:"asc",strategies:[],bucketTypes:[],errors:[]};!function(e){e.ClearFiltersAction="ClearFiltersAction",e.ClearLoadingCount="ClearLoadingCount",e.ClearPerformanceErrors="ClearPerformanceErrors",e.RemoveLoadingFlag="RemoveLoadingFlag",e.FlagPerformanceError="FlagPerformanceError",e.FlagLoading="FlagLoading",e.SetExpandedSleeve="SetExpandedSleeve",e.SetCustodianFilters="SetCustodianFilters",e.SetRegistrationFilters="SetRegistrationFilters",e.SetStrategyFilters="SetStrategyFilters",e.SetBucketTypeFilters="SetBucketTypeFilters",e.ToggleSortOnColumn="ToggleSortOnColumn"}(o||(o={}));var i,s,c="performanceRange";(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(i.register(a,"INITIAL_STATE","/__w/1255/s/packages/cx/src/components/pages/accounts/managed-accounts/constants.ts"),i.register(c,"PerformanceKey","/__w/1255/s/packages/cx/src/components/pages/accounts/managed-accounts/constants.ts")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(48),o={space:[0,4,8,16,32,64,128,256,512]},a={position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:o.space},right:{property:"right",scale:"space",defaultScale:o.space},bottom:{property:"bottom",scale:"space",defaultScale:o.space},left:{property:"left",scale:"space",defaultScale:o.space}},i=Object(r.e)(a);t.a=i},function(e,t,n){"use strict";var r=n(9),o=n(17),a=n(0),i=n(366),s=!1,c=a.useSyncExternalStore||function(e,t,n){var r=t();__DEV__&&!s&&r!==t()&&(s=!0,__DEV__&&o.b.error("The result of getSnapshot should be cached to avoid an infinite loop"));var c=a.useState({inst:{value:r,getSnapshot:t}}),u=c[0].inst,d=c[1];return i.a?a.useLayoutEffect((function(){Object.assign(u,{value:r,getSnapshot:t}),l(u)&&d({inst:u})}),[e,r,t]):Object.assign(u,{value:r,getSnapshot:t}),a.useEffect((function(){return l(u)&&d({inst:u}),e((function(){l(u)&&d({inst:u})}))}),[e]),r};function l(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}var u=n(69),d=n(1941),f=n(664),p=n(196),h=n(70),g=n(112),m=n(281),b=n(2046),v=n(1277);n.d(t,"a",(function(){return w}));var y=Object.prototype.hasOwnProperty;function w(e,t){return void 0===t&&(t=Object.create(null)),function(e,t){var n=Object(a.useRef)();n.current&&e===n.current.client&&t===n.current.query||(n.current=new _(e,t));var r=n.current,o=Object(a.useState)(0),i=(o[0],o[1]);return r.forceUpdate=function(){i((function(e){return e+1}))},r}(Object(m.a)(t.client),e).useQuery(t)}var _=function(){function e(e,t){this.client=e,this.query=t,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(i.d?WeakSet:Set),this.ssrDisabledResult=Object(b.a)({loading:!0,data:void 0,error:void 0,networkStatus:h.a.loading}),this.skipStandbyResult=Object(b.a)({loading:!1,data:void 0,error:void 0,networkStatus:h.a.ready}),this.toQueryResultCache=new(i.c?WeakMap:Map),Object(g.c)(t,g.a.Query)}return e.prototype.forceUpdate=function(){__DEV__&&o.b.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.asyncUpdate=function(){var e=this;return new Promise((function(t){e.asyncResolveFns.add(t),e.optionsToIgnoreOnce.add(e.watchQueryOptions),e.forceUpdate()}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=Object(a.useContext)(Object(f.a)()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=c(Object(a.useCallback)((function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&Object(u.a)(e.data,r.data)||t.setResult(r)},r=function(a){var i=n.last;o.unsubscribe();try{n.resetLastResults(),o=n.subscribe(e,r)}finally{n.last=i}if(!y.call(a,"graphQLErrors"))throw a;var s=t.result;(!s||s&&s.loading||!Object(u.a)(a,s.error))&&t.setResult({data:s&&s.data,error:a,loading:!1,networkStatus:h.a.error})},o=n.subscribe(e,r);return function(){return o.unsubscribe()}}),[n,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));this.unsafeHandlePartialRefetch(r);var o=this.toQueryResult(r);return!o.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach((function(e){return e(o)})),this.asyncResolveFns.clear()),o},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),o=this.watchQueryOptions;!this.optionsToIgnoreOnce.has(o)&&Object(u.a)(r,o)||(this.watchQueryOptions=r,o&&this.observable&&(this.optionsToIgnoreOnce.delete(o),this.observable.reobserve(r),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var n=e.skip,o=(e.ssr,e.onCompleted,e.onError,e.displayName,e.defaultOptions,Object(r.e)(e,["skip","ssr","onCompleted","onError","displayName","defaultOptions"])),a=Object.assign(o,{query:this.query});if(!this.renderPromises||"network-only"!==a.fetchPolicy&&"cache-and-network"!==a.fetchPolicy||(a.fetchPolicy="cache-first"),a.variables||(a.variables={}),n){var i=a.fetchPolicy,s=void 0===i?this.getDefaultFetchPolicy():i,c=a.initialFetchPolicy,l=void 0===c?s:c;Object.assign(a,{initialFetchPolicy:l,fetchPolicy:"standby"})}else a.fetchPolicy||(a.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return a},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(Object(d.a)(this.queryHookOptions.defaultOptions,this.watchQueryOptions));this.obsQueryFields=Object(a.useMemo)((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){e.loading||(e.error?this.onError(e.error):e.data&&this.onCompleted(e.data))},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,o=(e.partial,Object(r.e)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=Object(r.a)(Object(r.a)(Object(r.a)({data:n},o),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!0,previousData:this.previousData})),!t.error&&Object(v.a)(e.errors)&&(t.error=new p.a({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:h.a.refetch}),this.observable.refetch())},e}()},function(e,t,n){var r=n(55),o=n(324),a=n(116),i=n(109),s=n(585),c=n(717),l=n(124),u=l.get,d=l.enforce,f=String(c).split("toString");o("inspectSource",(function(e){return c.call(e)})),(e.exports=function(e,t,n,o){var c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||a(n,"name",t),d(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!u&&e[t]&&(l=!0):delete e[t],l?e[t]=n:a(e,t,n)):l?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c.call(this)}))},function(e,t,n){var r=n(108),o=n(375),a=n(96),i=n(75),s=n(381),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,f=5==e||d;return function(p,h,g,m){for(var b,v,y=a(p),w=o(y),_=r(h,g,3),O=i(w.length),x=0,E=m||s,A=t?E(p,O):n?E(p,0):void 0;O>x;x++)if((f||x in w)&&(v=_(b=w[x],x,y),e))if(t)A[x]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return x;case 2:c.call(A,b)}else if(u)return!1;return d?-1:l||u?u:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n(511),a=n(77),i=n(257);var s=function(e,t){return()=>null},c=n(356),l=n(189),u=n(303),d=n(638),f=n(433).a,p=n(232),h=n(512),g=n(491),m=n(206),b=n(214),v=n(65),y=n(342),w=n(1222);n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return o.a})),n.d(t,"createSvgIcon",(function(){return a.a})),n.d(t,"debounce",(function(){return i.a})),n.d(t,"deprecatedPropType",(function(){return s})),n.d(t,"isMuiElement",(function(){return c.a})),n.d(t,"ownerDocument",(function(){return l.a})),n.d(t,"ownerWindow",(function(){return u.a})),n.d(t,"requirePropFactory",(function(){return d.a})),n.d(t,"setRef",(function(){return f})),n.d(t,"unstable_useEnhancedEffect",(function(){return p.a})),n.d(t,"unstable_useId",(function(){return h.a})),n.d(t,"unsupportedProp",(function(){return g.a})),n.d(t,"useControlled",(function(){return m.a})),n.d(t,"useEventCallback",(function(){return b.a})),n.d(t,"useForkRef",(function(){return v.a})),n.d(t,"useIsFocusVisible",(function(){return y.a})),n.d(t,"unstable_ClassNameGenerator",(function(){return w.a}))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"e",(function(){return x}));var r,o=n(142),a=n(0),i=n(170),s=n(193),c=n(369),l=n(97),u=n(99),d=n(23);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new i.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new i.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,o);if(c){for(var u=0;ue.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty"}(r||(r={}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}));var r,o=n(0);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},i=function(e,t){return Object(o.useCallback)((function(n){e&&(t?e(n):e(n.target.value,n))}),[e,t])};a(i,"useCallback{}");var s,c,l=function(e){return Object(o.useCallback)((function(t){e&&e(t)}),[e])};a(l,"useCallback{}"),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(s.register(i,"useChangeEventCallback","/__w/1255/s/packages/ui/src/forms/hooks.ts"),s.register(l,"useFocusEventCallback","/__w/1255/s/packages/ui/src/forms/hooks.ts")),(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&c(e)}).call(this,n(4)(e))},function(e,t,n){"use strict"; /** * @license nested-property https://github.com/cosmosio/nested-property * * The MIT License (MIT) * * Copyright (c) 2014-2015 Olivier Scherrer */e.exports={set:function(e,t,n){if(e&&"object"==typeof e){if("string"==typeof t&&""!==t){var r=t.split(".");return r.reduce((function(e,t,o){return e[t]=e[t]||{},r.length==o+1&&(e[t]=n),e[t]}),e)}return"number"==typeof t?(e[t]=n,e[t]):e}return e},get:function(e,t){return e&&"object"==typeof e?"string"==typeof t&&""!==t?t.split(".").reduce((function(e,t){return e&&e[t]}),e):"number"==typeof t?e[t]:e:e},has:function(e,t,n){return n=n||{},!(!e||"object"!=typeof e)&&("string"==typeof t&&""!==t?t.split(".").reduce((function(e,t,r,o){return r==o.length-1?n.own?!(!e||!e.hasOwnProperty(t)):!!(null!==e&&"object"==typeof e&&t in e):e&&e[t]}),e):"number"==typeof t&&t in e)},hasOwn:function(e,t,n){return this.has(e,t,n||{own:!0})},isIn:function(e,t,n,r){if(r=r||{},e&&"object"==typeof e){if("string"==typeof t&&""!==t){var o,a=t.split("."),i=!1;return o=!!a.reduce((function(e,t){return i=i||e===n||!!e&&e[t]===n,e&&e[t]}),e),r.validPath?i&&o:i}return!1}return!1}}},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=p(e,t),a=h(o,t);return l(a,a.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),s=e.getBlockForKey(o);var c=t.getStartOffset(),l=t.getEndOffset(),u=a.getEntityAt(c),d=s.getEntityAt(l-1);if(r===o&&u&&u===d){var f=i(e.getEntityMap(),a,s,t,n);return h(e,f)}var g=p(e,t);return h(g,t)},splitBlock:function(e,t){var n=p(e,t),r=h(n,t);return g(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return f(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=p(e,t);return a(r,t,n)}};e.exports=b},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(48),o={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};o.bgImage=o.backgroundImage,o.bgSize=o.backgroundSize,o.bgPosition=o.backgroundPosition,o.bgRepeat=o.backgroundRepeat;var a=Object(r.e)(o);t.b=a},function(e,t,n){"use strict"; /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */var r=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,o=t.Password,a=t.AuthParameters,i=t.ClientMetadata;this.validationData=n||{},this.authParameters=a||{},this.clientMetadata=i||{},this.username=r,this.password=o}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),o=n(47),a=n(147),i=n.n(a),s=(n(776),n(407)),c=n.n(s),l=n(357),u=n.n(l),d=n(1178);var f,p=function(){function e(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")}(this)},e}(),h=g;function g(e,t){null!=e&&this.fromString(e,t)}function m(){return new g(null)}var b="undefined"!=typeof navigator;b&&"Microsoft Internet Explorer"==navigator.appName?(g.prototype.am=function(e,t,n,r,o,a){for(var i=32767&t,s=t>>15;--a>=0;){var c=32767&this[e],l=this[e++]>>15,u=s*c+l*i;o=((c=i*c+((32767&u)<<15)+n[r]+(1073741823&o))>>>30)+(u>>>15)+s*l+(o>>>30),n[r++]=1073741823&c}return o},f=30):b&&"Netscape"!=navigator.appName?(g.prototype.am=function(e,t,n,r,o,a){for(;--a>=0;){var i=t*this[e++]+n[r]+o;o=Math.floor(i/67108864),n[r++]=67108863&i}return o},f=26):(g.prototype.am=function(e,t,n,r,o,a){for(var i=16383&t,s=t>>14;--a>=0;){var c=16383&this[e],l=this[e++]>>14,u=s*c+l*i;o=((c=i*c+((16383&u)<<14)+n[r]+o)>>28)+(u>>14)+s*l,n[r++]=268435455&c}return o},f=28),g.prototype.DB=f,g.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function A(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},A.prototype.revert=function(e){var t=m();return e.copyTo(t),this.reduce(t),t},A.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},A.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},A.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.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},g.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},g.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,o=!1,a=0;--r>=0;){var i=O(e,r);i<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=i:a+n>this.DB?(this[this.t-1]|=(i&(1<>this.DB-a):this[this.t-1]|=i<=this.DB&&(a-=this.DB))}this.clamp(),o&&g.ZERO.subTo(this,this)},g.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},g.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},g.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+i+1]=this[n]>>o|s,s=(this[n]&a)<=0;--n)t[n]=0;t[i]=s,t.t=this.t+i+1,t.s=this.s,t.clamp()},g.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,a=(1<>r;for(var i=n+1;i>r;r>0&&(t[this.t-n-1]|=(this.s&a)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},g.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},g.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t0?(r.lShiftTo(c,a),o.lShiftTo(c,n)):(r.copyTo(a),o.copyTo(n));var l=a.t,u=a[l-1];if(0!=u){var d=u*(1<1?a[l-2]>>this.F2:0),f=this.FV/d,p=(1<=0&&(n[n.t++]=1,n.subTo(y,n)),g.ONE.dlShiftTo(l,y),y.subTo(a,a);a.t=0;){var w=n[--b]==u?this.DM:Math.floor(n[b]*f+(n[b-1]+h)*p);if((n[b]+=a.am(0,w,n,v,0,l))0&&n.rShiftTo(c,n),i<0&&g.ZERO.subTo(n,n)}}},g.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))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},g.prototype.addTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},g.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;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)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0)for(s>s)>0&&(o=!0,a=_(n));i>=0;)s>(s+=this.DB-t)):(n=this[i]>>(s-=t)&r,s<=0&&(s+=this.DB,--i)),n>0&&(o=!0),o&&(a+=_(n));return o?a:"0"},g.prototype.negate=function(){var e=m();return g.ZERO.subTo(this,e),e},g.prototype.abs=function(){return this.s<0?this.negate():this},g.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},g.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+E(this[this.t-1]^this.s&this.DM)},g.prototype.mod=function(e){var t=m();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(g.ZERO)>0&&e.subTo(t,t),t},g.prototype.equals=function(e){return 0==this.compareTo(e)},g.prototype.add=function(e){var t=m();return this.addTo(e,t),t},g.prototype.subtract=function(e){var t=m();return this.subTo(e,t),t},g.prototype.multiply=function(e){var t=m();return this.multiplyTo(e,t),t},g.prototype.divide=function(e){var t=m();return this.divRemTo(e,t,null),t},g.prototype.modPow=function(e,t,n){var r,o=e.bitLength(),a=x(1),i=new A(t);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6;var s=new Array,c=3,l=r-1,u=(1<1){var d=m();for(i.sqrTo(s[1],d);c<=u;)s[c]=m(),i.mulTo(d,s[c-2],s[c]),c+=2}var f,p,h=e.t-1,g=!0,b=m();for(o=E(e[h])-1;h>=0;){for(o>=l?f=e[h]>>o-l&u:(f=(e[h]&(1<0&&(f|=e[h-1]>>this.DB+o-l)),c=r;0==(1&f);)f>>=1,--c;if((o-=c)<0&&(o+=this.DB,--h),g)s[f].copyTo(a),g=!1;else{for(;c>1;)i.sqrTo(a,b),i.sqrTo(b,a),c-=2;c>0?i.sqrTo(a,b):(p=a,a=b,b=p),i.mulTo(b,s[f],a)}for(;h>=0&&0==(e[h]&1<=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function d(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function w(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){w(a,r,o,i,s,"next",e)}function s(e){w(a,r,o,i,s,"throw",e)}i(void 0)}))}}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var O="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},x=function(){var e=Object(f.z)().loggedIn;return Object(i.useCallback)(_(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e&&(Object(s.j)(!1),Object(f.m)(),Object(f.q)(!1),Object(f.l)(null),Object(f.k)(null),Object(f.s)(!1)),t.abrupt("return",Promise.resolve());case 2:case"end":return t.stop()}}),t)}))),[e])};O(x,"useAuthFacts{{ loggedIn }}\nuseCallback{}",(function(){return[f.z]}));var E=function(){var e=Object(f.z)().persona;Object(i.useEffect)((function(){var t=function(t){var n=t.payload.event,r=t.payload.data;"signIn"!==n||(null==r?void 0:r.preferredMFA)===f.g.none&&e!==f.h.Developer||f.b.setupSession(l.a,d.a(),Object(u.a)(),!0)};return o.a.listen("auth",t),function(){o.a.remove("auth",t)}}),[e])};O(E,"useAuthFacts{{ persona }}\nuseEffect{}",(function(){return[f.z]}));var A=function(){var e=b(Object(i.useState)({loading:!1,data:null}),2),t=e[0],n=e[1],r=t.data;return Object(i.useEffect)((function(){var e=location.hostname;r||(n((function(e){return g(g({},e),{},{loading:!0})})),fetch(d.b(e),{method:"GET"}).then((function(e){return e.json()})).then((function(e){if(e.error)throw e.error;var t={primaryColor:e.primary_color,secondaryColor:e.secondary_color,tertiaryColor:e.tertiary_color,logoSrc:e.logo,disclosure:e.disclosure,partnerName:e.name,favicons:e.favicons},r=t.partnerName,o=t.favicons;r&&(document.title=r);var i=document.getElementsByTagName("head")[0];Object(a.b)(o).forEach((function(e){return i.appendChild(e)})),n({loading:!1,data:t})})).catch((function(e){console.error(e),n((function(e){return g(g({},e),{},{loading:!1})}))})))}),[]),t};O(A,"useState{[branding, setBranding]({ loading: false, data: null })}\nuseEffect{}");var k=function(){var e,t=A().data;return null!==(e=null==t?void 0:t.logoSrc)&&void 0!==e?e:void 0};O(k,"useApplicationBranding{{ data: branding }}",(function(){return[A]}));var S=function(){var e=Object(f.z)(),t=e.loggedIn,n=e.persona,r=e.oauthFlowComplete,o=Object(c.b)(),a=o.data,i=o.error;if(!t)switch(n){case f.h.Advisor:if(r)break;return"requireAdvisorAuth";case f.h.Client:case f.h.Developer:return"requireClientAuth"}return a||i?"ready":"waitingOnClient"};O(S,"useAuthFacts{{ loggedIn, persona, oauthFlowComplete }}\nuseClient{{ data: client, error: errorOnClient }}",(function(){return[f.z,c.b]}));var L,j,C=function(){var e=Object(f.z)().loggedIn;Object(i.useEffect)((function(){e||(l.a.clearStore(),f.b.teardownSession())}),[e])};O(C,"useAuthFacts{{ loggedIn }}\nuseEffect{}",(function(){return[f.z]})),(L="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(L.register(x,"useSessionLogoutCallback","/__w/1255/s/packages/cx/src/components/app/hooks.tsx"),L.register(E,"useClientAuthStateChangeEffect","/__w/1255/s/packages/cx/src/components/app/hooks.tsx"),L.register(A,"useApplicationBranding","/__w/1255/s/packages/cx/src/components/app/hooks.tsx"),L.register(k,"useLogoSrc","/__w/1255/s/packages/cx/src/components/app/hooks.tsx"),L.register(S,"useRenderStatus","/__w/1255/s/packages/cx/src/components/app/hooks.tsx"),L.register(C,"useLogoutSideEffects","/__w/1255/s/packages/cx/src/components/app/hooks.tsx")),(j="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&j(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";var r=n(13),o=n(3),a=n(0),i=(n(5),n(12)),s=n(371),c=n(1942),l=n(8),u=n(25),d=n(2058),f=n(15),p=n(266),h=n(284);function g(e){return Object(p.a)("MuiIconButton",e)}var m=Object(h.a)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),b=n(2);const v=["edge","children","className","color","disabled","disableFocusRipple","size"],y=Object(l.a)(d.a,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Object(f.a)(n.color)}`],n.edge&&t[`edge${Object(f.a)(n.edge)}`],t[`size${Object(f.a)(n.size)}`]]}})(({theme:e,ownerState:t})=>Object(o.a)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:Object(c.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>Object(o.a)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Object(o.a)({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:Object(c.a)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}})),w=a.forwardRef((function(e,t){const n=Object(u.a)({props:e,name:"MuiIconButton"}),{edge:a=!1,children:c,className:l,color:d="default",disabled:p=!1,disableFocusRipple:h=!1,size:m="medium"}=n,w=Object(r.a)(n,v),_=Object(o.a)({},n,{edge:a,color:d,disabled:p,disableFocusRipple:h,size:m}),O=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled","default"!==r&&`color${Object(f.a)(r)}`,o&&`edge${Object(f.a)(o)}`,`size${Object(f.a)(a)}`]};return Object(s.a)(i,g,t)})(_);return Object(b.jsx)(y,Object(o.a)({className:Object(i.a)(O.root,l),centerRipple:!0,focusRipple:!h,disabled:p,ref:t,ownerState:_},w,{children:c}))}));t.a=w},,,function(e,t,n){var r=n(375),o=n(123);e.exports=function(e){return r(o(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(123),o=/"/g;e.exports=function(e,t,n,a){var i=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(a).replace(o,""")+'"'),s+">"+i+""}},function(e,t,n){var r=n(46);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var r=n(1840),o=n(1842),a=n(1843),i=n(1844);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=r?r(a):a,o.contains(a,t))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=a(l,i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;!function(e){e.ManagedAccounts="managedAccounts",e.Bank="bank",e.CreditCard="creditCard",e.Investment="investment",e.Insurance="insurance",e.Loan="loan",e.OtherAssets="otherAssets",e.OtherLiabilities="otherLiabilities",e.RealEstate="realEstate"}(r||(r={}))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"a",(function(){return _}));var r,o=n(61),a=n(651),i=n(32),s=n(94),c=n(38);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new A(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function h(){}function g(){}var m={};s(m,o,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(k([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var c=d(e[o],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function d(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,s,"next",e)}function s(e){d(a,r,o,i,s,"throw",e)}i(void 0)}))}}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var p,h,g=function(){var e=f(u().mark((function e(){var t,n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(c.i)(),e.t0=t,e.next=e.t0===i.h.Advisor?4:e.t0===i.h.Developer?8:e.t0===i.h.Client?8:11;break;case 4:if(!(n=localStorage.getItem(s.a.FederatedIdentity))){e.next=7;break}return e.abrupt("return",JSON.parse(n).token);case 7:return e.abrupt("return","");case 8:return e.next=10,o.a.currentSession();case 10:return e.abrupt("return",e.sent.getIdToken().getJwtToken());case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=f(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:return t=e.sent,e.abrupt("return",Object(a.a)(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=f(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.a,e.next=3,g();case 3:if(e.t1=e.sent,t=(0,e.t0)(e.t1),"ProspectRole"!==t["cognito:preferred_role"]){e.next=8;break}return e.abrupt("return",!0);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=f(u().mark((function e(t,n,r){var o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(r,"/user-domain/users/me"),{headers:{"sf-access-token":t,authorization:"Bearer ".concat(n)}});case 2:return o=e.sent,e.abrupt("return",o.json());case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),y=function(){return"true"===sessionStorage.getItem(s.a.IsOnboarding)},w=function(e,t){sessionStorage.getItem(s.a.IsOnboarding)&&t||sessionStorage.setItem(s.a.IsOnboarding,e.toString())},_=function(){sessionStorage.removeItem(s.a.IsOnboarding)};(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(p.register(g,"getUserToken","/__w/1255/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(m,"getUserTokenDecoded","/__w/1255/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(b,"isProspect","/__w/1255/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(v,"getOAuthUserInfo","/__w/1255/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(y,"isOnboarding","/__w/1255/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(w,"setOnboarding","/__w/1255/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(_,"clearOnboarding","/__w/1255/s/packages/auth-ui/src/utils/user-utils.ts")),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&h(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return T}));var r=n(205),o=n(204);function a(){}var i,s=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=a),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),c=new o.a,l=Object.prototype.hasOwnProperty,u=void 0===(i=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:i;function d(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var f=[];function p(e,t){if(!e)throw new Error(t||"assertion failure")}function h(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var g=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!v(this))return m(this),this.value[0]},e.prototype.recompute=function(e){return p(!this.recomputing,"already recomputing"),m(this),v(this)?function(e,t){A(e),c.withValue(e,b,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,v(e))return;w(e)}(e);return h(e.value)}(this,e):h(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,y(this),d(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),A(this),_(this,(function(t,n){t.setDirty(),k(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=f.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(u(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),f.push(this.deps),this.deps=null)},e.count=0,e}();function m(e){var t=c.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),v(e)?O(t,e):x(t,e),t}function b(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function v(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function y(e){_(e,O)}function w(e){_(e,x)}function _(e,t){var n=e.parents.size;if(n)for(var r=u(e.parents),o=0;o0&&o===r.length&&n[o-1]===r[o-1]||e.setDirty()),E(e,t),v(e)||w(e)}function E(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(f.length<100&&f.push(n),e.dirtyChildren=null))}function A(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){k(e,n)})),e.forgetDeps(),p(null===e.dirtyChildren)}function k(e,t){t.parents.delete(e),e.childValues.delete(t),E(e,t)}var S={setDirty:!0,dispose:!0,forget:!0};function L(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=c.getValue();if(r){var o=t.get(e);o||t.set(e,o=new Set),r.dependOn(o),"function"==typeof n&&(d(o),o.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var o=n&&l.call(S,n)?n:"setDirty";u(r).forEach((function(e){return e[o]()})),t.delete(e),d(r)}},r}function j(){var e=new r.a("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}j();var C=new Set;function T(e,t){void 0===t&&(t=Object.create(null));var n=new s(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,o=t.makeCacheKey||j(),a=function(){var a=o.apply(null,r?r.apply(null,arguments):arguments);if(void 0===a)return e.apply(null,arguments);var i=n.get(a);i||(n.set(a,i=new g(e)),i.subscribe=t.subscribe,i.forget=function(){return n.delete(a)});var s=i.recompute(Array.prototype.slice.call(arguments));return n.set(a,i),C.add(n),c.hasValue()||(C.forEach((function(e){return e.clean()})),C.clear()),s};function i(e){var t=n.get(e);t&&t.setDirty()}function l(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),a.dirtyKey=i,a.dirty=function(){i(o.apply(null,arguments))},a.peekKey=l,a.peek=function(){return l(o.apply(null,arguments))},a.forgetKey=u,a.forget=function(){return u(o.apply(null,arguments))},a.makeCacheKey=o,a.getKey=r?function(){return o.apply(null,r.apply(null,arguments))}:o,Object.freeze(a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+t.getTime()%6e4}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(13),o=n(3);const a=["duration","easing","delay"],i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function c(e){return`${Math.round(e)}ms`}function l(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=Object(o.a)({},i,e.easing),n=Object(o.a)({},s,e.duration);return Object(o.a)({getAutoHeightDuration:l,create:(e=["all"],o={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=o;Object(r.a)(o,a);return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:c(i)} ${s} ${"string"==typeof l?l:c(l)}`).join(",")}},e,{easing:t,duration:n})}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";(function(e){var r;n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i=["txt","doc","docm","docx","dot","dotm","dotx","ez","fotd","hwp","msg","odt","ott","pub","rtf","sdw","sgf","stw","sxw","uot","wpd","wps","gdoc"],s=["123","csv","fods","ods","ots","stc","sxc","tsv","uos","xls","xlsb","xlst","xlsx","xlt","gsheet"],c=["ai","bmp","cgm","dxf","eps","fodg","gif","jfif","jpeg","jpg","odg","otg","pas","pbm","pcd","pct","pcx","pgm","pic","png","psd","ras","sgv","std","svg","svgz","svm","sxd","tga","tif","tiff","vdw","vdx","vsd","wmf","CR2","CRW","ERF","RAF","PPM","3FR","RAW","KDC","DCR","MEF","MRW","MDC","NEF","NRW","ORF","RW2","PEF","X3F","SRW","SRF","ARW","DNG","PPM","MOS","gdraw"],l=["pdf"],u=["fodp","odp","otp","pot","potm","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","sti","sxi","gslides"],d=i.concat(s,c,l,u),f=".".concat(d.join(",.")),p=new RegExp(".(".concat(d.join("|"),")$"));(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(o.register(i,"TEXT_FILE_TYPES","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts"),o.register(s,"SPREADSHEET_FILE_TYPES","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts"),o.register(c,"IMAGE_FILE_TYPES","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts"),o.register(l,"PDF_FILE_TYPES","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts"),o.register(u,"PRESENTATION_FILE_TYPES","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts"),o.register(d,"ALL_FILE_TYPES","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts"),o.register(f,"ACCEPTED_FILE_TYPES","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts"),o.register(p,"FILE_TYPE_REGEX","/__w/1255/s/packages/cx/src/components/pages/documents/document/constants.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"i",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return y}));var r=n(17),o=n(121),a=n(539);function i(e){return{__ref:String(e)}}function s(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return Object(o.a)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,n,o){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var a={};n.fields.map((function(e){return l(a,e.name,e.value,o)})),e[t.value]=a}else if(function(e){return"Variable"===e.kind}(n)){var i=(o||{})[n.name.value];e[t.value]=i}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return l(n,t,e,o),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new r.a('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new r.a(52);e[t.value]=null}}function u(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var o=r.name,a=r.value;return l(n[e.name.value],o,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,o=e.value;return l(r,n,o,t)}))),f(e.name.value,r,n)}var d=["connection","include","skip","client","rest","export"],f=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach((function(e){o[e]=t[e]})),"".concat(n.connection.key,"(").concat(p(o),")")}return n.connection.key}var a=e;if(t){var i=p(t);a+="(".concat(i,")")}return n&&Object.keys(n).forEach((function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(p(n[e]),")"):a+="@".concat(e))})),a}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,h)};function h(e,t){return Object(o.a)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function g(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return l(n,r,o,t)})),n}return null}function m(e){return e.alias?e.alias.value:e.name.value}function b(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,o=t.selections;r0&&!Number.isNaN(Number(e))},object:function(e){return!this.nullOrUndefined(e)&&(this.function(e)||function(e){return"object"==typeof e}(e))},plainObject:function(e){var t;return r(e,"Object")&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))},promise:function(e){return r(e,"Promise")},regexp:function(e){return r(e,"RegExp")},set:function(e){return r(e,"Set")},string:function(e){return"string"==typeof e},symbol:function(e){return r(e,"Symbol")},undefined:function(e){return void 0===e},weakMap:function(e){return r(e,"WeakMap")},weakSet:function(e){return r(e,"WeakSet")}}},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"a",(function(){return y}));var r,o,a,i,s,c,l,u=n(131);function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&l(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var f,p,h=Object(u.a)(r||(r=d(["\n query GetConnections($clientId: ID!) {\n connections(clientId: $clientId) {\n id\n createdDate\n providerName\n status\n migrationStatus\n basicAggregationDataset {\n additionalStatus\n lastUpdated\n lastUpdateAttempt\n nextUpdateScheduled\n }\n accounts {\n id\n connectionId\n createdDate\n lastUpdated\n name\n number\n providerName\n value\n category\n subCategory\n isHiddenFromNetWorth\n isManual\n migrationStatus\n acceptanceRequired\n autoRefresh {\n status\n additionalStatus\n asOfDate\n }\n }\n }\n }\n"]))),g=Object(u.a)(o||(o=d(["\n mutation DeleteConnection($clientId: ID!, $connectionId: ID!) {\n deleteConnection(clientId: $clientId, connectionId: $connectionId)\n }\n"]))),m=Object(u.a)(a||(a=d(["\n mutation RefreshConnections($clientId: ID!, $connectionId: String) {\n refreshConnections(clientId: $clientId, connectionId: $connectionId)\n }\n"]))),b=Object(u.a)(i||(i=d(["\n mutation DeleteConnectedAccount($clientId: ID!, $accountId: ID!) {\n deleteConnectedAccount(clientId: $clientId, accountId: $accountId)\n }\n"]))),v=Object(u.a)(s||(s=d(["\n mutation UpdateConnectedAccount($clientId: ID!, $connectedAccount: UpdateConnectedAccount!) {\n updateConnectedAccount(clientId: $clientId, connectedAccount: $connectedAccount) {\n isHiddenFromNetWorth\n category\n name\n id\n providerName\n connectionId\n createdDate\n lastUpdated\n value\n subCategory\n }\n }\n"]))),y=Object(u.a)(c||(c=d(["\n mutation AcceptConnectedAccounts($clientId: ID!, $accountId: ID!) {\n acceptConnectedAccount(clientId: $clientId, accountId: $accountId) {\n clientId\n accountId\n }\n }\n"])));(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(f.register(h,"GET_CONNECTIONS","/__w/1255/s/packages/cx/src/graphql/queries/accounts/connected.ts"),f.register(g,"DELETE_CONNECTION","/__w/1255/s/packages/cx/src/graphql/queries/accounts/connected.ts"),f.register(m,"REFRESH_CONNECTIONS","/__w/1255/s/packages/cx/src/graphql/queries/accounts/connected.ts"),f.register(b,"DELETE_CONNECTED_ACCOUNT","/__w/1255/s/packages/cx/src/graphql/queries/accounts/connected.ts"),f.register(v,"UPDATE_CONNECTED_ACCOUNT","/__w/1255/s/packages/cx/src/graphql/queries/accounts/connected.ts"),f.register(y,"ACCEPT_CONNECTED_ACCOUNT","/__w/1255/s/packages/cx/src/graphql/queries/accounts/connected.ts")),(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&p(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";var r=n(13),o=n(3),a=n(0),i=(n(5),n(12)),s=n(106),c=n(1944),l=n(371),u=n(8),d=n(25);var f=a.createContext(),p=n(266),h=n(284);function g(e){return Object(p.a)("MuiGrid",e)}const m=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var b=Object(h.a)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...["column-reverse","column","row-reverse","row"].map(e=>`direction-xs-${e}`),...["nowrap","wrap-reverse","wrap"].map(e=>`wrap-xs-${e}`),...m.map(e=>`grid-xs-${e}`),...m.map(e=>`grid-sm-${e}`),...m.map(e=>`grid-md-${e}`),...m.map(e=>`grid-lg-${e}`),...m.map(e=>`grid-xl-${e}`)]),v=n(2);const y=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function w(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function _(e,t,n={}){if(!t||!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:r,sm:o,md:a,lg:i,xl:s}=e;return[Number(r)>0&&(n[`spacing-xs-${String(r)}`]||`spacing-xs-${String(r)}`),Number(o)>0&&(n[`spacing-sm-${String(o)}`]||`spacing-sm-${String(o)}`),Number(a)>0&&(n[`spacing-md-${String(a)}`]||`spacing-md-${String(a)}`),Number(i)>0&&(n[`spacing-lg-${String(i)}`]||`spacing-lg-${String(i)}`),Number(s)>0&&(n[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const O=Object(u.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{container:n,direction:r,item:o,lg:a,md:i,sm:s,spacing:c,wrap:l,xl:u,xs:d,zeroMinWidth:f}=e.ownerState;return[t.root,n&&t.container,o&&t.item,f&&t.zeroMinWidth,..._(c,n,t),"row"!==r&&t[`direction-xs-${String(r)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],!1!==d&&t[`grid-xs-${String(d)}`],!1!==s&&t[`grid-sm-${String(s)}`],!1!==i&&t[`grid-md-${String(i)}`],!1!==a&&t[`grid-lg-${String(a)}`],!1!==u&&t[`grid-xl-${String(u)}`]]}})(({ownerState:e})=>Object(o.a)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"nowrap"===e.wrap&&{flexWrap:"nowrap"},"reverse"===e.wrap&&{flexWrap:"wrap-reverse"}),(function({theme:e,ownerState:t}){const n=Object(s.d)({values:t.direction,breakpoints:e.breakpoints.values});return Object(s.b)({theme:e},n,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${b.item}`]={maxWidth:"none"}),t})}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Object(s.d)({values:r,breakpoints:e.breakpoints.values});o=Object(s.b)({theme:e},t,t=>{const n=e.spacing(t);return"0px"!==n?{marginTop:`-${w(n)}`,[`& > .${b.item}`]:{paddingTop:w(n)}}:{}})}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Object(s.d)({values:r,breakpoints:e.breakpoints.values});o=Object(s.b)({theme:e},t,t=>{const n=e.spacing(t);return"0px"!==n?{width:`calc(100% + ${w(n)})`,marginLeft:`-${w(n)}`,[`& > .${b.item}`]:{paddingLeft:w(n)}}:{}})}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,a)=>{let i={};if(t[a]&&(n=t[a]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const c=Object(s.d)({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof c?c[a]:c;if(null==l)return r;const u=`${Math.round(n/l*1e8)/1e6}%`;let d={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${u} + ${w(n)})`;d={flexBasis:e,maxWidth:e}}}i=Object(o.a)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===e.breakpoints.values[a]?Object.assign(r,i):r[e.breakpoints.up(a)]=i,r},{})})),x=a.forwardRef((function(e,t){const n=Object(d.a)({props:e,name:"MuiGrid"}),s=Object(c.a)(n),{className:u,columns:p,columnSpacing:h,component:m="div",container:b=!1,direction:w="row",item:x=!1,lg:E=!1,md:A=!1,rowSpacing:k,sm:S=!1,spacing:L=0,wrap:j="wrap",xl:C=!1,xs:T=!1,zeroMinWidth:P=!1}=s,M=Object(r.a)(s,y),N=k||L,R=h||L,I=a.useContext(f),D=p||I||12,H=Object(o.a)({},s,{columns:D,container:b,direction:w,item:x,lg:E,md:A,sm:S,rowSpacing:N,columnSpacing:R,wrap:j,xl:C,xs:T,zeroMinWidth:P}),G=(e=>{const{classes:t,container:n,direction:r,item:o,lg:a,md:i,sm:s,spacing:c,wrap:u,xl:d,xs:f,zeroMinWidth:p}=e,h={root:["root",n&&"container",o&&"item",p&&"zeroMinWidth",..._(c,n),"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==u&&`wrap-xs-${String(u)}`,!1!==f&&`grid-xs-${String(f)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==i&&`grid-md-${String(i)}`,!1!==a&&`grid-lg-${String(a)}`,!1!==d&&`grid-xl-${String(d)}`]};return Object(l.a)(h,g,t)})(H);return F=Object(v.jsx)(O,Object(o.a)({ownerState:H,className:Object(i.a)(G.root,u),as:m,ref:t},M)),12!==D?Object(v.jsx)(f.Provider,{value:D,children:F}):F;var F}));t.a=x},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return v}));var r,o=n(142),a=n(1963),i=n(23),s=n(0),c=n(255),l=n(97),u=n(135);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t(o>>1)-1?(o>>1)-c:c,a.isubn(s)):s=0,r[i]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,o=0;e.cmpn(-r)>0||t.cmpn(-o)>0;){var a,i,s,c=e.andln(3)+r&3,l=t.andln(3)+o&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))a=0;else a=3!==(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c;if(n[0].push(a),0==(1&l))i=0;else i=3!==(s=t.andln(7)+o&7)&&5!==s||2!==c?l:-l;n[1].push(i),2*r===a+1&&(r=1-r),2*o===i+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o(e,"hex","le")}},function(e,t,n){"use strict";var r=n(72),o=r.Map,a=r.OrderedSet,i=r.Record,s=a(),c={style:s,entity:null},l=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return u;var t=o({style:s,entity:null}).merge(e),n=d.get(t);if(n)return n;var a=new r(t);return d=d.set(t,a),a},r}(i(c)),u=new l,d=o([[o(c),u]]);l.EMPTY=u,e.exports=l},function(e,t,n){"use strict";var r=n(187),o=n(398),a=n(72),i=a.List,s=a.Map,c=a.OrderedSet,l=a.Record,u=a.Repeat,d=c(),f={parent:null,characterList:i(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:i(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i(u(r.EMPTY,n.length))),e},m=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return e.call(this,g(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getKey=function(){return this.get("key")},a.getType=function(){return this.get("type")},a.getText=function(){return this.get("text")},a.getCharacterList=function(){return this.get("characterList")},a.getLength=function(){return this.getText().length},a.getDepth=function(){return this.get("depth")},a.getData=function(){return this.get("data")},a.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},a.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},a.getChildKeys=function(){return this.get("children")},a.getParentKey=function(){return this.get("parent")},a.getPrevSiblingKey=function(){return this.get("prevSibling")},a.getNextSiblingKey=function(){return this.get("nextSibling")},a.findStyleRanges=function(e,t){o(this.getCharacterList(),p,e,t)},a.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},r}(l(f));e.exports=m},function(e,t,n){"use strict";var r=n(435);t.a=r.a},function(e,t,n){"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1142);n.d(t,"a",(function(){return r.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r,o=n(90),a=n(32),i=n(128),s=n(39);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new A(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function h(){}function g(){}var m={};s(m,o,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(k([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==c(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?o.splice(a,1,{id:e,order:r}):o.push({id:e,order:r}),n({accountsOrder:o})}),[t,e,n])};v(_,"useAccountsOrder{{ data: accountsOrder }}\nuseUpdateAccountsOrder{[updateAccountsOrder]}\nuseCallback{}",(function(){return[w,y]}));var O,x,E=function(e,t){var n,r;return null!==(n=null===(r=e.find((function(e){return e.id===t})))||void 0===r?void 0:r.order)&&void 0!==n?n:[]},A=function(e,t){return e&&e.length?i()(t,(function(t){return e.findIndex((function(e){return e===t.id}))})):t};(O="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(O.register(y,"useUpdateAccountsOrder","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/order.ts"),O.register(w,"useAccountsOrder","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/order.ts"),O.register(_,"useUpdateAccountOrder","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/order.ts"),O.register(E,"findOrderInGroup","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/order.ts"),O.register(A,"sortAccounts","/__w/1255/s/packages/cx/src/graphql/hooks/accounts/order.ts")),(x="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&x(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(9),o=(n(17),n(205)),a=n(121),i=n(366),s=n(40);var c,l,u=function(){function e(){this.known=new(i.d?WeakSet:Set),this.pool=new o.a(i.c),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Object(a.a)(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Object(a.a)(e)){var t=function(e){return Object(a.a)(e)?Object(s.f)(e)?e.slice(0):Object(r.a)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Object(a.a)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(c=this.pool.lookupArray(r)).array||(this.known.add(c.array=r),__DEV__&&Object.freeze(r)),c.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),i=[o],s=this.sortedKeys(e);i.push(s.json);var c,l=i.length;if(s.sorted.forEach((function(n){i.push(t.admit(e[n]))})),!(c=this.pool.lookupArray(i)).object){var u=c.object=Object.create(o);this.known.add(u),s.sorted.forEach((function(e,t){u[e]=i[l+t]})),__DEV__&&Object.freeze(u)}return c.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),d=Object.assign((function(e){if(Object(a.a)(e)){void 0===c&&f();var t=c.admit(e),n=l.get(t);return void 0===n&&l.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:f});function f(){c=new u,l=new(i.c?WeakMap:Map)}},function(e,t,n){"use strict";t.a=function(e){return"string"==typeof e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(9),o=(n(17),n(1277));function a(e){return e.hasOwnProperty("graphQLErrors")}var i=function(e){function t(n){var r=n.graphQLErrors,a=n.clientErrors,i=n.networkError,s=n.errorMessage,c=n.extraInfo,l=e.call(this,s)||this;return l.graphQLErrors=r||[],l.clientErrors=a||[],l.networkError=i||null,l.message=s||function(e){var t="";(Object(o.a)(e.graphQLErrors)||Object(o.a)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")}));return e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")}(l),l.extraInfo=c,l.__proto__=t.prototype,l}return Object(r.c)(t,e),t}(Error)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(172),o=new(n(204).a),a=new WeakMap;function i(e){var t=a.get(e);return t||a.set(e,t={vars:new Set,dep:Object(r.a)()}),t}function s(e){i(e).vars.forEach((function(t){return t.forgetCache(e)}))}function c(e){i(e).vars.forEach((function(t){return t.attachCache(e)}))}function l(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach((function(e){i(e).dep.dirty(r),u(e)}));var c=Array.from(n);n.clear(),c.forEach((function(t){return t(e)}))}}else{var l=o.getValue();l&&(a(l),i(l).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var a=r.attachCache=function(e){return t.add(e),i(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function u(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||c,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,d=/\/\*[^]*?\*\/| +/g,f=/\n+/g,p=(e,t)=>{let n="",r="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+i+";":r+="f"==a[1]?p(i,a):a+"{"+p(i,"k"==a[1]?"":t)+"}":"object"==typeof i?r+=p(i,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=i&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=p.p?p.p(a,i):a+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},h={},g=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+g(e[n]);return t}return e},m=(e,t,n,r,o)=>{let a=g(e),i=h[a]||(h[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!h[i]){let t=a!==e?e:(e=>{let t,n,r=[{}];for(;t=u.exec(e.replace(d,""));)t[4]?r.shift():t[3]?(n=t[3].replace(f," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(f," ").trim();return r[0]})(e);h[i]=p(o?{["@keyframes "+i]:t}:t,n?"":"."+i)}let s=n&&h.g?h.g:null;return n&&(h.g=h[i]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(h[i],t,r,s),i},b=(e,t,n)=>e.reduce((e,r,o)=>{let a=t[o];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":p(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function v(e){let t=this||{},n=e.call?e(t.p):e;return m(n.unshift?n.raw?b(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,l(t.target),t.g,t.o,t.k)}v.bind({g:1}),v.bind({k:1});function y(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return Ie})),n.d(t,"b",(function(){return Ae})),n.d(t,"c",(function(){return Ee}));var A=function(){return""},k=o.a.createContext({enqueueSnackbar:A,closeSnackbar:A}),S="@media (max-width:599.95px)",L="@media (min-width:600px)",j=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},C=function(e){return""+j(e.vertical)+j(e.horizontal)},T=function(e){return!!e||0===e},P=function(e){function t(t){var n;n=e.call(this,t)||this;var r,o=t.appear;return n.appearStatus=null,t.in?o?(r="exited",n.appearStatus="entering"):r="entered":r=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",n.state={status:r},n.nextCallback=null,n}O(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=e,o=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:"entering"},(function(){t.props.onEntering&&t.props.onEntering(t.node,r),t.onTransitionEnd(o.enter,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))}))}))):this.safeSetState({status:"entered"},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:"exiting"},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props;return(0,t.children)(e,x(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},w(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(o.a.Component);function M(){}function N(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function R(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){N(e,n),N(t,n)}}),[e,t])}function I(e){var t=e.timeout,n=e.style,r=void 0===n?{}:n,o=e.mode;return{duration:"object"==typeof t?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}P.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:M,onEntering:M,onEntered:M,onExit:M,onExiting:M,onExited:M};var D="cubic-bezier(0.4, 0, 0.2, 1)",H="cubic-bezier(0.0, 0, 0.2, 1)",G="cubic-bezier(0.4, 0, 0.6, 1)",F=function(e){e.scrollTop=e.scrollTop},z=function(e){return Math.round(e)+"ms"};function B(e,t){void 0===e&&(e=["all"]);var n=t||{},r=n.duration,o=void 0===r?300:r,a=n.easing,i=void 0===a?D:a,s=n.delay,c=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof o?o:z(o),n="string"==typeof c?c:z(c);return e+" "+t+" "+i+" "+n})).join(",")}function U(e){return function(e){return e&&e.ownerDocument||document}(e).defaultView||window}function V(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),o=U(t);if(t.fakeTransform)n=t.fakeTransform;else{var a=o.getComputedStyle(t);n=a.getPropertyValue("-webkit-transform")||a.getPropertyValue("transform")}var i=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),s=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+i-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-i)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var W=Object(r.forwardRef)((function(e,t){var n=e.children,o=e.direction,a=void 0===o?"down":o,i=e.in,s=e.style,c=e.timeout,l=void 0===c?0:c,u=e.onEnter,d=e.onEntered,f=e.onExit,p=e.onExited,h=x(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=Object(r.useRef)(null),m=R(n.ref,g),b=R(m,t),v=Object(r.useCallback)((function(){g.current&&V(a,g.current)}),[a]);return Object(r.useEffect)((function(){if(!i&&"down"!==a&&"right"!==a){var e=function(e,t){var n;function r(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i-1,a=e.snacks.findIndex(t)>-1;if(r||a)return e}return n.handleDisplaySnack(_({},e,{queue:[].concat(e.queue,[f])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?_({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?_({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),_({},e,{open:!1})):_({},e,{requestClose:!0}))}));return _({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!T(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===r?_({},e,{entered:!0}):_({},e)}))}}))},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.id===r?e.entered?_({},e,{open:!1}):_({},e,{requestClose:!0}):_({},e)})),queue:n.filter((function(e){return e.id!==r}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));T(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!T(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var r=n.processQueue(_({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===r.queue.length?r:n.handleDismissOldest(r)}))},Ee=n.enqueueSnackbar,Ae=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(E(n)),closeSnackbar:n.closeSnackbar.bind(E(n))}},n}return O(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.domRoot,i=n.children,s=n.dense,c=void 0!==s&&s,l=n.Components,u=void 0===l?{}:l,d=n.classes,f=this.state.snacks.reduce((function(e,t){var n,r=C(t.anchorOrigin),o=e[r]||[];return _({},e,((n={})[r]=[].concat(o,[t]),n))}),{}),p=Object.keys(f).map((function(t){var n=f[t],r=n[0];return o.a.createElement(Ne,{key:t,dense:c,anchorOrigin:r.anchorOrigin,classes:d},n.map((function(t){return o.a.createElement(Le,{key:t.id,snack:t,classes:d,Component:u[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:ue([e.handleExitedSnack,e.props.onExited],t.id),onEntered:ue([e.handleEnteredSnack,e.props.onEntered],t.id)})})))}));return o.a.createElement(k.Provider,{value:t},i,r?Object(a.createPortal)(p,r):p)},w(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Q.maxSnack}}]),t}(r.Component)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(36),o=n(723),a=n(587),i=n(377),s=n(724),c=n(584),l=n(449)("IE_PROTO"),u=function(){},d=function(){var e,t=c("iframe"),n=a.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("