(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79459,(e,t,r)=>{t.exports=e.r(18566)},42525,e=>{"use strict";e.i(47167);var t=e.i(43476),r=e.i(71645),o=e.i(35642),i=e.i(94425);let n="function"==typeof(0,o.globalCss)({}),s=(e,t=!1)=>{let r={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,o])=>{let i=e.getColorSchemeSelector(t);i.startsWith("@")?r[i]={":root":{colorScheme:o.palette?.mode}}:r[i.replace(/\s*&/,"")]={colorScheme:o.palette?.mode}});let o={html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...{color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}},"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(o=[o,i]),o},a="mui-ecs",d=(0,o.globalCss)(n?({theme:e,enableColorScheme:t})=>s(e,t):({theme:e})=>{let t,r;return r=Array.isArray(t=s(e,!1))?t[0]:t,!e.vars&&r&&(r.html[`:root:has(${a})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,o])=>{let i=e.getColorSchemeSelector(t);i.startsWith("@")?r[i]={[`:root:not(:has(.${a}))`]:{colorScheme:o.palette?.mode}}:r[i.replace(/\s*&/,"")]={[`&:not(:has(.${a}))`]:{colorScheme:o.palette?.mode}}}),t}),l=function(e){let{children:o,enableColorScheme:s=!1}=(0,i.useDefaultProps)({props:e,name:"MuiCssBaseline"});return(0,t.jsxs)(r.Fragment,{children:[n&&(0,t.jsx)(d,{enableColorScheme:s}),!n&&!s&&(0,t.jsx)("span",{className:a,style:{display:"none"}}),o]})},c=r.createContext(null);function u(){return r.useContext(c)}let h="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",m=function(e){let{children:o,theme:i}=e,n=u(),s=r.useMemo(()=>{var e,t;let r=null===n?{...i}:(e=n,"function"==typeof(t=i)?t(e):{...e,...t});return null!=r&&(r[h]=null!==n),r},[i,n]);return(0,t.jsx)(c.Provider,{value:s,children:o})};var y=e.i(28419),g=e.i(86931),p=e.i(68308),f=e.i(86373);let I={};function S(e,t,o,i=!1){return r.useMemo(()=>{let r=e&&t[e]||t;if("function"==typeof o){let n=o(r),s=e?{...t,[e]:n}:n;return i?()=>s:s}return e?{...t,[e]:o}:{...t,...o}},[e,t,o,i])}let C=function(e){let{children:r,theme:o,themeId:i}=e,n=(0,g.default)(I),s=u()||I,a=S(i,n,o),d=S(i,s,o,!0),l="rtl"===(i?a[i]:a).direction;return(0,t.jsx)(m,{theme:d,children:(0,t.jsx)(y.ThemeContext.Provider,{value:a,children:(0,t.jsx)(p.default,{value:l,children:(0,t.jsx)(f.default,{value:i?a[i].components:a.components,children:r})})})})};var v=e.i(2001);function k({theme:e,...r}){let o=v.default in e?e[v.default]:void 0;return(0,t.jsx)(C,{...r,themeId:o?v.default:void 0,theme:o||e})}var w=e.i(17028),b=e.i(98006),A=e.i(7558);let x="mode",T="color-scheme";function _(){}let E=({key:e,storageWindow:t})=>(!t&&"u">typeof window&&(t=window),{get(r){let o;if("u">typeof window){if(!t)return r;try{o=t.localStorage.getItem(e)}catch{}return o||r}},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return _;let o=t=>{let o=t.newValue;t.key===e&&r(o)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}});function P(){}function j(e){if("u">typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function $(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}var M=e.i(1937),K=e.i(35767);let{CssVarsProvider:O,useColorScheme:R,getInitColorSchemeScript:L}=function(e){let{themeId:o,theme:i={},modeStorageKey:n=x,colorSchemeStorageKey:s=T,disableTransitionOnChange:a=!1,defaultColorScheme:d,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=r.createContext(void 0),m={},y={},g="string"==typeof d?d:d.light,p="string"==typeof d?d:d.dark;return{CssVarsProvider:function(e){let{children:c,theme:g,modeStorageKey:p=n,colorSchemeStorageKey:f=s,disableTransitionOnChange:I=a,storageManager:S,storageWindow:v="u"g||("function"==typeof i?i():i),[g]),G=F[o],B=G||F,{colorSchemes:W=m,components:z=y,cssVarPrefix:H}=B,J=Object.keys(W).filter(e=>!!W[e]).join(","),N=r.useMemo(()=>J.split(","),[J]),q="string"==typeof d?d:d.light,Q="string"==typeof d?d:d.dark,X=W[q]&&W[Q]?K:W[B.defaultColorScheme]?.palette?.mode||B.palette?.mode,{mode:Y,setMode:Z,systemMode:ee,lightColorScheme:et,darkColorScheme:er,colorScheme:eo,setColorScheme:ei}=function(e){let{defaultMode:t="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:n=[],modeStorageKey:s=x,colorSchemeStorageKey:a=T,storageWindow:d="u"1,m=r.useMemo(()=>l?.({key:s,storageWindow:d}),[l,s,d]),y=r.useMemo(()=>l?.({key:`${a}-light`,storageWindow:d}),[l,a,d]),g=r.useMemo(()=>l?.({key:`${a}-dark`,storageWindow:d}),[l,a,d]),[p,f]=r.useState(()=>{let e=m?.get(t)||t,r=y?.get(o)||o,n=g?.get(i)||i;return{mode:e,systemMode:j(e),lightColorScheme:r,darkColorScheme:n}}),[I,S]=r.useState(c||!h);r.useEffect(()=>{S(!0)},[]);let C=$(p,e=>"light"===e?p.lightColorScheme:"dark"===e?p.darkColorScheme:void 0),v=r.useCallback(e=>{f(r=>{if(e===r.mode)return r;let o=e??t;return m?.set(o),{...r,mode:o,systemMode:j(o)}})},[m,t]),k=r.useCallback(e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):f(t=>{let r={...t};return $(t,t=>{"light"===t&&(y?.set(e),r.lightColorScheme=e),"dark"===t&&(g?.set(e),r.darkColorScheme=e)}),r}):f(t=>{let r={...t},n=null===e.light?o:e.light,s=null===e.dark?i:e.dark;return n&&(u.includes(n)?(r.lightColorScheme=n,y?.set(n)):console.error(`\`${n}\` does not exist in \`theme.colorSchemes\`.`)),s&&(u.includes(s)?(r.darkColorScheme=s,g?.set(s)):console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`)),r}):f(e=>(y?.set(o),g?.set(i),{...e,lightColorScheme:o,darkColorScheme:i}))},[u,y,g,o,i]),w=r.useCallback(e=>{"system"===p.mode&&f(t=>{let r=e?.matches?"dark":"light";return t.systemMode===r?t:{...t,systemMode:r}})},[p.mode]),b=r.useRef(w);return b.current=w,r.useEffect(()=>{if("function"!=typeof window.matchMedia||!h)return;let e=(...e)=>b.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[h]),r.useEffect(()=>{if(h){let e=m?.subscribe(e=>{(!e||["light","dark","system"].includes(e))&&v(e||t)})||P,r=y?.subscribe(e=>{(!e||u.match(e))&&k({light:e})})||P,o=g?.subscribe(e=>{(!e||u.match(e))&&k({dark:e})})||P;return()=>{e(),r(),o()}}},[k,v,u,t,d,h,m,y,g]),{...p,mode:I?p.mode:void 0,systemMode:I?p.systemMode:void 0,colorScheme:I?C:void 0,setMode:v,setColorScheme:k}}({supportedColorSchemes:N,defaultLightColorScheme:q,defaultDarkColorScheme:Q,modeStorageKey:p,colorSchemeStorageKey:f,defaultMode:X,storageManager:S,storageWindow:v,noSsr:R}),en=Y,es=eo;V&&(en=U.mode,es=U.colorScheme);let ea=es||B.defaultColorScheme;B.vars&&!O&&(ea=B.defaultColorScheme);let ed=r.useMemo(()=>{let e=B.generateThemeVars?.()||B.vars,t={...B,components:z,colorSchemes:W,cssVarPrefix:H,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),ea){let e=W[ea];e&&"object"==typeof e&&Object.keys(e).forEach(r=>{e[r]&&"object"==typeof e[r]?t[r]={...t[r],...e[r]}:t[r]=e[r]})}return l?l(t):t},[B,ea,z,W,H]),el=B.colorSchemeSelector;(0,A.default)(()=>{if(es&&w&&el&&"media"!==el){let e=el;if("class"===el&&(e=".%s"),"data"===el&&(e="[data-%s]"),el?.startsWith("data-")&&!el.includes("%s")&&(e=`[${el}="%s"]`),e.startsWith("."))w.classList.remove(...N.map(t=>e.substring(1).replace("%s",t))),w.classList.add(e.substring(1).replace("%s",es));else{let t=e.replace("%s",es).match(/\[([^\]]+)\]/);if(t){let[e,r]=t[1].split("=");r||N.forEach(t=>{w.removeAttribute(e.replace(es,t))}),w.setAttribute(e,r?r.replace(/"|'/g,""):"")}else w.setAttribute(e,es)}}},[es,el,w,N]),r.useEffect(()=>{let e;if(I&&L.current&&k){let t=k.createElement("style");t.appendChild(k.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),k.head.appendChild(t),window.getComputedStyle(k.body),e=setTimeout(()=>{k.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[es,I,k]),r.useEffect(()=>(L.current=!0,()=>{L.current=!1}),[]);let ec=r.useMemo(()=>({allColorSchemes:N,colorScheme:es,darkColorScheme:er,lightColorScheme:et,mode:en,setColorScheme:ei,setMode:Z,systemMode:ee}),[N,es,er,et,en,ei,Z,ee,ed.colorSchemeSelector]),eu=!0;(M||!1===B.cssVariables||V&&D?.cssVarPrefix===H)&&(eu=!1);let eh=(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)(C,{themeId:G?o:void 0,theme:ed,children:c}),eu&&(0,t.jsx)(b.GlobalStyles,{styles:ed.generateStyleSheets?.()||[]})]});return V?eh:(0,t.jsx)(h.Provider,{value:ec,children:eh})},useColorScheme:()=>r.useContext(h)||c,getInitColorSchemeScript:e=>(function(e){let{defaultMode:r="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:i="dark",modeStorageKey:n=x,colorSchemeStorageKey:s=T,attribute:a="data-color-scheme",colorSchemeNode:d="document.documentElement",nonce:l}=e||{},c="",u=a;if("class"===a&&(u=".%s"),"data"===a&&(u="[data-%s]"),u.startsWith(".")){let e=u.substring(1);c+=`${d}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark)); ${d}.classList.add('${e}'.replace('%s', colorScheme));`}let h=u.match(/\[([^\]]+)\]/);if(h){let[e,t]=h[1].split("=");t||(c+=`${d}.removeAttribute('${e}'.replace('%s', light)); ${d}.removeAttribute('${e}'.replace('%s', dark));`),c+=` ${d}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else c+=`${d}.setAttribute('${u}', colorScheme);`;return(0,t.jsx)("script",{suppressHydrationWarning:!0,nonce:"u"(0,M.default)({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t={...e,typography:(0,K.default)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,w.default)({sx:e,theme:this})},t}});function D({theme:e,...o}){let i=r.useMemo(()=>{if("function"==typeof e)return e;let t=v.default in e?e[v.default]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return i?(0,t.jsx)(k,{theme:i,...o}):(0,t.jsx)(O,{theme:e,...o})}var U=e.i(48203),V=e.i(98533),V=V,F=e.i(79459);function G(e){let{options:o,CacheProvider:i=V.C,children:n}=e,[s]=r.useState(()=>{let e=(0,U.default)({...o,key:o?.key??"mui"});e.compat=!0;let t=e.insert,r=[];return e.insert=(...i)=>{o?.enableCssLayer&&!i[1].styles.match(/^@layer\s+[^{]*$/)&&(i[1].styles=`@layer mui {${i[1].styles}}`);let[n,s]=i;return void 0===e.inserted[s.name]&&r.push({name:s.name,isGlobal:!n}),t(...i)},{cache:e,flush:()=>{let e=r;return r=[],e}}});return(0,F.useServerInsertedHTML)(()=>{let e=s.flush();if(0===e.length)return null;let i="",n=s.cache.key,a=[];return e.forEach(({name:e,isGlobal:t})=>{let r=s.cache.inserted[e];"string"==typeof r&&(t?a.push({name:e,style:r}):(i+=r,n+=` ${e}`))}),(0,t.jsxs)(r.Fragment,{children:[a.map(({name:e,style:r})=>(0,t.jsx)("style",{nonce:o?.nonce,"data-emotion":`${s.cache.key}-global ${e}`,dangerouslySetInnerHTML:{__html:r}},e)),i&&(0,t.jsx)("style",{nonce:o?.nonce,"data-emotion":n,dangerouslySetInnerHTML:{__html:i}})]})}),(0,t.jsx)(i,{value:s.cache,children:n})}var B=e.i(17089),W=e.i(74860);function z(e){for(var t=1;ttypeof document){"number"==typeof(i=z({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var n="";for(var s in i)i[s]&&(n+="; "+s,!0!==i[s]&&(n+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+n}}return Object.create({set:o,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],o={},i=0;ithis.removeItem(e));await Promise.all(e)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}var N=e.i(38216),q=e.i(60285),Q=e.i(32158);e.i(62008),e.i(51191);var X=e.i(83901),Y=e.i(60218),Z=e.i(64978),ee=e.i(7348),et=e.i(23487),er=e.i(25413);let eo="cognito-identity",ei={service:eo,retryDecider:(0,er.getRetryDecider)(Z.parseJsonError),computeDelay:et.jitteredBackoff,cache:"no-store"};var en=e.i(39291);let es=(0,e.i(92973).composeTransferHandler)(en.unauthenticatedHandler,[()=>e=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),ea=e=>(t,r)=>el(r,ed(e),JSON.stringify(t)),ed=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),el=({url:e},t,r)=>({headers:t,url:e,body:r,method:"POST"}),ec=e=>(0,ee.composeServiceApi)(es,ea("GetCredentialsForIdentity"),eu,{...ei,...e,userAgentValue:(0,X.getAmplifyUserAgent)()}),eu=async e=>{if(e.statusCode>=300)throw await (0,Z.parseJsonError)(e);let t=await (0,Z.parseJsonBody)(e);return{IdentityId:t.IdentityId,Credentials:eh(t.Credentials),$metadata:(0,Y.parseMetadata)(e)}},eh=({Expiration:e,...t}={})=>({...t,Expiration:e&&new Date(1e3*e)});var em=e.i(78475),ey=e.i(44440),eg=e.i(88236),ep=e.i(70095),ef=e.i(12547),eI=e.i(19944),eS=e.i(76518);let eC=({endpointOverride:e})=>t=>e?{url:new eS.AmplifyUrl(e)}:(({region:e})=>({url:new eS.AmplifyUrl(`https://${eo}.${e}.${(0,eI.getDnsSuffix)(e)}`)}))(t),ev=async e=>{if(e.statusCode>=300)throw await (0,Z.parseJsonError)(e);return{IdentityId:(await (0,Z.parseJsonBody)(e)).IdentityId,$metadata:(0,Y.parseMetadata)(e)}};function ek(e){let t=(0,em.decodeJWT)(e).payload.iss,r={};if(!t)throw new ey.AuthError({name:"InvalidIdTokenException",message:"Invalid Idtoken."});return r[t.replace(/(^\w+:|^)\/\//,"")]=e,r}async function ew({tokens:e,authConfig:t,identityIdStore:r}){r.setAuthConfig({Cognito:t});let o=await r.loadIdentityId();if(o)return o.id;let i=e?.idToken?ek(e.idToken.toString()):{},n=await eb(i,t);return r.storeIdentityId({id:n,type:e?"primary":"guest"}),n}async function eb(e,t){let r,o,i=t?.identityPoolId,n=(0,ep.getRegionFromIdentityPoolId)(i),s=(o={endpointResolver:eC({endpointOverride:t.identityPoolEndpoint})},(0,ee.composeServiceApi)(es,ea("GetId"),ev,{...ei,...o,userAgentValue:(0,X.getAmplifyUserAgent)()}));try{r=(await s({region:n},{IdentityPoolId:i,Logins:e})).IdentityId}catch(e){throw(0,eg.assertServiceError)(e),new ey.AuthError(e)}if(!r)throw new ey.AuthError({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return r}let eA=new Q.ConsoleLogger("CognitoCredentialsProvider");class ex{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){eA.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){eA.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){let t=e.authenticated,{tokens:r}=e,{authConfig:o}=e;try{(0,em.assertIdentityPoolIdConfig)(o?.Cognito)}catch{return}if(!t&&!o.Cognito.allowGuestAccess)return;let{forceRefresh:i}=e,n=this.hasTokenChanged(r),s=await ew({tokens:r,authConfig:o.Cognito,identityIdStore:this._identityIdStore});return((i||n)&&this.clearCredentials(),t)?((0,ef.assertIdTokenInAuthTokens)(r),this.credsForOIDCTokens(o.Cognito,r,s)):this.getGuestCredentials(s,o.Cognito)}async getGuestCredentials(e,t){let r;if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!1===this._credentialsAndIdentityId.isAuthenticatedCreds)return eA.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();let o=(0,ep.getRegionFromIdentityPoolId)(t.identityPoolId),i=ec({endpointResolver:eC({endpointOverride:t.identityPoolEndpoint})});try{r=await i({region:o},{IdentityId:e})}catch(e){throw(0,eg.assertServiceError)(e),new ey.AuthError(e)}if(r?.Credentials?.AccessKeyId&&r?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+3e6;let t={credentials:{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration},identityId:e};return r.IdentityId&&(t.identityId=r.IdentityId,this._identityIdStore.storeIdentityId({id:r.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...t,isAuthenticatedCreds:!1},t}throw new ey.AuthError({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,t,r){let o;if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!0===this._credentialsAndIdentityId.isAuthenticatedCreds)return eA.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();let i=t.idToken?ek(t.idToken.toString()):{},n=(0,ep.getRegionFromIdentityPoolId)(e.identityPoolId),s=ec({endpointResolver:eC({endpointOverride:e.identityPoolEndpoint})});try{o=await s({region:n},{IdentityId:r,Logins:i})}catch(e){throw(0,eg.assertServiceError)(e),new ey.AuthError(e)}if(o?.Credentials?.AccessKeyId&&o?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+3e6;let e={credentials:{accessKeyId:o.Credentials.AccessKeyId,secretAccessKey:o.Credentials.SecretKey,sessionToken:o.Credentials.SessionToken,expiration:o.Credentials.Expiration},identityId:r};return o.IdentityId&&(e.identityId=o.IdentityId,this._identityIdStore.storeIdentityId({id:o.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...e,isAuthenticatedCreds:!0,associatedIdToken:t.idToken?.toString()},e}throw new ey.AuthError({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return void 0===this._nextCredentialsRefresh||this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}var eT=e.i(94690);let e_={identityId:"identityId"},eE=new Q.ConsoleLogger("DefaultIdentityIdStore");class eP{setAuthConfig(e){(0,em.assertIdentityPoolIdConfig)(e.Cognito),this.authConfig=e,this._authKeys=ej("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=e}async loadIdentityId(){(0,em.assertIdentityPoolIdConfig)(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{let e=await this.keyValueStorage.getItem(this._authKeys.identityId);if(e)return this._hasGuestIdentityId=!0,{id:e,type:"guest"};return null}}catch(e){return eE.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){(0,em.assertIdentityPoolIdConfig)(this.authConfig?.Cognito),"guest"===e.type?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=e.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}let ej=(e,t)=>(0,eT.getAuthStorageKeys)(e_)(`com.amplify.${e}`,t),e$=new ex(new eP(N.defaultStorage));var eM=e.i(83124);function eK({children:e}){return(0,t.jsx)("html",{children:(0,t.jsx)("body",{children:(0,t.jsx)(G,{children:(0,t.jsxs)(D,{theme:B.theme,children:[(0,t.jsx)(l,{}),e]})})})})}({configure(e,t){let r=(0,q.parseAmplifyConfig)(e),o=new J({sameSite:"lax"}),i=t?.ssr?o:N.defaultStorage,n=t?.ssr?new ex(new eP(o)):e$;if(!r.Auth||t?.Auth)return void W.Amplify.configure(r,t);if(!W.Amplify.libraryOptions.Auth){eM.cognitoUserPoolsTokenProvider.setAuthConfig(r.Auth),eM.cognitoUserPoolsTokenProvider.setKeyValueStorage(i),W.Amplify.configure(r,{...t,Auth:{tokenProvider:eM.cognitoUserPoolsTokenProvider,credentialsProvider:n}});return}if(t){let e=W.Amplify.libraryOptions.Auth;void 0!==t.ssr&&(eM.cognitoUserPoolsTokenProvider.setKeyValueStorage(i),e.credentialsProvider=n),W.Amplify.configure(r,{Auth:e,...t});return}W.Amplify.configure(r)},getConfig:()=>W.Amplify.getConfig()}).configure({Auth:{Cognito:{userPoolId:"ap-northeast-1_zCgODopei",userPoolClientId:"3me7ae4mgbkldq6fcc39ockpg1"}}}),e.s(["default",()=>eK],42525)}]);