1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,289183,e=>{"use strict";var t=e.i(398526),r=e.i(31338),a=e.i(927284),s=e.i(541614),i=e.i(971161),o=e.i(649840),n=e.i(566269),l=e.i(617586),d=e.i(600516),c=e.i(841369),u=e.i(105800),m=e.i(220687),h=e.i(267369);let p=({isSubmitted:e,setIsSubmitted:r,authMethodList:a,username:p,redirectTo:f})=>{let[g,x]=(0,h.useState)(!1),[v,b]=(0,h.useState)(void 0),y=(0,h.useRef)(null),{beginOIDCSession:w}=(0,s.useOIDCSession)();(0,h.useEffect)(()=>{if(a.length>=1){let e=!1;a.forEach(t=>{"oidcCode"===t.sealedValue.case&&(x(!0),b(t.sealedValue.value),e=!0)}),e||(x(!1),b(void 0))}else x(!1),b(void 0)},[a,x,b]);let j=async e=>{if(e.preventDefault(),r(!0),!(g&&v))return void r(!1);let{authorizationEndpoint:t,clientId:a,scopes:s,nonce:n,token:l}=v,d=w("login",l,f&&""!==f?f:i.DEFAULT_REDIRECT);window.location.href=(0,o.createExternalRedirect)(t,a,s,d,n)};return(0,t.jsx)(n.default,{visible:g,enterDirection:"right",exitDirection:"left",afterEnter:()=>{y.current?.focus()},className:"col-start-1 col-end-1 row-start-1 row-end-1",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.TextField,{isDisabled:!0,value:p,children:[(0,t.jsx)(c.Label,{children:"Email"}),(0,t.jsx)(d.Input,{id:"lblUsername",variant:"secondary"})]}),(0,t.jsx)("form",{onSubmit:j,children:(0,t.jsx)("fieldset",{disabled:e,children:(0,t.jsx)(l.Button,{ref:y,"data-testid":"external-login-button",type:"submit",size:"lg",className:"w-full my-3",isPending:e,children:({isPending:e})=>(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(u.Spinner,{color:"current",size:"sm"}),"Log in via External Authentication"]})})})})]})})};var f=e.i(174536),g=e.i(71292),x=e.i(16094),v=e.i(642996);e.i(183238);var b=e.i(227289),y=e.i(357462),w=e.i(381292),j=e.i(393846),C=e.i(445051);let S=({setError:e,setIsSubmitted:a,setShowMfaLogin:s,setChallengeToken:i,setAuthMethodList:o,setUsernameError:n,setPasswordError:l,setPostLoginActions:d})=>{let{login:c}=(0,r.useAuthentication)(),u=(0,C.useRouter)(),{redirect:m}=(0,C.useParams)()||{},p=(0,h.useRef)(null),[y,S]=(0,h.useState)(256),N=(0,b.useIsDarkMode)();(0,h.useLayoutEffect)(()=>{p&&p.current&&S(p.current.offsetWidth-2)},[p,p?.current?.offsetWidth]);let E=async t=>{if(void 0===t)e("Google Log In Failed."),a(!1);else try{let{result:r}=await x.usersClient.authenticate({method:{case:"oidc",value:{idToken:t}}});if("success"===r.case)c(r.value.value),r.value.postLoginActions&&d(r.value.postLoginActions),e(null),n(null),l(null);else if("challenge"===r.case){s(!0);let{token:e,methods:t}=r.value;i(e),o(t)}}catch(r){if((0,f.isServiceError)(r)&&r.code===w.GrpcCode.NotFound){let e={token_id:t};"string"==typeof m&&(e.redirect=m),u.push(v.routes.authRegister({search:e}))}else{let t=(0,f.getServerFailureMessage)(r);t&&g.logger.error({err:r},"Google login failed"),e(t??(0,f.errorToString)(r)),a(!1)}}};return(0,t.jsx)("button",{ref:p,type:"button",onClick:()=>{a(!0),n(null),l(null),e(null)},className:"flex items-center justify-center w-80 max-w-full h-10.5 border-0 rounded-[5px] mx-auto overflow-hidden bg-transparent appearance-button",children:(0,t.jsx)(j.GoogleLogin,{width:y,logo_alignment:"left",text:"continue_with",theme:N?"filled_black":"outline",onSuccess:e=>{E(e.credential)},onError:()=>{a(!1),n(null),l(null),e("Google Log In Failed.")}})})};e.i(172479);var N=e.i(122818),E=e.i(473933),P=e.i(136842),R=e.i(298026),_=e.i(56197);let k=({authMethodList:e,challengeToken:a,setShowMfaLogin:s,setIsSubmitted:o,setPostLoginActions:n})=>{let[u,p]=(0,h.useState)(""),[v,b]=(0,h.useState)(null),[y,w]=(0,h.useState)(null),[j,C]=(0,h.useState)(""),S=(0,h.useRef)(null),{login:k}=(0,r.useAuthentication)(),O=":::::";(0,h.useEffect)(()=>{if(e.length>=1){let t=e[0];if("totp"===t.sealedValue.case){let{id:e,digits:r}=t.sealedValue.value;w(`totp${O}${e}${O}${r}`)}else if("webAuthn"===t.sealedValue.case){let{publicKeyCredentialRequestOptionsJson:e,webAuthnChallengeToken:r}=t.sealedValue.value;w(`webAuthn${O}${e}${O}${r}`)}}},[e]);let D=async e=>{e.preventDefault();try{if(y||b("Please choose an authentication method"),y?.startsWith(`totp${O}`)){let e=y.split(O)[1],t=parseInt(j,10);if(t>0&&u.length!==t)return void b(`Please enter the ${t}-digit code.`);let{result:r}=await x.usersClient.authenticate({method:{case:"totp",value:{id:e,authenticationToken:a,code:parseInt(u,10)}}});"success"===r.case?(k(r.value.value),b(null),r.value.postLoginActions&&n(r.value.postLoginActions)):b("Something went wrong on the server. Please try again by refreshing the page.")}else if(y?.startsWith(`webAuthn${O}`)){let e=y.split(O)[1],t=y.split(O)[2],r=await (0,P.get)((0,P.parseRequestOptionsFromJSON)(JSON.parse(e))),s=JSON.stringify(r.toJSON()),{result:i}=await x.usersClient.authenticate({method:{case:"webAuthn",value:{webAuthnChallengeToken:t,authenticationToken:a,publicKeyCredentialJson:s}}});"success"===i.case?(k(i.value.value),b(null),i.value.postLoginActions&&n(i.value.postLoginActions)):b("Something went wrong on the server. Please try again by refreshing the page.")}}catch(t){let e=(0,f.getServerFailureMessage)(t);e&&g.logger.error({ex:t},"Second factor authentication failed"),b(e??(0,f.errorToString)(t))}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"my-3 text-lg font-medium text-center",children:"Authenticate"}),(0,t.jsxs)("p",{className:"mb-6 w-80 max-w-full text-center",children:["Use the authenticator app on your mobile device to generate a"," ",parseInt(j,10)||6,"-digit verification code."]}),(0,t.jsxs)("form",{onSubmit:D,children:[(0,t.jsxs)("fieldset",{className:"border-t border-t-separator pt-6",children:[(0,t.jsxs)(_.RadioGroup,{value:y,onChange:e=>{w(e),b(null),e.startsWith("totp")?(C(e.split(O)[2]),setTimeout(()=>{S.current?.focus()},20)):C("")},className:"w-80 max-w-full gap-0 mb-4",children:[(0,t.jsx)(c.Label,{className:"text-current block mb-2 font-medium",children:"Authenticator"}),e.map(({sealedValue:e})=>{let r="totp"===e.case?e.value.id:"webAuthn"===e.case?e.value.webAuthnChallengeToken:"unknown",a="totp"===e.case?`totp${O}${e.value.id}${O}${e.value.digits}`:"webAuthn"===e.case?`webAuthn${O}${e.value.publicKeyCredentialRequestOptionsJson}
1${O}${e.value.webAuthnChallengeToken}`:"";return a?(0,t.jsxs)(R.Radio,{value:a,className:"max-w-full",children:[(0,t.jsx)(R.Radio.Control,{children:(0,t.jsx)(R.Radio.Indicator,{})}),(0,t.jsx)(R.Radio.Content,{children:(0,t.jsx)(c.Label,{className:"overflow-hidden wrap-break-word",children:"totp"===e.case&&e.value.deviceDescription||"Security key"})})]},r):null})]}),y?.startsWith(`totp${O}`)&&(0,t.jsxs)(m.TextField,{isRequired:!0,value:u,onChange:e=>{b(null),p(e)},className:"my-2",children:[(0,t.jsx)(c.Label,{children:"Verification code"}),(0,t.jsx)(d.Input,{ref:S,id:"mfa",type:"text",variant:"secondary",autoFocus:!0})]}),y?.startsWith(`webAuthn${O}`)&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(E.KeyIcon,{className:"flex-none basis-5 size-5 fill-current"}),(0,t.jsx)("span",{children:"Please insert security key device"})]})]}),(0,t.jsxs)("fieldset",{children:[(0,t.jsx)(l.Button,{id:"btn-mfa-login-verify",type:"submit",size:"lg",className:"mt-3 w-full",children:"Verify"}),v&&(0,t.jsxs)(t.Fragment,{children:["Second factor auth token has expired"===v&&(0,t.jsx)(l.Button,{id:"btn-mfa-login-back",type:"button",variant:"ghost",className:"my-2 w-full",onPress:()=>{o(!1),p(""),b(null),s(!1)},children:"Back"}),(0,t.jsxs)("div",{className:"mt-6 flex justify-center gap-1.5 text-danger",role:"alert",children:[(0,t.jsx)(N.ErrorIcon,{className:"flex-none basis-5 size-5 fill-current"}),(0,t.jsxs)("div",{className:"overflow-hidden wrap-break-word",children:[(0,t.jsx)("span",{className:"font-medium",children:"Error:"})," ",v]})]})]})]}),(0,t.jsxs)("p",{className:"my-6 text-center text-muted",children:["If you have lost your MFA device, or are having issues with the login process, please reach out to our"," ",(0,t.jsx)("a",{className:"link",href:`mailto:${i.SUPPORT_EMAIL}`,children:"support team"})," ","for assistance."]})]})]})};var O=e.i(771327);let D=({setError:e,isSubmitted:a,setIsSubmitted:s,setShowMfaLogin:o,setChallengeToken:p,setUsernameError:v,passwordError:b,setPasswordError:y,authMethodList:j,setAuthMethodList:C,username:S,setPostLoginActions:N})=>{let[E,P]=(0,h.useState)(""),[R,_]=(0,h.useState)(!1),{login:k}=(0,r.useAuthentication)(),D=async t=>{let r;if(g.logger.debug("submitting password"),t.preventDefault(),s(!0),r=!1,""===E.trim()?(y("Please specify your password."),r=!0):E.length<i.OLD_MIN_PASSWORD_LENGTH&&(y("The password is too short."),r=!0),r){s(!1),g.logger.debug("invalid form");return}try{g.logger.debug("try case submitting password");let t=await x.usersClient.authenticate({method:{case:"password",value:{password:E,emailOrFriendlyName:S}}});g.logger.debug({authResponse:t});let{result:r}=t;if("success"===r.case)g.logger.debug({token:r.value.value}),k(r.value.value),r.value.postLoginActions&&N(r.value.postLoginActions),e(null),v(null),y(null);else if("challenge"===r.case){o(!0);let{token:e,methods:t}=r.value;p(e),C(t)}}catch(t){if((0,f.isServiceError)(t)&&t.code===w.GrpcCode.ResourceExhausted)e(`Too many login attempts. Please wait ${(0,f.getRateLimitDurationString)(t)}before trying again.`);else if((0,f.isServiceError)(t)&&t.code===w.GrpcCode.Unauthenticated)e("Username or password incorrect.");else{let r=(0,f.getServerFailureMessage)(t);r&&g.logger.error({err:t},"Password login failed"),e(r??(0,f.errorToString)(t))}s(!1)}};return(0,h.useEffect)(()=>{let e=!1;for(let t of j)if("localAuth"===t.sealedValue.case){e=!0;break}e!=R&&_(e)},[j,R]),(0,t.jsx)(n.default,{visible:R,enterDirection:"right",exitDirection:"left",className:"col-start-1 col-end-1 row-start-1 row-end-1",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.TextField,{isDisabled:!0,value:S,children:[(0,t.jsx)(c.Label,{children:"Username"}),(0,t.jsx)(d.Input,{id:"lblUsername",variant:"secondary"})]}),(0,t.jsx)("form",{noValidate:!0,onSubmit:D,children:(0,t.jsxs)("fieldset",{disabled:a,children:[(0,t.jsxs)(m.TextField,{isRequired:!0,isInvalid:!!b,value:E,onChange:e=>{P(e),y(null)},className:"my-2",children:[(0,t.jsx)(c.Label,{children:"Password"}),(0,t.jsx)(d.Input,{id:"password",type:"password",variant:"secondary",autoComplete:"current-password",autoFocus:!0}),b&&(0,t.jsx)(O.FieldError,{children:b})]}),(0,t.jsx)(l.Button,{type:"submit",size:"lg",className:"w-full my-3",isPending:a,children:({isPending:e})=>(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(u.Spinner,{color:"current",size:"sm"}),"Log in with Password"]})})]})})]})})};var T=e.i(582126);let A=({setError:e,setUsernameError:r,isSubmitted:a,username:s,setUsername:i,authMethodList:o,setAuthMethodList:p})=>{let[v,b]=(0,h.useState)(!1),[y,j]=(0,h.useState)(!1),C=async t=>{if(t.preventDefault(),""!==s.trim()&&((0,T.isValidEmailAddress)(s)||(0,T.isValidUsername)(s))){b(!0);try{let{result:t}=await x.usersClient.authenticate({method:{case:"userQuery",value:{emailOrFriendlyName:s}}});if("challenge"===t.case){let{methods:a}=t.value;p(a),e(null),r(null)}}catch(t){if((0,f.isServiceError)(t)&&t.code===w.GrpcCode.ResourceExhausted)e(`Too many lookup attempts. Please wait ${(0,f.getRateLimitDurationString)(t)}before trying again.`);else{let r=(0,f.getServerFailureMessage)(t);r&&g.logger.error({error:t}
1,"Username lookup failed"),e(r??(0,f.errorToString)(t))}p([])}b(!1)}else r("Please specify your username or email address.")};return(0,h.useEffect)(()=>{0==o.length?j(!0):j(!1)},[o]),(0,t.jsx)(n.default,{enterDirection:"right",exitDirection:"left",visible:y,className:"col-start-1 col-end-1 row-start-1 row-end-1",children:(0,t.jsx)("form",{onSubmit:C,children:(0,t.jsxs)("fieldset",{disabled:v||a,children:[(0,t.jsxs)(m.TextField,{isRequired:!0,value:s,onChange:e=>{i(e),r(null)},className:"my-2",children:[(0,t.jsx)(c.Label,{children:"Username or Email"}),(0,t.jsx)(d.Input,{id:"username",type:"text",variant:"secondary",autoComplete:"email",autoFocus:!0})]}),(0,t.jsx)(l.Button,{id:"btnContinueLogin","data-testid":"continue-login-button",type:"submit",size:"lg",className:"w-full my-3",isPending:v||a,children:({isPending:e})=>(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(u.Spinner,{color:"current",size:"sm"}),"Continue"]})})]})})})};var I=e.i(753342),L=e.i(395134);let F=({element:e,onDialogCompleted:r})=>{let[a,s]=(0,h.useState)(!0),[i,o]=(0,h.useState)(!1),n=(0,h.useCallback)(async t=>{o(!0);let a=await e.onPerformActionClicked();r(),a instanceof Function&&a()},[e,r]),d=(0,h.useCallback)(()=>{o(!0),s(!1),r()},[r]);return(0,t.jsx)(I.Modal.Backdrop,{isOpen:a,onOpenChange:e=>{e||d()},isDismissable:!e.isActionRequired,isKeyboardDismissDisabled:!0,children:(0,t.jsx)(I.Modal.Container,{size:"lg",children:(0,t.jsxs)(I.Modal.Dialog,{"data-testid":"post-login-actions-dialog",children:[(0,t.jsx)(I.Modal.Header,{"data-testid":"modal-header",children:(0,t.jsx)(I.Modal.Heading,{children:e.title})}),(0,t.jsx)(I.Modal.Body,{children:e.content}),(0,t.jsxs)(I.Modal.Footer,{children:[!e.isActionRequired&&(0,t.jsx)(l.Button,{slot:"close",variant:"tertiary",children:"Not now"}),(0,t.jsx)(l.Button,{variant:"primary",isDisabled:i,onPress:n,children:"Perform action"})]})]})})})},M=({loginRedirectUrl:e,postLoginActions:r,markActionCompleted:a})=>{let i=(0,C.useRouter)(),n=(0,s.useOIDCSession)(),{sessionToken:l}=(0,L.useSessionToken)(),d=(0,h.useMemo)(()=>({sessionToken:l,redirectUrl:e,router:i,oidc:n}),[e,n,i,l]),c=r.map(e=>{if("userMigration"===e.sealedValue.case){var r;return{...(r=e.sealedValue.value,{title:"Switch to external authentication now?",content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"my-3",children:[(0,t.jsx)("strong",{children:r.orgFriendlyName}),", an organization you are a member of, has configured external authentication covering your email domain."]}),(0,t.jsx)("p",{className:"mt-4 mb-2 font-medium",children:"What happens when you migrate:"}),(0,t.jsxs)("ol",{className:"my-2 flex flex-col gap-2 ps-5 list-decimal marker:text-muted",children:[(0,t.jsxs)("li",{children:["Youâll be redirected to the organizationâs"," authentication provider to authenticate for Kalix for the first time."]}),(0,t.jsx)("li",{children:"After that, youâll log in to Kalix through that provider instead of using a password."})]})]}),isActionRequired:!1,onPerformActionClicked:async()=>{let{challenge:e}=await x.usersClient.beginUserMigrationToUserOrganization({authenticationDomainName:r.authenticationDomainName},{headers:(0,y.authBearerHeader)(d.sessionToken)});if(!e||"oidcCode"!==e.authenticationMethod.case)return g.logger.error("Failed to receive OIDC challenge from Management-API"),"An internal server error occurred.";let t=e.authenticationMethod.value,a=d.oidc.beginOIDCSession("migration",t.token,d.redirectUrl);return()=>{window.location.href=(0,o.createExternalRedirect)(t.authorizationEndpoint,t.clientId,t.scopes,a,t.nonce)}}}),action:e}}}).filter(e=>void 0!==e),u=c.length>0?c[0]:void 0;return(0,t.jsx)(t.Fragment,{children:u&&(0,t.jsx)(F,{element:u,onDialogCompleted:()=>a(u?.action)})})};var $=e.i(4746),q=e.i(11846),V=e.i(180535);let z=e=>e?/^\/organizations\/[^/]+\/invitations\/accept\//.test(e)?"organization":/^\/project\/[^/]+\/invitations\/accept\//.test(e)?"project":null:null;e.s(["default",0,({redirectTo:e,r:s})=>{let[o,n]=(0,h.useState)(null),[d,c]=(0,h.useState)(null),[u,m]=(0,h.useState)(null),[f,x]=(0,h.useState)(""),[b,y]=(0,h.useState)(!1),[w,j]=(0,h.useState)(!1),[E,P]=(0,h.useState)(!1),[R,_]=(0,h.useState)([]),[O,T]=(0,h.useState)(""),[I,L]=(0,h.useState)([]),F=z(e),{checkLoggedIn:U}=(0,r.useAuthentication)(),B=U(),W=(0,C.useRouter)();(0,h.useEffect)(()=>{g.logger.debug({isLoggedIn:B}),B&&0==I.length&&(g.logger.debug("logged in!!"),W.push((0,v.validateRedirectPath)(e)))},[B,I.length,e,W]),(0,h.useEffect)(()=>
1{if(s){if(e){let t=v.routes.authLogin({search:{redirect:e}});window.history.pushState(null,"",t)}else window.history.pushState(null,"",v.routes.authLogin());(0,q.default)({customId:"logoutReason",variant:"error",title:(e=>{switch(e){case"1":return"Cannot connect to server. Please try again.";case"2":return"Your token has probably expired. Please log in again.";case"3":return"Your password has recently changed. Please log in again.";default:return"Please log in again."}})(s)})}},[s,e]),(0,h.useEffect)(()=>{let e=!1;for(let t of R)if("localAuth"===t.sealedValue.case||"oidcCode"===t.sealedValue.case){e=!0;break}E!=e&&P(e)},[R,E]);let H=(0,h.useCallback)(e=>{let t="Escape"===e.key;E&&t&&K()},[E]),K=()=>{_([]),x("")};return(0,t.jsxs)("div",{className:"w-92 max-w-full m-auto px-6 pt-6 pb-4 bg-surface shadow-small rounded-4xl",onKeyDown:H,children:[(0,t.jsx)(a.default,{}),(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)("h1",{className:"sr-only",children:"Log in to Akka Console"}),w?(0,t.jsx)(k,{authMethodList:R,challengeToken:O,setShowMfaLogin:j,setIsSubmitted:y,setPostLoginActions:L}):(0,t.jsxs)(t.Fragment,{children:[F&&(0,t.jsxs)($.default,{status:"accent",compact:!0,className:"mb-6",children:[(0,t.jsx)($.default.Indicator,{}),(0,t.jsxs)($.default.Content,{children:[(0,t.jsxs)($.default.Title,{children:["Invitation to ",F]}),(0,t.jsxs)($.default.Description,{children:["Youâve been invited to join an Akka ",F,". Log in to accept, or"," ",(0,t.jsx)(V.default,{href:v.routes.authRegister((0,v.withRedirect)(e)),className:"font-medium underline",children:"sign up"})," ","if you donât have an account yet."]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 grid-rows-1",children:[(0,t.jsx)(A,{setUsernameError:c,setError:n,isSubmitted:b,username:f,setUsername:x,authMethodList:R,setAuthMethodList:_}),(0,t.jsx)(D,{setUsernameError:c,setPasswordError:m,usernameError:d,passwordError:u,setError:n,isSubmitted:b,setIsSubmitted:y,setShowMfaLogin:j,setChallengeToken:T,setAuthMethodList:_,authMethodList:R,username:f,setPostLoginActions:L}),(0,t.jsx)(p,{isSubmitted:b,setIsSubmitted:y,authMethodList:R,username:f,redirectTo:e})]}),E?(0,t.jsx)("div",{className:"flex w-full justify-center text-center",children:(0,t.jsx)(l.Button,{variant:"ghost",onPress:K,children:"Back"})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-3 text-center",children:"OR"}),(0,t.jsx)(S,{setError:n,setIsSubmitted:y,setShowMfaLogin:j,setChallengeToken:T,setAuthMethodList:_,setUsernameError:c,setPasswordError:m,setPostLoginActions:L})]}),o&&(0,t.jsxs)("div",{className:"mt-6 flex justify-center gap-1.5 text-danger",role:"alert","data-testid":"login-error",children:[(0,t.jsx)(N.ErrorIcon,{className:"flex-none basis-5 size-5 fill-current"}),(0,t.jsxs)("div",{className:"overflow-hidden wrap-break-word",children:[(0,t.jsx)("span",{className:"font-medium",children:"Error:"})," ",o]})]}),(0,t.jsxs)("ul",{className:"mb-6 mt-9 flex justify-center gap-x-4",children:[(0,t.jsx)("li",{children:(0,t.jsx)(V.default,{href:v.routes.authForgot(),className:"link relative block font-medium before:absolute before:-bottom-1.5 before:-top-1.5 before:left-0 before:block before:w-full before:content-['']",children:"Forgot password?"})}),(0,t.jsx)("li",{children:(0,t.jsx)(V.default,{href:v.routes.authRegister((0,v.withRedirect)(e)),className:"link relative block font-medium before:absolute before:-bottom-1.5 before:-top-1.5 before:left-0 before:block before:w-full before:content-['']",children:"Sign up"})})]})]}),I.length>0&&(0,t.jsx)(M,{loginRedirectUrl:e??i.DEFAULT_REDIRECT,postLoginActions:I,markActionCompleted:e=>{L(t=>t.filter(t=>t!==e))}})]})]})},"getInvitationKind",0,z],289183)},927284,e=>{"use strict";var t=e.i(398526),r=e.i(642996),a=e.i(316246),s=e.i(180535);e.s(["default",0,()=>(0,t.jsx)("header",{children:(0,t.jsx)("div",{className:"px-4 py-3 flex items-center justify-center",children:(0,t.jsx)(s.default,{className:"h-10 flex items-center",href:r.routes.root(),prefetch:!1,children:(0,t.jsx)(a.default,{})})})})])},519672,e=>{"use strict";Array.prototype.count=function(e){return this.foldLeft(0,(t,r)=>t+ +!!e(r))},Array.prototype.distinct=function(){let e=[],t=new Set;for(let r of this)t.has(r)||(t.add(r),e.push(r));return e},Array.prototype.mapFilter=function(e){let t=[];for(let r of this){let a=e(r);a&&t.push(a)}return t},Array.prototype.sum=function(){return this.reduce((e,t)=>
1e+t,0)},Array.prototype.foldLeft=function(e,t){let r=e;for(let e of this)r=t(r,e);return r},e.s([])},649840,e=>{"use strict";var t=e.i(971161);e.i(519672);let r={invalid_request:"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",unauthorized_client:"Kalix is not authorized to request an authorization code using this method.",access_denied:"The resource owner or authorization server denied the request.",unsupported_response_type:"The authorization server does not support obtaining an authorization code using this method.",invalid_scope:"The requested scope is invalid, unknown, or malformed.",server_error:"The authorization server encountered an unexpected condition that prevented it from fulfilling the request.",temporarily_unavailable:"The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.",interaction_required:"The authorization server requires end-user interaction of some form to proceed.",login_required:"The authorization server requires end-user authentication.",account_selection_required:"The end-user is required to select a session at the authorization server.",consent_required:"The authorization server requires end-user consent.",invalid_request_uri:"The `request_uri` in the authorization request returns an error or contains invalid data.",invalid_request_object:"The request parameter contains an invalid Request object."};e.s(["createExternalRedirect",0,(e,r,a,s,i)=>{let o=window.location.origin+t.CALLBACK_URL_PATH,n=["response_type=code",`scope=${a.join(" ")}`,`client_id=${r}`,`state=${s}`,`redirect_uri=${o}`,`nonce=${i}`];return`${e}?${n.join("&")}`},"formatErrorResponse",0,e=>e.errorUrl&&e.errorDescription?`${e.errorDescription} 2 <p></p> 3 See this <a href="${e.errorUrl}">link</a> for more information.`:e.errorDescription?e.errorDescription:e.errorCode.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),"tryParseAuthorizationCodeError",0,e=>e.has("error")?Array.from(e.keys()).map(e=>e.toLowerCase()).foldLeft({errorCode:"access_denied",errorDescription:void 0},(t,a)=>{let s=decodeURIComponent(e.get(a)??"").replaceAll("+"," ");switch(a){case"error":t.errorCode=s,void 0==t.errorDescription&&s in r&&(t.errorDescription=r[s]);break;case"error_description":t.errorDescription=s;break;case"error_uri":t.errorUrl=s}return t}):null])},582126,e=>{"use strict";e.s(["isValidEmailAddress",0,e=>/\S+@\S+\.\S+/.test(e),"isValidUsername",0,e=>/[a-z0-9](?:[-a-z0-9]*[a-z0-9])*/.test(e.toLowerCase())])},136842,e=>{"use strict";function t(e){let t="==".slice(0,(4-e.length%4)%4),r=atob(e.replace(/-/g,"+").replace(/_/g,"/")+t),a=new ArrayBuffer(r.length),s=new Uint8Array(a);for(let e=0;e<r.length;e++)s[e]=r.charCodeAt(e);return a}function r(e){let t=new Uint8Array(e),r="";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var a="copy",s="convert";function i(e,t,r){if(t===a)return r;if(t===s)return e(r);if(t instanceof Array)return r.map(r=>i(e,t[0],r));if(t instanceof Object){let a={};for(let[s,o]of Object.entries(t)){if(o.derive){let e=o.derive(r);void 0!==e&&(r[s]=e)}if(!(s in r)){if(o.required)throw Error(`Missing key: ${s}`);continue}if(null==r[s]){a[s]=null;continue}a[s]=i(e,o.schema,r[s])}return a}}function o(e,t){return{required:!0,schema:e,derive:t}}function n(e){return{required:!0,schema:e}}function l(e){return{required:!1,schema:e}}var d={type:n(a),id:n(s),transports:l(a)},c={appid:l(a),appidExclude:l(a),credProps:l(a)},u={appid:l(a),appidExclude:l(a),credProps:l(a)},m={publicKey:n({rp:n(a),user:n({id:n(s),name:n(a),displayName:n(a)}),challenge:n(s),pubKeyCredParams:n(a),timeout:l(a),excludeCredentials:l([d]),authenticatorSelection:l(a),attestation:l(a),extensions:l(c)}),signal:l(a)},h={type:n(a),id:n(a),rawId:n(s),authenticatorAttachment:l(a),response:n({clientDataJSON:n(s),attestationObject:n(s),transports:o(a,e=>{var t;return(null==(t=e.getTransports)?void 0:t.call(e))||[]})}),clientExtensionResults:o(u,e=>e.getClientExtensionResults())},p={mediation:l(a),publicKey:n({challenge:n(s),timeout:l(a),rpId:l(a),allowCredentials:l([d]),userVerification:l(a),extensions:l(c)}),signal:l(a)},f={type:n(a),id:n(a),rawId:n(s),authenticatorAttachment:l(a),response:n({clientDataJSON:n(s),authenticatorData:n(s),signature:n(s),userHandle:n(s)}),clientExtensionResults:o(u,e=>e.getClientExtensionResults())};async function g(e){let t=await navigator.credentials.create(e);return t.toJSON=()=>i(r,h,t),t}async function x(e){let t=await navigator.credentials.get(e);return t.toJSON=()=>i(r,f,t),t}e.s(["create",0,g,"get",0,x,"parseCreationOptionsFromJSON",0,function(e){return i(t,m,e)},"parseRequestOptionsFromJSON",0,function(e){return i(t,p,e)}])},905987,e=>{"use strict";let t=(0,e.i(440912).tv)({defaultVariants:{color:"default",variant:"secondary"},slots:{base:"chip",label:"chip__label"}
3,variants:{color:{accent:{base:"chip--accent"},danger:{base:"chip--danger"},default:{base:"chip--default"},success:{base:"chip--success"},warning:{base:"chip--warning"}},size:{lg:{base:"chip--lg"},md:{base:"chip--md"},sm:{base:"chip--sm"}},variant:{primary:{base:"chip--primary"},secondary:{base:"chip--secondary"},soft:{base:"chip--soft"},tertiary:{base:"chip--tertiary"}}}});var r=e.i(267369),a=e.i(570419),s=e.i(710041),i=e.i(398526);let o=(0,r.createContext)({}),n=({children:e,className:n,color:d,size:c,variant:u,...m})=>{let h=r.default.useMemo(()=>t({color:d,size:c,variant:u}),[d,c,u]),p=r.default.useMemo(()=>"string"==typeof e||"number"==typeof e?(0,i.jsx)(l,{children:e}):e,[e]);return(0,i.jsx)(o,{value:{slots:h},children:(0,i.jsx)(s.dom.span,{...m,className:(0,a.composeSlotClassName)(h.base,n),"data-slot":"chip",children:p})})},l=({children:e,className:t,...n})=>{let{slots:l}=(0,r.useContext)(o);return(0,i.jsx)(s.dom.span,{className:(0,a.composeSlotClassName)(l?.label,t),"data-slot":"chip-label",...n,children:e})},d=Object.assign(n,{Root:n,Label:l});e.s(["Chip",0,d],905987)},753342,e=>{"use strict";let t=(0,e.i(440912).tv)({defaultVariants:{scroll:"inside",size:"md",variant:"opaque"},slots:{backdrop:"modal__backdrop",body:"modal__body",closeTrigger:"modal__close-trigger",container:"modal__container",dialog:"modal__dialog",footer:"modal__footer",header:"modal__header",heading:"modal__heading",icon:"modal__icon",trigger:"modal__trigger"},variants:{scroll:{inside:{body:"modal__body--scroll-inside",dialog:"modal__dialog--scroll-inside"},outside:{body:"modal__body--scroll-outside",container:"modal__container--scroll-outside",dialog:"modal__dialog--scroll-outside"}},size:{cover:{dialog:"modal__dialog--cover"},full:{container:"modal__container--full",dialog:"modal__dialog--full"},lg:{dialog:"modal__dialog--lg"},md:{dialog:"modal__dialog--md"},sm:{dialog:"modal__dialog--sm"},xs:{dialog:"modal__dialog--xs"}},variant:{blur:{backdrop:"modal__backdrop--blur"},opaque:{backdrop:"modal__backdrop--opaque"},transparent:{backdrop:"modal__backdrop--transparent"}}}});var r=e.i(811561),a=e.i(267369),s=e.i(669687),i=e.i(715167),o=e.i(592467),n=e.i(465013),l=e.i(377137),d=e.i(237917),c=e.i(471354),u=e.i(132779),m=e.i(832358),h=e.i(709478),p=e.i(609216),f=e.i(337699),g=e.i(412297),x=e.i(657868),v=e.i(770333),b=e.i(349271),y=e.i(291744),w=e.i(425318);let j="u">typeof document&&window.visualViewport;function C(){return{width:j?Math.min(j.width*j.scale,document.documentElement.clientWidth):document.documentElement.clientWidth,height:j?j.height*j.scale:document.documentElement.clientHeight}}let S=(0,a.createContext)(null),N=(0,a.createContext)(null),E=(0,a.forwardRef)(function(e,t){if((0,a.useContext)(N))return a.default.createElement(_,{...e,modalRef:t},e.children);let{isDismissable:r,isKeyboardDismissDisabled:s,isOpen:i,defaultOpen:o,onOpenChange:n,children:l,isEntering:d,isExiting:c,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:m,...h}=e;return a.default.createElement(P,{isDismissable:r,isKeyboardDismissDisabled:s,isOpen:i,defaultOpen:o,onOpenChange:n,isEntering:d,isExiting:c,UNSTABLE_portalContainer:u,shouldCloseOnInteractOutside:m},a.default.createElement(_,{...h,modalRef:t},l))}),P=(0,a.forwardRef)(function(e,t){[e,t]=(0,o.useContextProps)(e,t,S);let r=(0,a.useContext)(s.OverlayTriggerStateContext),i=(0,f.useOverlayTriggerState)(e),n=null==e.isOpen&&null==e.defaultOpen&&r?r:i,l=(0,v.useObjectRef)(t),d=(0,a.useRef)(null),c=(0,g.useExitAnimation)(l,n.isOpen),u=(0,g.useExitAnimation)(d,n.isOpen),m=c||u||e.isExiting||!1,h=(0,x.useIsSSR)();return(n.isOpen||m)&&!h?a.default.createElement(R,{...e,state:n,isExiting:m,overlayRef:l,modalRef:d}):null});function R({UNSTABLE_portalContainer:e,...t}){let i,u,p=t.modalRef,{state:f}=t,{modalProps:v,underlayProps:S}=function(e,t,s){let{overlayProps:i,underlayProps:o}=(0,l.useOverlay)({...e,isOpen:t.isOpen,onClose:t.close},s);return(0,c.usePreventScroll)({isDisabled:!t.isOpen}),(0,d.useOverlayFocusContain)(),(0,a.useEffect)(()=>{if(t.isOpen&&s.current)return(0,n.ariaHideOutside)([s.current],{shouldUseInert:!0})},[t.isOpen,s]),{modalProps:(0,r.mergeProps)(i),underlayProps:o}}(t,f,p),E=(0,g.useEnterAnimation)(t.overlayRef)||t.isEntering||!1,P=(0,o.useRenderProps)({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:E,isExiting:t.isExiting,state:f}}),_=function(){let e=(0,x.useIsSSR)(),[t,r]=(0,a.useState)(()=>e?{width:0,height:0}:C());return(0,a.useEffect)(()=>{let e,t=e=>{r(t=>e.width===t.width&&e.height===t.height?t:e)},a=()=>{j&&j.scale>1||t(C())},s=r=>{j&&j.scale>1||(0,w.willOpenKeyboard)((0,b.getEventTarget)(r))&&(e=requestAnimationFrame(()=>{let e=(0,b.getActiveElement)();e&&(0,w.willOpenKeyboard)(e)||t({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return t(C()),(0,y.isIOS)()&&window.addEventListener("blur",s,!0),j?j.addEventListener("resize",a):window.addEventListener("resize",a),()=>{cancelAnimationFrame(e),(0,y.isIOS)()&&window.removeEventListener("blur",s,!0),j?j.removeEventListener("resize",a):window.removeEventListener("resize",a)}},[]),t}();if("u">typeof document){let e=(0,h.isScrollable)(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,r=e.getBoundingClientRect().height%1;i=e.scrollWidth-t,u=e.scrollHeight-r}let k={...P.style,"--visual-viewport-width":_.width+"px","--visual-viewport-height":_.height+"px","--page-width":void 0!==i?i+"px":void 0,"--page-height":void 0!==u?u+"px":void 0};return a.default.createElement(d.Overlay,{isExiting:t.isExiting,portalContainer:e},a.default.createElement(o.dom.div,{...(0,r.mergeProps)((0,m.filterDOMProps)(t,{global:!0}),S),...P,style:k,ref:t.overlayRef,"data-entering":E||void 0,"data-exiting":t.isExiting||void 0},a.default.createElement(o.Provider,{values:[[N,{modalProps:v,modalRef:p,isExiting:t.isExiting,isDismissable:t.isDismissable}],[s.OverlayTriggerStateContext,f]]},P.children)))}function _(e){let{modalProps:t,modalRef:i,isExiting:n,isDismissable:l}=(0,a.useContext)(N),d=(0,a.useContext)(s.OverlayTriggerStateContext),c=(0,a.useMemo)(()=>(0,p.mergeRefs)(e.modalRef,i),[e.modalRef,i]),h=(0,v.useObjectRef)(c),f=(0,g.useEnterAnimation)(h),x=(0,o.useRenderProps)({...e,defaultClassName:"react-aria-Modal",values:{isEntering:f,isExiting:n,state:d}});return a.default.createElement(o.dom.div,{...(0,r.mergeProps)((0,m.filterDOMProps)(e,{global:!0}),t),...x,ref:h,"data-entering":f||void 0,"data-exiting":n||void 0},l&&a.default.createElement(u.DismissButton,{onDismiss:d.close}),x.children)}var k=e.i(660431),O=e.i(570419),D=e.i(710041),T=e.i(63195),A=e.i(398526),I=e.i(239804);let L=(0,a.createContext)({}),F=({children:e,state:i,...o})=>{let n=(0,a.useMemo)(()=>({slots:t(),placement:void 0}),[]),l=(0,a.useMemo)(()=>i?{isOpen:i.isOpen,onOpenChange:i.setOpen}:{},[i]);return(0,A.jsx)(L,{value:n,children:(0,A.jsx)(s.DialogTrigger,{"data-slot":"modal-root",...(0,r.mergeProps)(o,l),children:e})})},M=Object.assign(F,{Root:F,Trigger:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(L);return(0,A.jsx)(k.Pressable,{children:(0,A.jsx)(D.dom.div,{className:(0,O.composeSlotClassName)(s?.trigger,t),"data-slot":"modal-trigger",role:"button",...r,children:e})})},Backdrop:({children:e,className:r,isDismissable:s=!0,onClick:i,variant:o,...n})=>{let{slots:l}=(0,a.useContext)(L),d=(0,a.useMemo)(()=>t({variant:o}),[o]),c=(0,a.useMemo)(()=>({slots:{...l,...d}}),[l,d]);return(0,A.jsx)(P,{className:(0,O.composeTwRenderProps)(r,d?.backdrop()),"data-slot":"modal-backdrop",isDismissable:s,onClick:e=>{e.stopPropagation(),i?.(e)},...n,children:t=>(0,A.jsxs)(L,{value:c,children:["function"==typeof e?e(t):e," "]})})},Container:({children:e,className:r,placement:s="auto",scroll:i,size:o,...n})=>{let{slots:l}=(0,a.useContext)(L),d=(0,a.useMemo)(()=>t({scroll:i,size:o}),[i,o]),c=(0,a.useMemo)(()=>({placement:s,slots:{...l,...d}}),[l,s,d]);return(0,A.jsx)(E,{className:(0,O.composeTwRenderProps)(r,d?.container()),"data-placement":s,"data-slot":"modal-container",...n,children:t=>(0,A.jsx)(L,{value:c,children:"function"==typeof e?e(t):e})})},Dialog:({children:e,className:t,...r})=>{let{placement:i,slots:o}=(0,a.useContext)(L);return(0,A.jsx)(I.SurfaceContext,{value:{variant:"default"},children:(0,A.jsx)(s.Dialog,{className:(0,O.composeSlotClassName)(o?.dialog,t),"data-placement":i,"data-slot":"modal-dialog",...r,children:e})})},Header:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(L);return(0,A.jsx)(D.dom.div,{className:(0,O.composeSlotClassName)(s?.header,t),"data-slot":"modal-header",...r,children:e})},Icon:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(L);return(0,A.jsx)(D.dom.div,{className:(0,O.composeSlotClassName)(s?.icon,t),"data-slot":"modal-icon",...r,children:e})},Heading:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(L);return(0,A.jsx)(i.Heading,{className:(0,O.composeSlotClassName)(s?.heading,t),"data-slot":"modal-heading",slot:"title",...r,children:e})},Body:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(L);return(0,A.jsx)(D.dom.div,{className:(0,O.composeSlotClassName)(s?.body,t),"data-slot":"modal-body",...r,children:e})},Footer:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(L);return(0,A.jsx)(D.dom.div,{className:(0,O.composeSlotClassName)(s?.footer,t),"data-slot":"modal-footer",...r,children:e})},CloseTrigger:({className:e,...t})=>{let{slots:r}=(0,a.useContext)(L);return(0,A.jsx)(T.CloseButton,{className:(0,O.composeTwRenderProps)(e,r?.closeTrigger()),"data-slot":"modal-close-trigger",slot:"close",...t})}});e.s(["Modal",0,M],753342)},298026,56197,e=>{"use strict";var t=e.i(440912);let r=(0,t.tv)({slots:{base:"radio",content:"radio__content",control:"radio__control",indicator:"radio__indicator"}});var a=e.i(267369),s=e.i(592467),i=e.i(756035),o=e.i(588903),n=e.i(62564),l=e.i(809202),d=e.i(38496),c=e.i(495
3760),u=e.i(832358),m=e.i(349271),h=e.i(664682),p=e.i(776993),f=e.i(811561);let g=new WeakMap;var x=e.i(862696),v=e.i(350491),b=e.i(879669),y=e.i(881601),w=e.i(971160),j=e.i(850690),C=e.i(781732),S=e.i(165483),N=e.i(609216),E=e.i(572693),P=e.i(784524);let R=Math.round(1e10*Math.random()),_=0;var k=e.i(603535),O=e.i(950517),D=e.i(770333),T=e.i(331245);let A=(0,a.createContext)(null),I=(0,a.createContext)(null),L=(0,a.createContext)(null),F=(0,a.forwardRef)(function(e,t){[e,t]=(0,s.useContextProps)(e,t,A);let{validationBehavior:r}=(0,s.useSlottedContext)(o.FormContext)||{},l=e.validationBehavior??r??"native",w=function(e){let t=(0,a.useMemo)(()=>e.name||`radio-group-${R}-${++_}`,[e.name]),[r,s]=(0,P.useControlledState)(e.value,e.defaultValue??null,e.onChange),[i]=(0,a.useState)(r),[o,n]=(0,a.useState)(null),l=(0,E.useFormValidationState)({...e,value:r}),d=l.displayValidation.isInvalid;return{...l,name:t,selectedValue:r,defaultSelectedValue:void 0!==e.value?i:e.defaultValue??null,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||(s(t),l.commitValidation())},lastFocusedValue:o,setLastFocusedValue:n,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(d?"invali
3d":null),isInvalid:d}}({...e,validationBehavior:l}),[j,C]=(0,s.useSlot)(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:S,labelProps:N,descriptionProps:k,errorMessageProps:O,...D}=function(e,t){let{name:r,form:a,isReadOnly:s,isRequired:i,isDisabled:o,orientation:n="vertical",validationBehavior:l="aria"}=e,{direction:d}=(0,y.useLocale)(),{isInvalid:c,validationErrors:w,validationDetails:j}=t.displayValidation,{labelProps:C,fieldProps:S,descriptionProps:N,errorMessageProps:E}=(0,x.useField)({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||w}),P=(0,u.filterDOMProps)(e,{labelable:!0}),{focusWithinProps:R}=(0,v.useFocusWithin)({onBlurWithin(r){e.onBlur?.(r),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),_=(0,b.useId)(r);return g.set(t,{name:_,form:a,descriptionId:N.id,errorMessageId:E.id,validationBehavior:l}),{radioGroupProps:(0,f.mergeProps)(P,{role:"radiogroup",onKeyDown:e=>{let r,a;switch(e.key){case"ArrowRight":r="rtl"===d&&"vertical"!==n?"prev":"next";break;case"ArrowLeft":r="rtl"===d&&"vertical"!==n?"next":"prev";break;case"ArrowDown":r="next";break;case"ArrowUp":r="prev";break;default:return}e.preventDefault();let s=(0,h.getFocusableTreeWalker)(e.currentTarget,{from:(0,m.getEventTarget)(e),accept:e=>e instanceof(0,p.getOwnerWindow)(e).HTMLInputElement&&"radio"===e.type});"next"===r?(a=s.nextNode())||(s.currentNode=e.currentTarget,a=s.firstChild()):(a=s.previousNode())||(s.currentNode=e.currentTarget,a=s.lastChild()),a&&(a.focus(),t.setSelectedValue(a.value))},"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":s||void 0,"aria-required":i||void 0,"aria-disabled":o||void 0,"aria-orientation":n,...S,...R}),labelProps:C,descriptionProps:N,errorMessageProps:E,isInvalid:c,validationErrors:w,validationDetails:j}}({...e,label:C,validationBehavior:l},w),T=(0,s.useRenderProps)({...e,values:{orientation:e.orientation||"vertical",isDisabled:w.isDisabled,isReadOnly:w.isReadOnly,isRequired:w.isRequired,isInvalid:w.isInvalid,state:w},defaultClassName:"react-aria-RadioGroup"}),I=(0,u.filterDOMProps)(e,{global:!0});return a.default.createElement(s.dom.div,{...(0,f.mergeProps)(I,T,S),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":w.isInvalid||void 0,"data-disabled":w.isDisabled||void 0,"data-readonly":w.isReadOnly||void 0,"data-required":w.isRequired||void 0},a.default.createElement(s.Provider,{values:[[L,w],[n.LabelContext,{...N,ref:j,elementType:"span"}],[c.TextContext,{slots:{description:k,errorMessage:O}}],[i.FieldErrorContext,D]]},a.default.createElement(d.SharedElementTransition,null,T.children)))}),M=(0,a.forwardRef)(function(e,t){let{inputRef:r=null,...i}=e;[e,t]=(0,s.useContextProps)(i,t,I);let o=a.default.useContext(L),n=(0,D.useObjectRef)((0,a.useMemo)(()=>(0,N.mergeRefs)(r,void 0!==e.inputRef?e.inputRef:null),[r,e.inputRef])),{labelProps:d,inputProps:c,isSelected:m,isDisabled:h,isPressed:p}=function(e,t,r){let{value:s,children:i,"aria-label":o,"aria-labelledby":n,onPressStart:l,onPressEnd:d,onPressChange:c,onPress:m,onPressUp:h,onClick:p}=e,x=e.isDisabled||t.isDisabled,v=t.selectedValue===s,{pressProps:b,isPressed:y}=(0,S.usePress)({onPressStart:l,onPressEnd:d,onPressChange:c,onPress:m,onPressUp:h,onClick:p,isDisabled:x}),{pressProps:N,isPressed:E}=(0,S.usePress)({onPressStart:l,onPressEnd:d,onPressChange:c,onPressUp:h,onClick:p,isDisabled:x,onPress(e){m?.(e),t.setSelectedValue(s),r.current?.focus()}}),{focusableProps:P}=(0,w.useFocusable)((0,f.mergeProps)(e,{onFocus:()=>t.setLastFocusedValue(s)}),r),R=(0,f.mergeProps)(b,P),_=(0,u.filterDOMProps)(e,{labelable:!0}),k=-1;null!=t.selectedValue?t.selectedValue===s&&(k=0):(t.lastFocusedValue===s||null==t.lastFocusedValue)&&(k=0),x&&(k=void 0);let{name:O,form:D,descriptionId:T,errorMessageId:A,validationBehavior:I}=g.get(t);return(0,j.useFormReset)(r,t.defaultSelectedValue,t.setSelectedValue),(0,C.useFormValidation)({validationBehavior:I},t,r),{labelProps:(0,f.mergeProps)(N,(0,a.useMemo)(()=>({onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault()}),[])),inputProps:(0,f.mergeProps)(_,{...R,type:"radio",name:O,form:D,tabIndex:k,disabled:x,required:t.isRequired&&"native"===I,checked:v,value:s,onChange:e=>{e.stopPropagation(),t.setSelectedValue(s)},"aria-describedby":[e["aria-describedby"],t.isInvalid?A:null,T].filter(
3Boolean).join(" ")||void 0}),isDisabled:x,isSelected:v,isPressed:y||E}}({...(0,s.removeDataAttributes)(e),children:"function"==typeof e.children||e.children},o,n),{isFocused:x,isFocusVisible:v,focusProps:b}=(0,k.useFocusRing)(),y=h||o.isReadOnly,{hoverProps:E,isHovered:P}=(0,O.useHover)({...e,isDisabled:y}),R=(0,s.useRenderProps)({...e,defaultClassName:"react-aria-Radio",values:{isSelected:m,isPressed:p,isHovered:P,isFocused:x,isFocusVisible:v,isDisabled:h,isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isRequired:o.isRequired}}),_=(0,u.filterDOMProps)(e,{global:!0});return delete _.id,delete _.onClick,a.default.createElement(s.dom.label,{...(0,f.mergeProps)(_,d,E,R),ref:t,"data-selected":m||void 0,"data-pressed":p||void 0,"data-hovered":P||void 0,"data-focused":x||void 0,"data-focus-visible":v||void 0,"data-disabled":h||void 0,"data-readonly":o.isReadOnly||void 0,"data-invalid":o.isInvalid||void 0,"data-required":o.isRequired||void 0},a.default.createElement(T.VisuallyHidden,{elementType:"span"},a.default.createElement("input",{...(0,f.mergeProps)(c,b),ref:n})),a.default.createElement(l.SelectionIndicatorContext.Provider,{value:{isSelected:m}},R.children))});var $=e.i(570419),q=e.i(710041),V=e.i(398526);let z=(0,a.createContext)({}),U=({children:e,className:t,...s})=>{let i=a.default.useMemo(()=>r(),[]);return(0,V.jsx)(M,{"data-slot":"radio",...s,className:(0,$.composeTwRenderProps)(t,i.base()),children:t=>(0,V.jsx)(z,{value:{slots:i,state:t},children:"function"==typeof e?e(t):e})})},B=Object.assign(U,{Root:U,Control:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(z);return(0,V.jsx)(q.dom.span,{className:(0,$.composeSlotClassName)(s?.control,t),"data-slot":"radio-control",...r,children:e})},Indicator:({children:e,className:t,...r})=>{let{slots:s,state:i}=(0,a.useContext)(z),o="function"==typeof e?e(i??{}):e;return(0,V.jsx)(q.dom.span,{"aria-hidden":"true",className:(0,$.composeSlotClassName)(s?.indicator,t),"data-slot":"radio-indicator",...r,children:o})},Content:({children:e,className:t,...r})=>{let{slots:s}=(0,a.useContext)(z);return(0,V.jsx)(q.dom.div,{className:(0,$.composeSlotClassName)(s?.content,t),"data-slot":"radio-content",...r,children:e})}});e.s(["Radio",0,B],298026);let W=(0,t.tv)({base:"radio-group",defaultVariants:{variant:"primary"},variants:{variant:{primary:"radio-group--primary",secondary:"radio-group--secondary"}}}),H=({children:e,className:t,variant:r,...s})=>{let i=a.default.useMemo(()=>W({variant:r}),[r]);return(0,V.jsx)(F,{"data-slot":"radio-group",...s,className:(0,$.composeTwRenderProps)(t,i),children:t=>(0,V.jsx)(V.Fragment,{children:"function"==typeof e?e(t):e})})},K=Object.assign(H,{Root:H});e.s(["RadioGroup",0,K],56197)},982407,381880,e=>{"use strict";var t=e.i(398526);e.s(["default",0,function({list:e=[],floating:r=!0,boxed:a=!0,variant:s="primary",className:i="","data-testid":o}){return(0,t.jsx)("dl",{className:`${a?`${"secondary"===s?"bg-surface-secondary":"bg-surface"} rounded-3xl `:""}flex max-w-full ${r?"flex-wrap":"flex-col"} ${i}`,"data-testid":o,children:e.map((e,s)=>(0,t.jsxs)("div",{className:`max-w-full${a?" p-2 px-3":""} wrap-break-word py-2${r?" pr-8":""}`,children:[(0,t.jsx)("dt",{className:"pb-1.5 font-medium",children:e.term}),(0,t.jsx)("dd",{className:"flex flex-wrap gap-1 whitespace-pre-wrap",children:e.definition})]},`item-${s}`))})}],982407),e.s(["default",0,function({title:e,Icon:r,noMargin:a=!1,children:s}){return(0,t.jsxs)("div",{className:`${a?"":"mt-9 mb-3"} flex flex-wrap items-center gap-x-6 gap-y-3 w-full`,children:[(0,t.jsxs)("div",{className:"flex-none max-w-full mr-auto flex items-center",children:[r?(0,t.jsx)(r,{className:"flex-none basis-7 size-7 my-1 fill-current mr-2"}):null,(0,t.jsx)("h2",{className:"flex-1 leading-none text-xl font-medium",children:e})]}),s?(0,t.jsx)("div",{className:"flex-none max-w-full",children:s}):null]})}],381880)},473933,e=>{"use strict";var t=e.i(2862);e.s(["KeyIcon",()=>t.default])},807714,e=>{"use strict";var t=e.i(398526),r=e.i(267369),a=e.i(174536);e.i(172479);var s=e.i(122818),i=e.i(498102);let o=(0,r.createContext)("primary"),n=e=>"secondary"===e?"bg-surface-secondary dark:bg-surface-secondary":"bg-surface dark:bg-surface",l=(0,r.forwardRef)(({children:e,className:r="",onClick:a,"data-testid":s},i)=>(0,t.jsx)("tr",{ref:i,className:` 4 group text-left align-top 5 ${r}`,onClick:a,"data-testid":s,children:e})),d=({children:e,className:a="",fitWidth:s=!1,...i})=>(0,t.jsx)("td",{className:`p-2 px-3 ${n((0,r.useContext)(o))} group-hover:bg-surface 6 wrap-break-word 7 ${s?"w-px whitespace-nowrap":""} 8 ${a}`,...i,children:e}),c="flex min-h-20 flex-col items-center justify-center gap-1 text-center";e.s(["TableBody",0,({children:e,className:r=""})=>(0,t.jsx)("tbody",{className:r,children:e}),"TableCell",0,d,"TableEmptyRow",0,({colSpan:e,message:r,hint:a})=>(0,t.jsx)(l,{children:(0,t.jsx)(d,{colSpan:e,children:(0,t.jsxs)("div",{className:c,"data-testid":"table-empty-row",children:[(0,t.jsx)("p",{className:"max-w-prose font-medium",children:r??"No data to show."}),a?(0,t.jsx)("p",{className:"max-w-prose text-muted",children:a}):null]})})}),"TableErrorRow",0,({colSpan:e,message:r,hint:o,error:n})=>{let u=(0,a.isPermissionDeniedError)(n),m=void 0!==o?o:u?null:"Try reloading the page. If the problem persists, contact support.";return(0,t.jsx)(l,{children:(0,t.jsx)(d,{colSpan:e,children:(0,t.jsxs)("div",{className:`${c} ${u?"text-muted":"text-danger"}`,"data-testid":"table-error-row","data-severity":u?"info":"error",children:[(0,t.jsxs)("p",{className:"max-w-prose flex items-center gap-1.5 font-medium",children:[u?(0,t.jsx)(i.InfoIcon,{className:"size-4 flex-none fill-current"}):(0,t.jsx)(s.ErrorIcon,{className:"size-4 flex-none fill-current"}),r??(u?"You do not have permission to access this data.":"Failed to load data.")]}),m?(0,t.jsx)("p",{className:"max-w-prose text-muted",children:m}):null]})})})},"TableGroupRow",0,({colSpan:e,label:r})=>(0,t.jsx)(l,{children:(0,t.jsx)("th",{scope:"rowgroup",colSpan:e,className:"bg-surface/50 px-3 py-2 text-left text-xs font-semibold tracking-wider","data-testid":"table-group-row",children:r})}),"TableHead",0,({children:e,className:r=""})=>(0,t.jsx)("thead",{className:r,children:e}),"TableHeadCell",0,({children:e,className:a="",fitWidth:s=!1,colSpan:i,scope:l="col",...d})=>(0,t.jsx)("th",{className:`first:rounded-tl-3xl last:rounded-tr-3xl 9 ${n((0,r.useContext)(o))} font-medium p-2 px-3 whitespace-nowrap 10 ${s?"w-px":""} 11 ${a}`,scope:l,colSpan:i||void 0,...d,children:e}),"TableHeadRow",0,({children:e,className:r=""})=>(0,t.jsx)("tr",{className:`text-left ${r}`,children:e}),"TableRow",0,l,"TableSkeletonRows",0,({columns:e,rows:r=3})=>{let a=Math.max(...e);return(0,t.jsx)(t.Fragment,{children:Array.from({length:r},(r,s)=>(0,t.jsx)(l,{"data-testid":"table-skeleton-row",children:e.map((e,r)=>(0,t.jsx)(d,{fitWidth:e!==a,children:(0,t.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",style:{width:`${.25*e}rem`}})},r))},s))})},"default",0,({children:e,className:a="",variant:s="primary",...i})=>{let n=(0,r.useRef)(null),[l,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{var e,t,r;n.current&&(e=n.current.clientWidth,t=n.current.scrollWidth,d((r=n.current.scrollLeft)>0),u(r+e<t))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[n]),(0,t.jsx)(o.Provider,{value:s,children:(0,t.jsx)("div",{className:`relative 12 w-full 13 overflow-hidden 14 before:content-[''] after:content-[''] 15 before:absolute after:absolute 16 before:z-10 after:z-10 17 before:pointer-events-none after:pointer-events-none 18 before:inset-0 after:inset-0 19 before:opacity-0 after:opacity-0 20 before:transition-opacity after:transition-opacity 21 before:bg-scroll-shadow-l after:bg-scroll-shadow-r 22 dark:before:bg-scroll-shadow-dark-l dark:after:bg-scroll-shadow-dark-r 23 ${l?"before:opacity-100":""} 24 ${c?"after:opacity-100":""}`,children:(0,t.jsx)("div",{ref:n,onScroll:e=>{var t,r,a;t=e.currentTarget.clientWidth,r=e.currentTarget.scrollWidth,d((a=e.currentTarget.scrollLeft)>0),u(a+t<r)},className:"w-full overflow-x-auto",children:(0,t.jsx)("table",{className:`min-w-full border-separate border-spacing-0.5 25 table-auto 26 [&>tbody:last-of-type>tr:last-child>td:first-child]:rounded-bl-3xl 27 [&>tbody:last-of-type>tr:last-child>td:last-child]:rounded-br-3xl 28 [&>tbody:has(>tr>th[scope=rowgroup])>tr>td:first-child]:pl-7 29 ${a}`,...i,children:e})})})})}])},11846,423964,e=>{"use strict";var t=e.i(398526),r=e.i(880932),a=e.i(617586);e.i(172479);var s=e.i(188820);e.s(["CloseIcon",()=>s.default],423964);
29var s=s,i=e.i(122818),o=e.i(498102),n=e.i(226151),l=e.i(350277);function d({variant:e}){let r="absolute top-4 left-3 size-5 mt-0.5";switch(e){case"success":return(0,t.jsx)(n.SuccessIcon,{className:`${r} fill-success`});case"warning":return(0,t.jsx)(l.WarningIcon,{className:`${r} fill-warning`});case"error":return(0,t.jsx)(i.ErrorIcon,{className:`${r} fill-danger`})}return(0,t.jsx)(o.InfoIcon,{className:`${r} fill-current`})}e.s(["default",0,function({title:e,customId:i,description:o,variant:n="regular",persistent:l=!0,actionContent:c}){let u={regular:"",success:"text-success",warning:"text-warning",error:"text-danger"};return r.toast.custom(i=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Button,{"aria-label":"Close notification",variant:"tertiary",isIconOnly:!0,className:"[&&]:absolute top-1 right-1",onPress:()=>{r.toast.dismiss(i)},children:(0,t.jsx)(s.default,{className:"size-5 fill-current"})}),(0,t.jsx)(d,{variant:n}),(0,t.jsx)("div",{className:`pr-9 pb-0.5 text-base font-medium ${u[n]} wrap-break-word`,children:e}),o?(0,t.jsx)("div",{className:"pb-1.5",children:o}):null,c?(0,t.jsx)("div",{className:"mt-3 mb-1.5 flex flex-wrap gap-2",children:c}):null]}),{...i&&{id:i},classNames:{toast:`group [width:var(--width)] flex items-end shadow-dropdownmenu 30 bg-surface shadow-small rounded-2xl p-4 pl-10 font`,content:"group-data-[expanded=false]:group-data-[front=false]:opacity-0 max-w-full"},duration:l?1/0:6e3})},"dismissToast",0,function(e){r.toast.dismiss(e)}],11846)}]);
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.