(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{19413:function(e,t,n){"use strict";n.d(t,{g:function(){return nq}});/*! ***************************************************************************** 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,i,o,a,s,u,c,f,l,d,h,p,g,m,v,y,b,w,S,k,E,A,_,C,T,I,x,P,O,U,R,D,N,j,M,B,F=function(e,t){return(F=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 L(e,t){function n(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var V=function(){return(V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function G(e){return e&&!!["provider"].find(function(t){return e.hasOwnProperty(t)})}function W(e){return void 0!==e.redirectSignIn}(r=m||(m={})).Cognito="COGNITO",r.Google="Google",r.Facebook="Facebook",r.Amazon="LoginWithAmazon",r.Apple="SignInWithApple",(i=v||(v={})).NoConfig="noConfig",i.MissingAuthConfig="missingAuthConfig",i.EmptyUsername="emptyUsername",i.InvalidUsername="invalidUsername",i.EmptyPassword="emptyPassword",i.EmptyCode="emptyCode",i.SignUpError="signUpError",i.NoMFA="noMFA",i.InvalidMFA="invalidMFA",i.EmptyChallengeResponse="emptyChallengeResponse",i.NoUserSession="noUserSession",i.Default="default",i.DeviceConfig="deviceConfig",i.NetworkError="networkError",i.AutoSignInError="autoSignInError",(o=y||(y={})).API_KEY="API_KEY",o.AWS_IAM="AWS_IAM",o.OPENID_CONNECT="OPENID_CONNECT",o.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",o.AWS_LAMBDA="AWS_LAMBDA";var q=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},H=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i=s){var u=console.log.bind(console);t===b.ERROR&&console.error&&(u=console.error.bind(console)),t===b.WARN&&console.warn&&(u=console.warn.bind(console));var c="[".concat(t,"] ").concat(this._ts()," ").concat(this.name),f="";if(1===i.length&&"string"==typeof i[0])u(f="".concat(c," - ").concat(i[0]));else if(1===i.length)f="".concat(c," ").concat(i[0]),u(c,i[0]);else if("string"==typeof i[0]){var l=i.slice(1);1===l.length&&(l=l[0]),f="".concat(c," - ").concat(i[0]," ").concat(l),u("".concat(c," - ").concat(i[0]),l)}else f="".concat(c," ").concat(i),u(c,i);try{for(var d=q(this._pluggables),h=d.next();!h.done;h=d.next()){var p=h.value,g={message:f,timestamp:Date.now()};p.pushLogs([g])}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ee=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i-1&&r!==en&&et.warn("WARNING: ".concat(e," is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:X({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(e){et.error(e)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),void 0!==t.onHubCapsule)et.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else if("function"!=typeof t)throw Error("No callback supplied to Hub");else r=t;if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i._remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach(function(r){et.debug("Dispatching to ".concat(t," with "),n);try{r.callback(e)}catch(e){et.error(e)}}),this.patterns.length>0){if(!n.message){et.warn("Cannot perform pattern matching without a message key");return}var i=n.message;this.patterns.forEach(function(t){var n=i.match(t.pattern);if(n){var r=Q(n).slice(1),o=X(X({},e),{patternInfo:r});try{t.callback(o)}catch(e){et.error(e)}}})}},e}())("__default__"),ei={},eo=function(){function e(){}return e.setItem=function(e,t){return ei[e]=t,ei[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(ei,e)?ei[e]:void 0},e.removeItem=function(e){return delete ei[e]},e.clear=function(){return ei={}},e}(),ea=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=eo}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),es=n(83454),eu=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then(function(e){return r=!0,t=!1,e},function(e){throw n=!0,t=!1,e});return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},ec=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==es&&null!=es.versions&&null!=es.versions.node}},ef=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!ed(e))return e;var r={};for(var i in e)e.hasOwnProperty(i)&&(r[t.includes(i)?i:i[0].toLowerCase()+i.slice(1)]=n.includes(i)?e[i]:ef(e[i],t,n));return r},el=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!ed(e))return e;var r={};for(var i in e)e.hasOwnProperty(i)&&(r[t.includes(i)?i:i[0].toUpperCase()+i.slice(1)]=n.includes(i)?e[i]:el(e[i],t,n));return r},ed=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},eh=(s=function(e,t){return(s=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(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ep=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},eg=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ev=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;ie)&&n}}var eS=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},eU=new J("Amplify"),eR=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Notifications=null,this.Logger=J,this.ServiceWorker=null}return e.prototype.register=function(e){eU.debug("component registered in amplify",e),this._components.push(e),"function"==typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):eU.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e&&(this._config=Object.assign(this._config,e),eU.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(e){var n=eO(e,2),r=(n[0],n[1]);Object.keys(r).forEach(function(e){t._modules[e]&&(r[e]=t._modules[e])})}),this._components.map(function(e){e.configure(t._config)})),this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e}()),eD={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},eN={partitions:[eD,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},ej=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eM=function(e){var t,n,r=eN.partitions;try{for(var i=ej(r),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.regions,u=a.outputs,c=a.regionRegex,f=new RegExp(c);if(s.includes(e)||f.test(e))return u.dnsSuffix}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return eD.outputs.dnsSuffix},eB=function(){return(eB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=0;a--)o=(0,t[a])(r)(o,i);return o(n)}};n(63144);var eK=function(e){var t;return function(){return t||(t=e()),t}},eG=function(){return(eG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]c?t.attemptsCount:c+1,t.attemptsCount=c,[4,r(f,u)];case 6:if(!d.sent())return[3,9];if(!(!(null==o?void 0:o.aborted)&&c0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},e0=function(e){return eJ(void 0,void 0,void 0,function(){var t,n,r,i,o,a,s;return eX(this,function(u){switch(u.label){case 0:if(!e||e.statusCode<300)return[2];return[4,e1(e)];case 1:var c;return t=u.sent(),n=(c=eQ((null!==(o=null!==(i=null!==(r=e.headers["x-amzn-errortype"])&&void 0!==r?r:t.code)&&void 0!==i?i:t.__type)&&void 0!==o?o:"UnknownError").toString().split(/[\,\:]+/),1)[0]).includes("#")?c.split("#")[1]:c,[2,Object.assign(Error(null!==(s=null!==(a=t.message)&&void 0!==a?a:t.Message)&&void 0!==s?s:"Unknown error"),{name:n,$metadata:eH(e)})]}})})},e1=function(e){return eJ(void 0,void 0,void 0,function(){return eX(this,function(t){switch(t.label){case 0:if(!e.body)throw Error("Missing response payload");return[4,e.body.json()];case 1:return[2,Object.assign(t.sent(),{$metadata:eH(e)})]}})})},e2=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],e5=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},th="aws-amplify",tp=new(function(){function e(){this.userAgent="".concat(th,"/").concat(e6)}return Object.defineProperty(e.prototype,"framework",{get:function(){return tc()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReactNative",{get:function(){return this.framework===w.ReactNative||this.framework===w.Expo},enumerable:!1,configurable:!0}),e.prototype.observeFrameworkChanges=function(e){tf(e)},e}()),tg=function(e){var t=void 0===e?{}:e,n=t.category,r=t.action;t.framework;var i=[[th,e6]];return n&&i.push([n,r]),i.push(["framework",tc()]),i},tm=function(e){return tg(e).map(function(e){var t=td(e,2),n=t[0],r=t[1];return"".concat(n,"/").concat(r)}).join(" ")},tv=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=300))return[3,2];return[4,e0(e)];case 1:throw t.sent();case 2:return[4,e1(e)];case 3:return[2,{IdentityId:t.sent().IdentityId,$metadata:eH(e)}]}})},new(r||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())})},tb),tT=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=300))return[3,2];return[4,e0(e)];case 1:throw n.sent();case 2:return[4,e1(e)];case 3:var r;return[2,{IdentityId:(t=n.sent()).IdentityId,Credentials:(void 0===(r=t.Credentials)&&(r={}),{AccessKeyId:r.AccessKeyId,SecretKey:r.SecretKey,SessionToken:r.SessionToken,Expiration:new Date(1e3*r.Expiration)}),$metadata:eH(e)}]}})},new(r||(r=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(a,s)}u((i=i.apply(t,n||[])).next())})},tb),tx=function(){return(tx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]new Date().getTime())?(tN.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(tN.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(tN.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,i=e.user;return(function(e,t,n,r){return ep(this,void 0,void 0,function(){var i=this;return eg(this,function(o){if("function"!=typeof e)throw Error("functionToRetry must be a function");return[2,new Promise(function(o,a){return ep(i,void 0,void 0,function(){var i,s,u,c,f,l,d;return eg(this,function(h){switch(h.label){case 0:i=0,s=!1,c=function(){},r&&r.then(function(){s=!0,clearTimeout(u),c()}),l=function(){var r,l,d,h;return eg(this,function(p){switch(p.label){case 0:i++,ey.debug("".concat(e.name," attempt #").concat(i," with this vars: ").concat(JSON.stringify(t))),p.label=1;case 1:return p.trys.push([1,3,,7]),r={},l=o,[4,e.apply(void 0,ev([],em(t),!1))];case 2:return[2,(r.value=l.apply(void 0,[p.sent()]),r)];case 3:if(f=d=p.sent(),ey.debug("error on ".concat(e.name),d),d&&d.nonRetryable)return ey.debug("".concat(e.name," non retryable error"),d),[2,{value:a(d)}];if(h=n(i,t,d),ey.debug("".concat(e.name," retrying in ").concat(h," ms")),!(!1===h||s))return[3,4];return[2,{value:a(d)}];case 4:return[4,new Promise(function(e){u=setTimeout(c=e,h)})];case 5:p.sent(),p.label=6;case 6:return[3,7];case 7:return[2]}})},h.label=1;case 1:if(s)return[3,3];return[5,l()];case 2:if("object"==typeof(d=h.sent()))return[2,d.value];return[3,1];case 3:return a(f),[2]}})})})]})})})(n,[],ew(1e4),void 0).then(function(e){return tN.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,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(),tN.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)})},e.prototype._isExpired=function(e){if(!e)return tN.debug("no credentials for expiration check"),!0;tN.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(){var e;return tR(this,void 0,void 0,function(){var t,n,r,i,o,a,s,u,c,f=this;return tD(this,function(l){switch(l.label){case 0:if(tN.debug("setting credentials for guest"),(null===(e=this._config)||void 0===e?void 0:e.identityPoolId)||(this._config=Object.assign({},this._config,tO(this._config||{}).Auth)),n=(t=this._config).identityPoolId,r=t.region,i=t.mandatorySignIn,o=t.identityPoolRegion,i)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!n)return tN.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!o&&!r)return tN.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];return s=this,[4,this._getGuestIdentityId()];case 1:return a=s._identityId=l.sent(),u={region:null!=o?o:r},c=tR(f,void 0,void 0,function(){var e,t;return tD(this,function(r){switch(r.label){case 0:if(a)return[3,2];return[4,tC(u,{IdentityPoolId:n})];case 1:e=r.sent().IdentityId,this._identityId=e,r.label=2;case 2:return[4,tI(u,{IdentityId:this._identityId})];case 3:return t=r.sent().Credentials,[2,{identityId:this._identityId,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}})}).catch(function(e){return tR(f,void 0,void 0,function(){return tD(this,function(t){throw e})})}),[2,this._loadCredentials(c,"guest",!1,null).then(function(e){return e}).catch(function(e){return tR(f,void 0,void 0,function(){var t=this;return tD(this,function(r){switch(r.label){case 0:if(!("ResourceNotFoundException"===e.name&&e.message==="Identity '".concat(a,"' not found.")))return[3,2];return tN.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()];case 1:return r.sent(),c=tR(t,void 0,void 0,function(){var e,t;return tD(this,function(r){switch(r.label){case 0:return[4,tC(u,{IdentityPoolId:n})];case 1:return e=r.sent().IdentityId,this._identityId=e,[4,tI(u,{IdentityId:e})];case 2:return[2,{identityId:e,accessKeyId:(t=r.sent().Credentials).AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}})}).catch(function(e){return tR(t,void 0,void 0,function(){return tD(this,function(t){throw e})})}),[2,this._loadCredentials(c,"guest",!1,null)];case 2:return[2,e]}})})})]}})})},e.prototype._setCredentialsFromFederation=function(e){var t=this,n=e.provider,r=e.token,i=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[n]||n;if(!o)return Promise.reject("You must specify a federated provider");var a={};a[o]=r;var s=this._config,u=s.identityPoolId,c=s.region,f=s.identityPoolRegion;if(!u)return tN.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!f&&!c)return tN.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var l={region:null!=f?f:c},d=tR(t,void 0,void 0,function(){var e;return tD(this,function(t){switch(t.label){case 0:if(i)return[3,2];return[4,tC(l,{IdentityPoolId:u,Logins:a})];case 1:i=t.sent().IdentityId,t.label=2;case 2:return[4,tI(l,{IdentityId:i,Logins:a})];case 3:return[2,{identityId:i,accessKeyId:(e=t.sent().Credentials).AccessKeyId,secretAccessKey:e.SecretKey,sessionToken:e.SessionToken,expiration:e.Expiration}]}})}).catch(function(e){return tR(t,void 0,void 0,function(){return tD(this,function(t){throw e})})});return this._loadCredentials(d,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;tN.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,a=r.identityPoolId,s=r.identityPoolRegion;if(!a)return tN.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!s&&!i)return tN.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var u={};u["cognito-idp."+i+".amazonaws.com/"+o]=n;var c={region:null!=s?s:i},f=tR(t,void 0,void 0,function(){var e,t,n,r,i,o,s,f,l;return tD(this,function(d){switch(d.label){case 0:return[4,this._getGuestIdentityId()];case 1:if(e=d.sent())return[3,3];return[4,tC(c,{IdentityPoolId:a,Logins:u})];case 2:t=d.sent().IdentityId,d.label=3;case 3:return[4,tI(c,{IdentityId:e||t,Logins:u})];case 4:if(i=(r=(n=d.sent()).Credentials).AccessKeyId,o=r.Expiration,s=r.SecretKey,f=r.SessionToken,l=n.IdentityId,this._identityId=l,!e)return[3,6];return tN.debug("The guest identity ".concat(e," has been successfully linked to the logins")),e===l&&tN.debug("The guest identity ".concat(e," has become the primary identity")),[4,this._removeGuestIdentityId()];case 5:d.sent(),d.label=6;case 6:return[2,{accessKeyId:i,secretAccessKey:s,sessionToken:f,expiration:o,identityId:l}]}})}).catch(function(e){return tR(t,void 0,void 0,function(){return tD(this,function(t){throw e})})});return this._loadCredentials(f,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this;return new Promise(function(a,s){e.then(function(e){return tR(i,void 0,void 0,function(){var i,s,u,c,f;return tD(this,function(l){switch(l.label){case 0:if(tN.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=n,o._credentials_source=t,o._nextCredentialsRefresh=new Date().getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},r.user),s=r.provider,u=r.token,c=r.expires_at,f=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:s,token:u,user:i,expires_at:c,identity_id:f}))}catch(e){tN.debug("Failed to put federated info into auth storage",e)}}if("guest"!==t)return[3,2];return[4,this._setGuestIdentityId(e.identityId)];case 1:l.sent(),l.label=2;case 2:return a(o._credentials),[2]}})})}).catch(function(t){if(t){tN.debug("Failed to load credentials",e),tN.debug("Error loading credentials",t),s(t);return}})})},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(tN.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return tR(this,void 0,void 0,function(){return tD(this,function(e){return this._credentials=null,this._credentials_source=null,tN.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},e.prototype._getGuestIdentityId=function(){return tR(this,void 0,void 0,function(){var e,t;return tD(this,function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=n.sent(),tN.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}})})},e.prototype._setGuestIdentityId=function(e){return tR(this,void 0,void 0,function(){var t,n;return tD(this,function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return n=r.sent(),tN.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}})})},e.prototype._removeGuestIdentityId=function(){return tR(this,void 0,void 0,function(){var e;return tD(this,function(t){return e=this._config.identityPoolId,tN.debug("removing ".concat(this._getCognitoIdentityIdStorageKey(e)," from storage")),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]})})},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);eR.register(tB);var tF=n(76489);function tL(e,t){void 0===t&&(t={});var n,r=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(void 0===(n=t.doNotParse)&&(n=!r||"{"!==r[0]&&"["!==r[0]&&'"'!==r[0]),!n)try{return JSON.parse(r)}catch(e){}return e}var tV=function(){return(tV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}(),tZ=function(){return(tZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),tH=n(41938);function t$(e,t){null!=e&&this.fromString(e,t)}function tJ(){return new t$(null)}var tX="undefined"!=typeof navigator;tX&&"Microsoft Internet Explorer"==navigator.appName?(t$.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,f=s*u+c*a;i=((u=a*u+((32767&f)<<15)+n[r]+(1073741823&i))>>>30)+(f>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},N=30):tX&&"Netscape"!=navigator.appName?(t$.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},N=26):(t$.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,f=s*u+c*a;i=((u=a*u+((16383&f)<<14)+n[r]+i)>>28)+(f>>14)+s*c,n[r++]=268435455&u}return i},N=28),t$.prototype.DB=N,t$.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 t5(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},t5.prototype.revert=function(e){var t=tJ();return e.copyTo(t),this.reduce(t),t},t5.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(n=t+this.m.t,e[n]+=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)},t5.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},t5.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},t$.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},t$.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},t$.prototype.fromString=function(e,t){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)n=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var n,r=e.length,i=!1,o=0;--r>=0;){var a=function(e,t){var n=tQ[e.charCodeAt(t)];return null==n?-1:n}(e,r);if(a<0){"-"==e.charAt(r)&&(i=!0);continue}i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB)}this.clamp(),i&&t$.ZERO.subTo(this,this)},t$.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},t$.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},t$.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},t$.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=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()},t$.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=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()},t$.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,f=o[c-1];if(0!=f){var l=f*(1<1?o[c-2]>>this.F2:0),d=this.FV/l,h=(1<=0&&(n[n.t++]=1,n.subTo(v,n)),t$.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t=0;){var y=n[--g]==f?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*h);if((n[g]+=o.am(0,y,n,m,0,c))0&&n.rShiftTo(u,n),a<0&&t$.ZERO.subTo(n,n)}}},t$.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((1&e)==0)return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},t$.prototype.addTo=function(e,t){for(var n=0,r=0,i=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()},t$.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else if(4==e)t=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");var t,n,r=(1<0)for(s>s)>0&&(i=!0,o=t0(n));a>=0;)s>(s+=this.DB-t):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=t0(n));return i?o:"0"},t$.prototype.negate=function(){var e=tJ();return t$.ZERO.subTo(this,e),e},t$.prototype.abs=function(){return this.s<0?this.negate():this},t$.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},t$.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+t2(this[this.t-1]^this.s&this.DM)},t$.prototype.mod=function(e){var t=tJ();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(t$.ZERO)>0&&e.subTo(t,t),t},t$.prototype.equals=function(e){return 0==this.compareTo(e)},t$.prototype.add=function(e){var t=tJ();return this.addTo(e,t),t},t$.prototype.subtract=function(e){var t=tJ();return this.subTo(e,t),t},t$.prototype.multiply=function(e){var t=tJ();return this.multiplyTo(e,t),t},t$.prototype.divide=function(e){var t=tJ();return this.divRemTo(e,t,null),t},t$.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=t1(1),a=new t5(t);if(i<=0)return o;var s=[],u=3,c=(r=i<18?1:i<48?3:i<144?4:i<768?5:6)-1,f=(1<1){var l=tJ();for(a.sqrTo(s[1],l);u<=f;)s[u]=tJ(),a.mulTo(l,s[u-2],s[u]),u+=2}var d,h,p=e.t-1,g=!0,m=tJ();for(i=t2(e[p])-1;p>=0;){for(i>=c?d=e[p]>>i-c&f:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+i-c)),u=r;(1&d)==0;)d>>=1,--u;if((i-=u)<0&&(i+=this.DB,--p),g)s[d].copyTo(o),g=!1;else{for(;u>1;)a.sqrTo(o,m),a.sqrTo(m,o),u-=2;u>0?a.sqrTo(o,m):(h=o,o=m,m=h),a.mulTo(m,s[d],o)}for(;p>=0&&(e[p]&1<e.compareTo(t$.ZERO),n=e.abs().toString(16);if(n=n.length%2!=0?"0"+n:n,n=t4.test(n)?"00"+n:n,t){var r=n.split("").map(function(e){var t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)}).join("");(n=new t$(r,16).add(t$.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},e}(),t8=function(){function e(e){this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(tq.lW.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}();function t9(e,t){return(t9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}/*! * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */var t7=function(e){var t;function n(t){var n=(void 0===t?{}:t).AccessToken;return e.call(this,n||"")||this}return(t=n).prototype=Object.create(e.prototype),t.prototype.constructor=t,t9(t,e),n}(t8);function ne(e,t){return(ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}/*! * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */var nt=function(e){var t;function n(t){var n=(void 0===t?{}:t).IdToken;return e.call(this,n||"")||this}return(t=n).prototype=Object.create(e.prototype),t.prototype.constructor=t,ne(t,e),n}(t8),nn=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),nr={userAgent:"aws-amplify/5.0.4",isReactNative:"undefined"!=typeof navigator&&"ReactNative"===navigator.product},ni=function(){function e(e){var t=void 0===e?{}:e,n=t.IdToken,r=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(null==i||null==n)throw Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e5e3)&&t}).then(function(e){return n(null,e)}).catch(function(e){return n(e)})},t.request=function(e,t,n){var r,i={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":nv(),"Cache-Control":"no-store"},o=Object.assign({},this.fetchOptions,{headers:i,method:"POST",mode:"cors",body:JSON.stringify(t)});fetch(this.endpoint,o).then(function(e){return r=e,e},function(e){if(e instanceof TypeError)throw Error("Network error");throw e}).then(function(e){return e.json().catch(function(){return{}})}).then(function(e){if(r.ok)return n(null,e);var t=(e.__type||e.code).split("#").pop(),i=Error(e.message||e.Message||null);return i.name=t,i.code=t,n(i)}).catch(function(e){if(r&&r.headers&&r.headers.get("x-amzn-errortype"))try{var t=r.headers.get("x-amzn-errortype").split(":")[0],i=Error(r.status?r.status.toString():null);return i.code=t,i.name=t,i.statusCode=r.status,n(i)}catch(e){}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return n(e)})},e}(),nA={debug:function(){}},n_=function(){function e(e,t){var n=e||{},r=n.UserPoolId,i=n.ClientId,o=n.endpoint,a=n.fetchOptions,s=n.AdvancedSecurityDataCollectionFlag;if(!r||!i)throw Error("Both UserPoolId and ClientId are required.");if(r.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(r))throw Error("Invalid UserPoolId format.");var u=r.split("_")[0];this.userPoolId=r,this.clientId=i,this.client=new nE(u,o,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||new nl().getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,r,i,o){var a=this,s={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:o};this.getUserContextData(e)&&(s.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",s,function(t,n){if(t)return i(t,null);var r={Username:e,Pool:a,Storage:a.storage};return i(null,{user:new nh(r),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails})})},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new nh(n)}return null},t.getUserContextData=function(e){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),nC=n(36808),nT=function(){function e(e){if(void 0===e&&(e={}),e.domain&&(this.domain=e.domain),e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),nC.set(e,t,n),nC.get(e)},t.getItem=function(e){return nC.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),nC.remove(e,t)},t.clear=function(){for(var e=nC.get(),t=Object.keys(e).length,n=0;n0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){var t=new tH.Sha256;t.update(e);var n=t.digestSync(),r=tq.lW.from(n).toString("base64");return this._base64URL(r)},e.prototype._base64URL=function(e){return e.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;n18e4?(clearInterval(r),nW("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),t._storage.removeItem("amplify-auto-sign-in")):t.signInAfterUserConfirmed(e,null,r)},5e3)},e.prototype.signInAfterUserConfirmed=function(e,t,n){return z(this,void 0,void 0,function(){var r,i,o=this;return Z(this,function(a){switch(a.label){case 0:r=this.createCognitoUser(e.getUsername()),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.authenticateUser(e,this.authCallbacks(r,function(r){nW("autoSignIn",r,e.getUsername()+" has signed in successfully"),t&&er.remove("auth",t),n&&(clearInterval(n),o._storage.removeItem("amplify-polling-started")),o._storage.removeItem("amplify-auto-sign-in")},function(e){nZ.error(e),o._storage.removeItem("amplify-auto-sign-in")}))];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),nZ.error(i),[3,4];case 4:return[2]}})})},e.prototype.confirmSignUp=function(e,t,n){var r,i=this;if(!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(v.EmptyUsername);if(!t)return this.rejectAuthError(v.EmptyCode);var o=this.createCognitoUser(e),a=!n||"boolean"!=typeof n.forceAliasCreation||n.forceAliasCreation;return n&&n.clientMetadata?r=n.clientMetadata:this._config.clientMetadata&&(r=this._config.clientMetadata),new Promise(function(n,s){o.confirmRegistration(t,a,function(t,r){t?s(t):(nW("confirmSignUp",r,e+" has been confirmed successfully"),i.isTrueStorageValue("amplify-auto-sign-in")&&!i.autoSignInInitiated&&(nW("autoSignIn_failure",null,v.AutoSignInError),i._storage.removeItem("amplify-auto-sign-in")),n(r))},r)})},e.prototype.isTrueStorageValue=function(e){var t=this._storage.getItem(e);return!!t&&"true"===t},e.prototype.resendSignUp=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(v.EmptyUsername);var n=this.createCognitoUser(e);return new Promise(function(e,r){n.resendConfirmationCode(function(t,n){t?r(t):e(n)},t)})},e.prototype.signIn=function(e,t,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var r=null,i=null,o={};if("string"==typeof e)r=e,i=t;else{if(!e.username)return this.rejectAuthError(v.InvalidUsername);void 0!==t&&nZ.warn("The password should be defined under the first parameter object!"),r=e.username,i=e.password,o=e.validationData}if(!r)return this.rejectAuthError(v.EmptyUsername);var a=new tW({Username:r,Password:i,ValidationData:o,ClientMetadata:n});return i?this.signInWithPassword(a):this.signInWithoutPassword(a)},e.prototype.authCallbacks=function(e,t,n){var r=this,i=this;return{onSuccess:function(o){return z(r,void 0,void 0,function(){var r,a,s,u;return Z(this,function(c){switch(c.label){case 0:nZ.debug(o),delete e.challengeName,delete e.challengeParam,c.label=1;case 1:return c.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return c.sent(),[4,this.Credentials.set(o,"session")];case 3:return r=c.sent(),nZ.debug("succeed to get cognito credentials",r),[3,9];case 4:return a=c.sent(),nZ.debug("cannot get cognito credentials",a),[3,9];case 5:return c.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return s=c.sent(),i.user=s,nW("signIn",s,"A user "+e.getUsername()+" has been signed in"),t(s),[3,8];case 7:return u=c.sent(),nZ.error("Failed to get the signed in user",u),n(u),[3,8];case 8:return[7];case 9:return[2]}})})},onFailure:function(t){nZ.debug("signIn failure",t),nW("signIn_failure",t,e.getUsername()+" failed to signin"),n(t)},customChallenge:function(n){nZ.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=n,t(e)},mfaRequired:function(n,r){nZ.debug("signIn MFA required"),e.challengeName=n,e.challengeParam=r,t(e)},mfaSetup:function(n,r){nZ.debug("signIn mfa setup",n),e.challengeName=n,e.challengeParam=r,t(e)},newPasswordRequired:function(n,r){nZ.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:n,requiredAttributes:r},t(e)},totpRequired:function(n,r){nZ.debug("signIn totpRequired"),e.challengeName=n,e.challengeParam=r,t(e)},selectMFAType:function(n,r){nZ.debug("signIn selectMFAType",n),e.challengeName=n,e.challengeParam=r,t(e)}}},e.prototype.signInWithPassword=function(e){var t=this;if(this.pendingSignIn)throw Error("Pending sign-in attempt already in progress");var n=this.createCognitoUser(e.getUsername());return this.pendingSignIn=new Promise(function(r,i){n.authenticateUser(e,t.authCallbacks(n,function(e){t.pendingSignIn=null,r(e)},function(e){t.pendingSignIn=null,i(e)}))}),this.pendingSignIn},e.prototype.signInWithoutPassword=function(e){var t=this,n=this.createCognitoUser(e.getUsername());return n.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise(function(r,i){n.initiateAuth(e,t.authCallbacks(n,r,i))})},e.prototype.getMFAOptions=function(e){return new Promise(function(t,n){e.getMFAOptions(function(e,r){if(e){nZ.debug("get MFA Options failed",e),n(e);return}nZ.debug("get MFA options success",r),t(r)})})},e.prototype.getPreferredMFA=function(e,t){var n=this,r=this;return new Promise(function(i,o){var a=n._config.clientMetadata,s=!!t&&t.bypassCache;e.getUserData(function(t,a){return z(n,void 0,void 0,function(){var n,s;return Z(this,function(u){switch(u.label){case 0:if(!t)return[3,5];if(nZ.debug("getting preferred mfa failed",t),!this.isSessionInvalid(t))return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return u.sent(),[3,4];case 3:return n=u.sent(),o(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return o(t),[2];case 5:if(!(s=r._getMfaTypeFromUserData(a)))return o("invalid MFA Type"),[2];return i(s),[2]}})})},{bypassCache:s,clientMetadata:a})})},e.prototype._getMfaTypeFromUserData=function(e){var t=null,n=e.PreferredMfaSetting;if(n)t=n;else{var r=e.UserMFASettingList;r?0===r.length?t="NOMFA":nZ.debug("invalid case for getPreferredMFA",e):t=e.MFAOptions?"SMS_MFA":"NOMFA"}return t},e.prototype._getUserData=function(e,t){var n=this;return new Promise(function(r,i){e.getUserData(function(t,o){return z(n,void 0,void 0,function(){var n;return Z(this,function(a){switch(a.label){case 0:if(!t)return[3,5];if(nZ.debug("getting user data failed",t),!this.isSessionInvalid(t))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),i(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return i(t),[2];case 5:r(o),a.label=6;case 6:return[2]}})})},t)})},e.prototype.setPreferredMFA=function(e,t){return z(this,void 0,void 0,function(){var n,r,i,o,a,s,u=this;return Z(this,function(c){switch(c.label){case 0:return n=this._config.clientMetadata,[4,this._getUserData(e,{bypassCache:!0,clientMetadata:n})];case 1:switch(r=c.sent(),i=null,o=null,t){case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return o={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return i={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return a=r.UserMFASettingList,[4,this._getMfaTypeFromUserData(r)];case 5:if("NOMFA"===(s=c.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===s)i={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==s)return[2,this.rejectAuthError(v.InvalidMFA)];o={PreferredMfa:!1,Enabled:!1}}return a&&0!==a.length&&a.forEach(function(e){"SMS_MFA"===e?i={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(o={PreferredMfa:!1,Enabled:!1})}),[3,7];case 6:return nZ.debug("no validmfa method provided"),[2,this.rejectAuthError(v.NoMFA)];case 7:return[2,new Promise(function(t,r){e.setUserMfaPreference(i,o,function(i,o){if(i)return nZ.debug("Set user mfa preference error",i),r(i);nZ.debug("Set user mfa success",o),nZ.debug("Caching the latest user data into local"),e.getUserData(function(n,i){return z(u,void 0,void 0,function(){var i;return Z(this,function(a){switch(a.label){case 0:if(!n)return[3,5];if(nZ.debug("getting user data failed",n),!this.isSessionInvalid(n))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(Error("Session is invalid due to: "+n.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,r(n)];case 5:return[2,t(o)]}})})},{bypassCache:!0,clientMetadata:n})})})]}})})},e.prototype.disableSMS=function(e){return new Promise(function(t,n){e.disableMFA(function(e,r){if(e){nZ.debug("disable mfa failed",e),n(e);return}nZ.debug("disable mfa succeed",r),t(r)})})},e.prototype.enableSMS=function(e){return new Promise(function(t,n){e.enableMFA(function(e,r){if(e){nZ.debug("enable mfa failed",e),n(e);return}nZ.debug("enable mfa succeed",r),t(r)})})},e.prototype.setupTOTP=function(e){return new Promise(function(t,n){e.associateSoftwareToken({onFailure:function(e){nZ.debug("associateSoftwareToken failed",e),n(e)},associateSecretCode:function(e){nZ.debug("associateSoftwareToken success",e),t(e)}})})},e.prototype.verifyTotpToken=function(e,t){nZ.debug("verification totp token",e,t),e&&"function"==typeof e.getSignInUserSession&&(n=e.getSignInUserSession());var n,r=null==n?void 0:n.isValid();return new Promise(function(n,i){e.verifySoftwareToken(t,"My TOTP device",{onFailure:function(e){nZ.debug("verifyTotpToken failed",e),i(e)},onSuccess:function(t){r||nW("signIn",e,"A user "+e.getUsername()+" has been signed in"),nW("verify",e,"A user "+e.getUsername()+" has been verified"),nZ.debug("verifyTotpToken success",t),n(t)}})})},e.prototype.confirmSignIn=function(e,t,n,r){var i=this;if(void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(v.EmptyCode);var o=this;return new Promise(function(a,s){e.sendMFACode(t,{onSuccess:function(t){return z(i,void 0,void 0,function(){var n,r,i,s;return Z(this,function(u){switch(u.label){case 0:nZ.debug(t),u.label=1;case 1:return u.trys.push([1,4,5,10]),[4,this.Credentials.clear()];case 2:return u.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=u.sent(),nZ.debug("succeed to get cognito credentials",n),[3,10];case 4:return r=u.sent(),nZ.debug("cannot get cognito credentials",r),[3,10];case 5:o.user=e,u.label=6;case 6:return u.trys.push([6,8,,9]),[4,this.currentUserPoolUser()];case 7:return i=u.sent(),e.attributes=i.attributes,[3,9];case 8:return s=u.sent(),nZ.debug("cannot get updated Cognito User",s),[3,9];case 9:return nW("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 10:return[2]}})})},onFailure:function(e){nZ.debug("confirm signIn failure",e),s(e)}},n,r)})},e.prototype.completeNewPassword=function(e,t,n,r){var i=this;if(void 0===n&&(n={}),void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(v.EmptyPassword);var o=this;return new Promise(function(a,s){e.completeNewPasswordChallenge(t,n,{onSuccess:function(t){return z(i,void 0,void 0,function(){var n,r;return Z(this,function(i){switch(i.label){case 0:nZ.debug(t),i.label=1;case 1:return i.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return i.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=i.sent(),nZ.debug("succeed to get cognito credentials",n),[3,6];case 4:return r=i.sent(),nZ.debug("cannot get cognito credentials",r),[3,6];case 5:return o.user=e,nW("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 6:return[2]}})})},onFailure:function(e){nZ.debug("completeNewPassword failure",e),nW("completeNewPassword_failure",e,i.user+" failed to complete the new password flow"),s(e)},mfaRequired:function(t,n){nZ.debug("signIn MFA required"),e.challengeName=t,e.challengeParam=n,a(e)},mfaSetup:function(t,n){nZ.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,a(e)},totpRequired:function(t,n){nZ.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,a(e)}},r)})},e.prototype.sendCustomChallengeAnswer=function(e,t,n){var r=this;return(void 0===n&&(n=this._config.clientMetadata),this.userPool)?t?new Promise(function(i,o){e.sendCustomChallengeAnswer(t,r.authCallbacks(e,i,o),n)}):this.rejectAuthError(v.EmptyChallengeResponse):this.rejectNoUserPool()},e.prototype.deleteUserAttributes=function(e,t){var n=this;return new Promise(function(r,i){n.userSession(e).then(function(n){e.deleteAttributes(t,function(e,t){return e?i(e):r(t)})})})},e.prototype.deleteUser=function(){return z(this,void 0,void 0,function(){var e,t,n=this;return Z(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._storageSync];case 1:return r.sent(),[3,3];case 2:throw e=r.sent(),nZ.debug("Failed to sync cache info into memory",e),Error(e);case 3:return t=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(e,r){return z(n,void 0,void 0,function(){var n,i=this;return Z(this,function(o){if(this.userPool){if(!(n=this.userPool.getCurrentUser()))return nZ.debug("Failed to get user from user pool"),[2,r(Error("No current user."))];n.getSession(function(o,a){return z(i,void 0,void 0,function(){var i,a=this;return Z(this,function(s){switch(s.label){case 0:if(!o)return[3,5];if(nZ.debug("Failed to get the user session",o),!this.isSessionInvalid(o))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(n)];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),r(Error("Session is invalid due to: "+o.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,r(o)];case 5:n.deleteUser(function(i,o){if(i)r(i);else{nW("userDeleted",o,"The authenticated user has been deleted."),n.signOut(),a.user=null;try{a.cleanCachedItems()}catch(e){nZ.debug("failed to clear cached items")}t?a.oAuthSignOutRedirect(e,r):(nW("signOut",a.user,"A user has been signed out"),e(o))}}),s.label=6;case 6:return[2]}})})})}else nZ.debug("no Congito User pool"),r(Error("Cognito User pool does not exist"));return[2]})})})]}})})},e.prototype.updateUserAttributes=function(e,t,n){var r=this;void 0===n&&(n=this._config.clientMetadata);var i=[],o=this;return new Promise(function(a,s){o.userSession(e).then(function(o){for(var u in t)if("sub"!==u&&0>u.indexOf("_verified")){var c={Name:u,Value:t[u]};i.push(c)}e.updateAttributes(i,function(e,n,i){return e?(nW("updateUserAttributes_failure",e,"Failed to update attributes"),s(e)):(nW("updateUserAttributes",r.createUpdateAttributesResultList(t,null==i?void 0:i.CodeDeliveryDetailsList),"Attributes successfully updated"),a(n))},n)})})},e.prototype.createUpdateAttributesResultList=function(e,t){var n={};return Object.keys(e).forEach(function(e){n[e]={isUpdated:!0};var r=null==t?void 0:t.find(function(t){return t.AttributeName===e});r&&(n[e].isUpdated=!1,n[e].codeDeliveryDetails=r)}),n},e.prototype.userAttributes=function(e){var t=this;return new Promise(function(n,r){t.userSession(e).then(function(t){e.getUserAttributes(function(e,t){e?r(e):n(t)})})})},e.prototype.verifiedContact=function(e){var t=this;return this.userAttributes(e).then(function(e){var n=t.attributesToObject(e),r={},i={};return n.email&&(n.email_verified?i.email=n.email:r.email=n.email),n.phone_number&&(n.phone_number_verified?i.phone_number=n.phone_number:r.phone_number=n.phone_number),{verified:i,unverified:r}})},e.prototype.isErrorWithMessage=function(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"message")},e.prototype.isTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Access Token has been revoked"===e.message},e.prototype.isRefreshTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has been revoked"===e.message},e.prototype.isUserDisabledError=function(e){return this.isErrorWithMessage(e)&&"User is disabled."===e.message},e.prototype.isUserDoesNotExistError=function(e){return this.isErrorWithMessage(e)&&"User does not exist."===e.message},e.prototype.isRefreshTokenExpiredError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has expired"===e.message},e.prototype.isPasswordResetRequiredError=function(e){return this.isErrorWithMessage(e)&&"Password reset required for the user"===e.message},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI")},e.prototype.isSessionInvalid=function(e){return this.isUserDisabledError(e)||this.isUserDoesNotExistError(e)||this.isTokenRevokedError(e)||this.isRefreshTokenRevokedError(e)||this.isRefreshTokenExpiredError(e)||this.isPasswordResetRequiredError(e)},e.prototype.cleanUpInvalidSession=function(e){return z(this,void 0,void 0,function(){var t=this;return Z(this,function(n){switch(n.label){case 0:e.signOut(),this.user=null,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return n.sent(),[3,4];case 3:return n.sent(),nZ.debug("failed to clear cached items"),[3,4];case 4:if(this.isSignedInHostedUI())return[2,new Promise(function(e,n){t.oAuthSignOutRedirect(e,n)})];return nW("signOut",this.user,"A user has been signed out"),[2]}})})},e.prototype.currentUserPoolUser=function(e){var t=this;return this.userPool?new Promise(function(n,r){t._storageSync.then(function(){return z(t,void 0,void 0,function(){var t,i,o,a,s,u=this;return Z(this,function(c){switch(c.label){case 0:if(!this.isOAuthInProgress())return[3,2];return nZ.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise(function(e){var t=setTimeout(function(){nZ.debug("OAuth signIn in progress timeout"),er.remove("auth",n),e()},1e4);function n(r){var i=r.payload.event;("cognitoHostedUI"===i||"cognitoHostedUI_failure"===i)&&(nZ.debug("OAuth signIn resolved: "+i),clearTimeout(t),er.remove("auth",n),e())}er.listen("auth",n)})];case 1:c.sent(),c.label=2;case 2:if(!(t=this.userPool.getCurrentUser()))return nZ.debug("Failed to get user from user pool"),r("No current user"),[2];c.label=3;case 3:return c.trys.push([3,7,,8]),[4,this._userSession(t)];case 4:if(i=c.sent(),!(o=!!e&&e.bypassCache))return[3,6];return[4,this.Credentials.clear()];case 5:c.sent(),c.label=6;case 6:if(a=this._config.clientMetadata,!(void 0===(s=i.getAccessToken().decodePayload().scope)?"":s).split(" ").includes(nK))return nZ.debug("Unable to get the user data because the "+nK+" is not in the scopes of the access token"),[2,n(t)];return t.getUserData(function(e,i){return z(u,void 0,void 0,function(){var o,a,s,u,c,f;return Z(this,function(l){switch(l.label){case 0:if(!e)return[3,7];if(nZ.debug("getting user data failed",e),!this.isSessionInvalid(e))return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return l.sent(),[3,4];case 3:return o=l.sent(),r(Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return r(e),[3,6];case 5:n(t),l.label=6;case 6:return[2];case 7:for(u=0,a=i.PreferredMfaSetting||"NOMFA",s=[];ur.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var i=this.bufferLength;i>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],f=t[7],l=0;l>>17|d<<15)^(d>>>19|d<<13)^d>>>10,p=((d=this.temp[l-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(h+this.temp[l-7]|0)+(p+this.temp[l-16]|0)}var g=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&c)|0)+(f+(r.KEY[l]+this.temp[l]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&o^i&o)|0;f=c,c=u,u=s,s=a+g|0,a=o,o=i,i=n,n=g+m|0}t[0]+=n,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=c,t[7]+=f},e}();t.RawSha256=i},89945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=9007199254740991},41938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,n(73541).__exportStar)(n(65430),t)},65430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(73541),i=n(89945),o=n(10914),a=n(17658),s=function(){function e(e){if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var n=new o.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(i.BLOCK_SIZE);return r.set(t),r}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(t);for(var r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw 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,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{var n;(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(e){f(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[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,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(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,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(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 A(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},51106:function(e,t,n){"use strict";var r=n(48764).lW;Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var i=n(98143),o=void 0!==r&&r.from?function(e){return r.from(e,"utf8")}:i.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},17658:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var r=n(51106);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var i=n(84304);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=n(22174);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=n(81558);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},84304:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},22174:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},81558:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)},i=function(e){for(var t="",n=0,r=e.length;n0?a-4:a;for(n=0;n>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[f++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:function(e,t,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var r=n(79742),i=n(80645),o=n(87300);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.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 I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(e).length;default:if(r)return I(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=t;a2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),isNaN(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=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;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var l=!0,d=0;d239?4:c>223?3:c>191?2:1;if(i+l<=n)switch(l){case 1:c<128&&(f=c);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function S(e,t,n,r,i,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function k(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>(r?i:1-i)*8}function E(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>(r?i:3-i)*8&255}function A(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function _(e,t,n,r,o){return o||A(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function C(e,t,n,r,o){return o||A(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return(f(e),e<=0)?s(null,e):void 0!==t?"string"==typeof n?s(null,e).fill(t,n):s(null,e).fill(t):s(null,e)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!!(null!=e&&e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw 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===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),c=this.slice(r,i),f=e.slice(t,n),l=0;lm)&&(n=m),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var v=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,g);default:if(v)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),v=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;S(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):E(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):E(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);S(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);S(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):E(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):E(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},u.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 RangeError("sourceStart out of bounds");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function x(e){for(var t=[],n=0;n=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}},87300:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},76489:function(e,t){"use strict";/*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */t.Q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},i=e.split(";"),o=(t||{}).decode||n,a=0;a */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,f=-7,l=n?i-1:0,d=n?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,f=(1<>1,d=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+l>=1?t+=d/u:t+=d*Math.pow(2,1-l),t*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*g}},36808:function(e,t,n){var r,i;void 0!==(r="function"==typeof(i=function(){function e(){for(var e=0,t={};e1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:x(e)?2:P(e)?3:0}function C(e,t){return 2===_(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function T(e,t,n){var r=_(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function I(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function x(e){return et&&e instanceof Map}function P(e){return en&&e instanceof Set}function O(e){return e.o||e.t}function U(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ec(e);delete t[ea];for(var n=eu(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=D),Object.freeze(e),t&&A(e,function(e,t){return R(t,!0)},!0)),e}function D(){S(2)}function N(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function j(e){var t=ef[e];return t||S(18,e),t}function M(e,t){t&&(j("Patches"),e.u=[],e.s=[],e.v=t)}function B(e){F(e),e.p.forEach(V),e.p=null}function F(e){e===Q&&(Q=e.l)}function L(e){return Q={p:[],l:Q,h:e,m:!0,_:0}}function V(e){var t=e[ea];0===t.i||1===t.i?t.j():t.g=!0}function z(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||j("ES5").S(t,e,r),r?(n[ea].P&&(B(t),S(4)),E(e)&&(e=Z(t,e),t.l||G(t,e)),t.u&&j("Patches").M(n[ea].t,e,t.u,t.s)):e=Z(t,n,[]),B(t),t.u&&t.v(t.u,t.s),e!==ei?e:void 0}function Z(e,t,n){if(N(t))return t;var r=t[ea];if(!r)return A(t,function(i,o){return K(e,r,t,i,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return G(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=U(r.k):r.o,o=i,a=!1;3===r.i&&(o=new Set(i),i.clear(),a=!0),A(o,function(t,o){return K(e,r,i,t,o,n,a)}),G(e,i,!1),n&&e.u&&j("Patches").N(r,n,e.u,e.s)}return r.o}function K(e,t,n,r,i,o,a){if(k(i)){var s=Z(e,i,o&&t&&3!==t.i&&!C(t.R,r)?o.concat(r):void 0);if(T(n,r,s),!k(s))return;e.m=!1}else a&&n.add(i);if(E(i)&&!N(i)){if(!e.h.D&&e._<1)return;Z(e,i),t&&t.A.l||G(e,i)}}function G(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&R(t,n)}function W(e,t){var n=e[ea];return(n?O(n):e)[t]}function q(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Y(e){e.P||(e.P=!0,e.l&&Y(e.l))}function H(e){e.o||(e.o=U(e.t))}function $(e,t,n){var r,i,o,a,s,u,c,f=x(t)?j("MapSet").F(t,n):P(t)?j("MapSet").T(t,n):e.O?(o=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:Q,P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},a=el,r&&(o=[i],a=ed),u=(s=Proxy.revocable(o,a)).revoke,c=s.proxy,i.k=c,i.j=u,c):j("ES5").J(t,n);return(n?n.A:Q).p.push(f),f}function J(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return U(e)}var X,Q,ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),et="undefined"!=typeof Map,en="undefined"!=typeof Set,er="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ei=ee?Symbol.for("immer-nothing"):((X={})["immer-nothing"]=!0,X),eo=ee?Symbol.for("immer-draftable"):"__$immer_draftable",ea=ee?Symbol.for("immer-state"):"__$immer_state",es=""+Object.prototype.constructor,eu="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ec=Object.getOwnPropertyDescriptors||function(e){var t={};return eu(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ef={},el={get:function(e,t){if(t===ea)return e;var n,r,i=O(e);if(!C(i,t))return(r=q(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var o=i[t];return e.I||!E(o)?o:o===W(e.t,t)?(H(e),e.o[t]=$(e.A.h,o,e)):o},has:function(e,t){return t in O(e)},ownKeys:function(e){return Reflect.ownKeys(O(e))},set:function(e,t,n){var r=q(O(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=W(O(e),t),o=null==i?void 0:i[ea];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(I(n,i)&&(void 0!==n||C(e.t,t)))return!0;H(e),Y(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==W(e.t,t)||t in e.t?(e.R[t]=!1,H(e),Y(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=O(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){S(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){S(12)}},ed={};A(el,function(e,t){ed[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ed.deleteProperty=function(e,t){return ed.set.call(this,e,t,void 0)},ed.set=function(e,t,n){return el.set.call(this,e[0],t,n,e[0])};var eh=new(function(){function e(e){var t=this;this.O=er,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i,o=n;return n=e,function(e){var r=this;void 0===e&&(e=o);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s1?r-1:0),o=1;o=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=j("Patches").$;return k(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}());eh.produce,eh.produceWithPatches.bind(eh),eh.setAutoFreeze.bind(eh),eh.setUseProxies.bind(eh),eh.applyPatches.bind(eh),eh.createDraft.bind(eh),eh.finishDraft.bind(eh);var ep=n(4942);function eg(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 em(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0;t--){var i=e[t][ea];if(!i.P)switch(i.i){case 5:r(i)&&Y(i);break;case 4:n(i)&&Y(i)}}}function n(e){for(var t=e.t,n=e.k,r=eu(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==ea){var a=t[o];if(void 0===a&&!C(t,o))return!0;var s=n[o],u=s&&s[ea];if(u?u.t!==a:!I(s,a))return!0}}var c=!!t[ea];return r.length!==eu(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:eJ,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e$.Xd:return(0,eH.Z)((0,i.Z)({},e),{activity:e.activity.concat(t.activity)});case e$.jt:return(0,eH.Z)((0,i.Z)({},e),{activity:t.activity});case e$.iw:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{activity:t.activity})});case e$.l4:return(0,eH.Z)((0,i.Z)({},e),{checked:t.checked});case e$.dQ:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{checked:t.checked})});case e$.sz:return(0,eH.Z)((0,i.Z)({},e),{offset:t.offset});case e$.tv:return(0,eH.Z)((0,i.Z)({},e),{query:t.query});default:return(0,i.Z)({},e)}},current:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eQ,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case eX.l4:return(0,eH.Z)((0,i.Z)({},e),{checked:t.checked});case eX.IV:return(0,eH.Z)((0,i.Z)({},e),{coin:t.coin});case eX.gU:return(0,eH.Z)((0,i.Z)({},e),{endpoints:t.endpoints});case eX.lN:return(0,eH.Z)((0,i.Z)({},e),{pools:t.pools});default:return(0,i.Z)({},e)}},dashboard:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e1,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e0.jt:return(0,eH.Z)((0,i.Z)({},e),{activity:t.activity});case e0.l4:return(0,eH.Z)((0,i.Z)({},e),{checked:t.checked});case e0.d1:return(0,eH.Z)((0,i.Z)({},e),{payments:t.payments});case e0.lN:return(0,eH.Z)((0,i.Z)({},e),{pools:t.pools});default:return(0,i.Z)({},e)}},landing:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e5,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e2.l:return(0,eH.Z)((0,i.Z)({},e),{pools:t.pools});case e2.t:return(0,eH.Z)((0,i.Z)({},e),{query:t.query});default:return(0,i.Z)({},e)}},mining:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e4,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e3.sz:return(0,eH.Z)((0,i.Z)({},e),{offset:t.offset});case e3.dl:return(0,eH.Z)((0,i.Z)({},e),{pools:e.pools.concat(t.pools)});case e3.lN:return(0,eH.Z)((0,i.Z)({},e),{pools:t.pools});case e3.tv:return(0,eH.Z)((0,i.Z)({},e),{query:t.query});default:return(0,i.Z)({},e)}},payments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e8,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e6.l4:return(0,eH.Z)((0,i.Z)({},e),{checked:t.checked});case e6.k2:return(0,eH.Z)((0,i.Z)({},e),{active:(0,eH.Z)((0,i.Z)({},e.active),{checked:t.checked})});case e6.dQ:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{checked:t.checked})});case e6.sz:return(0,eH.Z)((0,i.Z)({},e),{offset:t.offset});case e6.Xb:return(0,eH.Z)((0,i.Z)({},e),{payments:e.payments.concat(t.payments)});case e6.d1:return(0,eH.Z)((0,i.Z)({},e),{payments:t.payments});case e6.nA:return(0,eH.Z)((0,i.Z)({},e),{active:(0,eH.Z)((0,i.Z)({},e.active),{payments:t.payments})});case e6.v$:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{payments:t.payments})});case e6.tv:return(0,eH.Z)((0,i.Z)({},e),{query:t.query});default:return(0,i.Z)({},e)}},pools:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e7,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case e9.l4:return(0,eH.Z)((0,i.Z)({},e),{checked:t.checked});case e9.dQ:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{checked:t.checked})});case e9.GM:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{coin:t.coin})});case e9.Nw:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{endpoints:t.endpoints})});case e9.sz:return(0,eH.Z)((0,i.Z)({},e),{offset:t.offset});case e9.dl:return(0,eH.Z)((0,i.Z)({},e),{pools:e.pools.concat(t.pools)});case e9.lN:return(0,eH.Z)((0,i.Z)({},e),{pools:t.pools});case e9.dD:return(0,eH.Z)((0,i.Z)({},e),{current:(0,eH.Z)((0,i.Z)({},e.current),{pools:t.pools})});case e9.tv:return(0,eH.Z)((0,i.Z)({},e),{query:t.query});default:return(0,i.Z)({},e)}},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case te.l4:return(0,eH.Z)((0,i.Z)({},e),{checked:t.checked});case te.Uh:return(0,eH.Z)((0,i.Z)({},e),{createdAt:t.createdAt});case te.WM:return(0,eH.Z)((0,i.Z)({},e),{emailAddress:t.emailAddress});case te.OP:return(0,eH.Z)((0,i.Z)({},e),{metadata:t.metadata});case te.Qi:return(0,eH.Z)((0,i.Z)({},e),{userId:t.userId});case te.cs:return(0,eH.Z)((0,i.Z)({},e),{vipScore:t.vipScore});default:return(0,i.Z)({},e)}}})}),tr=n(11163),ti=n(10272),to=n(19521);function ta(e){var t=e.Component,n=e.pageProps,r=(0,o.Z)((0,c.useState)("light"),2),s=r[0],l=r[1],d=(0,tr.useRouter)(),p="https://blinkhash.com"+d.asPath,b=(0,c.useCallback)(function(e){localStorage.setItem("theme",e),l(e)},[]),S=(0,c.useCallback)(function(){b(s===ti.bY.LIGHT?"dark":"light")},[b,s]);return(0,c.useEffect)(function(){b(localStorage.getItem("theme")||"light")},[b]),(0,c.useEffect)(function(){var e=function(e){return f(e)};return d.events.on("routeChangeComplete",e),function(){d.events.off("routeChangeComplete",e)}},[d.events]),(0,a.jsxs)("div",{className:u().className,children:[(0,a.jsx)(h.xP,{}),(0,a.jsx)(y.zt,{store:tn,children:(0,a.jsxs)(to.f6,{theme:s===ti.bY.LIGHT?m:v,children:[(0,a.jsxs)(g(),{children:[(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"}),(0,a.jsx)("meta",{name:"theme-color",content:"#000000"}),(0,a.jsx)("meta",{name:"description",content:"The official website for Blinkhash. Making mining pool ownership accessible for the layman."}),(0,a.jsx)("link",{rel:"apple-touch-icon",href:"/logo192.png"}),(0,a.jsx)("link",{rel:"manifest",href:"/manifest.json",crossOrigin:"use-credentials"}),(0,a.jsx)("link",{rel:"canonical",href:p}),(0,a.jsx)("title",{children:"Blinkhash | Mining "})]}),(0,a.jsx)(w(),{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat("G-JLLLCVV440")}),(0,a.jsx)(w(),{dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat("G-JLLLCVV440","', { page_path: window.location.pathname });\n ")}}),(0,a.jsx)(t,(0,i.Z)({theme:s,toggleTheme:S},n))]})})]})}d.vc.autoAddCss=!1,l.g.configure({region:"us-east-1",userPoolId:"us-east-1_lnKYw1dtC",userPoolWebClientId:"1f7msvhnp0jn7t2asp51qm6ipa",mandatorySignIn:!0,authenticationFlowType:"USER_SRP_AUTH"})},54045:function(e,t,n){"use strict";n.d(t,{BB:function(){return E},De:function(){return x},R6:function(){return S},WT:function(){return C},jh:function(){return _},kY:function(){return A},mI:function(){return T},mn:function(){return w},pN:function(){return I},xB:function(){return b},xP:function(){return y},zV:function(){return k}});var r=n(7297),i=n(19521),o=n(10272);function a(){var e=(0,r.Z)(["\n\n // Global Styles\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n // Font Styles\n @font-face {\n font-family: 'Lato Bold';\n src: url('/fonts/Lato-Bold.ttf') format('truetype');\n font-weight: normal;\n font-style: normal;\n }\n\n @font-face {\n font-family: 'Lato Regular';\n src: url('/fonts/Lato-Regular.ttf') format('truetype');\n font-weight: normal;\n font-style: normal;\n }\n\n // Main Helpers\n html {\n width: 100vw;\n font-family: sans-serif;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n\n body {\n margin: 0;\n min-height: 100vh;\n font-family: 'Lato Regular', sans-serif;\n line-height: 1.5;\n text-align: left;\n overflow-x: hidden;\n position: relative;\n }\n\n code {\n font-family: 'Lato Regular', sans-serif !important;\n font-size: 14px !important;\n }\n\n pre {\n margin: 20px 0;\n }\n\n hr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n p {\n margin-top: 0;\n margin-bottom: 15px;\n }\n\n a {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n }\n\n a:hover {\n color: #2db594;\n text-decoration: none;\n }\n\n .linenumber {\n width: 2.5em !important;\n min-width: 2.5em !important;\n font-size: 13px;\n }\n"]);return a=function(){return e},e}function s(){var e=(0,r.Z)(["\n\n // Main Styling\n body {\n background-color: ",";\n }\n\n // Header Styling\n hr {\n margin: 25px 0 20px;\n border: 0;\n border-bottom: 1px solid ",";\n }\n\n h1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n font-weight: 500;\n line-height: 1.2;\n }\n\n h2 {\n font-size: 2rem;\n margin-bottom: 0.5rem;\n font-weight: 500;\n line-height: 1.2;\n }\n\n h3 {\n font-size: 16px !important;\n border-bottom: 1px solid ",";\n padding-bottom: 12px;\n margin-bottom: 0.5rem;\n font-weight: 500;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 16px !important;\n margin-top: 0;\n margin-bottom: 0.5rem;\n font-weight: 500;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1.25rem;\n margin-bottom: 0.5rem;\n font-weight: 500;\n line-height: 1.2;\n }\n\n h6 {\n font-size: 1rem;\n margin-bottom: 0.5rem;\n font-weight: 500;\n line-height: 1.2;\n }\n\n // Datepicker Styling\n .react-datepicker {\n border: 1px solid "," !important;\n border-radius: 5px;\n ","\n ","\n }\n\n .react-datepicker__triangle {\n display: none;\n }\n\n .react-datepicker__navigation-icon::before {\n border-color: "," !important;\n }\n\n .react-datepicker__header {\n background-color: "," !important;\n border-radius: 3px 3px 0 0 !important;\n border-bottom: 1px solid "," !important;\n }\n\n .react-datepicker__navigation {\n top: 4px !important;\n }\n\n .react-datepicker__navigation-icon {\n font-size: 18px !important;\n }\n\n .react-datepicker__aria-live {\n display: none;\n }\n\n .react-datepicker__current-month {\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 14px !important;\n margin-top: -1px;\n padding-bottom: 5px;\n color: ",";\n }\n\n .react-datepicker__month-container {\n background-color: "," !important;\n border-radius: 5px !important;\n }\n\n .react-datepicker__month {\n border-radius: 0 0 3px 3px !important;\n }\n\n .react-datepicker__day-name {\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 13px !important;\n color: ",";\n }\n\n .react-datepicker__day {\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 13px !important;\n color: ",";\n border-radius: 5px;\n }\n\n .react-datepicker__day--disabled {\n color: ",";\n }\n\n .react-datepicker__day:hover {\n background: ",";\n color: ",";\n transition: 0.2s ease-in all;\n }\n\n .react-datepicker__day--disabled:hover {\n background: "," !important;\n color: "," !important;\n }\n\n .react-datepicker__day--selected,\n .react-datepicker__day--keyboard-selected {\n background: ","; /* Old browsers */\n background: -moz-linear-gradient(left, "," 0%, "," 100%); /* FF3.6-15 */\n background: -webkit-linear-gradient(left, "," 0%, "," 100%); /* Chrome10-25,Safari5.1-6 */\n background: linear-gradient(to right, "," 0%, "," 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#434b9f', endColorstr='#192171',GradientType=1); /* IE6-9 */\n color: "," !important;\n }\n"]);return s=function(){return e},e}function u(){var e=(0,r.Z)(["\n width: 100vw;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n"]);return u=function(){return e},e}function c(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 50px;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: 64px;\n @media (max-width: 800px) {\n font-size: 42px;\n line-height: 55px;\n }\n @media (max-width: 500px) {\n font-size: 32px;\n line-height: 42px;\n }\n ","\n"]);return c=function(){return e},e}function f(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 36px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 800px) {\n font-size: 30px;\n }\n @media (max-width: 500px) {\n font-size: 24px;\n }\n ","\n"]);return f=function(){return e},e}function l(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 28px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 800px) {\n font-size: 24px;\n }\n @media (max-width: 500px) {\n font-size: 20px;\n }\n ","\n"]);return l=function(){return e},e}function d(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 800px) {\n font-size: 18px;\n }\n @media (max-width: 500px) {\n font-size: 16px;\n }\n ","\n"]);return d=function(){return e},e}function h(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 18px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 800px) {\n font-size: 15px;\n }\n @media (max-width: 500px) {\n font-size: 14px;\n }\n ","\n"]);return h=function(){return e},e}function p(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 16px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 500px) {\n font-size: 14px;\n }\n ","\n"]);return p=function(){return e},e}function g(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 15px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 500px) {\n font-size: 14px;\n }\n ","\n"]);return g=function(){return e},e}function m(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 500px) {\n font-size: 13px;\n }\n ","\n"]);return m=function(){return e},e}function v(){var e=(0,r.Z)(["\n font-family: 'Lato Regular', sans-serif;\n font-weight: 400;\n font-size: 13px;\n overflow: hidden;\n text-overflow: ellipsis;\n @media (max-width: 500px) {\n font-size: 12px;\n }\n ","\n"]);return v=function(){return e},e}var y=(0,i.vJ)(a()),b=(0,i.vJ)(s(),function(e){return e.theme.globalBackground},function(e){return e.theme.globalBorder},function(e){return e.theme.globalBorder},function(e){return e.theme.calendarBorder},function(e){return e.theme.type===o.bY.LIGHT&&"\n box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);\n "},function(e){return e.theme.type===o.bY.DARK&&"\n box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);\n "},function(e){return e.theme.calendarText},function(e){return e.theme.calendarBackground},function(e){return e.theme.calendarBorder},function(e){return e.theme.calendarText},function(e){return e.theme.calendarBackground2},function(e){return e.theme.calendarText},function(e){return e.theme.calendarText},function(e){return e.theme.calendarText3},function(e){return e.theme.hoverBackground},function(e){return e.theme.calendarText2},function(e){return e.theme.calendarBackground2},function(e){return e.theme.calendarText3},function(e){return e.theme.calendarBackground3},function(e){return e.theme.calendarBackground3},function(e){return e.theme.calendarBackground4},function(e){return e.theme.calendarBackground3},function(e){return e.theme.calendarBackground4},function(e){return e.theme.calendarBackground3},function(e){return e.theme.calendarBackground4},function(e){return e.theme.calendarText2}),w=i.ZP.div.withConfig({componentId:"sc-11be65e6-0"})(u(),function(e){return e.theme.globalBackground}),S=i.ZP.div.withConfig({componentId:"sc-11be65e6-1"})(c(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),k=i.ZP.div.withConfig({componentId:"sc-11be65e6-2"})(f(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),E=i.ZP.div.withConfig({componentId:"sc-11be65e6-3"})(l(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),A=i.ZP.div.withConfig({componentId:"sc-11be65e6-4"})(d(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),_=i.ZP.div.withConfig({componentId:"sc-11be65e6-5"})(h(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),C=i.ZP.div.withConfig({componentId:"sc-11be65e6-6"})(p(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),T=i.ZP.div.withConfig({componentId:"sc-11be65e6-7"})(g(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),I=i.ZP.div.withConfig({componentId:"sc-11be65e6-8"})(m(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "}),x=i.ZP.div.withConfig({componentId:"sc-11be65e6-9"})(v(),function(e){return e.bold&&"\n font-family: 'Lato Bold', sans-serif;\n "})},10272:function(e,t,n){"use strict";var r,i,o,a,s,u,c,f,l,d,h,p,g,m,v,y,b,w,S,k,E,A,_,C,T,I,x,P;n.d(t,{A0:function(){return f},Js:function(){return a},KU:function(){return c},TB:function(){return h},ZW:function(){return o},bY:function(){return p},e5:function(){return u},ft:function(){return l},jo:function(){return i},oY:function(){return m},sB:function(){return d},sD:function(){return s},xN:function(){return g},xe:function(){return r}}),(v=r||(r={})).ERROR="ERROR",v.UPDATE="UPDATE",(y=i||(i={})).COMPLETED="COMPLETED",y.CONFIRMED="CONFIRMED",y.CREATED="CREATED",y.DELAYED="DELAYED",y.FAILED="FAILED",y.NEW="NEW",y.PENDING="PENDING",y.RESOLVED="RESOLVED",y.UNKNOWN="UNKNOWN",(b=o||(o={})).CONFIRM="CONFIRM",b.FORGOT="FORGOT",b.INITIAL="INITIAL",b.MFA="MFA",b.MFA_SETUP="MFA_SETUP",b.PASSWORD="PASSWORD",b.RESET="RESET",(w=a||(a={})).ERROR_CODE="ERROR_CODE",w.ERROR_REQUEST="ERROR_REQUEST",w.ERROR_RESPONSE="ERROR_RESPONSE",w.ERROR_SCHEMA="ERROR_SCHEMA",w.ERROR_STATUS="ERROR_STATUS",w.ERROR_URL="ERROR_URL",w.ERROR_VERSION="ERROR_VERSION",w.WARNING_VERSION="WARNING_VERSION",(S=s||(s={})).NEW="NEW",S.EXISTING="EXISTING",(k=u||(u={})).CHOOSE_POOL="CHOOSE_POOL",k.CHOOSE_SUBSCRIPTION="CHOOSE_SUBSCRIPTION",k.PAYMENT_FLOW="PAYMENT_FLOW",k.POOL_FLOW="POOL_FLOW",k.SEND_SUBSCRIPTION="SEND_SUBSCRIPTION",k.SEND_POOL="SEND_POOL",k.SET_API_ENDPOINT="SET_API_ENDPOINT",k.SET_ATTRIBUTES="SET_ATTRIBUTES",k.SET_SUBSCRIPTION="SET_SUBSCRIPTION",k.VIEW_SUMMARY="VIEW_SUMMARY",(E=c||(c={})).ATTRIBUTES1="ATTRIBUTES1",E.ATTRIBUTES2="ATTRIBUTES2",E.ATTRIBUTES3="ATTRIBUTES3",E.DELETE="DELETE",(A=f||(f={})).MAIN="MAIN",A.WAITING="WAITING",A.DELETE_PAYMENTS="DELETE_PAYMENTS",A.DELETE_POOLS="DELETE_POOLS",A.GET_PAYMENTS="GET_PAYMENTS",A.GET_PAYMENTS_AMOUNTS="GET_PAYMENTS_AMOUNTS",A.GET_POOLS_COINS="GET_POOLS_COINS",A.GET_POOLS_COINS_OFFSET="GET_POOLS_COINS_OFFSET",A.GET_USERS_ACTIVITY="GET_USERS_ACTIVITY",A.GET_USERS_ACTIVITY_OFFSET="GET_USERS_ACTIVITY_OFFSET",A.GET_USERS_SECONDARY="GET_USERS_SECONDARY",A.GET_USERS_PAYMENTS="GET_USERS_PAYMENTS",A.GET_USERS_PAYMENTS_OFFSET="GET_USERS_PAYMENTS_OFFSET",A.GET_USERS_POOLS="GET_USERS_POOLS",A.GET_USERS_POOLS_OFFSET="GET_USERS_POOLS_OFFSET",A.PATCH_POOLS="PATCH_POOLS",A.PATCH_POOLS_SUBSCRIPTIONS="PATCH_POOLS_SUBSCRIPTIONS",A.POST_PAYMENTS="POST_PAYMENTS",A.POST_POOLS="POST_POOLS",A.VALIDATE_POOLS="VALIDATE_POOLS",(_=l||(l={})).ENABLED="ENABLED",_.DISABLED="DISABLED",(C=d||(d={})).ACTIVE="ACTIVE",C.INACTIVE="INACTIVE",C.INITIALIZING="INITIALIZING",(T=h||(h={})).MODIFY="0",T.MONTH1="1",T.MONTH2="2",T.MONTH3="3",T.MONTH6="6",T.MONTH12="12",T.MONTH24="24",(I=p||(p={})).DARK="dark",I.LIGHT="light",(x=g||(g={})).BASIC="1",x.ESSENTIALS="2",x.PROFESSIONAL="3",x.ENTERPRISE="4",(P=m||(m={})).V1="V1",P.V2="V2",P.UNKNOWN="UNKNOWN"},49033:function(e){e.exports={style:{fontFamily:"'__lato_5ac4e0', '__lato_Fallback_5ac4e0'"},className:"__className_5ac4e0"}},11987:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(97334)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete r[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=o,n=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function a(e){"string"==typeof e&&(e=y(e));var t,i,o,a,s,u,c,f,l,d=(i=(t=e).auth,o=t.hostname,a=t.protocol||"",s=t.pathname||"",u=t.hash||"",c=t.query||"",f=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",t.host?f=i+t.host:o&&(f=i+(~o.indexOf(":")?"["+o+"]":o),t.port&&(f+=":"+t.port)),c&&"object"==typeof c&&(c=n.encode(c)),l=t.search||c&&"?"+c||"",a&&":"!==a.substr(-1)&&(a+=":"),t.slashes||(!a||r.test(a))&&!1!==f?(f="//"+(f||""),s&&"/"!==s[0]&&(s="/"+s)):f||(f=""),u&&"#"!==u[0]&&(u="#"+u),l&&"?"!==l[0]&&(l="?"+l),{protocol:a,host:f,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:u});return""+d.protocol+d.host+d.pathname+d.search+d.hash}var s="http://",u=s+"w.w",c=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,f=/https?|ftp|gopher|file/;function l(e,t){var n="string"==typeof e?y(e):e;e="object"==typeof e?a(e):e;var r=y(t),i="";n.protocol&&!n.slashes&&(i=n.protocol,e=e.replace(n.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&r.protocol&&(i="",r.slashes||(i=r.protocol,t=t.replace(r.protocol,"")));var o=e.match(c);o&&!r.protocol&&(e=e.substr((i=o[1]+(o[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var l=new URL(e,u+"/"),d=new URL(t,l).toString().replace(u,""),h=r.protocol||n.protocol;return h+=n.slashes||r.slashes?"//":"",!i&&h?d=d.replace(s,h):i&&(d=d.replace(s,"")),f.test(d)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==d.slice(-1)||(d=d.slice(0,-1)),i&&(d=i+("/"===d[0]?d.substr(1):d)),d}function d(){}d.prototype.parse=y,d.prototype.format=a,d.prototype.resolve=l,d.prototype.resolveObject=l;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function y(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),e&&"object"==typeof e&&e instanceof d)return e;var i=(e=e.trim()).match(p);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(g),s=m.test(e),c="";o&&(h.test(o[1])||(c=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(s=!1,h.test(o[1])?(c=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(c=o[1],e="/"+o[3]));var f,l=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=l&&l[1],b=new d,w="",S="";try{f=new URL(e)}catch(t){w=t,c||r||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{f=new URL(e,u)}catch(e){return b.protocol=c,b.href=c,b}}b.slashes=s&&!S,b.host="w.w"===f.host?"":f.host,b.hostname="w.w"===f.hostname?"":f.hostname.replace(/(\[|\])/g,""),b.protocol=w?c||null:f.protocol,b.search=f.search.replace(/\\/g,"%5C"),b.hash=f.hash.replace(/\\/g,"%5C");var k=e.split("#");!b.search&&~k[0].indexOf("?")&&(b.search="?"),b.hash||""!==k[1]||(b.hash="#"),b.query=t?n.decode(f.search.substr(1)):b.search.substr(1),b.pathname=S+(o?f.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):f.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),c&&!h.test(c)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=f.port,y&&!b.host.endsWith(y)&&(b.host+=y,b.port=y.slice(1)),b.href=S?""+b.pathname+b.search+b.hash:a(b);var E=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~E.indexOf(e)||(b[e]=b[e]||null)}),b}t.parse=y,t.format=a,t.resolve=l,t.resolveObject=function(e,t){return y(l(e,t))},t.Url=d}(),e.exports=o}()},77663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],c=!1,f=-1;function l(){c&&r&&(c=!1,r.length?u=r.concat(u):f=-1,u.length&&d())}function d(){if(!c){var e=s(l);c=!0;for(var t=u.length;t;){for(r=u,u=[];++f1)for(var n=1;n0&&u>s&&(u=s);for(var c=0;c=0?(f=p.substr(0,g),l=p.substr(g+1)):(f=p,l=""),d=decodeURIComponent(f),h=decodeURIComponent(l),Object.prototype.hasOwnProperty.call(o,d))?t(o[d])?o[d].push(h):o[d]=[o[d],h]:o[d]=h}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(i(e),function(i){var s=encodeURIComponent(t(i))+a;return n(e[i])?r(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;ra;var u=n(67294);let c=(0,u.createContext)(null);var f=n(87462),l=n(63366),d=n(8679),h=n.n(d),p=n(72973);let g=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function m(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function v(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function y(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=v(e);let i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=v(i),i=r(t,n)),i},r}}function b(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function w(e,t,n){return(0,f.Z)({},n,e,t)}let S={notify(){},get:()=>[]};function k(e,t){let n;let r=S;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=s(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}let a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return!!n},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=S)},getListeners:()=>r};return a}let E=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),A=E?u.useLayoutEffect:u.useEffect;function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{throw Error("uSES not initialized!")},I=["reactReduxForwardedRef"],x=T,P=[null,null];function O(e,t){return e===t}var U=function(e,t,n,{pure:r,areStatesEqual:i=O,areOwnPropsEqual:o=C,areStatePropsEqual:a=C,areMergedPropsEqual:s=C,forwardRef:d=!1,context:v=c}={}){let S=e?"function"==typeof e?y(e,"mapStateToProps"):b(e,"mapStateToProps"):m(()=>({})),E=t&&"object"==typeof t?m(e=>(function(e,t){let n={};for(let r in e){let i=e[r];"function"==typeof i&&(n[r]=(...e)=>t(i(...e)))}return n})(t,e)):t?"function"==typeof t?y(t,"mapDispatchToProps"):b(t,"mapDispatchToProps"):m(e=>({dispatch:e})),_=n?"function"==typeof n?function(e,{displayName:t,areMergedPropsEqual:r}){let i,o=!1;return function(e,t,a){let s=n(e,t,a);return o?r(s,i)||(i=s):(o=!0,i=s),i}}:b(n,"mergeProps"):()=>w,T=!!e,U=e=>{let t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:T,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:S,initMapDispatchToProps:E,initMergeProps:_,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function c(t){var n;let i;let[o,a,s]=(0,u.useMemo)(()=>{let{reactReduxForwardedRef:e}=t,n=(0,l.Z)(t,I);return[t.context,e,n]},[t]),c=(0,u.useMemo)(()=>o&&o.Consumer&&(0,p.isContextConsumer)(u.createElement(o.Consumer,null))?o:v,[o,v]),d=(0,u.useContext)(c),h=!!t.store&&!!t.store.getState&&!!t.store.dispatch,m=!!d&&!!d.store,y=h?t.store:d.store,b=m?d.getServerState:y.getState,w=(0,u.useMemo)(()=>(function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=(0,l.Z)(t,g),a=n(e,o),s=r(e,o),u=i(e,o);return function(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,u,c,f,l,d=!1;return function(h,p){return d?function(d,h){let p=!o(h,u),g=!i(d,s,h,u);return(s=d,u=h,p&&g)?(c=e(s,u),t.dependsOnOwnProps&&(f=t(r,u)),l=n(c,f,u)):p?(e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(f=t(r,u)),l=n(c,f,u)):g?function(){let t=e(s,u),r=!a(t,c);return c=t,r&&(l=n(c,f,u)),l}():l}(h,p):(l=n(c=e(s=h,u=p),f=t(r,u),u),d=!0,l)}}(a,s,u,e,o)})(y.dispatch,r),[y]),[S,E]=(0,u.useMemo)(()=>{if(!T)return P;let e=k(y,h?void 0:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[y,h,d]),_=(0,u.useMemo)(()=>h?d:(0,f.Z)({},d,{subscription:S}),[h,d,S]),C=(0,u.useRef)(),O=(0,u.useRef)(s),U=(0,u.useRef)(),R=(0,u.useRef)(!1);(0,u.useRef)(!1);let D=(0,u.useRef)(!1),N=(0,u.useRef)();A(()=>(D.current=!0,()=>{D.current=!1}),[]);let j=(0,u.useMemo)(()=>{let e=()=>U.current&&s===O.current?U.current:w(y.getState(),s);return e},[y,s]),M=(0,u.useMemo)(()=>{let e=e=>S?function(e,t,n,r,i,o,a,s,u,c,f){if(!e)return()=>{};let l=!1,d=null,h=()=>{let e,n;if(l||!s.current)return;let h=t.getState();try{e=r(h,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?a.current||c():(o.current=e,u.current=e,a.current=!0,f())};n.onStateChange=h,n.trySubscribe(),h();let p=()=>{if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d};return p}(T,y,S,w,O,C,R,D,U,E,e):()=>{};return e},[S]);n=[O,C,R,s,U,E],A(()=>(function(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())})(...n),void 0);try{i=x(M,j,b?()=>w(b(),s):j)}catch(e){throw N.current&&(e.message+=` The error may be correlated with this previous error: ${N.current.stack} `),e}A(()=>{N.current=void 0,U.current=void 0,C.current=i});let B=(0,u.useMemo)(()=>u.createElement(e,(0,f.Z)({},i,{ref:a})),[a,e,i]),F=(0,u.useMemo)(()=>T?u.createElement(c.Provider,{value:_},B):B,[c,B,_]);return F}let m=u.memo(c),y=m;if(y.WrappedComponent=e,y.displayName=c.displayName=n,d){let t=u.forwardRef(function(e,t){return u.createElement(y,(0,f.Z)({},e,{reactReduxForwardedRef:t}))}),r=t;return r.displayName=n,r.WrappedComponent=e,h()(r,e)}return h()(y,e)};return U},R=function({store:e,context:t,children:n,serverState:r}){let i=(0,u.useMemo)(()=>{let t=k(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0}},[e,r]),o=(0,u.useMemo)(()=>e.getState(),[e]);return A(()=>{let{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),o!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[i,o]),u.createElement((t||c).Provider,{value:i},n)};i.useSyncExternalStoreWithSelector,x=r.useSyncExternalStore,a=o.unstable_batchedUpdates},88359:function(e,t){"use strict";/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case l:case d:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case p:case h:case s:return e;default:return t}}case r:return t}}}(e)===u}},72973:function(e,t,n){"use strict";e.exports=n(88359)},96774:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;ur&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0h)&&(F=(z=z.replace(" ",":")).length),0e.charCodeAt(2)),r[e]}),h=n(8679),p=n.n(h),g=n(83454);function m(){return(m=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var x=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=U&&(U=t+1),P.set(e,t),O.set(t,e)},N="style["+A+'][data-styled-version="5.3.10"]',j=RegExp("^"+A+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(A))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(A,"active"),r.setAttribute("data-styled-version","5.3.10");var a=F();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},V=function(){function e(e){var t=this.element=L(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 e0&&(f+=e+",")}),r+=""+u+c+'{content:"'+f+'"}/*!sc*/\n'}}}return r}(this)},e}(),q=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function H(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(q,"$1-$2")}var $=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return $(5381,e)};function X(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}}else{for(var u=this.rules.length,c=$(this.baseHash,n.hash),f="",l=0;l>>0);if(!t.hasNameForId(r,g)){var m=n(f,"."+g,void 0,r);t.insertRules(r,g,m)}i.push(g)}}return i.join(" ")},e}(),et=/^\s*\/\/.*$/gm,en=[":","[",".","#"];function er(e){var t,n,r,i,o=void 0===e?w:e,a=o.options,s=o.plugins,u=void 0===s?b:s,f=new c(void 0===a?w:a),l=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,u,c,f,l){switch(n){case 1:if(0===f&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===l?"/*|*/":"")}case -2:r.split("/*|*/}").forEach(t)}}}(function(e){l.push(e)}),h=function(e,r,o){return 0===r&&-1!==en.indexOf(o[n.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var u=e.replace(et,"");return t=s,r=RegExp("\\"+(n=o)+"\\b","g"),i=RegExp("(\\"+n+"\\b){2,}"),f(a||!o?"":o,o&&a?a+" "+o+" { "+u+" }":u)}return f.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},d,function(e){if(-2===e){var t=l;return l=[],t}}])),p.hash=u.length?u.reduce(function(e,t){return t.name||I(15),$(e,t.name)},5381).toString():"",p}var ei=a.createContext(),eo=(ei.Consumer,a.createContext()),ea=(eo.Consumer,new W),es=er();function eu(){return(0,a.useContext)(ei)||ea}function ec(){return(0,a.useContext)(eo)||es}function ef(e){var t=(0,a.useState)(e.stylisPlugins),n=t[0],r=t[1],i=eu(),o=(0,a.useMemo)(function(){var t=i;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]),s=(0,a.useMemo)(function(){return er({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return(0,a.useEffect)(function(){u()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]),a.createElement(ei.Provider,{value:o},a.createElement(eo.Provider,{value:s},e.children))}var el=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=es);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 I(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=es),this.name+e.hash},e}(),ed=/([A-Z])/,eh=/([A-Z])/g,ep=/^ms-/,eg=function(e){return"-"+e.toLowerCase()};function em(e){return ed.test(e)?e.replace(eh,eg).replace(ep,"-ms-"):e}var ev=function(e){return null==e||!1===e||""===e};function ey(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,eE=/(^-|-$)/g;function eA(e){return e.replace(ek,"-").replace(eE,"")}var e_=function(e){return H(J(e)>>>0)};function eC(e){return"string"==typeof e}var eT=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},eI=a.createContext();function ex(e){var t=(0,a.useContext)(eI),n=(0,a.useMemo)(function(){var n;return(n=e.theme)?S(n)?n(t):Array.isArray(n)||"object"!=typeof n?I(8):t?m({},t,{},n):n:I(14)},[e.theme,t]);return e.children?a.createElement(eI.Provider,{value:n},e.children):null}eI.Consumer;var eP={},eO=function(e){return function e(t,n,r){if(void 0===r&&(r=w),!(0,o.isValidElementType)(n))return I(1,String(n));var i=function(){return t(n,r,ew.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,m({},r,{},i))},i.attrs=function(i){return e(t,n,m({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(function e(t,n,r){var i=E(t),o=!eC(t),s=n.attrs,u=void 0===s?b:s,c=n.componentId,f=void 0===c?(A=n.displayName,_=n.parentComponentId,eP[C="string"!=typeof A?"sc":eA(A)]=(eP[C]||0)+1,T=C+"-"+e_("5.3.10"+C+eP[C]),_?_+"-"+T:T):c,l=n.displayName,h=void 0===l?eC(t)?"styled."+t:"Styled("+k(t)+")":l,g=n.displayName&&n.componentId?eA(n.displayName)+"-"+n.componentId:n.componentId||f,v=i&&t.attrs?Array.prototype.concat(t.attrs,u).filter(Boolean):u,y=n.shouldForwardProp;i&&t.shouldForwardProp&&(y=n.shouldForwardProp?function(e,r,i){return t.shouldForwardProp(e,r,i)&&n.shouldForwardProp(e,r,i)}:t.shouldForwardProp);var A,_,C,T,I,x=new ee(r,g,i?t.componentStyle:void 0),P=x.isStatic&&0===u.length,O=function(e,t){return function(e,t,n,r){var i,o,s,u,c,f=e.attrs,l=e.componentStyle,h=e.defaultProps,p=e.foldedComponentIds,g=e.shouldForwardProp,v=e.styledComponentId,y=e.target,b=(void 0===(i=eS(t,(0,a.useContext)(eI),h)||w)&&(i=w),o=m({},t,{theme:i}),s={},f.forEach(function(e){var t,n,r,i=e;for(t in S(i)&&(i=i(o)),i)o[t]=s[t]="className"===t?(n=s[t],r=i[t],n&&r?n+" "+r:n||r):i[t]}),[o,s]),k=b[0],E=b[1],A=(u=eu(),c=ec(),r?l.generateAndInjectStyles(w,u,c):l.generateAndInjectStyles(k,u,c)),_=E.$as||t.$as||E.as||t.as||y,C=eC(_),T=E!==t?m({},t,{},E):t,I={};for(var x in T)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?I.as=T[x]:(g?g(x,d,_):!C||d(x))&&(I[x]=T[x]));return t.style&&E.style!==t.style&&(I.style=m({},t.style,{},E.style)),I.className=Array.prototype.concat(p,v,A!==v?A:null,t.className,E.className).filter(Boolean).join(" "),I.ref=n,(0,a.createElement)(_,I)}(I,e,t,P)};return O.displayName=h,(I=a.forwardRef(O)).attrs=v,I.componentStyle=x,I.displayName=h,I.shouldForwardProp=y,I.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):b,I.styledComponentId=g,I.target=i?t.target:t,I.withComponent=function(t){var i=n.componentId,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(n,["componentId"]),a=i&&i+"-"+(eC(t)?t:eA(k(t)));return e(t,m({},o,{attrs:v,componentId:a}),r)},Object.defineProperty(I,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function e(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function eR(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?I(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return I(2);var t,n=((t={})[A]="",t["data-styled-version"]="5.3.10",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[a.createElement("style",m({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?I(2):a.createElement(ef,{sheet:this.instance},e)},i.interleaveWithNodeStream=function(e){return I(3)};var eN=eO},53250:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,f=r[1];return s(function(){i.value=n,i.getSnapshot=t,c(i)&&f({inst:i})},[e,n,t]),a(function(){return c(i)&&f({inst:i}),e(function(){c(i)&&f({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},50139:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(67294),i=n(61688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,c=r.useMemo,f=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=s(null);if(null===l.current){var d={hasValue:!1,value:null};l.current=d}else d=l.current;l=c(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]);var h=a(e,l[0],l[1]);return u(function(){d.hasValue=!0,d.value=h},[h]),f(h),h}},61688:function(e,t,n){"use strict";e.exports=n(53250)},52798:function(e,t,n){"use strict";e.exports=n(50139)},56249:function(){},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(83997);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},83997:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:function(e,t,n){"use strict";function r(e){return(r="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)}n.d(t,{Z:function(){return r}})},23636:function(e,t,n){"use strict";function r(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;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function eg(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function em(e){return e.classList?eg(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function ev(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ey(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function eb(e){return e.size!==eh.size||e.x!==eh.x||e.y!==eh.y||e.rotate!==eh.rotate||e.flipX||e.flipY}function ew(){var e=el.cssPrefix,t=el.replacementClass,n=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==e||t!==j){var r=RegExp("\\.".concat("fa","\\-"),"g"),i=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(j),"g");n=n.replace(r,".".concat(e,"-")).replace(i,"--".concat(e,"-")).replace(o,".".concat(t))}return n}var eS=!1;function ek(){el.autoAddCss&&!eS&&(!function(e){if(e&&R){var t=P.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=P.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(r=o)}P.head.insertBefore(t,r)}}(ew()),eS=!0)}var eE=x||{};eE[N]||(eE[N]={}),eE[N].styles||(eE[N].styles={}),eE[N].hooks||(eE[N].hooks={}),eE[N].shims||(eE[N].shims=[]);var eA=eE[N],e_=[],eC=!1;function eT(e){var t,n=e.tag,r=e.attributes,i=e.children;return"string"==typeof e?ev(e):"<".concat(n," ").concat(Object.keys((t=void 0===r?{}:r)||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(ev(t[n]),'" ')},"").trim(),">").concat((void 0===i?[]:i).map(eT).join(""),"")}function eI(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}!R||(eC=(P.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(P.readyState))||P.addEventListener("DOMContentLoaded",function e(){P.removeEventListener("DOMContentLoaded",e),eC=1,e_.map(function(e){return e()})});var ex=function(e,t,n,r){var i,o,a,s=Object.keys(e),u=s.length,c=void 0!==r?function(e,n,i,o){return t.call(r,e,n,i,o)}:t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i=55296&&i<=56319&&n2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=eO(t);"function"!=typeof eA.hooks.addPack||void 0!==r&&r?eA.styles[e]=i(i({},eA.styles[e]||{}),o):eA.hooks.addPack(e,eO(t)),"fas"===e&&eU("fa",t)}var eR=eA.styles,eD=eA.shims,eN=(s(b={},K,Object.values($[K])),s(b,G,Object.values($[G])),b),ej=null,eM={},eB={},eF={},eL={},eV={},ez=(s(w={},K,Object.keys(Y[K])),s(w,G,Object.keys(Y[G])),w),eZ=function(){var e=function(e){return ex(eR,function(t,n,r){return t[r]=ex(n,e,{}),t},{})};eM=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n}),e}),eB=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n}),e}),eV=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in eR||el.autoFetchSvg,n=ex(eD,function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});eF=n.names,eL=n.unicodes,ej=eY(el.styleDefault,{family:el.familyDefault})};function eK(e,t){return(eM[e]||{})[t]}function eG(e,t){return(eV[e]||{})[t]}function eW(e){return eF[e]||{prefix:null,iconName:null}}ed.push(function(e){ej=eY(e.styleDefault,{family:el.familyDefault})}),eZ();var eq=function(){return{prefix:null,iconName:null,rest:[]}};function eY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?K:n,i=Y[r][e],o=H[r][e]||H[r][i],a=e in eA.styles?e:null;return o||a||null}var eH=(s(S={},K,Object.keys($[K])),s(S,G,Object.keys($[G])),S);function e$(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,o=(s(t={},K,"".concat(el.cssPrefix,"-").concat(K)),s(t,G,"".concat(el.cssPrefix,"-").concat(G)),t),a=null,u=K;(e.includes(o[K])||e.some(function(e){return eH[K].includes(e)}))&&(u=K),(e.includes(o[G])||e.some(function(e){return eH[G].includes(e)}))&&(u=G);var c=e.reduce(function(e,t){var n,r,s,c,f=(n=el.cssPrefix,s=(r=t.split("-"))[0],c=r.slice(1).join("-"),s!==n||""===c||~es.indexOf(c)?null:c);if(eR[t]?(a=t=eN[u].includes(t)?J[u][t]:t,e.prefix=t):ez[u].indexOf(t)>-1?(a=t,e.prefix=eY(t,{family:u})):f?e.iconName=f:t!==el.replacementClass&&t!==o[K]&&t!==o[G]&&e.rest.push(t),!i&&e.prefix&&e.iconName){var l="fa"===a?eW(e.iconName):{},d=eG(e.prefix,e.iconName);l.prefix&&(a=null),e.iconName=l.iconName||d||e.iconName,e.prefix=l.prefix||e.prefix,"far"!==e.prefix||eR.far||!eR.fas||el.autoFetchSvg||(e.prefix="fas")}return e},eq());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&u===G&&(eR.fass||el.autoFetchSvg)&&(c.prefix="fass",c.iconName=eG(c.prefix,c.iconName)||c.iconName),("fa"===c.prefix||"fa"===a)&&(c.prefix=ej||"fas"),c}var eJ=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),this.definitions={}}return e=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r0&&s.forEach(function(t){"string"==typeof t&&(e[i][t]=a)}),e[i][o]=a}),e}}],a(n.prototype,e),t&&a(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),eX=[],eQ={},e0={},e1=Object.keys(e0);function e2(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};return R?(e5("beforeI2svg",e),e3("pseudoElements2svg",e),e3("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===el.autoReplaceSvg&&(el.autoReplaceSvg=!0),el.observeMutations=!0,e=function(){e9({autoReplaceSvgRoot:n}),e5("watch",t)},R&&(eC?setTimeout(e,0):e_.push(e))}},parse:{icon:function(e){if(null===e)return null;if("object"===o(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:eG(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=eY(e[0]);return{prefix:n,iconName:eG(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(el.cssPrefix,"-"))>-1||e.match(X))){var r=e$(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||ej,iconName:eG(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=ej;return{prefix:i,iconName:eG(i,e)||e}}}},library:e6,findIconDefinition:e4,toHtml:eT},e9=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;(Object.keys(eA.styles).length>0||el.autoFetchSvg)&&R&&el.autoReplaceSvg&&e8.dom.i2svg({node:void 0===t?P:t})};function e7(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return eT(e)})}}),Object.defineProperty(e,"node",{get:function(){if(R){var t=P.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function te(e){var t,n,r,o,a,s,u=e.icons,c=u.main,f=u.mask,l=e.prefix,d=e.iconName,h=e.transform,p=e.symbol,g=e.title,m=e.maskId,v=e.titleId,y=e.extra,b=e.watchable,w=f.found?f:c,S=w.width,k=w.height,E=[el.replacementClass,d?"".concat(el.cssPrefix,"-").concat(d):""].filter(function(e){return -1===y.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(y.classes).join(" "),A={children:[],attributes:i(i({},y.attributes),{},{"data-prefix":l,"data-icon":d,class:E,role:y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(S," ").concat(k)})},_="fak"!==l||~y.classes.indexOf("fa-fw")?{}:{width:"".concat(S/k*1,"em")};void 0!==b&&b&&(A.attributes[M]=""),g&&(A.children.push({tag:"title",attributes:{id:A.attributes["aria-labelledby"]||"title-".concat(v||ep())},children:[g]}),delete A.attributes.title);var C=i(i({},A),{},{prefix:l,iconName:d,main:c,mask:f,maskId:m,transform:h,symbol:p,styles:i(i({},_),y.styles)}),T=f.found&&c.found?e3("generateAbstractMask",C)||{children:[],attributes:{}}:e3("generateAbstractIcon",C)||{children:[],attributes:{}},I=T.children,x=T.attributes;return(C.children=I,C.attributes=x,p)?(t=C.prefix,n=C.iconName,r=C.children,o=C.attributes,s=!0===(a=C.symbol)?"".concat(t,"-").concat(el.cssPrefix,"-").concat(n):a,[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i(i({},o),{},{id:s}),children:r}]}]):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,s=e.transform;if(eb(s)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};o.style=ey(i(i({},a),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}function tt(e){var t,n,r,o,a,s,u,c=e.content,f=e.width,l=e.height,d=e.transform,h=e.title,p=e.extra,g=e.watchable,m=i(i(i({},p.attributes),h?{title:h}:{}),{},{class:p.classes.join(" ")});void 0!==g&&g&&(m[M]="");var v=i({},p.styles);eb(d)&&(v.transform=(n=(t={transform:d,startCentered:!0,width:f,height:l}).transform,r=t.width,o=t.height,s=void 0!==(a=t.startCentered)&&a,u="",s&&D?u+="translate(".concat(n.x/16-(void 0===r?16:r)/2,"em, ").concat(n.y/16-(void 0===o?16:o)/2,"em) "):s?u+="translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):u+="translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),u+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") ")+"rotate(".concat(n.rotate,"deg) ")),v["-webkit-transform"]=v.transform);var y=ey(v);y.length>0&&(m.style=y);var b=[];return b.push({tag:"span",attributes:m,children:[c]}),h&&b.push({tag:"span",attributes:{class:"sr-only"},children:[h]}),b}var tn=eA.styles;function tr(e){var t=e[0],n=e[1],r=u(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(el.cssPrefix,"-").concat(eo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(el.cssPrefix,"-").concat(eo.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(el.cssPrefix,"-").concat(eo.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var ti={found:!1,width:512,height:512};function to(e,t){var n=t;return"fa"===t&&null!==el.styleDefault&&(t=ej),new Promise(function(r,o){if(e3("missingIconAbstract"),"fa"===n){var a,s,u=eW(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&tn[t]&&tn[t][e])return r(tr(tn[t][e]));a=e,s=t,Z||el.showMissingIcons||!a||console.error('Icon with name "'.concat(a,'" and prefix "').concat(s,'" is missing.')),r(i(i({},ti),{},{icon:el.showMissingIcons&&e&&e3("missingIconAbstract")||{}}))})}var ta=function(){},ts=el.measurePerformance&&U&&U.mark&&U.measure?U:{mark:ta,measure:ta},tu='FA "6.4.2"',tc=function(e){ts.mark("".concat(tu," ").concat(e," ends")),ts.measure("".concat(tu," ").concat(e),"".concat(tu," ").concat(e," begins"),"".concat(tu," ").concat(e," ends"))},tf={begin:function(e){return ts.mark("".concat(tu," ").concat(e," begins")),function(){return tc(e)}},end:tc},tl=function(){};function td(e){return"string"==typeof(e.getAttribute?e.getAttribute(M):null)}function th(e){return P.createElementNS("http://www.w3.org/2000/svg",e)}function tp(e){return P.createElement(e)}var tg={replace:function(e){var t=e[0];if(t.parentNode){if(e[1].forEach(function(e){t.parentNode.insertBefore(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.ceFn,i=void 0===r?"svg"===t.tag?th:tp:r;if("string"==typeof t)return P.createTextNode(t);var o=i(t.tag);return Object.keys(t.attributes||[]).forEach(function(e){o.setAttribute(e,t.attributes[e])}),(t.children||[]).forEach(function(t){o.appendChild(e(t,{ceFn:i}))}),o}(e),t)}),null===t.getAttribute(M)&&el.keepOriginalSource){var n,r=P.createComment((n=" ".concat(t.outerHTML," "),n="".concat(n,"Font Awesome fontawesome.com ")));t.parentNode.replaceChild(r,t)}else t.remove()}},nest:function(e){var t=e[0],n=e[1];if(~em(t).indexOf(el.replacementClass))return tg.replace(e);var r=new RegExp("".concat(el.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(e,t){return t===el.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map(function(e){return eT(e)}).join("\n");t.setAttribute(M,""),t.innerHTML=o}};function tm(e){e()}function tv(e,t){var n="function"==typeof t?t:tl;if(0===e.length)n();else{var r=tm;"async"===el.mutateApproach&&(r=x.requestAnimationFrame||tm),r(function(){var t=!0===el.autoReplaceSvg?tg.replace:tg[el.autoReplaceSvg]||tg.replace,r=tf.begin("mutate");e.map(t),r(),n()})}}var ty=!1,tb=null;function tw(e){if(O&&el.observeMutations){var t=e.treeCallback,n=void 0===t?tl:t,r=e.nodeCallback,i=void 0===r?tl:r,o=e.pseudoElementsCallback,a=void 0===o?tl:o,s=e.observeMutationsRoot;tb=new O(function(e){if(!ty){var t=ej;eg(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!td(e.addedNodes[0])&&(el.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&el.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&td(e.target)&&~ei.indexOf(e.attributeName)){if("class"===e.attributeName&&(o=(r=e.target).getAttribute?r.getAttribute(F):null,s=r.getAttribute?r.getAttribute(L):null,o&&s)){var r,o,s,u,c=e$(em(e.target)),f=c.prefix,l=c.iconName;e.target.setAttribute(F,f||t),l&&e.target.setAttribute(L,l)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(el.replacementClass)&&i(e.target)}})}}),R&&tb.observe(void 0===s?P:s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function tS(e){var t,n,r,o,a,s,u,c,f,l,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},p=(r=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),a=void 0!==e.innerText?e.innerText.trim():"",(s=e$(em(e))).prefix||(s.prefix=ej),r&&o&&(s.prefix=r,s.iconName=o),s.iconName&&s.prefix||(s.prefix&&a.length>0&&(s.iconName=(t=s.prefix,n=e.innerText,(eB[t]||{})[n]||eK(s.prefix,eP(e.innerText)))),!s.iconName&&el.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s),g=p.iconName,m=p.prefix,v=p.rest,y=(u=eg(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),c=e.getAttribute("title"),f=e.getAttribute("data-fa-title-id"),el.autoA11y&&(c?u["aria-labelledby"]="".concat(el.replacementClass,"-title-").concat(f||ep()):(u["aria-hidden"]="true",u.focusable="false")),u),b=e2("parseNodeAttributes",{},e),w=h.styleParser?(l=e.getAttribute("style"),d=[],l&&(d=l.split(";").reduce(function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e},{})),d):[];return i({iconName:g,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:m,transform:eh,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:v,styles:w,attributes:y}},b)}var tk=eA.styles;function tE(e){var t="nest"===el.autoReplaceSvg?tS(e,{styleParser:!1}):tS(e);return~t.extra.classes.indexOf(Q)?e3("generateLayersText",e,t):e3("generateSvgReplacementMutation",e,t)}var tA=new Set;function t_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!R)return Promise.resolve();var n=P.documentElement.classList,r=function(e){return n.add("".concat(V,"-").concat(e))},i=function(e){return n.remove("".concat(V,"-").concat(e))},o=el.autoFetchSvg?tA:W.map(function(e){return"fa-".concat(e)}).concat(Object.keys(tk));o.includes("fa")||o.push("fa");var a=[".".concat(Q,":not([").concat(M,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(M,"])")})).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=eg(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=tf.begin("onTree"),c=s.reduce(function(e,t){try{var n=tE(t);n&&e.push(n)}catch(e){Z||"MissingIcon"!==e.name||console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(c).then(function(n){tv(n,function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),u(),e()})}).catch(function(e){u(),n(e)})})}function tC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;tE(e).then(function(e){e&&tv([e],t)})}W.map(function(e){tA.add("fa-".concat(e))}),Object.keys(Y[K]).map(tA.add.bind(tA)),Object.keys(Y[G]).map(tA.add.bind(tA)),tA=c(tA);var tT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?eh:n,o=t.symbol,a=void 0!==o&&o,s=t.mask,u=void 0===s?null:s,c=t.maskId,f=void 0===c?null:c,l=t.title,d=void 0===l?null:l,h=t.titleId,p=void 0===h?null:h,g=t.classes,m=void 0===g?[]:g,v=t.attributes,y=void 0===v?{}:v,b=t.styles,w=void 0===b?{}:b;if(e){var S=e.prefix,k=e.iconName,E=e.icon;return e7(i({type:"icon"},e),function(){return e5("beforeDOMElementCreation",{iconDefinition:e,params:t}),el.autoA11y&&(d?y["aria-labelledby"]="".concat(el.replacementClass,"-title-").concat(p||ep()):(y["aria-hidden"]="true",y.focusable="false")),te({icons:{main:tr(E),mask:u?tr(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:k,transform:i(i({},eh),r),symbol:a,title:d,maskId:f,titleId:p,extra:{attributes:y,styles:w,classes:m}})})}},tI=RegExp('"',"ug");function tx(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(r,o){if(null!==e.getAttribute(n))return r();var a=eg(e.children).filter(function(e){return e.getAttribute(B)===t})[0],s=x.getComputedStyle(e,t),u=s.getPropertyValue("font-family").match(ee),c=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&"none"!==f&&""!==f){var l=s.getPropertyValue("content"),d=~["Sharp"].indexOf(u[2])?G:K,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?H[d][u[2].toLowerCase()]:et[d][c],p=(E=(S=w=l.replace(tI,"")).length,_=(A=S.charCodeAt(0))>=55296&&A<=56319&&E>1&&(k=S.charCodeAt(1))>=56320&&k<=57343?(A-55296)*1024+k-56320+65536:A,{value:(C=2===w.length&&w[0]===w[1])?eP(w[0]):eP(w),isSecondary:_>=1105920&&_<=1112319||C}),g=p.value,m=p.isSecondary,v=u[0].startsWith("FontAwesome"),y=eK(h,g),b=y;if(v){var w,S,k,E,A,_,C,T,I,O=(T=eL[g],I=eK("fas",g),T||(I?{prefix:"fas",iconName:I}:null)||{prefix:null,iconName:null});O.iconName&&O.prefix&&(y=O.iconName,h=O.prefix)}if(!y||m||a&&a.getAttribute(F)===h&&a.getAttribute(L)===b)r();else{e.setAttribute(n,b),a&&e.removeChild(a);var U={iconName:null,title:null,titleId:null,prefix:null,transform:eh,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},R=U.extra;R.attributes[B]=t,to(y,h).then(function(o){var a=te(i(i({},U),{},{icons:{main:o,mask:eq()},prefix:h,iconName:b,extra:R,watchable:!0})),s=P.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=a.map(function(e){return eT(e)}).join("\n"),e.removeAttribute(n),r()}).catch(o)}}else r()})}function tP(e){return Promise.all([tx(e,"::before"),tx(e,"::after")])}function tO(e){return e.parentNode!==document.head&&!~z.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(B)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function tU(e){if(R)return new Promise(function(t,n){var r=eg(e.querySelectorAll("*")).filter(tO).map(tP),i=tf.begin("searchPseudoElements");ty=!0,Promise.all(r).then(function(){i(),ty=!1,t()}).catch(function(){i(),ty=!1,n()})})}var tR=!1,tD=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(isNaN(i=parseFloat(i)))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},tN={x:0,y:0,width:"100%",height:"100%"};function tj(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}d=[{mixout:function(){return{dom:{css:ew,insertCss:ek}}},hooks:function(){return{beforeDOMElementCreation:function(){ek()},beforeI2svg:function(){ek()}}}},{mixout:function(){return{icon:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:e4(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:e4(r||{})),tT(n,i(i({},t),{},{mask:r}))}}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=t_,e.nodeCallback=tC,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=e.callback;return t_(void 0===t?P:t,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,c=t.mask,f=t.maskId,l=t.extra;return new Promise(function(t,d){Promise.all([to(n,o),c.iconName?to(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(c){var d=u(c,2);t([e,te({icons:{main:d[0],mask:d[1]},prefix:o,iconName:n,transform:a,symbol:s,maskId:f,title:r,titleId:i,extra:l,watchable:!0})])}).catch(d)})},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,a=ey(e.styles);return a.length>0&&(r.style=a),eb(o)&&(t=e3("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},{mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return e7({type:"layer"},function(){e5("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(el.cssPrefix,"-layers")].concat(c(r)).join(" ")},children:n}]})}}}},{mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,o=t.classes,a=void 0===o?[]:o,s=t.attributes,u=void 0===s?{}:s,f=t.styles,l=void 0===f?{}:f;return e7({type:"counter",content:e},function(){var n,o,s,f,d,h,p;return e5("beforeDOMElementCreation",{content:e,params:t}),o=(n={content:e.toString(),title:r,extra:{attributes:u,styles:l,classes:["".concat(el.cssPrefix,"-layers-counter")].concat(c(a))}}).content,s=n.title,d=i(i(i({},(f=n.extra).attributes),s?{title:s}:{}),{},{class:f.classes.join(" ")}),(h=ey(f.styles)).length>0&&(d.style=h),(p=[]).push({tag:"span",attributes:d,children:[o]}),s&&p.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),p})}}}},{mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?eh:n,o=t.title,a=void 0===o?null:o,s=t.classes,u=void 0===s?[]:s,f=t.attributes,l=void 0===f?{}:f,d=t.styles,h=void 0===d?{}:d;return e7({type:"text",content:e},function(){return e5("beforeDOMElementCreation",{content:e,params:t}),tt({content:e,transform:i(i({},eh),r),title:a,extra:{attributes:l,styles:h,classes:["".concat(el.cssPrefix,"-layers-text")].concat(c(u))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(D){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();o=u.width/s,a=u.height/s}return el.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,tt({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=tU,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node;el.searchPseudoElements&&tU(void 0===t?P:t)}}},{mixout:function(){return{dom:{unwatch:function(){ty=!0,tR=!0}}}},hooks:function(){return{bootstrap:function(){tw(e2("mutationObserverCallbacks",{}))},noAuto:function(){tb&&tb.disconnect()},watch:function(e){var t=e.observeMutationsRoot;tR?ty=!1:tw(e2("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return tD(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=tD(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,o=e.iconWidth,a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(a," ").concat(s," ").concat(u)},f={outer:{transform:"translate(".concat(r/2," 256)")},inner:c,path:{transform:"translate(".concat(-(o/2*1)," -256)")}};return{tag:"g",attributes:i({},f.outer),children:[{tag:"g",attributes:i({},f.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:i(i({},t.icon.attributes),f.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?e$(n.split(" ").map(function(e){return e.trim()})):eq();return r.prefix||(r.prefix=ej),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n,r,o,a,s,u,c,f=e.children,l=e.attributes,d=e.main,h=e.mask,p=e.maskId,g=e.transform,m=d.width,v=d.icon,y=h.width,b=h.icon,w=(n=(t={transform:g,containerWidth:y,iconWidth:m}).transform,r=t.containerWidth,o=t.iconWidth,a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(a," ").concat(s," ").concat(u)},{outer:{transform:"translate(".concat(r/2," 256)")},inner:c,path:{transform:"translate(".concat(-(o/2*1)," -256)")}}),S={tag:"rect",attributes:i(i({},tN),{},{fill:"white"})},k=v.children?{children:v.children.map(tj)}:{},E={tag:"g",attributes:i({},w.inner),children:[tj(i({tag:v.tag,attributes:i(i({},v.attributes),w.path)},k))]},A={tag:"g",attributes:i({},w.outer),children:[E]},_="mask-".concat(p||ep()),C="clip-".concat(p||ep()),T={tag:"mask",attributes:i(i({},tN),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[S,A]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:"g"===b.tag?b.children:[b]},T]};return f.push(I,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(_,")")},tN)}),{children:f,attributes:l}}}},{provides:function(e){var t=!1;x.matchMedia&&(t=x.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:i(i({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=i(i({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:i(i({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:i(i({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:i(i({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:i(i({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:i(i({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:i(i({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:i(i({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol");return e.symbol=null!==n&&(""===n||n),e}}}}],h=e8,eX=d,eQ={},Object.keys(e0).forEach(function(e){-1===e1.indexOf(e)&&delete e0[e]}),eX.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(h[e]=t[e]),"object"===o(t[e])&&Object.keys(t[e]).forEach(function(n){h[e]||(h[e]={}),h[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){eQ[e]||(eQ[e]=[]),eQ[e].push(n[e])})}e.provides&&e.provides(e0)}),e8.noAuto;var tM=e8.config;e8.library,e8.dom;var tB=e8.parse;e8.findIconDefinition,e8.toHtml;var tF=e8.icon;e8.layer,e8.text,e8.counter},20943:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n