1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[668],{2379:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});let n=Symbol("oauth-listener")},2954:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(e,t,r,n)=>async(o,i)=>{let s={...n,...o},a=await s.endpointResolver(s,i),u=await t(i,a);return r(await e(u,{...s}))}},3238:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(74172),o=r(31851),i=r(43299),s=r(86976);let a={service:r(99900).M,retryDecider:(0,n.D)(o.F),computeDelay:i.y,get userAgentValue(){return(0,s.fE)()},cache:"no-store"}},7610:(e,t)=>{t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,f=u>>1,c=-7,l=r?o-1:0,h=r?-1:1,d=e[t+l];for(l+=h,i=d&(1<<-c)-1,d>>=-c,c+=a;c>0;i=256*i+e[t+l],l+=h,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+l],l+=h,c-=8);if(0===i)i=1-f;else{if(i===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),i-=f}return(d?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,u,f=8*i-o-1,c=(1<<f)-1,l=c>>1,h=5960464477539062e-23*(23===o),d=n?0:i-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+l>=1?t+=h/u:t+=h*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(t*u-1)*Math.pow(2,o),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;e[r+d]=255&a,d+=p,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[r+d]=255&s,d+=p,s/=256,f-=8);e[r+d-p]|=128*g}},8352:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=e=>{let{headers:t,statusCode:r}=e;return{...o(e)?e.$metadata:{},httpStatusCode:r,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},o=e=>"object"==typeof e?.$metadata},10718:(e,t,r)=>{"use strict";r.d(t,{C:()=>i,J:()=>o});var n=r(65981);function o(e){let t=null==e?void 0:e.split("_")[0];if(!e||0>e.indexOf("_")||!t||"string"!=typeof t)throw new n.l({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function i(e){if(!e||!e.includes(":"))throw new n.l({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}},12389:(e,t,r)=>{"use strict";function n(e){return Object.entries(e).map(e=>{let[t,r]=e;return{Name:t,Value:r}})}function o(e){let t={};return null==e||e.forEach(e=>{e.Name&&(t[e.Name]=e.Value)}),t}r.d(t,{J:()=>o,Q:()=>n})},14574:(e,t,r)=>{"use strict";r.d(t,{T:()=>b});var n=r(36035),o=r(98785),i=r(85240),s=r(46199),a=r(10718),u=r(43743),f=r(12389),c=r(40918),l=r(2954),h=r(73485),d=r(74570),p=r(26235),g=r(3238),y=r(33044);let m=async e=>{var t;let r,n=null==(t=e.getConfig().Auth)?void 0:t.Cognito;(0,o.$y)(n);let{userPoolEndpoint:m,userPoolId:b}=n,{tokens:w}=await (0,i.$)(e,{forceRefresh:!1});(0,u.H0)(w);let v=(r={endpointResolver:(0,y.o)({endpointOverride:m})},(0,l.A)(h.e,(0,d._)("GetUser"),(0,p.T)(),{...g.C,...r})),{UserAttributes:E}=await v({region:(0,a.J)(b),userAgentValue:(0,c.A)(s.BM.FetchUserAttributes)},{AccessToken:w.accessToken.toString()});return(0,f.J)(E)},b=()=>m(n.H)},20468:(e,t,r)=>{"use strict";r.d(t,{M:()=>c});var n=r(29293),o=r(61848);let i=new n.C("parseAWSExports"),s={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},a=e=>e?.split(",")??[],u={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"},f={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"},c=e=>Object.keys(e).some(e=>e.startsWith("aws_"))?((e={})=>{if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new o.x({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});let{aws_appsync_apiKey:t,aws_appsync_authenticationType:r,aws_appsync_graphqlEndpoint:n,aws_appsync_region:u,aws_bots_config:f,aws_cognito_identity_pool_id:c,aws_cognito_sign_up_verification_method:l,aws_cognito_mfa_configuration:h,aws_cognito_mfa_types:d,aws_cognito_password_protection_settings:p,aws_cognito_verification_mechanisms:g,aws_cognito_signup_attributes:y,aws_cognito_social_providers:m,aws_cognito_username_attributes:b,aws_mandatory_sign_in:w,aws_mobile_analytics_app_id:v,aws_mobile_analytics_app_region:E,aws_user_files_s3_bucket:A,aws_user_files_s3_bucket_region:x,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:S,aws_user_pools_id:I,aws_user_pools_web_client_id:C,geo:P,oauth:U,predictions:O,aws_cloud_logic_custom:R,Notifications:T,modelIntrospection:_}=e,N={};v&&(N.Analytics={Pinpoint:{appId:v,region:E}});let{InAppMessaging:L,Push:k}=T??{};if(L?.AWSPinpoint||k?.AWSPinpoint){if(L?.AWSPinpoint){let{appId:e,region:t}=L.AWSPinpoint;N.Notifications={InAppMessaging:{Pinpoint:{appId:e,region:t}}}}if(k?.AWSPinpoint){let{appId:e,region:t}=k.AWSPinpoint;N.Notifications={...N.Notifications,PushNotification:{Pinpoint:{appId:e,region:t}}}}}if(Array.isArray(f)&&(N.Interactions={LexV1:Object.fromEntries(f.map(e=>[e.name,e]))}),n){let e=s[r];e||i.debug(`Invalid authentication type ${r}. Falling back to IAM.`),N.API={GraphQL:{endpoint:n,apiKey:t,region:u,defaultAuthMode:e??"iam"}},_&&(N.API.GraphQL.modelIntrospection=_)}let B=h?{status:h&&h.toLowerCase(),totpEnabled:d?.includes("TOTP")??!1,smsEnabled:d?.includes("SMS")??!1}
1:void 0,M=p?{minLength:p.passwordPolicyMinLength,requireLowercase:p.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:p.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:p.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:p.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,j=Array.from(new Set([...g??[],...y??[]])).reduce((e,t)=>({...e,[t.toLowerCase()]:{required:!0}}),{}),D=b?.includes("EMAIL")??!1,W=b?.includes("PHONE_NUMBER")??!1;(c||I)&&(N.Auth={Cognito:{identityPoolId:c,allowGuestAccess:"enable"!==w,signUpVerificationMethod:l,userAttributes:j,userPoolClientId:C,userPoolId:I,mfa:B,passwordFormat:M,loginWith:{username:!(D||W),email:D,phone:W}}});let $=!!U&&Object.keys(U).length>0,G=!!m&&m.length>0;if(N.Auth&&$&&(N.Auth.Cognito.loginWith={...N.Auth.Cognito.loginWith,oauth:{...(({domain:e,scope:t,redirectSignIn:r,redirectSignOut:n,responseType:o})=>({domain:e,scopes:t,redirectSignIn:a(r),redirectSignOut:a(n),responseType:o}))(U),...G&&{providers:m.map(e=>{let t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)})}}}),A&&(N.Storage={S3:{bucket:A,region:x,dangerouslyConnectToHttpEndpointForTesting:S}}),P){let{amazon_location_service:e}=P;N.Geo={LocationService:{maps:e.maps,geofenceCollections:e.geofenceCollections,searchIndices:e.search_indices,region:e.region}}}if(R&&(N.API={...N.API,REST:R.reduce((e,t)=>{let{name:r,endpoint:n,region:o,service:i}=t;return{...e,[r]:{endpoint:n,...i?{service:i}:void 0,...o?{region:o}:void 0}}},{})}),O){let{VoiceId:e}=O?.convert?.speechGenerator?.defaults??{};N.Predictions=e?{...O,convert:{...O.convert,speechGenerator:{...O.convert.speechGenerator,defaults:{voiceId:e}}}}:O}return N})(e):!function(e){let{version:t}=e;return!!t&&t.startsWith("1")}(e)?e:function(e){let t={};if(e.storage&&(t.Storage=function(e){if(!e)return;let{bucket_name:t,aws_region:r,buckets:n}=e;return{S3:{bucket:t,region:r,buckets:n&&function(e){let t={};return e.forEach(({name:e,bucket_name:r,aws_region:n,paths:o})=>{if(e in t)throw Error(`Duplicate friendly name found: ${e}. Name must be unique.`);let i=o?Object.entries(o).reduce((e,[t,r])=>(void 0!==r&&(e[t]=r),e),{}):void 0;t[e]={bucketName:r,region:n,paths:i}}),t}(n)}}}(e.storage)),e.auth&&(t.Auth=function(e){var t;if(!e)return;let{user_pool_id:r,user_pool_client_id:n,identity_pool_id:o,password_policy:i,mfa_configuration:s,mfa_methods:a,unauthenticated_identities_enabled:u,oauth:c,username_attributes:l,standard_required_attributes:h,groups:d}=e,p={Cognito:{userPoolId:r,userPoolClientId:n,groups:d}};return o&&(p.Cognito={...p.Cognito,identityPoolId:o}),i&&(p.Cognito.passwordFormat={requireLowercase:i.require_lowercase,requireNumbers:i.require_numbers,requireUppercase:i.require_uppercase,requireSpecialCharacters:i.require_symbols,minLength:i.min_length??6}),s&&(p.Cognito.mfa={status:"OPTIONAL"===(t=s)?"optional":"REQUIRED"===t?"on":"off",smsEnabled:a?.includes("SMS"),totpEnabled:a?.includes("TOTP")}),u&&(p.Cognito.allowGuestAccess=u),c&&(p.Cognito.loginWith={oauth:{domain:c.domain,redirectSignIn:c.redirect_sign_in_uri,redirectSignOut:c.redirect_sign_out_uri,responseType:"token"===c.response_type?"token":"code",scopes:c.scopes,providers:function(e=[]){return e.reduce((e,t)=>(void 0!==f[t]&&e.push(f[t]),e),[])}(c.identity_providers)}}),l&&(p.Cognito.loginWith={...p.Cognito.loginWith,email:l.includes("email"),phone:l.includes("phone_number"),username:l.includes("username")}),h&&(p.Cognito.userAttributes=h.reduce((e,t)=>({...e,[t]:{required:!0}}),{})),p}(e.auth)),e.analytics&&(t.Analytics=function(e){if(!e?.amazon_pinpoint)return;let{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}(e.analytics)),e.geo&&(t.Geo=function(e){if(!e)return;let{aws_region:t,geofence_collections:r,maps:n,search_indices:o}=e;return{LocationService:{region:t,searchIndices:o,geofenceCollections:r,maps:n}}}(e.geo)),e.data&&(t.API=function(e){if(!e)return;let{aws_region:t,default_authorization_type:r,url:n,api_key:o,model_introspection:i}=e;return{GraphQL:{endpoint:n,defaultAuthMode:u[r],region:t,apiKey:o,modelIntrospection:i}}}(e.data)),e.custom){let r=function(e){if(!e?.events)return;let{url:t,aws_region:r,api_key:n,default_authorization_type:o}=e.events;return{Events:{endpoint:t,defaultAuthMode:u[o],region:r,apiKey:n}}}(e.custom);r&&"Events"in r&&(t.API={...t.API,...r})}return e.notifications&&(t.Notifications=function(e){if(!e)return;let{aws_region:t,channels:r,amazon_pinpoint_app_id:n}=e,o=r.includes("IN_APP_MESSAGING"),i=r.includes("APNS")||r.includes("FCM");if(!(o||i))return;let s={};return o&&(s.InAppMessaging={Pinpoint:{appId:n,region:t}}),i&&(s.PushNotification={Pinpoint:{appId:n,region:t}}),s}(e.notifications)),t}(e)},26235:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var n=r(31851),o=r(77552),i=r(65981);let s=()=>async e=>{if(e.statusCode>=300){let t=await (0,n.F)(e);throw(0,o.e)(t),new i.l({name:t.name,message:t.message,metadata:t.$metadata})}return(0,n.Y)(e)}},28594:(e,t,r)=>{"use strict";r.d(t,{K7:()=>n,Q8:()=>i,jy:()=>o,mU:()=>s});let n=3,o="amz-sdk-invocation-id",i="amz-sdk-request",s=3e5},29293:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var n,o=r(30029);!function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"}(n||(n={}));let i={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class s{constructor(e,t=n.WARN){this.name=e,this.level=t,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){let e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e&&(this._config=e),this._config}_log(e,...t){let r=this.level;s.LOG_LEVEL&&(r=s.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);let o=i[r];if(!(i[e]>=o))return;let a=console.log.bind(console);e===n.ERROR&&console.error&&(a=console.error.bind(console)),e===n.WARN&&console.warn&&(a=console.warn.bind(console)),s.BIND_ALL_LOG_LEVELS&&(e===n.INFO&&console.info&&(a=console.info.bind(console)),e===n.DEBUG&&console.debug&&(a=console.debug.bind(console)));let u=`[${e}] ${this._ts()} ${this.name}`,f="";if(1===t.length&&"string"==typeof t[0])a(f=`${u} - ${t[0]}`);else if(1===t.length)f=`${u} ${t[0]}`,a(u,t[0]);else if("string"==typeof t[0]){let e=t.slice(1);1===e.length&&(e=e[0]),f=`${u} - ${t[0]} ${e}`,a(`${u} - ${t[0]}`,e)}else f=`${u} ${t}`,a(u,t);for(let e of this._pluggables){let t={message:f,timestamp:Date.now()};e.pushLogs([t])}}log(...e){this._log(n.INFO,...e)}info(...e){this._log(n.INFO,...e)}warn(...e){this._log(n.WARN,...e)}error(...e){this._log(n.ERROR,...e)}debug(...e){this._log(n.DEBUG,...e)}verbose(...e){this._log(n.VERBOSE,...e)}addPluggable(e){e&&e.getCategoryName()===o.OU&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}s.LOG_LEVEL=null,s.BIND_ALL_LOG_LEVELS=!1},30029:(e,t,r)=>{"use strict";r.d(t,{OU:()=>n,YJ:()=>o,d1:()=>i});let n="Logging",o="x-amz-user-agent",i="NoHubcallbackProvidedException"},31851:(e,t,r)=>{"use strict";r.d(t,{F:()=>o,Y:()=>i});var n=r(8352);let o=async e=>{if(!e||e.statusCode<300)return;let t=await i(e),r=(e=>{let[t]=e.toString().split(/[,:]+/);return t.includes("#")?t.split("#")[1]:t})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError");return Object.assign(Error(t.message??t.Message??"Unknown error"),{name:r,$metadata:(0,n.j)(e)})},i=async e=>{if(!e.body)throw Error("Missing response payload");return Object.assign(await e.body.json(),{$metadata:(0,n.j)(e)})}},32079:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,e:()=>i});let n={},o=e=>{n[e.category]=e.apis.reduce((t,r)=>({...t,[r]:{refCount:t[r]?.refCount?t[r].refCount+1:1,additionalDetails:e.additionalDetails}}),n[e.category]??{});let t=!1;return()=>{t||(t=!0,e.apis.forEach(t=>{let r=n[e.category][t].refCount;r>1?n[e.category][t].refCount=r-1:(delete n[e.category][t],Object.keys(n[e.category]).length||delete n[e.category])}))}},i=(e,t)=>n[e]?.[t]?.additionalDetails},33044:(e,t,r)=>{"use strict";r.d(t,{o:()=>s});var n=r(99896),o=r(79096),i=r(99900);let s=e=>{let{endpointOverride:t}=e;return e=>t?{url:new n.o(t)}:(e=>{let{region:t}=e;
1return{url:new n.o("https://".concat(i.M,".").concat(t,".").concat((0,o.R)(t)))}})(e)}},35695:(e,t,r)=>{"use strict";var n=r(18999);r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},36035:(e,t,r)=>{"use strict";r.d(t,{H:()=>l});var n=r(69414);let o=e=>{for(let t of Reflect.ownKeys(e)){let r=e[t];(r&&"object"==typeof r||"function"==typeof r)&&o(r)}return Object.freeze(e)};var i=r(2379),s=r(20468);r(40670),r(68021);let a=new(r(29293)).C("Auth");class u{configure(e,t){this.authConfig=e,this.authOptions=t,e&&e.Cognito?.userPoolEndpoint&&a.warn(f("Amazon Cognito User Pool")),e&&e.Cognito?.identityPoolEndpoint&&a.warn(f("Amazon Cognito Identity Pool"))}async fetchAuthSession(e={}){let t,r,n=await this.getTokens(e);return n?(r=n.accessToken?.payload?.sub,t=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:n,authenticated:!0,forceRefresh:e.forceRefresh})):t=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh}),{tokens:n,credentials:t?.credentials,identityId:t?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(e){return await this.authOptions?.tokenProvider?.getTokens(e)??void 0}}let f=e=>`You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`;class c{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new u}configure(e,t){let r=(0,s.M)(e);this.resourcesConfig=r,t&&(this.libraryOptions=t),this.resourcesConfig=o(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),n.YZ.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",n.U9),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[i.$](e){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?e(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=e}notifyOAuthListener(){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth&&this.oAuthListener&&(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}let l=new c},40670:(e,t,r)=>{"use strict";r.d(t,{I:()=>f}),Object.create;Object.create;var n=("function"==typeof SuppressedError&&SuppressedError,new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2])),o=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],i=function(){function e(){this.state=Int32Array.from(o),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>0x1fffffffffffff)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(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),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%64>=56){for(var n=this.bufferLength;n<64;n++)t.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(var n=this.bufferLength;n<56;
1n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/0x100000000),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(32),n=0;n<8;n++)o[4*n]=this.state[n]>>>24&255,o[4*n+1]=this.state[n]>>>16&255,o[4*n+2]=this.state[n]>>>8&255,o[4*n+3]=this.state[n]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],u=t[5],f=t[6],c=t[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&e[4*l])<<24|(255&e[4*l+1])<<16|(255&e[4*l+2])<<8|255&e[4*l+3];else{var h=this.temp[l-2],d=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,p=((h=this.temp[l-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[l]=(d+this.temp[l-7]|0)+(p+this.temp[l-16]|0)}var g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&u^~a&f)|0)+(c+(n[l]+this.temp[l]|0)|0)|0,y=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&i^o&i)|0;c=f,f=u,u=a,a=s+g|0,s=i,i=o,o=r,r=g+y|0}t[0]+=r,t[1]+=o,t[2]+=i,t[3]+=s,t[4]+=a,t[5]+=u,t[6]+=f,t[7]+=c},e}(),s=r(44134).hp,a=void 0!==s&&s.from?function(e){return s.from(e,"utf8")}:e=>new TextEncoder().encode(e);function u(e){return e instanceof Uint8Array?e:"string"==typeof e?a(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var f=function(){function e(e){this.secret=e,this.hash=new i,this.reset()}return e.prototype.update=function(e){if(!("string"==typeof e?0===e.length:0===e.byteLength)&&!this.error)try{this.hash.update(u(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){var f=[a,u];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&f[0]?n.return:f[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,f[1])).done)return o;switch(n=0,o&&(f=[2&f[0],o.value]),f[0]){case 0:case 1:o=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,n=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===f[0]||2===f[0])){i=0;continue}if(3===f[0]&&(!o||f[1]>o[0]&&f[1]<o[3])){i.label=f[1];break}if(6===f[0]&&i.label<o[1]){i.label=o[1],o=f;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(f);break}o[2]&&i.ops.pop(),i.trys.pop();continue}f=t.call(e,i)}catch(e){f=[6,e],n=0}finally{r=o=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}}(this,function(e){return[2,this.digestSync()]})},new(r||(r=Promise))(function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},e.prototype.reset=function(){if(this.hash=new i,this.secret){this.outer=new i;var e=function(e){var t=u(e);if(t.byteLength>64){var r=new i;r.update(t),t=r.digest()}var n=new Uint8Array(64);return n.set(t),n}(this.secret),t=new Uint8Array(64);t.set(e);for(var r=0;r<64;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(var r=0;r<e.byteLength;r++)e[r]=0}},e}()},40918:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86976),o=r(46199);let i=(e,t)=>(0,n.fE)({category:o.b7.Auth,action:e,...t})},43299:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(28594);let o=e=>{let t=(function(e=3e5){return t=>{let r=2**t*100+100*Math.random();return!(r>e)&&r}})(n.mU)(e);return!1===t?n.mU:t}},43743:(e,t,r)=>{"use strict";r.d(t,{H0:()=>i,OW:()=>s,O_:()=>c,X4:()=>f,f3:()=>l});var n=r(65981),o=r(71750);function i(e){if(!e||!e.accessToken)throw new n.l({name:o.zz,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function s(e){if(!e||!e.idToken)throw new n.l({name:o.zz,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}let a=new n.l({name:o.Cs,message:"Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. \n Please change your oauth configuration to use 'code grant' flow.",recoverySuggestion:"Please logout and change your Amplify configuration to use \"code grant\" flow. \n E.g { responseType: 'code' }"}),u=new n.l({name:o.zz,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function f(e){var t,r;if(h(t=e)&&!(null==t?void 0:t.refreshToken))throw a;if(!(h(r=e)&&(null==r?void 0:r.refreshToken)))throw u}function c(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new n.l({name:o.kM,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}let l={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function h(e){return(null==e?void 0:e.accessToken)||(null==e?void 0:e.idToken)}},44134:(e,t,r)=>{"use strict";var n=r(57719),o=r(7610),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>
vendor: 18,462 bytes, line 1
10x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!a.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|d(n,o),u=s(i),f=u.write(n,o);return f!==i&&(u=u.slice(0,f)),u}if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return a.from(c,t,r);var p=function(e){if(a.isBuffer(e)){var t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return f(e),s(e<0?0:0|h(e))}function l(e){for(var t=e.length<0?0:0|h(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.hp=a,t.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(e).length;default:if(o)return n?-1:I(e).length;t=(""+t).toLowerCase(),o=!0}}function p(e,t,r){var o,i,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=R[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=this,i=t,s=r,0===i&&s===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(o)return -1;else r=e.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,o)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,o){var i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,u/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=r;i<a;i++)if(f(e,i)===f(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*s}else -1!==c&&(i-=i-c),c=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(f(e,i+h)!==f(t,h)){l=!1;break}if(l)return i}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(O(i,Uint8Array)&&(i=a.from(i)),!a.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,o){if(O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,s=r-t,u=Math.min(i,s),f=this.slice(n,o),c=e.slice(t,r),l=0;l<u;++l)if(f[l]!==c[l]){i=f[l],s=c[l];break}return i<s?-1:+(s<i)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,u,f=e[o],c=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:(192&(i=e[o+1]))==128&&(u=(31&f)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],s=e[o+2],(192&i)==128&&(192&s)==128&&(u=(15&f)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],(192&i)==128&&(192&s)==128&&(192&a)==128&&(u=(15&f)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=l}var h=n,d=h.length;if(d<=4096)return String.fromCharCode.apply(String,h);for(var p="",g=0;g<d;)p+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return p}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,n,o,i){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function E(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function A(e,t,r,n,i){return t*=1,r>>>=0,i||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,i){return t*=1,r>>>=0,i||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,s,a,u,f,c,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a,u=parseInt(t.substr(2*s,2),16);if((a=u)!=a)break;e[r+s]=u}return s}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,U(I(e,this.length-o),this,o,i);case"ascii":return s=t,a=r,U(C(e),this,s,a);case"latin1":case"binary":return function(e,t,r,n){return U(C(t),e,r,n)}(this,e,t,r);case"base64":return u=t,f=r,U(P(e),this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,l=r,U(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,l);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;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),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;v(this,e,t,r,o,0)}var i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;v(this,e,t,r,o,0)}var i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);v(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);v(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),u=s.length;
1if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%u]}return this};var S=/[^+/0-9A-Za-z-_]/g;function I(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function C(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function P(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},46199:(e,t,r)=>{"use strict";var n,o,i,s,a,u,f,c,l,h,d,p,g,y;r.d(t,{BM:()=>u,ID:()=>c,b7:()=>o,dT:()=>n,r5:()=>l,rn:()=>i,sZ:()=>y}),function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"}(n||(n={})),function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"}(o||(o={})),function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"}(i||(i={})),function(e){e.Record="1",e.IdentifyUser="2"}(s||(s={})),function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"}(a||(a={})),function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"}(u||(u={})),function(e){e.Subscribe="1",e.GraphQl="2"}(f||(f={})),function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"}(c||(c={})),function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"}(l||(l={})),(h||(h={})).None="0",function(e){e.Convert="1",e.Identify="2",e.Interpret="3"}(d||(d={})),(p||(p={})).Subscribe="1",function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"}(g||(g={})),function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"}(y||(y={}))},46417:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(63441);let o={convert(e,t){let r=e;return t?.urlSafe&&(r=r.replace(/-/g,"+").replace(/_/g,"/")),(0,n.nW)()(r)}}},51009:(e,t,r)=>{"use strict";r.d(t,{F:()=>h});var n=r(28594);let o=(e,t)=>{let r,n;if(t?.aborted)return Promise.resolve();let o=new Promise(t=>{n=t,r=setTimeout(t,e)});return t?.addEventListener("abort",function e(o){clearTimeout(r),t?.removeEventListener("abort",e),n()}),o},i=(e,t)=>{"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata={...e.$metadata??{},attempts:t})},s=r(51368).A;r(40670),r(68021);var a=r(82590),u=r(61848),f=r(98711);let c=e=>{let t;return()=>(t||(t=e()),t)},l=async({url:e,method:t,headers:r,body:n}
1,{abortSignal:o,cache:i,withCrossDomainCredentials:s})=>{let a;try{a=await fetch(e,{method:t,headers:r,body:["HEAD","GET"].includes(t.toUpperCase())?void 0:n,signal:o,cache:i,credentials:s?"include":"same-origin"})}catch(e){if(e instanceof TypeError)throw new u.x({name:f.m.NetworkError,message:"A network error has occurred.",underlyingError:e});throw e}let l={};a.headers?.forEach((e,t)=>{l[t.toLowerCase()]=e});let h={statusCode:a.status,headers:l,body:null},d=Object.assign(a.body??{},{text:c(()=>a.text()),blob:c(()=>a.blob()),json:c(()=>a.json())});return{...h,body:d}},h=(0,a.q)(l,[({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>r=>async function(n){if(0===t.trim().length)return await r(n);{let o=e.toLowerCase();return n.headers[o]=n.headers[o]?`${n.headers[o]} ${t}`:t,await r(n)}},()=>e=>async function(t){return t.headers[n.jy]||(t.headers[n.jy]=s()),e(t)},({maxAttempts:e=n.K7,retryDecider:t,computeDelay:r,abortSignal:s})=>{if(e<1)throw Error("maxAttempts must be greater than 0");return(n,a)=>async function(u){let f,c,l=a.attemptsCount??0,h=()=>{if(c)return i(c,l),c;throw i(f,l),f};for(;!s?.aborted&&l<e;){try{c=await n(u),f=void 0}catch(e){f=e,c=void 0}l=(a.attemptsCount??0)>l?a.attemptsCount??0:l+1,a.attemptsCount=l;let{isCredentialsExpiredError:i,retryable:d}=await t(c,f,a);if(!d)return h();if(a.isCredentialsExpired=!!i,!s?.aborted&&l<e){let e=r(l);await o(e,s)}}if(!s?.aborted)return h();throw Error("Request aborted.")}},({maxAttempts:e=n.K7})=>(t,r)=>async function(o){let i=r.attemptsCount??0;return o.headers[n.Q8]=`attempt=${i+1}; max=${e}`,t(o)}])},51368:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>a});let o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},i=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));let a=function(e,t,r){if(o.randomUUID&&!t&&!e)return o.randomUUID();let a=(e=e||{}).random??e.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(i)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=a[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(a)}},53732:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(36035),o=r(85240);let i=e=>(0,o.$)(n.H,e)},53944:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(61848);let o=(e,t=n.x)=>(r,n,o)=>{let{message:i,recoverySuggestion:s}=e[n];if(!r)throw new t({name:n,message:o?`${i} ${o}`:i,recoverySuggestion:s})}},57719:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=u(e),s=i[0],a=i[1],f=new o((s+a)*3/4-a),c=0,l=a>0?s-4:s;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],f[c++]=t>>16&255,f[c++]=t>>8&255,f[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[c++]=t>>8&255,f[c++]=255&t),f},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(function(e,t,n){for(var o,i=[],s=t;s<n;s+=3)o=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,s,s+16383>a?a:s+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;
1++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},61848:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});class n extends Error{constructor({message:e,name:t,recoverySuggestion:r,underlyingError:o,metadata:i}){if(super(e),this.name=t,this.underlyingError=o,this.recoverySuggestion=r,i){let{extendedRequestId:e,httpStatusCode:t,requestId:r}=i;this.metadata={extendedRequestId:e,httpStatusCode:t,requestId:r}}this.constructor=n,Object.setPrototypeOf(this,n.prototype)}}},63441:(e,t,r)=>{"use strict";r.d(t,{MY:()=>o,nW:()=>s,xA:()=>i});var n=r(61848);let o=()=>{if("object"==typeof window&&"object"==typeof window.crypto)return window.crypto;if("object"==typeof crypto)return crypto;throw new n.x({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},i=()=>{if("undefined"!=typeof window&&"function"==typeof window.btoa)return window.btoa;if("function"==typeof btoa)return btoa;throw new n.x({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},s=()=>
1{if("undefined"!=typeof window&&"function"==typeof window.atob)return window.atob;if("function"==typeof atob)return atob;throw new n.x({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})}},65981:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(61848);class o extends n.x{constructor(e){super(e),this.constructor=o,Object.setPrototypeOf(this,o.prototype)}}},68021:(e,t,r)=>{"use strict";let n={},o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),n[e]=t,o[t]=e}},69414:(e,t,r)=>{"use strict";r.d(t,{U9:()=>s,YZ:()=>f,f3:()=>c});var n=r(29293),o=r(30029),i=r(61848);let s="undefined"!=typeof Symbol?Symbol("amplify_default"):"@@amplify_default",a=new n.C("Hub");class u{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,t){let r=this.listeners.get(e);if(!r)return void a.warn(`No listeners for ${e}`);this.listeners.set(e,[...r.filter(({callback:e})=>e!==t)])}dispatch(e,t,r,n){"string"==typeof e&&this.protectedChannels.indexOf(e)>-1&&n!==s&&a.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`);let o={channel:e,payload:{...t},source:r,patternInfo:[]};try{this._toListeners(o)}catch(e){a.error(e)}}listen(e,t,r="noname"){if("function"!=typeof t)throw new i.x({name:o.d1,message:"No callback supplied to Hub"});let n=this.listeners.get(e);return n||(n=[],this.listeners.set(e,n)),n.push({name:r,callback:t}),()=>{this._remove(e,t)}}_toListeners(e){let{channel:t,payload:r}=e,n=this.listeners.get(t);n&&n.forEach(n=>{a.debug(`Dispatching to ${t} with `,r);try{n.callback(e)}catch(e){a.error(e)}})}}let f=new u("__default__"),c=new u("internal-hub")},70762:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},71750:(e,t,r)=>{"use strict";r.d(t,{$6:()=>c,A0:()=>a,Cs:()=>h,RW:()=>u,jK:()=>f,kM:()=>s,mh:()=>l,yA:()=>d,z0:()=>i,zz:()=>o});var n=r(65981);let o="UserUnAuthenticatedException",i="UserAlreadyAuthenticatedException",s="DeviceMetadataNotFoundException",a="AutoSignInException",u=new n.l({name:"InvalidRedirectException",message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new n.l({name:"InvalidAppSchemeException",message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});let f=new n.l({name:"InvalidPreferredRedirectUrlException",message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."}),c=new n.l({name:"InvalidOriginException",message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),l="OAuthSignOutException",h="TokenRefreshException",d="UnexpectedSignInInterruptionException"},73485:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(82590),o=r(51009);let i=(0,n.q)(o.F,[()=>(e,t)=>async function(t){return t.headers["cache-control"]="no-store",e(t)}])},74172:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(98711);let o=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],i=e=>async(t,r)=>{let n=r??await e(t)??void 0,i=n?.code||n?.name,s=t?.statusCode;return{retryable:f(r)||u(s,i)||(e=>!!e&&o.includes(e))(i)||c(s,i)}},s=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],a=["TimeoutError","RequestTimeout","RequestTimeoutException"],u=(e,t)=>
1429===e||!!t&&s.includes(t),f=e=>[n.m.NetworkError,"ERR_NETWORK"].includes(e?.name),c=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&a.includes(t)},74570:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=e=>(t,r)=>i(r,o(e),JSON.stringify(t)),o=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityProviderService.".concat(e)}),i=(e,t,r)=>{let{url:n}=e;return{headers:t,url:n,body:r,method:"POST"}}},77552:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n=r(98711),o=r(65981);function i(e){if(!e||"Error"===e.name||e instanceof TypeError)throw new o.l({name:n.m.Unknown,message:"An unknown error has occurred.",underlyingError:e})}},79096:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});let n={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},o={partitions:[n,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},i=e=>{let{partitions:t}=o;for(let{regions:r,outputs:n,regionRegex:o}of t){let t=new RegExp(o);if(r.includes(e)||t.test(e))return n.dnsSuffix}return n.outputs.dnsSuffix}},82590:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});let n=(e,t)=>(r,n)=>{let o={},i=t=>e(t,n);for(let e=t.length-1;e>=0;e--)i=(0,t[e])(n)(i,o);return i(r)}},85240:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});let n=(e,t)=>e.Auth.fetchAuthSession(t)},86976:(e,t,r)=>{"use strict";let n;r.d(t,{fE:()=>v});var o=r(46199);let i="6.15.8";var s=r(87358);let a=(e,t)=>!!Object.keys(e).find(e=>e.startsWith(t));var u=r(87358),f=r(87358),c=r(87358);let l=[{platform:o.dT.Expo,detectionMethod:function(){return"undefined"!=typeof global&&void 0!==global.expo}},{platform:o.dT.ReactNative,detectionMethod:function(){return"undefined"!=typeof navigator&&void 0!==navigator.product&&"ReactNative"===navigator.product}},{platform:o.dT.NextJs,detectionMethod:function(){return"undefined"!=typeof window&&window.next&&"object"==typeof window.next}},{platform:o.dT.Nuxt,detectionMethod:function(){return"undefined"!=typeof window&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}},{platform:o.dT.Angular,detectionMethod:function(){let e=!!("undefined"!=typeof document&&document.querySelector("[ng-version]")),t="undefined"!=typeof window&&void 0!==window.ng;return e||t}},{platform:o.dT.React,detectionMethod:function(){let e=e=>e.startsWith("_react")||e.startsWith("__react");return"undefined"!=typeof document&&Array.from(document.querySelectorAll("[id]")).some(t=>Object.keys(t).find(e))}},{platform:o.dT.VueJs,detectionMethod:function(){return"undefined"!=typeof window&&a(window,"__VUE")}},{platform:o.dT.Svelte,detectionMethod:function(){return"undefined"!=typeof window&&a(window,"__SVELTE")}},{platform:o.dT.WebUnknown,detectionMethod:function(){return"undefined"!=typeof window}},{platform:o.dT.NextJsSSR,detectionMethod:function(){return"undefined"!=typeof global&&(a(global,"__next")||a(global,"__NEXT"))}},{platform:o.dT.NuxtSSR,detectionMethod:function(){return"undefined"!=typeof global&&void 0!==global.__NUXT_PATHS__}},{platform:o.dT.ReactSSR,detectionMethod:function(){return void 0!==s&&void 0!==u.env&&!!Object.keys(u.env).find(e=>e.includes("react"))}},{platform:o.dT.VueJsSSR,detectionMethod:function(){return"undefined"!=typeof global&&a(global,"__VUE")}},{platform:o.dT.AngularSSR,detectionMethod:function(){return void 0!==s&&"object"==typeof c.env&&c.env.npm_lifecycle_script?.startsWith("ng ")||!1}},{platform:o.dT.SvelteSSR,detectionMethod:function(){return void 0!==s&&void 0!==f.env&&!!Object.keys(f.env).find(e=>e.includes("svelte"))}}],h=[],d=!1,p=()=>{if(!n){if(n=l.find(e=>e.detectionMethod())?.platform||o.dT.ServerSideUnknown,d)for(;h.length;)h.pop()?.();else h.forEach(e=>{e()});g(o.dT.ServerSideUnknown,10),g(o.dT.WebUnknown,10)}return n};function g(e,t){n!==e||d||setTimeout(()=>{n=void 0,d=!0,setTimeout(p,1e3)},t)}var y=r(32079);let m="aws-amplify",b=e=>e.replace(/\+.*/,"");class w{constructor(){this.userAgent=`${m}/${b(i)}`}get framework(){return p()}get isReactNative(){return this.framework===o.dT.ReactNative||this.framework===o.dT.Expo}observeFrameworkChanges(e){d||h.push(e)}}new w;let v=e=>(({category:e,action:t}={})=>{let r=[[m,b(i)]];if(e&&r.push([e,t]),r.push(["framework",p()]),e&&t){let n=(0,y.e)(e,t);
1n&&n.forEach(e=>{r.push(e)})}return r})(e).map(([e,t])=>e&&t?`${e}/${t}`:e).join(" ")},91218:(e,t,r)=>{"use strict";let n;r.d(t,{r9:()=>g,Bd:()=>w});var o=r(12115);r(70762),Object.create(null);let i={},s=(e,t,r,n)=>{c(r)&&i[r]||(c(r)&&(i[r]=new Date),((e,t,r,n)=>{let o=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);c(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)})(e,t,r,n))},a=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},u=(e,t,r)=>{e.loadNamespaces(t,a(e,r))},f=(e,t,r,n)=>{if(c(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return u(e,r,n);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,a(e,n))},c=e=>"string"==typeof e,l=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,h={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},d=e=>h[e],p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(l,d)},g={type:"3rdParty",init(e){((e={})=>{p={...p,...e}})(e.options.react),n=e}},y=(0,o.createContext)();class m{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let b=(e,t,r,n)=>e.getFixedT(t,r,n),w=(e,t={})=>{let{i18n:r}=t,{i18n:i,defaultNS:a}=(0,o.useContext)(y)||{},l=r||i||n;if(l&&!l.reportNamespaces&&(l.reportNamespaces=new m),!l){s(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>c(t)?t:(e=>"object"==typeof e&&null!==e)(t)&&c(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}l.options.react?.wait&&s(l,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let h={...p,...l.options.react,...t},{useSuspense:d,keyPrefix:g}=h,w=e||a||l.options?.defaultNS;w=c(w)?[w]:w||["translation"],l.reportNamespaces.addUsedNamespaces?.(w);let v=(l.isInitialized||l.initializedStoreOnce)&&w.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
1isLanguageChangingTo,e))return!1}}):(s(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,l,h)),E=((e,t,r,n)=>(0,o.useCallback)(b(e,t,r,n),[e,t,r,n]))(l,t.lng||null,"fallback"===h.nsMode?w:w[0],g),A=()=>E,x=()=>b(l,t.lng||null,"fallback"===h.nsMode?w:w[0],g),[S,I]=(0,o.useState)(A),C=w.join();t.lng&&(C=`${t.lng}${C}`);let P=((e,t)=>{let r=(0,o.useRef)();return(0,o.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current})(C),U=(0,o.useRef)(!0);(0,o.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=h;U.current=!0,v||d||(t.lng?f(l,t.lng,w,()=>{U.current&&I(x)}):u(l,w,()=>{U.current&&I(x)})),v&&P&&P!==C&&U.current&&I(x);let n=()=>{U.current&&I(x)};return e&&l?.on(e,n),r&&l?.store.on(r,n),()=>{U.current=!1,l&&e&&e?.split(" ").forEach(e=>l.off(e,n)),r&&l&&r.split(" ").forEach(e=>l.store.off(e,n))}},[l,C]),(0,o.useEffect)(()=>{U.current&&v&&I(A)},[l,g,v]);let O=[S,l,v];if(O.t=S,O.i18n=l,O.ready=v,v||!v&&!d)return O;throw new Promise(e=>{t.lng?f(l,t.lng,w,()=>e()):u(l,w,()=>e())})}},98711:(e,t,r)=>{"use strict";var n;r.d(t,{m:()=>n}),function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"}(n||(n={}))},98785:(e,t,r)=>{"use strict";r.d(t,{Eh:()=>c,G6:()=>f,$y:()=>u,Cq:()=>l});var n,o=r(46417),i=r(53944);!function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"}(n||(n={}));let s={[n.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[n.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[n.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[n.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[n.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},a=(0,i.p)(s);function u(e){a(!!e&&!!e.userPoolId&&!!e.userPoolClientId,n.AuthUserPoolException)}function f(e){a(!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType,n.OAuthNotConfigureException)}function c(e){a(!!e?.identityPoolId,n.InvalidIdentityPoolIdException)}function l(e){let t=e.split(".");if(3!==t.length)throw Error("Invalid token");try{let r=t[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(o.m.convert(r).split("").map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),i=JSON.parse(n);return{toString:()=>e,payload:i}}catch(e){throw Error("Invalid token payload")}}},99896:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});let n=URL},99900:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="cognito-idp"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.