PageSourceSearch

https://www.sketricgen.ai/_next/static/chunks/62843-6c8fe7a3af9daaec.js

js sketricgen.ai collected 2026-10-03 23:23:39 UTC 21,258 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62843],{5431:(e,t,o)=>{o.d(t,{C:()=>a,J:()=>n});var i=o(39820);function n(e){let t=e?.split("_")[0];if(!e||0>e.indexOf("_")||!t||"string"!=typeof t)throw new i.l({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function a(e){if(!e||!e.includes(":"))throw new i.l({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}},7714:(e,t,o)=>{o.d(t,{e:()=>a});var i=o(2035),n=o(95538);let a=(0,i.q)(n.F,[()=>(e,t)=>async function(t){return t.headers["cache-control"]="no-store",e(t)}])},10005:(e,t,o)=>{o.d(t,{C:()=>s});var i=o(30861),n=o(47192),a=o(74489),r=o(29567);let s={service:o(79301).M,retryDecider:(0,i.D)(n.F),computeDelay:a.y,get userAgentValue(){return(0,r.fE)()},cache:"no-store"}},11529:(e,t,o)=>{o.d(t,{A:()=>i});let i=(e,t,o,i)=>async(n,a)=>{let r={...i,...n},s=await r.endpointResolver(r,a),g=await t(a,s);return o(await e(g,{...r}))}},22411:(e,t,o)=>{o.d(t,{o:()=>r});var i=o(2223),n=o(26239),a=o(79301);let r=({endpointOverride:e})=>t=>e?{url:new i.o(e)}:(({region:e})=>({url:new i.o(`https://${a.M}.${e}.${(0,n.R)(e)}`)}))(t)},23411:(e,t,o)=>{o.d(t,{p:()=>n});var i=o(35993);let n=(e,t=i.x)=>(o,i,n)=>{let{message:a,recoverySuggestion:r}=e[i];if(!o)throw new t({name:i,message:n?`${a} ${n}`:a,recoverySuggestion:r})}},24471:(e,t,o)=>{o.d(t,{f:()=>n});var i=o(42014);let n=new(o(81230)).S(i.ZL)},26239:(e,t,o)=>{o.d(t,{R:()=>a});let i={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},n={partitions:[i,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},a=e=>{let{partitions:t}=n;for(let{regions:o,outputs:i,regionRegex:n}of t){let t=new RegExp(n);if(o.includes(e)||t.test(e))return i.dnsSuffix}return i.outputs.dnsSuffix}},31622:(e,t,o)=>{o.d(t,{m:()=>n});var i=o(88968);let n={convert(e,t){let o=e;return t?.urlSafe&&(o=o.replace(/-/g,"+").replace(/_/g,"/")),(0,i.nW)()(o)}}},39820:(e,t,o)=>{o.d(t,{l:()=>n});var i=o(35993);class n extends i.x{constructor(e){super(e),this.constructor=n,Object.setPrototypeOf(this,n.prototype)}}},41113:(e,t,o)=>{o.d(t,{B:()=>i});let i=()=>"undefined"!=typeof window&&void 0!==window.document},42014:(e,t,o)=>{o.d(t,{ZL:()=>y,pR:()=>m});var i=o(26348),n=o(35993);class a extends n.x{constructor(){super({name:i.m.PlatformNotSupported,message:"Function not supported on current platform"})}}
1class r{constructor(e){this.storage=e}async setItem(e,t){if(!this.storage)throw new a;this.storage.setItem(e,t)}async getItem(e){if(!this.storage)throw new a;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new a;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new a;this.storage.clear()}}var s=o(94389);class g{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,t){this.storage.set(e,t)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}let l=new s.C("CoreStorageUtils"),u=()=>{try{if("undefined"!=typeof window&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw Error("sessionStorage is not defined")}catch(e){return l.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new g}};class h extends r{constructor(){super((()=>{try{if("undefined"!=typeof window&&window.localStorage)return window.localStorage}catch(e){l.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new g})())}}class c extends r{constructor(){super(u())}}class d{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new a;return this._storage}setItem(e,t){this.storage.setItem(e,t)}getItem(e){return this.storage.getItem(e)}removeItem(e){this.storage.removeItem(e)}clear(){this.storage.clear()}}class f extends d{constructor(){super(u())}}let y=new h;new c;let m=new f;new r(new g)},42614:(e,t,o)=>{o.d(t,{r:()=>a});var i=o(86161);o(81788),o(13246);var n=o(1133);let a=()=>e=>async function(t){return t.headers[n.jy]||(t.headers[n.jy]=(0,i.G)()),e(t)}},44715:(e,t,o)=>{o.d(t,{$6:()=>u,A0:()=>s,Cs:()=>c,RW:()=>g,jK:()=>l,kM:()=>r,mh:()=>h,yA:()=>d,z0:()=>a,zz:()=>n});var i=o(39820);let n="UserUnAuthenticatedException",a="UserAlreadyAuthenticatedException",r="DeviceMetadataNotFoundException",s="AutoSignInException",g=new i.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 i.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 l=new i.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."}),u=new i.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."}),h="OAuthSignOutException",c="TokenRefreshException",d="UnexpectedSignInInterruptionException"},48701:(e,t,o)=>{o.d(t,{_:()=>i});let i=e=>(t,o)=>a(o,n(e),JSON.stringify(t)),n=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),a=({url:e},t,o)=>({headers:t,url:e,body:o,method:"POST"})},50160:(e,t,o)=>{o.d(t,{Eh:()=>u,G6:()=>l,$y:()=>g,Cq:()=>h});var i,n=o(31622),a=o(23411);!function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"}(i||(i={}));let r={[i.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[i.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[i.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[i.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[i.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},s=(0,a.p)(r);function g(e){s(!!e&&!!e.userPoolId&&!!e.userPoolClientId,i.AuthUserPoolException)}function l(e){s(!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType,i.OAuthNotConfigureException)}function u(e){s(!!e?.identityPoolId,i.InvalidIdentityPoolIdException)}function h(e){let t=e.split(".");if(3!==t.length)throw Error("Invalid token");try{let o=t[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(n.m.convert(o).split("").map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),a=JSON.parse(i);return{toString:()=>e,payload:a}}catch(e){throw Error("Invalid token payload")}}},51769:(e,t,o)=>{o.d(t,{Uv:()=>h,Qm:()=>d});var i,n=o(50160),a=o(39820);let r={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetail
1s:"signInDetails",oauthMetadata:"oauthMetadata"};var s=o(23411);(i||(i={})).InvalidAuthTokens="InvalidAuthTokens";let g={[i.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},l=(0,s.p)(g),u="CognitoIdentityServiceProvider";class h{getKeyValueStorage(){if(!this.keyValueStorage)throw new a.l({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{let e=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e.accessToken);if(!t)throw new a.l({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});let o=(0,n.Cq)(t),i=await this.getKeyValueStorage().getItem(e.idToken),r=i?(0,n.Cq)(i):void 0,s=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,g=await this.getKeyValueStorage().getItem(e.clockDrift)??"0",l=Number.parseInt(g),u=await this.getKeyValueStorage().getItem(e.signInDetails),h={accessToken:o,idToken:r,refreshToken:s,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:l,username:await this.getLastAuthUser()};return u&&(h.signInDetails=JSON.parse(u)),h}catch(e){return null}}async storeTokens(e){l(void 0!==e,i.InvalidAuthTokens);let t=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),t);let o=await this.getAuthKeys();await this.getKeyValueStorage().setItem(o.accessToken,e.accessToken.toString()),e.idToken?await this.getKeyValueStorage().setItem(o.idToken,e.idToken.toString()):await this.getKeyValueStorage().removeItem(o.idToken),e.refreshToken?await this.getKeyValueStorage().setItem(o.refreshToken,e.refreshToken):await this.getKeyValueStorage().removeItem(o.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(o.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(o.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(o.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetails?await this.getKeyValueStorage().setItem(o.signInDetails,JSON.stringify(e.signInDetails)):await this.getKeyValueStorage().removeItem(o.signInDetails),await this.getKeyValueStorage().setItem(o.clockDrift,`${e.clockDrift}`)}async clearTokens(){let e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(e.oauthMetadata)])}async getDeviceMetadata(e){let t=await this.getAuthKeys(e),o=await this.getKeyValueStorage().getItem(t.deviceKey),i=await this.getKeyValueStorage().getItem(t.deviceGroupKey),n=await this.getKeyValueStorage().getItem(t.randomPasswordKey);return n&&i&&o?{deviceKey:o,deviceGroupKey:i,randomPassword:n}:null}async clearDeviceMetadata(e){let t=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(t.deviceKey),this.getKeyValueStorage().removeItem(t.deviceGroupKey),this.getKeyValueStorage().removeItem(t.randomPasswordKey)])}async getAuthKeys(e){(0,n.$y)(this.authConfig?.Cognito);let t=e??await this.getLastAuthUser();return c(u,`${this.authConfig.Cognito.userPoolClientId}.${t}`)}getLastAuthUserKey(){(0,n.$y)(this.authConfig?.Cognito);let e=this.authConfig.Cognito.userPoolClientId;return`${u}.${e}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(e){let{oauthMetadata:t}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(t,JSON.stringify(e))}async getOAuthMetadata(){let{oauthMetadata:e}=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e);return t&&JSON.parse(t)}}let c=(e,t)=>d(r)(`${e}`,t);function d(e){let t=Object.values({...e});return(e,o)=>t.reduce((t,i)=>({...t,[i]:`${e}.${o}.${i}`}),{})}},59547:(e,t,o)=>{o.d(t,{e:()=>a});var i=o(26348),n=o(39820);function a(e){if(!e||"Error"===e.name||e instanceof TypeError)throw new n.l({name:i.m.Unknown,message:"An unknown error has occurred.",underlyingError:e})}},62843:(e,t,o)=>{o.d(t,{Q:()=>T,o:()=>C});var i=o(42014),n=o(50160),a=o(5431),r=o(74652),s=o(39820),g=o(22411),l=o(11529),u=o(48701),h=o(66572),c=o(7714),d=o(10005);let f=(e=>{let t;return async(...o)=>t||(t=new Promise((i,n)=>{e(...o).then(e=>{i(e)}).catch(e=>{n(e)}).finally(()=>{t=void 0})}))})(async({tokens:e,authConfig:t,username:o,clientMetadata:i})=>{let f;(0,n.$y)(t?.Cognito);let{userPoolId:y,userPoolClientId:m,userPoolEndpoint:w}=t.Cognito,I=(0,a.J)(y);(0,r.X4)(e);let k=(f={endpointResolver:(0,g.o)({endpointOverride:w})},(0,l.A)(c.e,(0,u._)("GetTokensFromRefreshToken"),(0,h.T)(),{...d.C,...f})),{AuthenticationResult:v}=await k({region:I},{ClientId:m,RefreshToken:e.refreshToken,DeviceKey:e.deviceMetadata?.deviceKey,ClientMetadata:i}),p=(0,n.Cq)(v?.AccessToken??""),S=v?.IdToken?(0,n.Cq)(v.IdToken):void 0,{iat:A}=p.payload;if(!A)throw new s.l({name:"iatNotFoundException",message:"iat not found in access token"});return{accessToken:p,idToken:S,clockDrift:1e3*A-new Date().getTime(),refreshToken:v?.RefreshToken??e.refreshToken,username:o}});var y=o(51769),m=o(35943),w=o(41113);function I({expiresAt:e,clockDrift:t,tolerance:o=5e3}){return Date.now()+t+o>e}var k=o(59547),v=o(24471),p=o(80049);class S{constructor(){this.waitForInflightOAuth=(0,w.B)()?async()=>
1{if(await v.f.loadOAuthInFlight())return this.inflightPromise||(this.inflightPromise=new Promise((e,t)=>{(0,p.I)(e)})),this.inflightPromise}:async()=>{}}setAuthConfig(e){v.f.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new s.l({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new s.l({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(e){this.clientMetadataProvider=e}async getTokens(e){let t;try{(0,n.$y)(this.authConfig?.Cognito)}catch(e){return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,t=await this.getTokenStore().loadTokens();let o=await this.getTokenStore().getLastAuthUser();if(null===t)return null;let i=!!t?.idToken&&I({expiresAt:(t.idToken?.payload?.exp??0)*1e3,clockDrift:t.clockDrift??0}),a=I({expiresAt:(t.accessToken?.payload?.exp??0)*1e3,clockDrift:t.clockDrift??0});return(e?.forceRefresh||i||a)&&null===(t=await this.refreshTokens({tokens:t,username:o,clientMetadata:e?.clientMetadata??await this.clientMetadataProvider?.()}))?null:{accessToken:t?.accessToken,idToken:t?.idToken,signInDetails:t?.signInDetails}}async refreshTokens({tokens:e,username:t,clientMetadata:o}){try{let{signInDetails:i}=e,n=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:t,clientMetadata:o});return n.signInDetails=i,await this.setTokens({tokens:n}),m.YZ.dispatch("auth",{event:"tokenRefresh"},"Auth",m.U9),n}catch(e){return this.handleErrors(e)}}handleErrors(e){if((0,k.e)(e),this.isAuthenticationError(e)&&this.clearTokens(),m.YZ.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",m.U9),e.name.startsWith("NotAuthorizedException"))return null;throw e}isAuthenticationError(e){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(t=>e?.name?.startsWith?.(t))}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}setOAuthMetadata(e){return this.getTokenStore().setOAuthMetadata(e)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class A{constructor(){this.authTokenStore=new y.Uv,this.authTokenStore.setKeyValueStorage(i.ZL),this.tokenOrchestrator=new S,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(f)}getTokens(e={}){return this.tokenOrchestrator.getTokens(e)}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setClientMetadataProvider(e){this.tokenOrchestrator.setClientMetadataProvider(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}}let T=new A,{tokenOrchestrator:C}=T},66572:(e,t,o)=>{o.d(t,{T:()=>r});var i=o(47192),n=o(59547),a=o(39820);let r=()=>async e=>{if(e.statusCode>=300){let t=await (0,i.F)(e);throw(0,n.e)(t),new a.l({name:t.name,message:t.message,metadata:t.$metadata})}return(0,i.Y)(e)}},74652:(e,t,o)=>{o.d(t,{H0:()=>a,OW:()=>r,O_:()=>u,X4:()=>l,f3:()=>h});var i=o(39820),n=o(44715);function a(e){if(!e||!e.accessToken)throw new i.l({name:n.zz,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function r(e){if(!e||!e.idToken)throw new i.l({name:n.zz,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}let s=new i.l({name:n.Cs,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. 
2	Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow. 
3	E.g { responseType: 'code' }`}),g=new i.l({name:n.zz,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function l(e){var t,o;if(c(t=e)&&!t?.refreshToken)throw s;if(!(c(o=e)&&o?.refreshToken))throw g}function u(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new i.l({name:n.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 h={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function c(e){return e?.accessToken||e?.idToken}},79301:(e,t,o)=>{o.d(t,{M:()=>i});let i="cognito-idp"},80049:(e,t,o)=>{o.d(t,{I:()=>n,i:()=>a});let i=[],n=e=>{i.push(e)},a=()=>{for(;i.length;)i.pop()?.()}},81230:(e,t,o)=>{o.d(t,{S:()=>g});var i=o(50160),n=o(51769),a=o(74652);let r="amplify-signin-with-hostedUI",s="CognitoIdentityServiceProvider";class g{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){(0,i.$y)(this.cognitoConfig);let e=l(s,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){(0,i.$y)(this.cognitoConfig);let e=l(s,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(r),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){(0,i.$y)(this.cognitoConfig);let e=l(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){(0,i.$y)(this.cognitoConfig);let t=l(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthState,e)}loadPKCE(){(0,i.$y)(this.cognitoConfig);let e=l(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){(0,i.$y)(this.cognitoConfig);let t=l(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){(0,i.$y)(this.cognitoConfig);let e=l(s,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)==="true"}async storeOAuthInFlight(e){(0,i.$y)(this.cognitoConfig);let t=l(s,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(t.inflightOAuth,`${e}`)}async loadOAuthSignIn(){(0,i.$y)(this.cognitoConfig);let e=l(s,this.cognitoConfig.userPoolClientId),t=await this.keyValueStorage.getItem(r),[o,n]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:"true"===o||"true"===t,preferPrivateSession:"true"===n}}async storeOAuthSignIn(e,t=!1){(0,i.$y)(this.cognitoConfig);let o=l(s,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(o.oauthSignIn,`${e},${t}`)}}let l=(e,t)=>
3(0,n.Qm)(a.f3)(e,t)},86178:(e,t,o)=>{o.d(t,{Z:()=>n});var i=o(1133);let n=({maxAttempts:e=i.K7})=>(t,o)=>async function(n){let a=o.attemptsCount??0;return n.headers[i.Q8]=`attempt=${a+1}; max=${e}`,t(n)}},95538:(e,t,o)=>{o.d(t,{F:()=>l});var i=o(66352),n=o(42614),a=o(86178),r=o(13842),s=o(2035),g=o(83494);let l=(0,s.q)(g.Q,[r.L,n.r,i.b,a.Z])}}]);

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.