1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f032fe37-8f13-4933-888c-cd7622dadc89",e._sentryDebugIdIdentifier="sentry-dbid-f032fe37-8f13-4933-888c-cd7622dadc89")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[621],{31414:(e,r,t)=>{t.d(r,{k:()=>a});var o,n=t(49459),s=t(40074);let{logError:a}=(0,n.M7)({platform:"browser",dsn:null!=(o=s.env.GILLY_AWS_SENTRY_DSN)?o:"",source:"gilly-aws",debug:"development"===s.env.APP_ENVIRONMENT})},40621:(e,r,t)=>{t.r(r),t.d(r,{authListener:()=>y,clearAuthCookies:()=>T,getConfirmResetPassword:()=>C,getConfirmSignUp:()=>A,getCurrentSessionTokensClientSide:()=>U,getResendConfirmationCode:()=>I,getResetPassword:()=>S,getSignInWithEmailPassword:()=>_,getSignUpWithEmailPassword:()=>O,getUpdatePassword:()=>w,handleLogout:()=>g,isTokenNearExpiry:()=>b});var o=t(47091),n=t(33012),s=t(80006),a=t(20301),i=t(61407),l=t(26850),c=t(57947),u=t(90750),E=t(72790),m=t(22055),R=t(50041),d=t(31414),N=t(69164);let h=e=>e.replace(RegExp("[\\p{Cc}\\p{Cf}]","gu"),"").trim(),p=e=>h(e).toLowerCase(),f=e=>h(e),T=()=>{if(!globalThis.document||!globalThis.window)return;let e=(globalThis.document.cookie?globalThis.document.cookie.split("; "):[]).map(e=>e.split("=")[0]).filter(e=>N.qW.some(r=>e.includes(r)));if(0===e.length)return;let r=globalThis.window.location.hostname,t=[r,".".concat(r)];e.forEach(e=>{globalThis.document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"),t.forEach(r=>{globalThis.document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=").concat(r)});try{globalThis.window&&globalThis.window.localStorage&&globalThis.window.localStorage.removeItem(e)}catch(e){}})},g=async()=>(T(),(0,o.C)({global:!0})),_=async e=>{let{email:r,password:t}=e,o=p(r),s=f(t);try{var a;let e=await (0,n.J)({username:o,password:s});return e.isSignedIn||(null==(a=e.nextStep)?void 0:a.signInStep)!==N.FS.CONFIRM_SIGN_UP||(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getSignInWithEmailPassword",message:"User has not confirmed their email address before attempting signin"},errorName:"AUTH_ACCOUNT_SIGNIN_ERROR",tagName:"AUTH_ACCOUNT_SIGNIN_ERROR",context:{email:o,error:N.FS.CONFIRM_SIGN_UP}}),e}catch(e){throw(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getSignInWithEmailPassword",message:"Failed to sign in"},errorName:"AUTH_ACCOUNT_SIGNIN_ERROR",tagName:"AUTH_ACCOUNT_SIGNIN_ERROR",context:{email:o,error:e}}),e}},O=async e=>{let{email:r,password:t,givenName:o,familyName:n}=e,a=p(r),i=f(t);try{return await (0,s.H)({username:a,password:i,options:{userAttributes:{email:a,given_name:o,family_name:n}}})}catch(e){throw(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getSignUpWithEmailPassword",message:"Failed to sign up"},errorName:"AUTH_ACCOUNT_CREATION_ERROR",tagName:"AUTH_ACCOUNT_CREATION_ERROR",context:{email:a,error:e}}),e}},A=async e=>{let{email:r,code:t}=e,o=p(r);try{return await (0,a.z)({username:o,confirmationCode:t})}catch(e){throw(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getConfirmSignUp",message:"Failed to confirm sign up"},errorName:"AUTH_ACCOUNT_CONFIRMATION_ERROR",tagName:"AUTH_ACCOUNT_CONFIRMATION_ERROR",context:{code:t,email:o,error:e}}),e}},I=async e=>{let r=p(e);try{return await (0,i.h)({username:r})}catch(e){throw(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getResendConfirmationCode",message:"Failed to resend confirmation code"},errorName:"AUTH_RESEND_CONFIRMATION_CODE_ERROR",tagName:"AUTH_RESEND_CONFIRMATION_CODE_ERROR",context:{email:r,error:e}}),e}},S=async e=>{let r=p(e);try{return await (0,l.x)({username:r})}catch(e){throw(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getResetPassword",message:"Failed to reset password"},errorName:"AUTH_RESET_PASSWORD_ERROR",tagName:"AUTH_RESET_PASSWORD_ERROR",context:{email:r,error:e}}),e}},C=async e=>{let{email:r,code:t,newPassword:o}=e,n=p(r),s=f(o);try{return await (0,c.P)({username:n,confirmationCode:t,newPassword:s})}catch(e){throw(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getConfirmResetPassword",message:"Failed to confirm reset password"},errorName:"AUTH_RESET_PASSWORD_ERROR",tagName:"AUTH_RESET_PASSWORD_ERROR",context:{email:n,error:e}}),e}},w=async e=>{let{oldPassword:r,newPassword:t}=e,o=f(r),n=f(t);try{return await (0,u.f)({oldPassword:o,newPassword:n})}catch(e){throw(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getUpd
1atePassword",message:"Failed to update password"},errorName:"AUTH_UPDATE_PASSWORD_ERROR",tagName:"AUTH_UPDATE_PASSWORD_ERROR",context:{error:e}}),e}},U=async()=>{try{var e,r;let t=null!=(e=(await (0,E.$)()).tokens)?e:null;if(null==t)return null;return t.idToken&&b(t.idToken.toString())&&(console.info("Proactively refreshing auth tokens (near expiry)..."),t=null!=(r=(await (0,E.$)({forceRefresh:!0})).tokens)?r:null),t}catch(e){return(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"getCurrentSessionTokensClientSide",message:"Failed to get current session tokens"},errorName:"AUTH_TOKEN_ERROR",tagName:"AUTH_TOKEN_ERROR",context:{error:e}}),null}},y=()=>{m.YZ.listen("auth",e=>{let{payload:r}=e;switch(r.event){case"signedIn":console.info("user have been signedIn successfully.");break;case"signedOut":console.info("user have been signedOut successfully.");break;case"tokenRefresh":console.info("auth tokens have been refreshed.");break;case"tokenRefresh_failure":console.info("failure while refreshing auth tokens.");break;case"signInWithRedirect":console.info("signInWithRedirect API has successfully been resolved.");break;case"signInWithRedirect_failure":console.info("failure while trying to resolve signInWithRedirect API.");break;case"customOAuthState":console.info("custom state returned from CognitoHosted UI")}})},b=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N.Y7;try{let t;try{t=R.i(e)}catch(r){return(0,d.k)({error:{module:"Amplify Auth Helpers",component:"libs/aws/amplify-auth/helpers.ts",func:"isTokenNearExpiry",message:"Failed to decode token for token refresh"},errorName:"AUTH_TOKEN_ERROR",tagName:"AUTH_TOKEN_ERROR",context:{token:e,error:r}}),!0}if(!t||!t.exp)return!0;let o=Math.floor(Date.now()/1e3);return t.exp-o<r}catch(e){return console.error("\uD83D\uDE80 ~ isTokenNearExpiry ~ error:",e),!0}}},49459:(e,r,t)=>{t.d(r,{M7:()=>N,_w:()=>u});var o=t(31081),n=t(71146),s=t(70630),a=t(41350),i=t(68757);class l extends Error{constructor(e,r){super(e),this.name=r}}Object.freeze({TypeError:"Type Error",SyntaxError:"Syntax Error",ReferenceError:"Reference Error",RangeError:"Range Error",UnknownError:"Unknown Error",ServerError:"Server Error",HTTPException:"HTTP Exception"});let c=[{status:401,matchers:["UNAUTHORIZED","AUTHENTICATION","TOKEN","CREDENTIALS"]},{status:403,matchers:["FORBIDDEN","ACCESS DENIED","PERMISSION"]},{status:404,matchers:["NOT FOUND","DOES NOT EXIST","404"]},{status:400,matchers:["VALIDATION","BAD REQUEST"]},{status:400,matchers:["INVALID","MISSING","REQUIRED","MALFORMED","UNSUPPORTED FILE TYPE","NO GPS DATA FOUND","UNSUPPORTED"]},{status:502,matchers:["FETCH","NETWORK","TIMEOUT","CONNECTION"]},{status:503,matchers:["SERVICE UNAVAILABLE","TEMPORARILY UNAVAILABLE"]},{status:500,matchers:["TYPEERROR","REFERENCEERROR","RANGEERROR","SYNTAXERROR"]}],u=e=>{let r=(e.name||"").toUpperCase(),t=(e.message||"").toUpperCase();for(let e of c)for(let o of e.matchers)if(r.includes(o)||t.includes(o))return e.status;return 0},E=e=>{let{error:r,isCustomException:t=!1,customExceptionName:o}=e,{module:n,component:s,func:a,message:i}=r,c="[".concat(n,"] -> [").concat(s,"] -> [").concat(a,"]");return t&&o?new l(i?c.concat(" -> error: ".concat(i)):c,o):Error(i?c.concat(" -> error: ".concat(i)):c)};var m=t(35424),R=t(8174),d=t(89684);function N(e){if("nextjs"===e.platform){var r,t;return e.dsn,null==e||e.tracesSampleRate,null==e||e.logs,null==e||e.debug,{logError:r=>{let{error:t,errorName:o,tagName:n,context:s}=r,a=window.location.href,l=o?(0,i.e)((0,i.S)(o," ")):void 0,c=E({error:t,isCustomException:!!o,customExceptionName:l});if(m.o5().setTransactionName(n),n){var u;R.NA(n,null!=(u=c.message)?u:"")}console.error("[".concat(e.source,"] Logging error:"),c),R.Cp(c,{extra:{url:a,...null!=s?s:{}}})},register:async()=>{},onRequestError:d.s}}if(!e.dsn)return{logError:e=>{}};let l=new o.y({dsn:e.dsn,transport:n._,integrations:[],stackParser:s.lG,tracesSampleRate:null!=(r=e.tracesSampleRate)?r:1,debug:null!=(t=e.debug)&&t}),c=new a.H;return c.setClient(l),l.init(),c.setTag("source",e.source),{logError:r=>{let{error:t,errorName:o,tagName:n,context:s}=r,a=window.location.href,l=o?(0,i.e)((0,i.S)(o," ")):void 0,u=E({error:t,isCustomException:!!o,customExceptionName:l});if(n){var m;c.setTag(n,null!=(m=u.message)?m:"")}console.error("[".concat(e.source,"] Logging error:"),u),c.captureException(u,{captureContext:{extra:{url:a,...null!=s?s:{}}}})}}}},69164:(e,r,t)=>{t.d(r,{FS:()=>s,Y7:()=>o,db:()=>n,qW:()=>a});let o=900,n=Object.freeze({NOT_AUTHORIZED:"NotAuthorizedException",EXPIRED_CODE:"ExpiredCodeException",USER_NOT_CONFIRMED:"UserNotConfirmedException",USER_NOT_FOUND:"UserNotFoundException",INVALID_PARAMETER:"InvalidParameterException",CODE_MISMATCH:"
1CodeMismatchException",LIMIT_EXCEEDED:"LimitExceededException"}),s=Object.freeze({CONFIRM_SIGN_UP:"CONFIRM_SIGN_UP",DONE:"DONE",RESET_PASSWORD:"RESET_PASSWORD",CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",CONTINUE_SIGN_IN_WITH_MFA_SELECTION:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION"}),a=["CognitoIdentityServiceProvider","amplify-signin-with-hostedUI","idToken","accessToken","refreshToken","LastAuthUser","clockDrift"]}}]);
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.