(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,i)=>{t.exports=e.r(76562)},39416,e=>{"use strict";var t=e.i(76423),i=e.i(79638);function n(e){let n,r,o,{sx:s,...a}=e,{systemProps:u,otherProps:c}=(r={systemProps:{},otherProps:{}},o=a?.theme?.unstable_sxConfig??i.default,Object.keys(a).forEach(e=>{o[e]?r.systemProps[e]=a[e]:r.otherProps[e]=a[e]}),r);return n=Array.isArray(s)?[u,...s]:"function"==typeof s?(...e)=>{let i=s(...e);return(0,t.isPlainObject)(i)?{...u,...i}:u}:{...u,...s},{...c,sx:n}}e.s(["extendSxProp",()=>n],39416)},35642,98006,e=>{"use strict";e.i(71645);var t=e.i(39416);e.i(54469),e.i(47167);var i=e.i(84364),n=e.i(43476);function r(e){let{styles:t,defaultTheme:r={}}=e,o="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,n.jsx)(i.Global,{styles:o})}e.s(["GlobalStyles",()=>r],98006);var o=e.i(61801);let s=function({styles:e,themeId:t,defaultTheme:i={}}){let s=(0,o.default)(i),a="function"==typeof e?e(t&&s[t]||s):e;return(0,n.jsx)(r,{styles:a})};var a=e.i(40158),u=e.i(2001);let c=function(e){return(0,n.jsx)(s,{...e,defaultTheme:a.default,themeId:u.default})};function f(e){return function(t){return(0,n.jsx)(c,{styles:"function"==typeof e?i=>e({theme:i,...t}):e})}}function l(){return t.extendSxProp}e.s(["globalCss",()=>f,"internal_createExtendSxProp",()=>l],35642)},68308,e=>{"use strict";var t=e.i(71645),i=e.i(43476);let n=t.createContext();e.s(["default",0,function({value:e,...t}){return(0,i.jsx)(n.Provider,{value:e??!0,...t})},"useRtl",0,()=>t.useContext(n)??!1])},6376,e=>{"use strict";var t=e.i(1937);e.s(["createTheme",()=>t.default])},25071,e=>{"use strict";var t=e.i(63110);e.s(["green",()=>t.default])},90571,57745,96113,75401,9778,76975,e=>{"use strict";function t(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})}function i(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[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 c=[a,u];if(i)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}"function"==typeof SuppressedError&&SuppressedError,e.s(["__awaiter",()=>t,"__generator",()=>i,"__values",()=>n],90571);var r=e.i(67034),o=void 0!==r.Buffer&&r.Buffer.from?function(e){return r.Buffer.from(e,"utf8")}:e=>new TextEncoder().encode(e);function s(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)}function a(e){return"string"==typeof e?0===e.length:0===e.byteLength}function u(e){return new Uint8Array([(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e])}function c(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),i=0;is],57745),e.s(["isEmptyData",()=>a],96113),e.s(["numToUint8",()=>u],75401),e.s(["uint32ArrayFrom",()=>c],9778),e.s([],76975)},74860,32158,69993,71094,60285,17128,62008,51191,e=>{"use strict";(b=y||(y={})).DEBUG="DEBUG",b.ERROR="ERROR",b.INFO="INFO",b.WARN="WARN",b.VERBOSE="VERBOSE",b.NONE="NONE";let t={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class i{constructor(e,t=y.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,...n){let r=this.level;i.LOG_LEVEL&&(r=i.LOG_LEVEL),"u">typeof window&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);let o=t[r];if(!(t[e]>=o))return;let s=console.log.bind(console);e===y.ERROR&&console.error&&(s=console.error.bind(console)),e===y.WARN&&console.warn&&(s=console.warn.bind(console)),i.BIND_ALL_LOG_LEVELS&&(e===y.INFO&&console.info&&(s=console.info.bind(console)),e===y.DEBUG&&console.debug&&(s=console.debug.bind(console)));let a=`[${e}] ${this._ts()} ${this.name}`,u="";if(1===n.length&&"string"==typeof n[0])s(u=`${a} - ${n[0]}`);else if(1===n.length)u=`${a} ${n[0]}`,s(a,n[0]);else if("string"==typeof n[0]){let e=n.slice(1);1===e.length&&(e=e[0]),u=`${a} - ${n[0]} ${e}`,s(`${a} - ${n[0]}`,e)}else u=`${a} ${n}`,s(a,n);for(let e of this._pluggables){let t={message:u,timestamp:Date.now()};e.pushLogs([t])}}log(...e){this._log(y.INFO,...e)}info(...e){this._log(y.INFO,...e)}warn(...e){this._log(y.WARN,...e)}error(...e){this._log(y.ERROR,...e)}debug(...e){this._log(y.DEBUG,...e)}verbose(...e){this._log(y.VERBOSE,...e)}addPluggable(e){e&&"Logging"===e.getCategoryName()&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}i.LOG_LEVEL=null,i.BIND_ALL_LOG_LEVELS=!1,e.s(["ConsoleLogger",()=>i],32158);class n extends Error{constructor({message:e,name:t,recoverySuggestion:i,underlyingError:r,metadata:o}){if(super(e),this.name=t,this.underlyingError=r,this.recoverySuggestion=i,o){const{extendedRequestId:e,httpStatusCode:t,requestId:i}=o;this.metadata={extendedRequestId:e,httpStatusCode:t,requestId:i}}this.constructor=n,Object.setPrototypeOf(this,n.prototype)}}e.s(["AmplifyError",()=>n],69993);let r="u">typeof Symbol?Symbol("amplify_default"):"@@amplify_default",o=new i("Hub");class s{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,t){let i=this.listeners.get(e);i?this.listeners.set(e,[...i.filter(({callback:e})=>e!==t)]):o.warn(`No listeners for ${e}`)}dispatch(e,t,i,n){"string"==typeof e&&this.protectedChannels.indexOf(e)>-1&&n!==r&&o.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`);let s={channel:e,payload:{...t},source:i,patternInfo:[]};try{this._toListeners(s)}catch(e){o.error(e)}}listen(e,t,i="noname"){if("function"!=typeof t)throw new n({name:"NoHubcallbackProvidedException",message:"No callback supplied to Hub"});let r=this.listeners.get(e);return r||(r=[],this.listeners.set(e,r)),r.push({name:i,callback:t}),()=>{this._remove(e,t)}}_toListeners(e){let{channel:t,payload:i}=e,n=this.listeners.get(t);n&&n.forEach(n=>{o.debug(`Dispatching to ${t} with `,i);try{n.callback(e)}catch(e){o.error(e)}})}}let a=new s("__default__");new s("internal-hub"),e.s(["AMPLIFY_SYMBOL",()=>r,"Hub",()=>a],71094);let u=e=>{for(let t of Reflect.ownKeys(e)){let i=e[t];(i&&"object"==typeof i||"function"==typeof i)&&u(i)}return Object.freeze(e)},c=Symbol("oauth-listener"),f=new i("parseAWSExports"),l={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},h=e=>e?.split(",")??[],d={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"},p={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"},g=e=>{if(Object.keys(e).some(e=>e.startsWith("aws_")))return((e={})=>{if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new n({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});let{aws_appsync_apiKey:t,aws_appsync_authenticationType:i,aws_appsync_graphqlEndpoint:r,aws_appsync_region:o,aws_bots_config:s,aws_cognito_identity_pool_id:a,aws_cognito_sign_up_verification_method:u,aws_cognito_mfa_configuration:c,aws_cognito_mfa_types:d,aws_cognito_password_protection_settings:p,aws_cognito_verification_mechanisms:g,aws_cognito_signup_attributes:b,aws_cognito_social_providers:y,aws_cognito_username_attributes:A,aws_mandatory_sign_in:m,aws_mobile_analytics_app_id:_,aws_mobile_analytics_app_region:x,aws_user_files_s3_bucket:E,aws_user_files_s3_bucket_region:w,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:v,aws_user_pools_id:C,aws_user_pools_web_client_id:O,geo:P,oauth:S,predictions:L,aws_cloud_logic_custom:I,Notifications:N,modelIntrospection:R}=e,U={};_&&(U.Analytics={Pinpoint:{appId:_,region:x}});let{InAppMessaging:G,Push:T}=N??{};if(G?.AWSPinpoint||T?.AWSPinpoint){if(G?.AWSPinpoint){let{appId:e,region:t}=G.AWSPinpoint;U.Notifications={InAppMessaging:{Pinpoint:{appId:e,region:t}}}}if(T?.AWSPinpoint){let{appId:e,region:t}=T.AWSPinpoint;U.Notifications={...U.Notifications,PushNotification:{Pinpoint:{appId:e,region:t}}}}}if(Array.isArray(s)&&(U.Interactions={LexV1:Object.fromEntries(s.map(e=>[e.name,e]))}),r){let e=l[i];e||f.debug(`Invalid authentication type ${i}. Falling back to IAM.`),U.API={GraphQL:{endpoint:r,apiKey:t,region:o,defaultAuthMode:e??"iam"}},R&&(U.API.GraphQL.modelIntrospection=R)}let M=c?{status:c&&c.toLowerCase(),totpEnabled:d?.includes("TOTP")??!1,smsEnabled:d?.includes("SMS")??!1}:void 0,B=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,W=Array.from(new Set([...g??[],...b??[]])).reduce((e,t)=>({...e,[t.toLowerCase()]:{required:!0}}),{}),j=A?.includes("EMAIL")??!1,k=A?.includes("PHONE_NUMBER")??!1;(a||C)&&(U.Auth={Cognito:{identityPoolId:a,allowGuestAccess:"enable"!==m,signUpVerificationMethod:u,userAttributes:W,userPoolClientId:O,userPoolId:C,mfa:M,passwordFormat:B,loginWith:{username:!(j||k),email:j,phone:k}}});let $=!!S&&Object.keys(S).length>0,D=!!y&&y.length>0;if(U.Auth&&$&&(U.Auth.Cognito.loginWith={...U.Auth.Cognito.loginWith,oauth:{...(({domain:e,scope:t,redirectSignIn:i,redirectSignOut:n,responseType:r})=>({domain:e,scopes:t,redirectSignIn:h(i),redirectSignOut:h(n),responseType:r}))(S),...D&&{providers:y.map(e=>{let t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)})}}}),E&&(U.Storage={S3:{bucket:E,region:w,dangerouslyConnectToHttpEndpointForTesting:v}}),P){let{amazon_location_service:e}=P;U.Geo={LocationService:{maps:e.maps,geofenceCollections:e.geofenceCollections,searchIndices:e.search_indices,region:e.region}}}if(I&&(U.API={...U.API,REST:I.reduce((e,t)=>{let{name:i,endpoint:n,region:r,service:o}=t;return{...e,[i]:{endpoint:n,...o?{service:o}:void 0,...r?{region:r}:void 0}}},{})}),L){let{VoiceId:e}=L?.convert?.speechGenerator?.defaults??{};U.Predictions=e?{...L,convert:{...L.convert,speechGenerator:{...L.convert.speechGenerator,defaults:{voiceId:e}}}}:L}return U})(e);if(!function(e){let{version:t}=e;return!!t&&t.startsWith("1")}(e))return e;let t={};if(e.storage&&(t.Storage=function(e){let t;if(!e)return;let{bucket_name:i,aws_region:n,buckets:r}=e;return{S3:{bucket:i,region:n,buckets:r&&(t={},r.forEach(({name:e,bucket_name:i,aws_region:n,paths:r})=>{if(e in t)throw Error(`Duplicate friendly name found: ${e}. Name must be unique.`);let o=r?Object.entries(r).reduce((e,[t,i])=>(void 0!==i&&(e[t]=i),e),{}):void 0;t[e]={bucketName:i,region:n,paths:o}}),t)}}}(e.storage)),e.auth&&(t.Auth=function(e){var t;if(!e)return;let{user_pool_id:i,user_pool_client_id:n,identity_pool_id:r,password_policy:o,mfa_configuration:s,mfa_methods:a,unauthenticated_identities_enabled:u,oauth:c,username_attributes:f,standard_required_attributes:l,groups:h,passwordless:d}=e,g={Cognito:{userPoolId:i,userPoolClientId:n,groups:h}};return r&&(g.Cognito={...g.Cognito,identityPoolId:r}),o&&(g.Cognito.passwordFormat={requireLowercase:o.require_lowercase,requireNumbers:o.require_numbers,requireUppercase:o.require_uppercase,requireSpecialCharacters:o.require_symbols,minLength:o.min_length??6}),s&&(g.Cognito.mfa={status:"OPTIONAL"===(t=s)?"optional":"REQUIRED"===t?"on":"off",smsEnabled:a?.includes("SMS"),totpEnabled:a?.includes("TOTP")}),u&&(g.Cognito.allowGuestAccess=u),c&&(g.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!==p[t]&&e.push(p[t]),e),[])}(c.identity_providers)}}),f&&(g.Cognito.loginWith={...g.Cognito.loginWith,email:f.includes("email"),phone:f.includes("phone_number"),username:f.includes("username")}),l&&(g.Cognito.userAttributes=l.reduce((e,t)=>({...e,[t]:{required:!0}}),{})),d&&(g.Cognito.passwordless={emailOtpEnabled:d.email_otp_enabled,smsOtpEnabled:d.sms_otp_enabled,webAuthn:d.web_authn?{relyingPartyId:d.web_authn.relying_party_id,userVerification:d.web_authn.user_verification}:void 0,preferredChallenge:d.preferred_challenge}),g}(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:i,maps:n,search_indices:r}=e;return{LocationService:{region:t,searchIndices:r,geofenceCollections:i,maps:n}}}(e.geo)),e.data&&(t.API=function(e){if(!e)return;let{aws_region:t,default_authorization_type:i,url:n,api_key:r,model_introspection:o}=e;return{GraphQL:{endpoint:n,defaultAuthMode:d[i],region:t,apiKey:r,modelIntrospection:o}}}(e.data)),e.custom){let i=function(e){if(!e?.events)return;let{url:t,aws_region:i,api_key:n,default_authorization_type:r}=e.events;return{Events:{endpoint:t,defaultAuthMode:d[r],region:i,apiKey:n}}}(e.custom);i&&"Events"in i&&(t.API={...t.API,...i})}return e.notifications&&(t.Notifications=function(e){if(!e)return;let{aws_region:t,channels:i,amazon_pinpoint_app_id:n}=e,r=i.includes("IN_APP_MESSAGING"),o=i.includes("APNS")||i.includes("FCM");if(!(r||o))return;let s={};return r&&(s.InAppMessaging={Pinpoint:{appId:n,region:t}}),o&&(s.PushNotification={Pinpoint:{appId:n,region:t}}),s}(e.notifications)),t};e.s(["parseAmplifyConfig",()=>g],60285);var b,y,A=e.i(90571),m=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]),_=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],x=function(){function e(){this.state=Int32Array.from(_),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,i=e.byteLength;if(this.bytesHashed+=i,8*this.bytesHashed>0x1fffffffffffff)throw Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=e[t++],i--,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),i=this.bufferLength;if(t.setUint8(this.bufferLength++,128),i%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;n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/0x100000000),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var r=new Uint8Array(32),n=0;n<8;n++)r[4*n]=this.state[n]>>>24&255,r[4*n+1]=this.state[n]>>>16&255,r[4*n+2]=this.state[n]>>>8&255,r[4*n+3]=this.state[n]>>>0&255;return r},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],u=t[6],c=t[7],f=0;f<64;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var l=this.temp[f-2],h=(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10,d=((l=this.temp[f-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3;this.temp[f]=(h+this.temp[f-7]|0)+(d+this.temp[f-16]|0)}var p=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&a^~s&u)|0)+(c+(m[f]+this.temp[f]|0)|0)|0,g=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&n^i&r^n&r)|0;c=u,u=a,a=s,s=o+p|0,o=r,r=n,n=i,i=p+g|0}t[0]+=i,t[1]+=n,t[2]+=r,t[3]+=o,t[4]+=s,t[5]+=a,t[6]+=u,t[7]+=c},e}();e.i(76975);var E=e.i(96113),w=e.i(57745),v=function(){function e(e){this.secret=e,this.hash=new x,this.reset()}return e.prototype.update=function(e){if(!(0,E.isEmptyData)(e)&&!this.error)try{this.hash.update((0,w.convertToBuffer)(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(){return(0,A.__awaiter)(this,void 0,void 0,function(){return(0,A.__generator)(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new x,this.secret){this.outer=new x;var e=function(e){var t=(0,w.convertToBuffer)(e);if(t.byteLength>64){var i=new x;i.update(t),t=i.digest()}var n=new Uint8Array(64);return n.set(t),n}(this.secret),t=new Uint8Array(64);t.set(e);for(var i=0;i<64;i++)e[i]^=54,t[i]^=92;this.hash.update(e),this.outer.update(t);for(var i=0;iv],17128),e.s([],62008);let C={},O={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),C[e]=t,O[t]=e}e.s([],51191);let P=new i("Auth");class S{configure(e,t){this.authConfig=e,this.authOptions=t,e&&e.Cognito?.userPoolEndpoint&&P.warn(L("Amazon Cognito User Pool")),e&&e.Cognito?.identityPoolEndpoint&&P.warn(L("Amazon Cognito Identity Pool"))}async fetchAuthSession(e={}){let t,i,n=await this.getTokens(e);return n?(i=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:i}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(e){return await this.authOptions?.tokenProvider?.getTokens(e)??void 0}}let L=e=>`You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`,I=new class{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new S}configure(e,t){let i=g(e);this.resourcesConfig=i,t&&(this.libraryOptions=t),this.resourcesConfig=u(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),a.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",r),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}[c](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)}};e.s(["Amplify",()=>I],74860)}]);