@hotosm/ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +231 -139
- package/dist/chunks/{chunk.GEAU3JJH.js → chunk.252GL6HT.js} +11 -11
- package/dist/chunks/{chunk.BORCUX2M.js → chunk.2Y7OBKRQ.js} +1 -1
- package/dist/chunks/{chunk.AL4CJN73.js → chunk.5QY2VLMG.js} +1 -1
- package/dist/chunks/{chunk.ORZ5STBX.js → chunk.6BGQ256H.js} +2 -2
- package/dist/chunks/{chunk.SBUFNOMY.js → chunk.7JIKOYG6.js} +1 -1
- package/dist/chunks/{chunk.3LBUXCAP.js → chunk.APYFF2XE.js} +1 -1
- package/dist/chunks/{chunk.XEZQ5ZRE.js → chunk.BVHLTKMC.js} +1 -1
- package/dist/chunks/chunk.CNUZFRRF.js +105 -0
- package/dist/chunks/{chunk.LHZ7Q2M3.js → chunk.FDQFFQX3.js} +5 -5
- package/dist/chunks/chunk.FN6G7X23.js +251 -0
- package/dist/chunks/{chunk.OICCPCO3.js → chunk.IILWGAOM.js} +1 -1
- package/dist/chunks/{chunk.G6ZZSFVM.js → chunk.JYPMFVPO.js} +1 -1
- package/dist/chunks/chunk.LKMWWUYT.js +20 -0
- package/dist/chunks/{chunk.BD4Q32VT.js → chunk.LVCDAVRU.js} +4 -4
- package/dist/chunks/{chunk.ARF626EG.js → chunk.LXN3PNAP.js} +1 -1
- package/dist/chunks/chunk.P6GWPFCT.js +32 -0
- package/dist/chunks/{chunk.7BVHA4G6.js → chunk.X354U5TL.js} +3 -3
- package/dist/chunks/{chunk.7PROWJNJ.js → chunk.XU6UFL27.js} +4 -4
- package/dist/chunks/{chunk.MZOQNTPX.js → chunk.ZGC6XD6L.js} +37 -56
- package/dist/components/consent/consent.component.d.ts +0 -3
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/consent/consent.styles.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.component.d.ts +0 -2
- package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -1
- package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +0 -4
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/list-card/list-card.component.d.ts +0 -1
- package/dist/components/list-card/list-card.component.js +1 -1
- package/dist/components/list-card/list-card.js +1 -1
- package/dist/components/list-card/list-card.styles.js +1 -1
- package/dist/components/logo/logo.component.js +1 -1
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/tool-menu/tool-menu.component.d.ts +0 -3
- package/dist/components/tool-menu/tool-menu.component.js +1 -1
- package/dist/components/tool-menu/tool-menu.js +1 -1
- package/dist/components/tool-menu/tool-menu.styles.js +1 -1
- package/dist/components/tracking/tracking.component.d.ts +0 -3
- package/dist/components/tracking/tracking.component.js +1 -1
- package/dist/components/tracking/tracking.js +1 -1
- package/dist/hotosm-ui.js +1 -1
- package/dist/style-core.css +1 -0
- package/dist/style.css +1 -14
- package/dist/themes/hot-wa.css +152 -115
- package/dist/themes/hot.css +1 -1
- package/package.json +5 -3
- package/dist/chunks/chunk.CQO3GWTI.js +0 -32
- package/dist/chunks/chunk.PLECT4NZ.js +0 -20
- package/dist/chunks/chunk.U4AAC5ID.js +0 -239
- package/dist/chunks/chunk.WTTPHBL3.js +0 -105
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as Wn,b as Fn}from"./chunk.LHZ7Q2M3.js";import{a as Rn}from"./chunk.KO4EOD3I.js";import{a as Ne}from"./chunk.ZETV7TDG.js";import{d as Re,f as jn}from"./chunk.QABMDRWR.js";import{a as zn,d as Me,e as De,f as Le,g as Ue}from"./chunk.N2W26RCT.js";import"@awesome.me/webawesome/dist/components/tab-group/tab-group.js";import"@awesome.me/webawesome/dist/components/dialog/dialog.js";import"@awesome.me/webawesome/dist/components/icon/icon.js";import"@awesome.me/webawesome/dist/components/drawer/drawer.js";var ta={6:(n,t,e)=>{e.d(t,{en:()=>o});let o={headlines:{error:"An error has occurred",loginEmail:"Sign in or create account",loginEmailNoSignup:"Sign in",loginFinished:"Login successful",loginPasscode:"Enter passcode",loginPassword:"Enter password",registerAuthenticator:"Create a passkey",registerConfirm:"Create account?",registerPassword:"Set new password",otpSetUp:"Set up authenticator app",profileEmails:"Emails",profilePassword:"Password",profilePasskeys:"Passkeys",isPrimaryEmail:"Primary email address",setPrimaryEmail:"Set primary email address",createEmail:"Enter a new email",createUsername:"Enter a new username",emailVerified:"Verified",emailUnverified:"Unverified",emailDelete:"Delete",renamePasskey:"Rename passkey",deletePasskey:"Delete passkey",lastUsedAt:"Last used at",createdAt:"Created at",connectedAccounts:"Connected accounts",deleteAccount:"Delete account",accountNotFound:"Account not found",signIn:"Sign in",signUp:"Create account",selectLoginMethod:"Select login method",setupLoginMethod:"Set up login method",lastUsed:"Last seen",ipAddress:"IP address",revokeSession:"Revoke session",profileSessions:"Sessions",mfaSetUp:"Set up MFA",securityKeySetUp:"Add security key",securityKeyLogin:"Security key",otpLogin:"Authentication code",renameSecurityKey:"Rename security key",deleteSecurityKey:"Delete security key",securityKeys:"Security keys",authenticatorApp:"Authenticator app",authenticatorAppAlreadySetUp:"Authenticator app is set up",authenticatorAppNotSetUp:"Set up authenticator app",trustDevice:"Trust this browser?",deleteIdentity:"Delete connection"},texts:{enterPasscode:"Enter the passcode sent to your email address.",enterPasscodeNoEmail:"Enter the passcode that was sent to your primary email address.",setupPasskey:"Sign in to your account easily and securely with a passkey. Note: Your biometric data is only stored on your devices and will never be shared with anyone.",createAccount:'No account exists for "{emailAddress}". Do you want to create a new account?',otpEnterVerificationCode:"Enter the one-time password (OTP) obtained from your authenticator app below:",otpScanQRCode:"Scan the QR code using your authenticator app (such as Google Authenticator or any other TOTP app). Alternatively, you can manually enter the OTP secret key into the app.",otpSecretKey:"OTP secret key",passwordFormatHint:"Must be between {minLength} and {maxLength} characters long.",securityKeySetUp:"Use a dedicated security key via USB, Bluetooth, or NFC, or your mobile phone. Connect or activate your security key, then click the button below and follow the prompts to complete the registration.",setPrimaryEmail:"Set this email address to be used for contacting you.",isPrimaryEmail:"This email address will be used to contact you if necessary.",emailVerified:"This email address has been verified.",emailUnverified:"This email address has not been verified.",emailDelete:"If you delete this email address, it can no longer be used to sign in.",renamePasskey:"Set a name for the passkey.",deletePasskey:"Delete this passkey from your account.",deleteAccount:"Are you sure you want to delete this account? All data will be deleted immediately and cannot be recovered.",noAccountExists:'No account exists for "{emailAddress}".',selectLoginMethodForFutureLogins:"Select one of the following login methods to use for future logins.",howDoYouWantToLogin:"How do you want to login?",mfaSetUp:"Protect your account with Multi-Factor Authentication (MFA). MFA adds an additional step to your login process, ensuring that even if your password or email account is compromised, your account stays secure.",securityKeyLogin:"Connect or activate your security key, then click the button below. Once ready, use it via USB, NFC, your mobile phone. Follow the prompts to complete the login process.",otpLogin:"Open your authenticator app to obtain the one-time password (OTP). Enter the code in the field below to complete your login.",renameSecurityKey:"Set a name for the security key.",deleteSecurityKey:"Delete this security key from your account.",authenticatorAppAlreadySetUp:"Your account is secured with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",authenticatorAppNotSetUp:"Secure your account with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",trustDevice:"If you trust this browser, you won\u2019t need to enter your OTP (One-Time-Password) or use your security key for multi-factor authentication (MFA) the next time you log in."},labels:{or:"or",no:"no",yes:"yes",email:"Email",continue:"Continue",copied:"copied",skip:"Skip",save:"Save",password:"Password",passkey:"Passkey",passcode:"Passcode",signInPassword:"Sign in with a password",signInPasscode:"Sign in with a passcode",forgotYourPassword:"Forgot your password?",back:"Back",signInPasskey:"Sign in with a passkey",registerAuthenticator:"Create a passkey",signIn:"Sign in",signUp:"Create account",sendNewPasscode:"Send new code",passwordRetryAfter:"Retry in {passwordRetryAfter}",passcodeResendAfter:"Request a new code in {passcodeResendAfter}",unverifiedEmail:"unverified",primaryEmail:"primary",setAsPrimaryEmail:"Set as primary",verify:"Verify",delete:"Delete",newEmailAddress:"New email address",newPassword:"New password",rename:"Rename",newPasskeyName:"New passkey name",addEmail:"Add email",createPasskey:"Create a passkey",webauthnUnsupported:"Passkeys are not supported by your browser",signInWith:"Continue with {provider}",deleteAccount:"Yes, delete this account.",emailOrUsername:"Email or username",username:"Username",optional:"optional",dontHaveAnAccount:"Don't have an account?",alreadyHaveAnAccount:"Already have an account?",changeUsername:"Change username",setUsername:"Set username",changePassword:"Change password",setPassword:"Set password",revoke:"Revoke",currentSession:"Current session",authenticatorApp:"Authenticator app",securityKey:"Security key",securityKeyUse:"Use security key",newSecurityKeyName:"New security key name",createSecurityKey:"Add a security key",authenticatorAppManage:"Manage authenticator app",authenticatorAppAdd:"Set up",configured:"configured",useAnotherMethod:"Use another method",lastUsed:"Last used",trustDevice:"Trust this browser",staySignedIn:"Stay signed in",connectAccount:"Connect account"},errors:{somethingWentWrong:"A technical error has occurred. Please try again later.",requestTimeout:"The request timed out.",invalidPassword:"Wrong email or password.",invalidPasscode:"The passcode provided was not correct.",passcodeAttemptsReached:"The passcode was entered incorrectly too many times. Please request a new code.",tooManyRequests:"Too many requests have been made. Please wait to repeat the requested operation.",unauthorized:"Your session has expired. Please log in again.",invalidWebauthnCredential:"This passkey cannot be used anymore.",passcodeExpired:"The passcode has expired. Please request a new one.",userVerification:"User verification required. Please ensure your authenticator device is protected with a PIN or biometric.",emailAddressAlreadyExistsError:"The email address already exists.",maxNumOfEmailAddressesReached:"No further email addresses can be added.",thirdPartyAccessDenied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons.",thirdPartyMultipleAccounts:"Cannot identify account. The email address is used by multiple accounts.",thirdPartyUnverifiedEmail:"Email verification required. Please verify the used email address with your provider.",signupDisabled:"Account registration is disabled.",handlerNotFoundError:"The current step in your process is not supported by this application version. Please try again later or contact support if the issue persists."},flowErrors:{technical_error:"A technical error has occurred. Please try again later.",flow_expired_error:"The session has expired, please click the button to restart.",value_invalid_error:"The entered value is invalid.",passcode_invalid:"The passcode provided was not correct.",passkey_invalid:"This passkey cannot be used anymore.",passcode_max_attempts_reached:"The passcode was entered incorrectly too many times. Please request a new code.",rate_limit_exceeded:"Too many requests have been made. Please wait to repeat the requested operation.",unknown_username_error:"The username is unknown.",unknown_email_error:"The email address is unknown.",username_already_exists:"The username is already taken.",invalid_username_error:"The username must contain only letters, numbers, and underscores.",email_already_exists:"The email is already taken.",not_found:"The requested resource was not found.",operation_not_permitted_error:"The operation is not permitted.",flow_discontinuity_error:"The process cannot be continued due to user settings or the provider's configuration.",form_data_invalid_error:"The submitted form data contains errors.",unauthorized:"Your session has expired. Please log in again.",value_missing_error:"The value is missing.",value_too_long_error:"Value is too long.",value_too_short_error:"The value is too short.",webauthn_credential_invalid_mfa_only:"This credential can be used as a second factor security key only.",webauthn_credential_already_exists:"The request either timed out, was canceled or the device is already registered. Please try again or try using another device.",platform_authenticator_required:"Your account is configured to use platform authenticators, but your current device or browser does not support this feature. Please try again with a compatible device or browser.",third_party_access_denied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons."}}},7:function(n,t,e){(function(o,r,i){function l(m,_){return[m,!m||m.endsWith("/")?"":"/",_,".json"].join("")}function d(m,_){let k=m;return _&&Object.keys(_).forEach(w=>{let x=_[w],C=new RegExp(`{${w}}`,"gm");k=k.replace(C,x.toString())}),k}function u(m,_,k){let w=m[_];if(!w)return k;let x=k.split("."),C="";do{C+=x.shift();let R=w[C];R===void 0||typeof R!="object"&&x.length?x.length?C+=".":w=k:(w=R,C="")}while(x.length);return w}let s={},c={root:"",lang:"en",fallbackLang:"en"},v=r.createContext(null);o.TranslateContext=v,o.TranslateProvider=m=>{let{t:_,setLang:k,lang:w,isReady:x}=(function(C,R){C=Object.assign({},c,C),s=R||s;let[P,L]=i.useState(C.lang),[N,j]=i.useState(s),[V,K]=i.useState(!1),Z=i.useCallback(async U=>{if(!N[U]){K(!1);try{let ce=l(C.root,U),ve=await fetch(ce);s[U]=await ve.json()}catch(ce){console.error(`Failed to load language data for ${U}:`,ce)}finally{j(zn({},s)),K(!0)}}},[N,C.root]);i.useEffect(()=>{(async()=>(await Z(C.fallbackLang),await Z(P)))()},[P,Z,C.fallbackLang]);let ne=i.useMemo(()=>(U,ce)=>{if(!N.hasOwnProperty(P))return U;let ve=u(N,P,U);return ve===U&&P!==C.fallbackLang&&(ve=u(N,C.fallbackLang,U)),d(ve,ce)},[N,P,C.fallbackLang]);return{lang:P,setLang:L,t:ne,isReady:V}})({root:m.root||"assets",lang:m.lang||"en",fallbackLang:m.fallbackLang||"en"},m.translations);return r.h(v.Provider,{value:{t:_,setLang:k,lang:w,isReady:x}},m.children)},o.format=d,o.getResourceUrl=l,o.getValue=u,Object.defineProperty(o,"__esModule",{value:!0})})(t,e(616),e(78))},8:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_otpCreationDetails{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);display:flex;justify-content:center;align-items:center;flex-direction:column;font-size:smaller}",""]),l.locals={otpCreationDetails:"hanko_otpCreationDetails"};let d=l},78:(n,t,e)=>{e.r(t),e.d(t,{useCallback:()=>Z,useContext:()=>ne,useDebugValue:()=>U,useEffect:()=>L,useErrorBoundary:()=>ce,useId:()=>ve,useImperativeHandle:()=>V,useLayoutEffect:()=>N,useMemo:()=>K,useReducer:()=>P,useRef:()=>j,useState:()=>R});var o,r,i,l,d=e(616),u=0,s=[],c=d.options,v=c.__b,m=c.__r,_=c.diffed,k=c.__c,w=c.unmount,x=c.__;function C(I,E){c.__h&&c.__h(r,I,u||E),u=0;var M=r.__H||(r.__H={__:[],__h:[]});return I>=M.__.length&&M.__.push({}),M.__[I]}function R(I){return u=1,P(Xe,I)}function P(I,E,M){var $=C(o++,2);if($.t=I,!$.__c&&($.__=[M?M(E):Xe(void 0,E),function(oe){var ke=$.__N?$.__N[0]:$.__[0],qe=$.t(ke,oe);ke!==qe&&($.__N=[qe,$.__[1]],$.__c.setState({}))}],$.__c=r,!r.__f)){var F=function(oe,ke,qe){if(!$.__c.__H)return!0;var et=$.__c.__H.__.filter(function(je){return!!je.__c});if(et.every(function(je){return!je.__N}))return!W||W.call(this,oe,ke,qe);var ct=$.__c.props!==oe;return et.forEach(function(je){if(je.__N){var sn=je.__[0];je.__=je.__N,je.__N=void 0,sn!==je.__[0]&&(ct=!0)}}),W&&W.call(this,oe,ke,qe)||ct};r.__f=!0;var W=r.shouldComponentUpdate,ye=r.componentWillUpdate;r.componentWillUpdate=function(oe,ke,qe){if(this.__e){var et=W;W=void 0,F(oe,ke,qe),W=et}ye&&ye.call(this,oe,ke,qe)},r.shouldComponentUpdate=F}return $.__N||$.__}function L(I,E){var M=C(o++,3);!c.__s&&Ye(M.__H,E)&&(M.__=I,M.u=E,r.__H.__h.push(M))}function N(I,E){var M=C(o++,4);!c.__s&&Ye(M.__H,E)&&(M.__=I,M.u=E,r.__h.push(M))}function j(I){return u=5,K(function(){return{current:I}},[])}function V(I,E,M){u=6,N(function(){if(typeof I=="function"){var $=I(E());return function(){I(null),$&&typeof $=="function"&&$()}}if(I)return I.current=E(),function(){return I.current=null}},M==null?M:M.concat(I))}function K(I,E){var M=C(o++,7);return Ye(M.__H,E)&&(M.__=I(),M.__H=E,M.__h=I),M.__}function Z(I,E){return u=8,K(function(){return I},E)}function ne(I){var E=r.context[I.__c],M=C(o++,9);return M.c=I,E?(M.__==null&&(M.__=!0,E.sub(r)),E.props.value):I.__}function U(I,E){c.useDebugValue&&c.useDebugValue(E?E(I):I)}function ce(I){var E=C(o++,10),M=R();return E.__=I,r.componentDidCatch||(r.componentDidCatch=function($,F){E.__&&E.__($,F),M[1]($)}),[M[0],function(){M[1](void 0)}]}function ve(){var I=C(o++,11);if(!I.__){for(var E=r.__v;E!==null&&!E.__m&&E.__!==null;)E=E.__;var M=E.__m||(E.__m=[0,0]);I.__="P"+M[0]+"-"+M[1]++}return I.__}function xe(){for(var I;I=s.shift();)if(I.__P&&I.__H)try{I.__H.__h.forEach(ue),I.__H.__h.forEach(Te),I.__H.__h=[]}catch(E){I.__H.__h=[],c.__e(E,I.__v)}}c.__b=function(I){r=null,v&&v(I)},c.__=function(I,E){I&&E.__k&&E.__k.__m&&(I.__m=E.__k.__m),x&&x(I,E)},c.__r=function(I){m&&m(I),o=0;var E=(r=I.__c).__H;E&&(i===r?(E.__h=[],r.__h=[],E.__.forEach(function(M){M.__N&&(M.__=M.__N),M.u=M.__N=void 0})):(E.__h.forEach(ue),E.__h.forEach(Te),E.__h=[],o=0)),i=r},c.diffed=function(I){_&&_(I);var E=I.__c;E&&E.__H&&(E.__H.__h.length&&(s.push(E)!==1&&l===c.requestAnimationFrame||((l=c.requestAnimationFrame)||pe)(xe)),E.__H.__.forEach(function(M){M.u&&(M.__H=M.u),M.u=void 0})),i=r=null},c.__c=function(I,E){E.some(function(M){try{M.__h.forEach(ue),M.__h=M.__h.filter(function($){return!$.__||Te($)})}catch($){E.some(function(F){F.__h&&(F.__h=[])}),E=[],c.__e($,M.__v)}}),k&&k(I,E)},c.unmount=function(I){w&&w(I);var E,M=I.__c;M&&M.__H&&(M.__H.__.forEach(function($){try{ue($)}catch(F){E=F}}),M.__H=void 0,E&&c.__e(E,M.__v))};var Pe=typeof requestAnimationFrame=="function";function pe(I){var E,M=function(){clearTimeout($),Pe&&cancelAnimationFrame(E),setTimeout(I)},$=setTimeout(M,35);Pe&&(E=requestAnimationFrame(M))}function ue(I){var E=r,M=I.__c;typeof M=="function"&&(I.__c=void 0,M()),r=E}function Te(I){var E=r;I.__c=I.__(),r=E}function Ye(I,E){return!I||I.length!==E.length||E.some(function(M,$){return M!==I[$]})}function Xe(I,E){return typeof E=="function"?E(I):E}},88:n=>{n.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},193:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_paragraph{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);text-align:left;word-break:break-word}.hanko_paragraph.hanko_center{align-items:center}.hanko_paragraph.hanko_column{display:flex;flex-direction:column;width:100%}",""]),l.locals={paragraph:"hanko_paragraph",center:"hanko_center",column:"hanko_column"};let d=l},217:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_errorBox{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);color:var(--error-color, #e82020);background:var(--background-color, white);margin:var(--item-margin, 0.5rem 0);display:flex;align-items:start;box-sizing:border-box;line-height:1.5rem;padding:.25em;gap:.2em}.hanko_errorBox>span{display:inline-flex}.hanko_errorBox>span:first-child{padding:.25em 0 .25em .19em}.hanko_errorBox[hidden]{display:none}.hanko_errorMessage{color:var(--error-color, #e82020)}",""]),l.locals={errorBox:"hanko_errorBox",errorMessage:"hanko_errorMessage"};let d=l},292:n=>{var t=[];function e(i){for(var l=-1,d=0;d<t.length;d++)if(t[d].identifier===i){l=d;break}return l}function o(i,l){for(var d={},u=[],s=0;s<i.length;s++){var c=i[s],v=l.base?c[0]+l.base:c[0],m=d[v]||0,_="".concat(v," ").concat(m);d[v]=m+1;var k=e(_),w={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(k!==-1)t[k].references++,t[k].updater(w);else{var x=r(w,l);l.byIndex=s,t.splice(s,0,{identifier:_,updater:x,references:1})}u.push(_)}return u}function r(i,l){var d=l.domAPI(l);return d.update(i),function(u){if(u){if(u.css===i.css&&u.media===i.media&&u.sourceMap===i.sourceMap&&u.supports===i.supports&&u.layer===i.layer)return;d.update(i=u)}else d.remove()}}n.exports=function(i,l){var d=o(i=i||[],l=l||{});return function(u){u=u||[];for(var s=0;s<d.length;s++){var c=e(d[s]);t[c].references--}for(var v=o(u,l),m=0;m<d.length;m++){var _=e(d[m]);t[_].references===0&&(t[_].updater(),t.splice(_,1))}d=v}}},313:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_icon,.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner,.hanko_exclamationMark,.hanko_checkmark{display:inline-block;fill:var(--brand-contrast-color, white);width:18px}.hanko_icon.hanko_secondary,.hanko_loadingSpinnerWrapper .hanko_secondary.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_secondary.hanko_loadingSpinner,.hanko_secondary.hanko_exclamationMark,.hanko_secondary.hanko_checkmark{fill:var(--color, #333333)}.hanko_icon.hanko_disabled,.hanko_loadingSpinnerWrapper .hanko_disabled.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_disabled.hanko_loadingSpinner,.hanko_disabled.hanko_exclamationMark,.hanko_disabled.hanko_checkmark{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark{fill:var(--brand-color, #506cf0)}.hanko_checkmark.hanko_secondary{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark.hanko_fadeOut{animation:hanko_fadeOut ease-out 1.5s forwards !important}@keyframes hanko_fadeOut{0%{opacity:1}100%{opacity:0}}.hanko_exclamationMark{fill:var(--error-color, #e82020)}.hanko_loadingSpinnerWrapperIcon{width:100%;column-gap:10px;margin-left:10px}.hanko_loadingSpinnerWrapper,.hanko_loadingSpinnerWrapperIcon{display:inline-flex;align-items:center;height:100%;margin:0 5px;justify-content:inherit;flex-wrap:inherit}.hanko_loadingSpinnerWrapper.hanko_centerContent,.hanko_centerContent.hanko_loadingSpinnerWrapperIcon{justify-content:center}.hanko_loadingSpinnerWrapper.hanko_maxWidth,.hanko_maxWidth.hanko_loadingSpinnerWrapperIcon{width:100%}.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner{fill:var(--brand-color, #506cf0);animation:hanko_spin 500ms ease-in-out infinite}.hanko_loadingSpinnerWrapper.hanko_secondary,.hanko_secondary.hanko_loadingSpinnerWrapperIcon{fill:var(--color-shade-1, #8f9095)}@keyframes hanko_spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.hanko_googleIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_googleIcon.hanko_blue{fill:#4285f4}.hanko_googleIcon.hanko_green{fill:#34a853}.hanko_googleIcon.hanko_yellow{fill:#fbbc05}.hanko_googleIcon.hanko_red{fill:#ea4335}.hanko_microsoftIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_microsoftIcon.hanko_blue{fill:#00a4ef}.hanko_microsoftIcon.hanko_green{fill:#7fba00}.hanko_microsoftIcon.hanko_yellow{fill:#ffb900}.hanko_microsoftIcon.hanko_red{fill:#f25022}.hanko_facebookIcon.hanko_outline{fill:#0866ff}.hanko_facebookIcon.hanko_disabledOutline{fill:var(--color-shade-1, #8f9095)}.hanko_facebookIcon.hanko_letter{fill:#fff}.hanko_facebookIcon.hanko_disabledLetter{fill:var(--color-shade-2, #e5e6ef)}",""]),l.locals={icon:"hanko_icon",loadingSpinnerWrapper:"hanko_loadingSpinnerWrapper",loadingSpinner:"hanko_loadingSpinner",loadingSpinnerWrapperIcon:"hanko_loadingSpinnerWrapperIcon",exclamationMark:"hanko_exclamationMark",checkmark:"hanko_checkmark",secondary:"hanko_secondary",disabled:"hanko_disabled",fadeOut:"hanko_fadeOut",centerContent:"hanko_centerContent",maxWidth:"hanko_maxWidth",spin:"hanko_spin",googleIcon:"hanko_googleIcon",blue:"hanko_blue",green:"hanko_green",yellow:"hanko_yellow",red:"hanko_red",microsoftIcon:"hanko_microsoftIcon",facebookIcon:"hanko_facebookIcon",outline:"hanko_outline",disabledOutline:"hanko_disabledOutline",letter:"hanko_letter",disabledLetter:"hanko_disabledLetter"};let d=l},314:n=>{n.exports=function(t){var e=[];return e.toString=function(){return this.map(function(o){var r="",i=o[5]!==void 0;return o[4]&&(r+="@supports (".concat(o[4],") {")),o[2]&&(r+="@media ".concat(o[2]," {")),i&&(r+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),r+=t(o),i&&(r+="}"),o[2]&&(r+="}"),o[4]&&(r+="}"),r}).join("")},e.i=function(o,r,i,l,d){typeof o=="string"&&(o=[[null,o,void 0]]);var u={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];c!=null&&(u[c]=!0)}for(var v=0;v<o.length;v++){var m=[].concat(o[v]);i&&u[m[0]]||(d!==void 0&&(m[5]===void 0||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=d),r&&(m[2]&&(m[1]="@media ".concat(m[2]," {").concat(m[1],"}")),m[2]=r),l&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=l):m[4]="".concat(l)),e.push(m))}},e}},360:n=>{var t,e=(t=[],function(i,l){return t[i]=l,t.filter(Boolean).join(`
|
|
1
|
+
import{a as Ne}from"./chunk.ZETV7TDG.js";import{a as Rn}from"./chunk.KO4EOD3I.js";import{a as Wn,b as Fn}from"./chunk.FDQFFQX3.js";import{d as Re,f as jn}from"./chunk.QABMDRWR.js";import{a as zn,d as Me,e as De,f as Le,g as Ue}from"./chunk.N2W26RCT.js";var ta={6:(n,t,e)=>{e.d(t,{en:()=>o});let o={headlines:{error:"An error has occurred",loginEmail:"Sign in or create account",loginEmailNoSignup:"Sign in",loginFinished:"Login successful",loginPasscode:"Enter passcode",loginPassword:"Enter password",registerAuthenticator:"Create a passkey",registerConfirm:"Create account?",registerPassword:"Set new password",otpSetUp:"Set up authenticator app",profileEmails:"Emails",profilePassword:"Password",profilePasskeys:"Passkeys",isPrimaryEmail:"Primary email address",setPrimaryEmail:"Set primary email address",createEmail:"Enter a new email",createUsername:"Enter a new username",emailVerified:"Verified",emailUnverified:"Unverified",emailDelete:"Delete",renamePasskey:"Rename passkey",deletePasskey:"Delete passkey",lastUsedAt:"Last used at",createdAt:"Created at",connectedAccounts:"Connected accounts",deleteAccount:"Delete account",accountNotFound:"Account not found",signIn:"Sign in",signUp:"Create account",selectLoginMethod:"Select login method",setupLoginMethod:"Set up login method",lastUsed:"Last seen",ipAddress:"IP address",revokeSession:"Revoke session",profileSessions:"Sessions",mfaSetUp:"Set up MFA",securityKeySetUp:"Add security key",securityKeyLogin:"Security key",otpLogin:"Authentication code",renameSecurityKey:"Rename security key",deleteSecurityKey:"Delete security key",securityKeys:"Security keys",authenticatorApp:"Authenticator app",authenticatorAppAlreadySetUp:"Authenticator app is set up",authenticatorAppNotSetUp:"Set up authenticator app",trustDevice:"Trust this browser?",deleteIdentity:"Delete connection"},texts:{enterPasscode:"Enter the passcode sent to your email address.",enterPasscodeNoEmail:"Enter the passcode that was sent to your primary email address.",setupPasskey:"Sign in to your account easily and securely with a passkey. Note: Your biometric data is only stored on your devices and will never be shared with anyone.",createAccount:'No account exists for "{emailAddress}". Do you want to create a new account?',otpEnterVerificationCode:"Enter the one-time password (OTP) obtained from your authenticator app below:",otpScanQRCode:"Scan the QR code using your authenticator app (such as Google Authenticator or any other TOTP app). Alternatively, you can manually enter the OTP secret key into the app.",otpSecretKey:"OTP secret key",passwordFormatHint:"Must be between {minLength} and {maxLength} characters long.",securityKeySetUp:"Use a dedicated security key via USB, Bluetooth, or NFC, or your mobile phone. Connect or activate your security key, then click the button below and follow the prompts to complete the registration.",setPrimaryEmail:"Set this email address to be used for contacting you.",isPrimaryEmail:"This email address will be used to contact you if necessary.",emailVerified:"This email address has been verified.",emailUnverified:"This email address has not been verified.",emailDelete:"If you delete this email address, it can no longer be used to sign in.",renamePasskey:"Set a name for the passkey.",deletePasskey:"Delete this passkey from your account.",deleteAccount:"Are you sure you want to delete this account? All data will be deleted immediately and cannot be recovered.",noAccountExists:'No account exists for "{emailAddress}".',selectLoginMethodForFutureLogins:"Select one of the following login methods to use for future logins.",howDoYouWantToLogin:"How do you want to login?",mfaSetUp:"Protect your account with Multi-Factor Authentication (MFA). MFA adds an additional step to your login process, ensuring that even if your password or email account is compromised, your account stays secure.",securityKeyLogin:"Connect or activate your security key, then click the button below. Once ready, use it via USB, NFC, your mobile phone. Follow the prompts to complete the login process.",otpLogin:"Open your authenticator app to obtain the one-time password (OTP). Enter the code in the field below to complete your login.",renameSecurityKey:"Set a name for the security key.",deleteSecurityKey:"Delete this security key from your account.",authenticatorAppAlreadySetUp:"Your account is secured with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",authenticatorAppNotSetUp:"Secure your account with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",trustDevice:"If you trust this browser, you won\u2019t need to enter your OTP (One-Time-Password) or use your security key for multi-factor authentication (MFA) the next time you log in."},labels:{or:"or",no:"no",yes:"yes",email:"Email",continue:"Continue",copied:"copied",skip:"Skip",save:"Save",password:"Password",passkey:"Passkey",passcode:"Passcode",signInPassword:"Sign in with a password",signInPasscode:"Sign in with a passcode",forgotYourPassword:"Forgot your password?",back:"Back",signInPasskey:"Sign in with a passkey",registerAuthenticator:"Create a passkey",signIn:"Sign in",signUp:"Create account",sendNewPasscode:"Send new code",passwordRetryAfter:"Retry in {passwordRetryAfter}",passcodeResendAfter:"Request a new code in {passcodeResendAfter}",unverifiedEmail:"unverified",primaryEmail:"primary",setAsPrimaryEmail:"Set as primary",verify:"Verify",delete:"Delete",newEmailAddress:"New email address",newPassword:"New password",rename:"Rename",newPasskeyName:"New passkey name",addEmail:"Add email",createPasskey:"Create a passkey",webauthnUnsupported:"Passkeys are not supported by your browser",signInWith:"Continue with {provider}",deleteAccount:"Yes, delete this account.",emailOrUsername:"Email or username",username:"Username",optional:"optional",dontHaveAnAccount:"Don't have an account?",alreadyHaveAnAccount:"Already have an account?",changeUsername:"Change username",setUsername:"Set username",changePassword:"Change password",setPassword:"Set password",revoke:"Revoke",currentSession:"Current session",authenticatorApp:"Authenticator app",securityKey:"Security key",securityKeyUse:"Use security key",newSecurityKeyName:"New security key name",createSecurityKey:"Add a security key",authenticatorAppManage:"Manage authenticator app",authenticatorAppAdd:"Set up",configured:"configured",useAnotherMethod:"Use another method",lastUsed:"Last used",trustDevice:"Trust this browser",staySignedIn:"Stay signed in",connectAccount:"Connect account"},errors:{somethingWentWrong:"A technical error has occurred. Please try again later.",requestTimeout:"The request timed out.",invalidPassword:"Wrong email or password.",invalidPasscode:"The passcode provided was not correct.",passcodeAttemptsReached:"The passcode was entered incorrectly too many times. Please request a new code.",tooManyRequests:"Too many requests have been made. Please wait to repeat the requested operation.",unauthorized:"Your session has expired. Please log in again.",invalidWebauthnCredential:"This passkey cannot be used anymore.",passcodeExpired:"The passcode has expired. Please request a new one.",userVerification:"User verification required. Please ensure your authenticator device is protected with a PIN or biometric.",emailAddressAlreadyExistsError:"The email address already exists.",maxNumOfEmailAddressesReached:"No further email addresses can be added.",thirdPartyAccessDenied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons.",thirdPartyMultipleAccounts:"Cannot identify account. The email address is used by multiple accounts.",thirdPartyUnverifiedEmail:"Email verification required. Please verify the used email address with your provider.",signupDisabled:"Account registration is disabled.",handlerNotFoundError:"The current step in your process is not supported by this application version. Please try again later or contact support if the issue persists."},flowErrors:{technical_error:"A technical error has occurred. Please try again later.",flow_expired_error:"The session has expired, please click the button to restart.",value_invalid_error:"The entered value is invalid.",passcode_invalid:"The passcode provided was not correct.",passkey_invalid:"This passkey cannot be used anymore.",passcode_max_attempts_reached:"The passcode was entered incorrectly too many times. Please request a new code.",rate_limit_exceeded:"Too many requests have been made. Please wait to repeat the requested operation.",unknown_username_error:"The username is unknown.",unknown_email_error:"The email address is unknown.",username_already_exists:"The username is already taken.",invalid_username_error:"The username must contain only letters, numbers, and underscores.",email_already_exists:"The email is already taken.",not_found:"The requested resource was not found.",operation_not_permitted_error:"The operation is not permitted.",flow_discontinuity_error:"The process cannot be continued due to user settings or the provider's configuration.",form_data_invalid_error:"The submitted form data contains errors.",unauthorized:"Your session has expired. Please log in again.",value_missing_error:"The value is missing.",value_too_long_error:"Value is too long.",value_too_short_error:"The value is too short.",webauthn_credential_invalid_mfa_only:"This credential can be used as a second factor security key only.",webauthn_credential_already_exists:"The request either timed out, was canceled or the device is already registered. Please try again or try using another device.",platform_authenticator_required:"Your account is configured to use platform authenticators, but your current device or browser does not support this feature. Please try again with a compatible device or browser.",third_party_access_denied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons."}}},7:function(n,t,e){(function(o,r,i){function l(m,_){return[m,!m||m.endsWith("/")?"":"/",_,".json"].join("")}function d(m,_){let k=m;return _&&Object.keys(_).forEach(w=>{let x=_[w],C=new RegExp(`{${w}}`,"gm");k=k.replace(C,x.toString())}),k}function u(m,_,k){let w=m[_];if(!w)return k;let x=k.split("."),C="";do{C+=x.shift();let R=w[C];R===void 0||typeof R!="object"&&x.length?x.length?C+=".":w=k:(w=R,C="")}while(x.length);return w}let s={},c={root:"",lang:"en",fallbackLang:"en"},v=r.createContext(null);o.TranslateContext=v,o.TranslateProvider=m=>{let{t:_,setLang:k,lang:w,isReady:x}=(function(C,R){C=Object.assign({},c,C),s=R||s;let[P,L]=i.useState(C.lang),[N,j]=i.useState(s),[V,K]=i.useState(!1),Z=i.useCallback(async U=>{if(!N[U]){K(!1);try{let ce=l(C.root,U),ve=await fetch(ce);s[U]=await ve.json()}catch(ce){console.error(`Failed to load language data for ${U}:`,ce)}finally{j(zn({},s)),K(!0)}}},[N,C.root]);i.useEffect(()=>{(async()=>(await Z(C.fallbackLang),await Z(P)))()},[P,Z,C.fallbackLang]);let ne=i.useMemo(()=>(U,ce)=>{if(!N.hasOwnProperty(P))return U;let ve=u(N,P,U);return ve===U&&P!==C.fallbackLang&&(ve=u(N,C.fallbackLang,U)),d(ve,ce)},[N,P,C.fallbackLang]);return{lang:P,setLang:L,t:ne,isReady:V}})({root:m.root||"assets",lang:m.lang||"en",fallbackLang:m.fallbackLang||"en"},m.translations);return r.h(v.Provider,{value:{t:_,setLang:k,lang:w,isReady:x}},m.children)},o.format=d,o.getResourceUrl=l,o.getValue=u,Object.defineProperty(o,"__esModule",{value:!0})})(t,e(616),e(78))},8:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_otpCreationDetails{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);display:flex;justify-content:center;align-items:center;flex-direction:column;font-size:smaller}",""]),l.locals={otpCreationDetails:"hanko_otpCreationDetails"};let d=l},78:(n,t,e)=>{e.r(t),e.d(t,{useCallback:()=>Z,useContext:()=>ne,useDebugValue:()=>U,useEffect:()=>L,useErrorBoundary:()=>ce,useId:()=>ve,useImperativeHandle:()=>V,useLayoutEffect:()=>N,useMemo:()=>K,useReducer:()=>P,useRef:()=>j,useState:()=>R});var o,r,i,l,d=e(616),u=0,s=[],c=d.options,v=c.__b,m=c.__r,_=c.diffed,k=c.__c,w=c.unmount,x=c.__;function C(I,E){c.__h&&c.__h(r,I,u||E),u=0;var M=r.__H||(r.__H={__:[],__h:[]});return I>=M.__.length&&M.__.push({}),M.__[I]}function R(I){return u=1,P(Xe,I)}function P(I,E,M){var $=C(o++,2);if($.t=I,!$.__c&&($.__=[M?M(E):Xe(void 0,E),function(oe){var ke=$.__N?$.__N[0]:$.__[0],qe=$.t(ke,oe);ke!==qe&&($.__N=[qe,$.__[1]],$.__c.setState({}))}],$.__c=r,!r.__f)){var F=function(oe,ke,qe){if(!$.__c.__H)return!0;var et=$.__c.__H.__.filter(function(je){return!!je.__c});if(et.every(function(je){return!je.__N}))return!W||W.call(this,oe,ke,qe);var ct=$.__c.props!==oe;return et.forEach(function(je){if(je.__N){var sn=je.__[0];je.__=je.__N,je.__N=void 0,sn!==je.__[0]&&(ct=!0)}}),W&&W.call(this,oe,ke,qe)||ct};r.__f=!0;var W=r.shouldComponentUpdate,ye=r.componentWillUpdate;r.componentWillUpdate=function(oe,ke,qe){if(this.__e){var et=W;W=void 0,F(oe,ke,qe),W=et}ye&&ye.call(this,oe,ke,qe)},r.shouldComponentUpdate=F}return $.__N||$.__}function L(I,E){var M=C(o++,3);!c.__s&&Ye(M.__H,E)&&(M.__=I,M.u=E,r.__H.__h.push(M))}function N(I,E){var M=C(o++,4);!c.__s&&Ye(M.__H,E)&&(M.__=I,M.u=E,r.__h.push(M))}function j(I){return u=5,K(function(){return{current:I}},[])}function V(I,E,M){u=6,N(function(){if(typeof I=="function"){var $=I(E());return function(){I(null),$&&typeof $=="function"&&$()}}if(I)return I.current=E(),function(){return I.current=null}},M==null?M:M.concat(I))}function K(I,E){var M=C(o++,7);return Ye(M.__H,E)&&(M.__=I(),M.__H=E,M.__h=I),M.__}function Z(I,E){return u=8,K(function(){return I},E)}function ne(I){var E=r.context[I.__c],M=C(o++,9);return M.c=I,E?(M.__==null&&(M.__=!0,E.sub(r)),E.props.value):I.__}function U(I,E){c.useDebugValue&&c.useDebugValue(E?E(I):I)}function ce(I){var E=C(o++,10),M=R();return E.__=I,r.componentDidCatch||(r.componentDidCatch=function($,F){E.__&&E.__($,F),M[1]($)}),[M[0],function(){M[1](void 0)}]}function ve(){var I=C(o++,11);if(!I.__){for(var E=r.__v;E!==null&&!E.__m&&E.__!==null;)E=E.__;var M=E.__m||(E.__m=[0,0]);I.__="P"+M[0]+"-"+M[1]++}return I.__}function xe(){for(var I;I=s.shift();)if(I.__P&&I.__H)try{I.__H.__h.forEach(ue),I.__H.__h.forEach(Te),I.__H.__h=[]}catch(E){I.__H.__h=[],c.__e(E,I.__v)}}c.__b=function(I){r=null,v&&v(I)},c.__=function(I,E){I&&E.__k&&E.__k.__m&&(I.__m=E.__k.__m),x&&x(I,E)},c.__r=function(I){m&&m(I),o=0;var E=(r=I.__c).__H;E&&(i===r?(E.__h=[],r.__h=[],E.__.forEach(function(M){M.__N&&(M.__=M.__N),M.u=M.__N=void 0})):(E.__h.forEach(ue),E.__h.forEach(Te),E.__h=[],o=0)),i=r},c.diffed=function(I){_&&_(I);var E=I.__c;E&&E.__H&&(E.__H.__h.length&&(s.push(E)!==1&&l===c.requestAnimationFrame||((l=c.requestAnimationFrame)||pe)(xe)),E.__H.__.forEach(function(M){M.u&&(M.__H=M.u),M.u=void 0})),i=r=null},c.__c=function(I,E){E.some(function(M){try{M.__h.forEach(ue),M.__h=M.__h.filter(function($){return!$.__||Te($)})}catch($){E.some(function(F){F.__h&&(F.__h=[])}),E=[],c.__e($,M.__v)}}),k&&k(I,E)},c.unmount=function(I){w&&w(I);var E,M=I.__c;M&&M.__H&&(M.__H.__.forEach(function($){try{ue($)}catch(F){E=F}}),M.__H=void 0,E&&c.__e(E,M.__v))};var Pe=typeof requestAnimationFrame=="function";function pe(I){var E,M=function(){clearTimeout($),Pe&&cancelAnimationFrame(E),setTimeout(I)},$=setTimeout(M,35);Pe&&(E=requestAnimationFrame(M))}function ue(I){var E=r,M=I.__c;typeof M=="function"&&(I.__c=void 0,M()),r=E}function Te(I){var E=r;I.__c=I.__(),r=E}function Ye(I,E){return!I||I.length!==E.length||E.some(function(M,$){return M!==I[$]})}function Xe(I,E){return typeof E=="function"?E(I):E}},88:n=>{n.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},193:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_paragraph{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);text-align:left;word-break:break-word}.hanko_paragraph.hanko_center{align-items:center}.hanko_paragraph.hanko_column{display:flex;flex-direction:column;width:100%}",""]),l.locals={paragraph:"hanko_paragraph",center:"hanko_center",column:"hanko_column"};let d=l},217:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_errorBox{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);color:var(--error-color, #e82020);background:var(--background-color, white);margin:var(--item-margin, 0.5rem 0);display:flex;align-items:start;box-sizing:border-box;line-height:1.5rem;padding:.25em;gap:.2em}.hanko_errorBox>span{display:inline-flex}.hanko_errorBox>span:first-child{padding:.25em 0 .25em .19em}.hanko_errorBox[hidden]{display:none}.hanko_errorMessage{color:var(--error-color, #e82020)}",""]),l.locals={errorBox:"hanko_errorBox",errorMessage:"hanko_errorMessage"};let d=l},292:n=>{var t=[];function e(i){for(var l=-1,d=0;d<t.length;d++)if(t[d].identifier===i){l=d;break}return l}function o(i,l){for(var d={},u=[],s=0;s<i.length;s++){var c=i[s],v=l.base?c[0]+l.base:c[0],m=d[v]||0,_="".concat(v," ").concat(m);d[v]=m+1;var k=e(_),w={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(k!==-1)t[k].references++,t[k].updater(w);else{var x=r(w,l);l.byIndex=s,t.splice(s,0,{identifier:_,updater:x,references:1})}u.push(_)}return u}function r(i,l){var d=l.domAPI(l);return d.update(i),function(u){if(u){if(u.css===i.css&&u.media===i.media&&u.sourceMap===i.sourceMap&&u.supports===i.supports&&u.layer===i.layer)return;d.update(i=u)}else d.remove()}}n.exports=function(i,l){var d=o(i=i||[],l=l||{});return function(u){u=u||[];for(var s=0;s<d.length;s++){var c=e(d[s]);t[c].references--}for(var v=o(u,l),m=0;m<d.length;m++){var _=e(d[m]);t[_].references===0&&(t[_].updater(),t.splice(_,1))}d=v}}},313:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_icon,.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner,.hanko_exclamationMark,.hanko_checkmark{display:inline-block;fill:var(--brand-contrast-color, white);width:18px}.hanko_icon.hanko_secondary,.hanko_loadingSpinnerWrapper .hanko_secondary.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_secondary.hanko_loadingSpinner,.hanko_secondary.hanko_exclamationMark,.hanko_secondary.hanko_checkmark{fill:var(--color, #333333)}.hanko_icon.hanko_disabled,.hanko_loadingSpinnerWrapper .hanko_disabled.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_disabled.hanko_loadingSpinner,.hanko_disabled.hanko_exclamationMark,.hanko_disabled.hanko_checkmark{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark{fill:var(--brand-color, #506cf0)}.hanko_checkmark.hanko_secondary{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark.hanko_fadeOut{animation:hanko_fadeOut ease-out 1.5s forwards !important}@keyframes hanko_fadeOut{0%{opacity:1}100%{opacity:0}}.hanko_exclamationMark{fill:var(--error-color, #e82020)}.hanko_loadingSpinnerWrapperIcon{width:100%;column-gap:10px;margin-left:10px}.hanko_loadingSpinnerWrapper,.hanko_loadingSpinnerWrapperIcon{display:inline-flex;align-items:center;height:100%;margin:0 5px;justify-content:inherit;flex-wrap:inherit}.hanko_loadingSpinnerWrapper.hanko_centerContent,.hanko_centerContent.hanko_loadingSpinnerWrapperIcon{justify-content:center}.hanko_loadingSpinnerWrapper.hanko_maxWidth,.hanko_maxWidth.hanko_loadingSpinnerWrapperIcon{width:100%}.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner{fill:var(--brand-color, #506cf0);animation:hanko_spin 500ms ease-in-out infinite}.hanko_loadingSpinnerWrapper.hanko_secondary,.hanko_secondary.hanko_loadingSpinnerWrapperIcon{fill:var(--color-shade-1, #8f9095)}@keyframes hanko_spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.hanko_googleIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_googleIcon.hanko_blue{fill:#4285f4}.hanko_googleIcon.hanko_green{fill:#34a853}.hanko_googleIcon.hanko_yellow{fill:#fbbc05}.hanko_googleIcon.hanko_red{fill:#ea4335}.hanko_microsoftIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_microsoftIcon.hanko_blue{fill:#00a4ef}.hanko_microsoftIcon.hanko_green{fill:#7fba00}.hanko_microsoftIcon.hanko_yellow{fill:#ffb900}.hanko_microsoftIcon.hanko_red{fill:#f25022}.hanko_facebookIcon.hanko_outline{fill:#0866ff}.hanko_facebookIcon.hanko_disabledOutline{fill:var(--color-shade-1, #8f9095)}.hanko_facebookIcon.hanko_letter{fill:#fff}.hanko_facebookIcon.hanko_disabledLetter{fill:var(--color-shade-2, #e5e6ef)}",""]),l.locals={icon:"hanko_icon",loadingSpinnerWrapper:"hanko_loadingSpinnerWrapper",loadingSpinner:"hanko_loadingSpinner",loadingSpinnerWrapperIcon:"hanko_loadingSpinnerWrapperIcon",exclamationMark:"hanko_exclamationMark",checkmark:"hanko_checkmark",secondary:"hanko_secondary",disabled:"hanko_disabled",fadeOut:"hanko_fadeOut",centerContent:"hanko_centerContent",maxWidth:"hanko_maxWidth",spin:"hanko_spin",googleIcon:"hanko_googleIcon",blue:"hanko_blue",green:"hanko_green",yellow:"hanko_yellow",red:"hanko_red",microsoftIcon:"hanko_microsoftIcon",facebookIcon:"hanko_facebookIcon",outline:"hanko_outline",disabledOutline:"hanko_disabledOutline",letter:"hanko_letter",disabledLetter:"hanko_disabledLetter"};let d=l},314:n=>{n.exports=function(t){var e=[];return e.toString=function(){return this.map(function(o){var r="",i=o[5]!==void 0;return o[4]&&(r+="@supports (".concat(o[4],") {")),o[2]&&(r+="@media ".concat(o[2]," {")),i&&(r+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),r+=t(o),i&&(r+="}"),o[2]&&(r+="}"),o[4]&&(r+="}"),r}).join("")},e.i=function(o,r,i,l,d){typeof o=="string"&&(o=[[null,o,void 0]]);var u={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];c!=null&&(u[c]=!0)}for(var v=0;v<o.length;v++){var m=[].concat(o[v]);i&&u[m[0]]||(d!==void 0&&(m[5]===void 0||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=d),r&&(m[2]&&(m[1]="@media ".concat(m[2]," {").concat(m[1],"}")),m[2]=r),l&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=l):m[4]="".concat(l)),e.push(m))}},e}},360:n=>{var t,e=(t=[],function(i,l){return t[i]=l,t.filter(Boolean).join(`
|
|
2
2
|
`)});function o(i,l,d,u){var s;if(d)s="";else{s="",u.supports&&(s+="@supports (".concat(u.supports,") {")),u.media&&(s+="@media ".concat(u.media," {"));var c=u.layer!==void 0;c&&(s+="@layer".concat(u.layer.length>0?" ".concat(u.layer):""," {")),s+=u.css,c&&(s+="}"),u.media&&(s+="}"),u.supports&&(s+="}")}if(i.styleSheet)i.styleSheet.cssText=e(l,s);else{var v=document.createTextNode(s),m=i.childNodes;m[l]&&i.removeChild(m[l]),m.length?i.insertBefore(v,m[l]):i.appendChild(v)}}var r={singleton:null,singletonCounter:0};n.exports=function(i){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var l=r.singletonCounter++,d=r.singleton||(r.singleton=i.insertStyleElement(i));return{update:function(u){o(d,l,!1,u)},remove:function(u){o(d,l,!0,u)}}}},452:(n,t)=>{var e;(function(){var o={}.hasOwnProperty;function r(){for(var d="",u=0;u<arguments.length;u++){var s=arguments[u];s&&(d=l(d,i(s)))}return d}function i(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return r.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var u="";for(var s in d)o.call(d,s)&&d[s]&&(u=l(u,s));return u}function l(d,u){return u?d?d+" "+u:d+u:d}n.exports?(r.default=r,n.exports=r):(e=function(){return r}.apply(t,[]))===void 0||(n.exports=e)})()},547:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_headline{color:var(--color, #333333);font-family:var(--font-family, sans-serif);text-align:left;letter-spacing:0;font-style:normal;line-height:1.1}.hanko_headline.hanko_grade1{font-size:var(--headline1-font-size, 24px);font-weight:var(--headline1-font-weight, 600);margin:var(--headline1-margin, 0 0 0.5rem)}.hanko_headline.hanko_grade2{font-size:var(--headline2-font-size, 16px);font-weight:var(--headline2-font-weight, 600);margin:var(--headline2-margin, 1rem 0 0.5rem)}",""]),l.locals={headline:"hanko_headline",grade1:"hanko_grade1",grade2:"hanko_grade2"};let d=l},579:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_link{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--link-color, #506cf0);text-decoration:var(--link-text-decoration, none);cursor:pointer;background:none !important;border:none;padding:0 !important;transition:all .1s}.hanko_link:hover{text-decoration:var(--link-text-decoration-hover, underline)}.hanko_link:disabled{color:var(--color, #333333) !important;pointer-events:none;cursor:default}.hanko_link.hanko_danger{color:var(--error-color, #e82020)}.hanko_linkWrapper{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;overflow:hidden}.hanko_linkWrapper.hanko_reverse{flex-direction:row-reverse}",""]),l.locals={link:"hanko_link",danger:"hanko_danger",linkWrapper:"hanko_linkWrapper",reverse:"hanko_reverse"};let d=l},597:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,'.hanko_accordion{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);width:100%;overflow:hidden}.hanko_accordion .hanko_accordionItem{color:var(--color, #333333);margin:.25rem 0;overflow:hidden}.hanko_accordion .hanko_accordionItem.hanko_dropdown{margin:0}.hanko_accordion .hanko_accordionItem .hanko_label{border-radius:var(--border-radius, 8px);border-style:none;height:var(--item-height, 42px);background:var(--background-color, white);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:0 1rem;margin:0;cursor:pointer;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText .hanko_description{color:var(--color-shade-1, #8f9095)}.hanko_accordion .hanko_accordionItem .hanko_label.hanko_dropdown{margin:0;color:var(--link-color, #506cf0);justify-content:flex-start}.hanko_accordion .hanko_accordionItem .hanko_label:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb)}.hanko_accordion .hanko_accordionItem .hanko_label:hover .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_label:hover.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_label:not(.hanko_dropdown)::after{content:"\u276F";width:1rem;text-align:center;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionInput{position:absolute;opacity:0;z-index:-1}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label:not(.hanko_dropdown)::after{transform:rotate(90deg)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label~.hanko_accordionContent{margin:.25rem 1rem;opacity:1;max-height:100vh}.hanko_accordion .hanko_accordionItem .hanko_accordionContent{max-height:0;margin:0 1rem;opacity:0;overflow:hidden;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionContent.hanko_dropdownContent{border-style:none}',""]),l.locals={accordion:"hanko_accordion",accordionItem:"hanko_accordionItem",dropdown:"hanko_dropdown",label:"hanko_label",labelText:"hanko_labelText",description:"hanko_description",accordionInput:"hanko_accordionInput",accordionContent:"hanko_accordionContent",dropdownContent:"hanko_dropdownContent"};let d=l},601:n=>{n.exports=function(t){return t[1]}},616:(n,t,e)=>{e.r(t),e.d(t,{Component:()=>ne,Fragment:()=>Z,cloneElement:()=>je,createContext:()=>sn,createElement:()=>j,createRef:()=>K,h:()=>j,hydrate:()=>ct,isValidElement:()=>l,options:()=>r,render:()=>et,toChildArray:()=>Te});var o,r,i,l,d,u,s,c,v,m,_,k,w,x={},C=[],R=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,P=Array.isArray;function L(p,h){for(var g in h)p[g]=h[g];return p}function N(p){p&&p.parentNode&&p.parentNode.removeChild(p)}function j(p,h,g){var A,O,y,D={};for(y in h)y=="key"?A=h[y]:y=="ref"?O=h[y]:D[y]=h[y];if(arguments.length>2&&(D.children=arguments.length>3?o.call(arguments,2):g),typeof p=="function"&&p.defaultProps!=null)for(y in p.defaultProps)D[y]===void 0&&(D[y]=p.defaultProps[y]);return V(p,D,A,O,null)}function V(p,h,g,A,O){var y={type:p,props:h,key:g,ref:A,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:O==null?++i:O,__i:-1,__u:0};return O==null&&r.vnode!=null&&r.vnode(y),y}function K(){return{current:null}}function Z(p){return p.children}function ne(p,h){this.props=p,this.context=h}function U(p,h){if(h==null)return p.__?U(p.__,p.__i+1):null;for(var g;h<p.__k.length;h++)if((g=p.__k[h])!=null&&g.__e!=null)return g.__e;return typeof p.type=="function"?U(p):null}function ce(p){var h,g;if((p=p.__)!=null&&p.__c!=null){for(p.__e=p.__c.base=null,h=0;h<p.__k.length;h++)if((g=p.__k[h])!=null&&g.__e!=null){p.__e=p.__c.base=g.__e;break}return ce(p)}}function ve(p){(!p.__d&&(p.__d=!0)&&d.push(p)&&!xe.__r++||u!=r.debounceRendering)&&((u=r.debounceRendering)||s)(xe)}function xe(){for(var p,h,g,A,O,y,D,H=1;d.length;)d.length>H&&d.sort(c),p=d.shift(),H=d.length,p.__d&&(g=void 0,A=void 0,O=(A=(h=p).__v).__e,y=[],D=[],h.__P&&((g=L({},A)).__v=A.__v+1,r.vnode&&r.vnode(g),M(h.__P,g,A,h.__n,h.__P.namespaceURI,32&A.__u?[O]:null,y,O==null?U(A):O,!!(32&A.__u),D),g.__v=A.__v,g.__.__k[g.__i]=g,F(y,g,D),A.__e=A.__=null,g.__e!=O&&ce(g)));xe.__r=0}function Pe(p,h,g,A,O,y,D,H,ie,z,te){var S,he,B,we,Fe,Ce,de,se=A&&A.__k||C,Qe=h.length;for(ie=pe(g,h,se,ie,Qe),S=0;S<Qe;S++)(B=g.__k[S])!=null&&(he=B.__i==-1?x:se[B.__i]||x,B.__i=S,Ce=M(p,B,he,O,y,D,H,ie,z,te),we=B.__e,B.ref&&he.ref!=B.ref&&(he.ref&&oe(he.ref,null,B),te.push(B.ref,B.__c||we,B)),Fe==null&&we!=null&&(Fe=we),(de=!!(4&B.__u))||he.__k===B.__k?ie=ue(B,ie,p,de):typeof B.type=="function"&&Ce!==void 0?ie=Ce:we&&(ie=we.nextSibling),B.__u&=-7);return g.__e=Fe,ie}function pe(p,h,g,A,O){var y,D,H,ie,z,te=g.length,S=te,he=0;for(p.__k=new Array(O),y=0;y<O;y++)(D=h[y])!=null&&typeof D!="boolean"&&typeof D!="function"?(typeof D=="string"||typeof D=="number"||typeof D=="bigint"||D.constructor==String?D=p.__k[y]=V(null,D,null,null,null):P(D)?D=p.__k[y]=V(Z,{children:D},null,null,null):D.constructor===void 0&&D.__b>0?D=p.__k[y]=V(D.type,D.props,D.key,D.ref?D.ref:null,D.__v):p.__k[y]=D,ie=y+he,D.__=p,D.__b=p.__b+1,H=null,(z=D.__i=Ye(D,g,ie,S))!=-1&&(S--,(H=g[z])&&(H.__u|=2)),H==null||H.__v==null?(z==-1&&(O>te?he--:O<te&&he++),typeof D.type!="function"&&(D.__u|=4)):z!=ie&&(z==ie-1?he--:z==ie+1?he++:(z>ie?he--:he++,D.__u|=4))):p.__k[y]=null;if(S)for(y=0;y<te;y++)(H=g[y])!=null&&!(2&H.__u)&&(H.__e==A&&(A=U(H)),ke(H,H));return A}function ue(p,h,g,A){var O,y;if(typeof p.type=="function"){for(O=p.__k,y=0;O&&y<O.length;y++)O[y]&&(O[y].__=p,h=ue(O[y],h,g,A));return h}p.__e!=h&&(A&&(h&&p.type&&!h.parentNode&&(h=U(p)),g.insertBefore(p.__e,h||null)),h=p.__e);do h=h&&h.nextSibling;while(h!=null&&h.nodeType==8);return h}function Te(p,h){return h=h||[],p==null||typeof p=="boolean"||(P(p)?p.some(function(g){Te(g,h)}):h.push(p)),h}function Ye(p,h,g,A){var O,y,D,H=p.key,ie=p.type,z=h[g],te=z!=null&&!(2&z.__u);if(z===null&&H==null||te&&H==z.key&&ie==z.type)return g;if(A>(te?1:0)){for(O=g-1,y=g+1;O>=0||y<h.length;)if((z=h[D=O>=0?O--:y++])!=null&&!(2&z.__u)&&H==z.key&&ie==z.type)return D}return-1}function Xe(p,h,g){h[0]=="-"?p.setProperty(h,g==null?"":g):p[h]=g==null?"":typeof g!="number"||R.test(h)?g:g+"px"}function I(p,h,g,A,O){var y,D;e:if(h=="style")if(typeof g=="string")p.style.cssText=g;else{if(typeof A=="string"&&(p.style.cssText=A=""),A)for(h in A)g&&h in g||Xe(p.style,h,"");if(g)for(h in g)A&&g[h]==A[h]||Xe(p.style,h,g[h])}else if(h[0]=="o"&&h[1]=="n")y=h!=(h=h.replace(v,"$1")),D=h.toLowerCase(),h=D in p||h=="onFocusOut"||h=="onFocusIn"?D.slice(2):h.slice(2),p.l||(p.l={}),p.l[h+y]=g,g?A?g.u=A.u:(g.u=m,p.addEventListener(h,y?k:_,y)):p.removeEventListener(h,y?k:_,y);else{if(O=="http://www.w3.org/2000/svg")h=h.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(h!="width"&&h!="height"&&h!="href"&&h!="list"&&h!="form"&&h!="tabIndex"&&h!="download"&&h!="rowSpan"&&h!="colSpan"&&h!="role"&&h!="popover"&&h in p)try{p[h]=g==null?"":g;break e}catch(H){}typeof g=="function"||(g==null||g===!1&&h[4]!="-"?p.removeAttribute(h):p.setAttribute(h,h=="popover"&&g==1?"":g))}}function E(p){return function(h){if(this.l){var g=this.l[h.type+p];if(h.t==null)h.t=m++;else if(h.t<g.u)return;return g(r.event?r.event(h):h)}}}function M(p,h,g,A,O,y,D,H,ie,z){var te,S,he,B,we,Fe,Ce,de,se,Qe,tt,Pt,dt,Nn,Ot,ut,ln,Ke=h.type;if(h.constructor!==void 0)return null;128&g.__u&&(ie=!!(32&g.__u),y=[H=h.__e=g.__e]),(te=r.__b)&&te(h);e:if(typeof Ke=="function")try{if(de=h.props,se="prototype"in Ke&&Ke.prototype.render,Qe=(te=Ke.contextType)&&A[te.__c],tt=te?Qe?Qe.props.value:te.__:A,g.__c?Ce=(S=h.__c=g.__c).__=S.__E:(se?h.__c=S=new Ke(de,tt):(h.__c=S=new ne(de,tt),S.constructor=Ke,S.render=qe),Qe&&Qe.sub(S),S.state||(S.state={}),S.__n=A,he=S.__d=!0,S.__h=[],S._sb=[]),se&&S.__s==null&&(S.__s=S.state),se&&Ke.getDerivedStateFromProps!=null&&(S.__s==S.state&&(S.__s=L({},S.__s)),L(S.__s,Ke.getDerivedStateFromProps(de,S.__s))),B=S.props,we=S.state,S.__v=h,he)se&&Ke.getDerivedStateFromProps==null&&S.componentWillMount!=null&&S.componentWillMount(),se&&S.componentDidMount!=null&&S.__h.push(S.componentDidMount);else{if(se&&Ke.getDerivedStateFromProps==null&&de!==B&&S.componentWillReceiveProps!=null&&S.componentWillReceiveProps(de,tt),h.__v==g.__v||!S.__e&&S.shouldComponentUpdate!=null&&S.shouldComponentUpdate(de,S.__s,tt)===!1){for(h.__v!=g.__v&&(S.props=de,S.state=S.__s,S.__d=!1),h.__e=g.__e,h.__k=g.__k,h.__k.some(function(rt){rt&&(rt.__=h)}),Pt=0;Pt<S._sb.length;Pt++)S.__h.push(S._sb[Pt]);S._sb=[],S.__h.length&&D.push(S);break e}S.componentWillUpdate!=null&&S.componentWillUpdate(de,S.__s,tt),se&&S.componentDidUpdate!=null&&S.__h.push(function(){S.componentDidUpdate(B,we,Fe)})}if(S.context=tt,S.props=de,S.__P=p,S.__e=!1,dt=r.__r,Nn=0,se){for(S.state=S.__s,S.__d=!1,dt&&dt(h),te=S.render(S.props,S.state,S.context),Ot=0;Ot<S._sb.length;Ot++)S.__h.push(S._sb[Ot]);S._sb=[]}else do S.__d=!1,dt&&dt(h),te=S.render(S.props,S.state,S.context),S.state=S.__s;while(S.__d&&++Nn<25);S.state=S.__s,S.getChildContext!=null&&(A=L(L({},A),S.getChildContext())),se&&!he&&S.getSnapshotBeforeUpdate!=null&&(Fe=S.getSnapshotBeforeUpdate(B,we)),ut=te,te!=null&&te.type===Z&&te.key==null&&(ut=W(te.props.children)),H=Pe(p,P(ut)?ut:[ut],h,g,A,O,y,D,H,ie,z),S.base=h.__e,h.__u&=-161,S.__h.length&&D.push(S),Ce&&(S.__E=S.__=null)}catch(rt){if(h.__v=null,ie||y!=null)if(rt.then){for(h.__u|=ie?160:128;H&&H.nodeType==8&&H.nextSibling;)H=H.nextSibling;y[y.indexOf(H)]=null,h.__e=H}else{for(ln=y.length;ln--;)N(y[ln]);$(h)}else h.__e=g.__e,h.__k=g.__k,rt.then||$(h);r.__e(rt,h,g)}else y==null&&h.__v==g.__v?(h.__k=g.__k,h.__e=g.__e):H=h.__e=ye(g.__e,h,g,A,O,y,D,ie,z);return(te=r.diffed)&&te(h),128&h.__u?void 0:H}function $(p){p&&p.__c&&(p.__c.__e=!0),p&&p.__k&&p.__k.forEach($)}function F(p,h,g){for(var A=0;A<g.length;A++)oe(g[A],g[++A],g[++A]);r.__c&&r.__c(h,p),p.some(function(O){try{p=O.__h,O.__h=[],p.some(function(y){y.call(O)})}catch(y){r.__e(y,O.__v)}})}function W(p){return typeof p!="object"||p==null||p.__b&&p.__b>0?p:P(p)?p.map(W):L({},p)}function ye(p,h,g,A,O,y,D,H,ie){var z,te,S,he,B,we,Fe,Ce=g.props||x,de=h.props,se=h.type;if(se=="svg"?O="http://www.w3.org/2000/svg":se=="math"?O="http://www.w3.org/1998/Math/MathML":O||(O="http://www.w3.org/1999/xhtml"),y!=null){for(z=0;z<y.length;z++)if((B=y[z])&&"setAttribute"in B==!!se&&(se?B.localName==se:B.nodeType==3)){p=B,y[z]=null;break}}if(p==null){if(se==null)return document.createTextNode(de);p=document.createElementNS(O,se,de.is&&de),H&&(r.__m&&r.__m(h,y),H=!1),y=null}if(se==null)Ce===de||H&&p.data==de||(p.data=de);else{if(y=y&&o.call(p.childNodes),!H&&y!=null)for(Ce={},z=0;z<p.attributes.length;z++)Ce[(B=p.attributes[z]).name]=B.value;for(z in Ce)if(B=Ce[z],z!="children"){if(z=="dangerouslySetInnerHTML")S=B;else if(!(z in de)){if(z=="value"&&"defaultValue"in de||z=="checked"&&"defaultChecked"in de)continue;I(p,z,null,B,O)}}for(z in de)B=de[z],z=="children"?he=B:z=="dangerouslySetInnerHTML"?te=B:z=="value"?we=B:z=="checked"?Fe=B:H&&typeof B!="function"||Ce[z]===B||I(p,z,B,Ce[z],O);if(te)H||S&&(te.__html==S.__html||te.__html==p.innerHTML)||(p.innerHTML=te.__html),h.__k=[];else if(S&&(p.innerHTML=""),Pe(h.type=="template"?p.content:p,P(he)?he:[he],h,g,A,se=="foreignObject"?"http://www.w3.org/1999/xhtml":O,y,D,y?y[0]:g.__k&&U(g,0),H,ie),y!=null)for(z=y.length;z--;)N(y[z]);H||(z="value",se=="progress"&&we==null?p.removeAttribute("value"):we!=null&&(we!==p[z]||se=="progress"&&!we||se=="option"&&we!=Ce[z])&&I(p,z,we,Ce[z],O),z="checked",Fe!=null&&Fe!=p[z]&&I(p,z,Fe,Ce[z],O))}return p}function oe(p,h,g){try{if(typeof p=="function"){var A=typeof p.__u=="function";A&&p.__u(),A&&h==null||(p.__u=p(h))}else p.current=h}catch(O){r.__e(O,g)}}function ke(p,h,g){var A,O;if(r.unmount&&r.unmount(p),(A=p.ref)&&(A.current&&A.current!=p.__e||oe(A,null,h)),(A=p.__c)!=null){if(A.componentWillUnmount)try{A.componentWillUnmount()}catch(y){r.__e(y,h)}A.base=A.__P=null}if(A=p.__k)for(O=0;O<A.length;O++)A[O]&&ke(A[O],h,g||typeof p.type!="function");g||N(p.__e),p.__c=p.__=p.__e=void 0}function qe(p,h,g){return this.constructor(p,g)}function et(p,h,g){var A,O,y,D;h==document&&(h=document.documentElement),r.__&&r.__(p,h),O=(A=typeof g=="function")?null:g&&g.__k||h.__k,y=[],D=[],M(h,p=(!A&&g||h).__k=j(Z,null,[p]),O||x,x,h.namespaceURI,!A&&g?[g]:O?null:h.firstChild?o.call(h.childNodes):null,y,!A&&g?g:O?O.__e:h.firstChild,A,D),F(y,p,D)}function ct(p,h){et(p,h,ct)}function je(p,h,g){var A,O,y,D,H=L({},p.props);for(y in p.type&&p.type.defaultProps&&(D=p.type.defaultProps),h)y=="key"?A=h[y]:y=="ref"?O=h[y]:H[y]=h[y]===void 0&&D!=null?D[y]:h[y];return arguments.length>2&&(H.children=arguments.length>3?o.call(arguments,2):g),V(p.type,H,A||p.key,O||p.ref,null)}function sn(p){function h(g){var A,O;return this.getChildContext||(A=new Set,(O={})[h.__c]=this,this.getChildContext=function(){return O},this.componentWillUnmount=function(){A=null},this.shouldComponentUpdate=function(y){this.props.value!=y.value&&A.forEach(function(D){D.__e=!0,ve(D)})},this.sub=function(y){A.add(y);var D=y.componentWillUnmount;y.componentWillUnmount=function(){A&&A.delete(y),D&&D.call(y)}}),g.children}return h.__c="__cC"+w++,h.__=p,h.Provider=h.__l=(h.Consumer=function(g,A){return g.children(A)}).contextType=h,h}o=C.slice,r={__e:function(p,h,g,A){for(var O,y,D;h=h.__;)if((O=h.__c)&&!O.__)try{if((y=O.constructor)&&y.getDerivedStateFromError!=null&&(O.setState(y.getDerivedStateFromError(p)),D=O.__d),O.componentDidCatch!=null&&(O.componentDidCatch(p,A||{}),D=O.__d),D)return O.__E=O}catch(H){p=H}throw p}},i=0,l=function(p){return p!=null&&p.constructor===void 0},ne.prototype.setState=function(p,h){var g;g=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=L({},this.state),typeof p=="function"&&(p=p(L({},g),this.props)),p&&L(g,p),p!=null&&this.__v&&(h&&this._sb.push(h),ve(this))},ne.prototype.forceUpdate=function(p){this.__v&&(this.__e=!0,p&&this.__h.push(p),ve(this))},ne.prototype.render=Z,d=[],s=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(p,h){return p.__v.__b-h.__v.__b},xe.__r=0,v=/(PointerCapture)$|Capture$/i,m=0,_=E(!1),k=E(!0),w=0},681:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,'.hanko_form{display:flex;flex-grow:1}.hanko_form .hanko_ul{flex-grow:1;margin:var(--item-margin, 0.5rem 0);padding-inline-start:0;list-style-type:none;display:flex;flex-wrap:wrap;gap:1em}.hanko_form .hanko_li{display:flex;max-width:100%;flex-grow:1;flex-basis:min-content}.hanko_form .hanko_li.hanko_maxWidth{min-width:100%}.hanko_button{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);white-space:nowrap;width:100%;min-width:var(--button-min-width, 7em);min-height:var(--item-height, 42px);outline:none;cursor:pointer;transition:.1s ease-out;flex-grow:1;flex-shrink:1;display:inline-flex;position:relative}.hanko_button[data-bubble]:before{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);padding:2px 8px;font-size:9px;line-height:normal;content:attr(data-bubble);display:block;position:absolute;bottom:80%;left:80%;white-space:nowrap;width:max-content;text-align:center;background-color:inherit;color:var(--brand-color-shade-1, #6b84fb);border-color:var(--brand-color-shade-1, #6b84fb)}.hanko_button:disabled{cursor:default}.hanko_button.hanko_primary{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--brand-color, #506cf0);justify-content:center}.hanko_button.hanko_primary:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_primary:focus{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--color, #333333)}.hanko_button.hanko_primary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-2, #e5e6ef)}.hanko_button.hanko_secondary{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--color-shade-1, #8f9095);justify-content:center}.hanko_button.hanko_secondary:hover{color:var(--color, #333333);background:var(--color-shade-2, #e5e6ef);border-color:var(--color, #333333)}.hanko_button.hanko_secondary:focus{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_secondary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_button.hanko_dangerous{color:var(--error-color, #e82020);background:var(--background-color, white);border-color:var(--error-color, #e82020);flex-grow:0;width:auto}.hanko_caption{flex-wrap:wrap;display:flex;justify-content:space-between;align-items:baseline}.hanko_inputWrapper{flex-grow:1;position:relative;display:flex;min-width:var(--input-min-width, 14em);max-width:100%}.hanko_input{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);height:var(--item-height, 42px);color:var(--color, #333333);border-color:var(--color-shade-1, #8f9095);background:var(--background-color, white)}.hanko_input.hanko_error{border-color:var(--error-color, #e82020)}.hanko_input{padding:0 .5rem;outline:none;width:100%;box-sizing:border-box;transition:.1s ease-out}.hanko_input:-webkit-autofill,.hanko_input:-webkit-autofill:hover,.hanko_input:-webkit-autofill:focus{-webkit-text-fill-color:var(--color, #333333);-webkit-box-shadow:0 0 0 50px var(--background-color, white) inset}.hanko_input::-ms-reveal,.hanko_input::-ms-clear{display:none}.hanko_input::placeholder{color:var(--color-shade-1, #8f9095)}.hanko_input:focus{color:var(--color, #333333);border-color:var(--color, #333333)}.hanko_input:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_passcodeInputWrapper{flex-grow:1;min-width:var(--input-min-width, 14em);max-width:fit-content;position:relative;display:flex;justify-content:space-between}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper{flex-grow:1;margin:0 .5rem 0 0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper:last-child{margin:0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper .hanko_input{text-align:center}.hanko_checkboxWrapper{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);align-items:center;display:flex}.hanko_checkboxWrapper .hanko_label{color:inherit;padding-left:.5rem;cursor:pointer}.hanko_checkboxWrapper .hanko_label.hanko_disabled{cursor:default;color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox{border:currentColor solid 1px;border-radius:.15em;appearance:none;-webkit-appearance:none;width:1.1rem;height:1.1rem;margin:0;color:currentColor;background-color:var(--background-color, white);font:inherit;box-shadow:none;display:inline-flex;place-content:center;cursor:pointer}.hanko_checkboxWrapper .hanko_checkbox:checked{background-color:var(--color, #333333)}.hanko_checkboxWrapper .hanko_checkbox:disabled{cursor:default;background-color:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox:checked:after{content:"\u2713";color:var(--background-color, white);position:absolute;line-height:1.1rem}.hanko_checkboxWrapper .hanko_checkbox:disabled:after{color:var(--color-shade-1, #8f9095)}',""]),l.locals={form:"hanko_form",ul:"hanko_ul",li:"hanko_li",maxWidth:"hanko_maxWidth",button:"hanko_button",primary:"hanko_primary",secondary:"hanko_secondary",dangerous:"hanko_dangerous",caption:"hanko_caption",inputWrapper:"hanko_inputWrapper",input:"hanko_input",error:"hanko_error",passcodeInputWrapper:"hanko_passcodeInputWrapper",passcodeDigitWrapper:"hanko_passcodeDigitWrapper",checkboxWrapper:"hanko_checkboxWrapper",label:"hanko_label",disabled:"hanko_disabled",checkbox:"hanko_checkbox"};let d=l},751:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_spacer{height:1em}.hanko_divider{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);display:flex;visibility:var(--divider-visibility, visible);color:var(--color-shade-1, #8f9095);margin:var(--item-margin, 0.5rem 0);padding:.5em 0}.hanko_divider .hanko_line{border-bottom-style:var(--border-style, solid);border-bottom-width:var(--border-width, 1px);color:inherit;font:inherit;width:100%}.hanko_divider .hanko_text{font:inherit;color:inherit;background:var(--background-color, white);padding:var(--divider-padding, 0 42px);line-height:.1em}",""]),l.locals={spacer:"hanko_spacer",divider:"hanko_divider",line:"hanko_line",text:"hanko_text"};let d=l},884:(n,t,e)=>{n.exports=function(o){var r=e.nc;r&&o.setAttribute("nonce",r)}},890:(n,t,e)=>{e.d(t,{A:()=>d});var o=e(601),r=e.n(o),i=e(314),l=e.n(i)()(r());l.push([n.id,".hanko_container{background-color:var(--background-color, white);padding:var(--container-padding, 30px);max-width:var(--container-max-width, 410px);display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:flex-start;box-sizing:border-box}.hanko_content{box-sizing:border-box;flex:0 1 auto;width:100%;height:100%}.hanko_footer{padding:.5rem 0 0;box-sizing:border-box;width:100%}.hanko_footer :nth-child(1){float:left}.hanko_footer :nth-child(2){float:right}.hanko_clipboardContainer{display:flex}.hanko_clipboardIcon{display:flex;margin:auto;cursor:pointer}",""]),l.locals={container:"hanko_container",content:"hanko_content",footer:"hanko_footer",clipboardContainer:"hanko_clipboardContainer",clipboardIcon:"hanko_clipboardIcon"};let d=l}},Hn={};function Y(n){var t=Hn[n];if(t!==void 0)return t.exports;var e=Hn[n]={id:n,exports:{}};return ta[n].call(e.exports,e,e.exports,Y),e.exports}Y.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return Y.d(t,{a:t}),t},Y.d=(n,t)=>{for(var e in t)Y.o(t,e)&&!Y.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},Y.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),Y.r=n=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},Y.nc=void 0;var pn={};Y.r(pn),Y.d(pn,{apple:()=>Ta,checkmark:()=>Ma,copy:()=>Da,customProvider:()=>La,discord:()=>Ua,exclamation:()=>Na,facebook:()=>za,github:()=>ja,google:()=>Wa,linkedin:()=>Fa,mail:()=>Ra,microsoft:()=>Ha,passkey:()=>qa,password:()=>Ka,qrCodeScanner:()=>Ba,securityKey:()=>$a,spinner:()=>Ga});var b=Y(616),na=0;function a(n,t,e,o,r,i){t||(t={});var l,d,u=t;if("ref"in u)for(d in u={},t)d=="ref"?l=t[d]:u[d]=t[d];var s={type:n,props:u,key:e,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--na,__i:-1,__u:0,__source:r,__self:i};if(typeof n=="function"&&(l=n.defaultProps))for(d in l)u[d]===void 0&&(u[d]=l[d]);return b.options.vnode&&b.options.vnode(s),s}function Vt(){return Vt=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},Vt.apply(this,arguments)}var oa=["context","children"];function aa(n){this.getChildContext=function(){return n.context};var t=n.children,e=(function(o,r){if(o==null)return{};var i,l,d={},u=Object.keys(o);for(l=0;l<u.length;l++)r.indexOf(i=u[l])>=0||(d[i]=o[i]);return d})(n,oa);return(0,b.cloneElement)(t,e)}function ra(){var n=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(n),this._vdom=(0,b.h)(aa,Vt({},this._props,{context:n.detail.context}),bo(this,this._vdomComponent)),(this.hasAttribute("hydrate")?b.hydrate:b.render)(this._vdom,this._root)}function yo(n){return n.replace(/-(\w)/g,function(t,e){return e?e.toUpperCase():""})}function ia(n,t,e){if(this._vdom){var o={};o[n]=e=e==null?void 0:e,o[yo(n)]=e,this._vdom=(0,b.cloneElement)(this._vdom,o),(0,b.render)(this._vdom,this._root)}}function sa(){(0,b.render)(this._vdom=null,this._root)}function qn(n,t){var e=this;return(0,b.h)("slot",Vt({},n,{ref:function(o){o?(e.ref=o,e._listener||(e._listener=function(r){r.stopPropagation(),r.detail.context=t},o.addEventListener("_preact",e._listener))):e.ref.removeEventListener("_preact",e._listener)}}))}function bo(n,t){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var e=[],o={},r=0,i=n.attributes,l=n.childNodes;for(r=i.length;r--;)i[r].name!=="slot"&&(o[i[r].name]=i[r].value,o[yo(i[r].name)]=i[r].value);for(r=l.length;r--;){var d=bo(l[r],null),u=l[r].slot;u?o[u]=(0,b.h)(qn,{name:u},d):e[r]=d}var s=t?(0,b.h)(qn,null,e):e;return(0,b.h)(t||n.nodeName.toLowerCase(),o,s)}var G=Y(7),f=Y(78);function ko(n,t){for(var e in t)n[e]=t[e];return n}function Kn(n,t){for(var e in n)if(e!=="__source"&&!(e in t))return!0;for(var o in t)if(o!=="__source"&&n[o]!==t[o])return!0;return!1}f.useLayoutEffect;function Bn(n,t){this.props=n,this.context=t}(Bn.prototype=new b.Component).isPureReactComponent=!0,Bn.prototype.shouldComponentUpdate=function(n,t){return Kn(this.props,n)||Kn(this.state,t)};var $n=b.options.__b;b.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),$n&&$n(n)};var la=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,ca=(b.toChildArray,b.options.__e);b.options.__e=function(n,t,e,o){if(n.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t)}ca(n,t,e,o)};var Gn=b.options.unmount;function wo(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),n.__c.__H=null),(n=ko({},n)).__c!=null&&(n.__c.__P===e&&(n.__c.__P=t),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(o){return wo(o,t,e)})),n}function So(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(o){return So(o,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function cn(){this.__u=0,this.o=null,this.__b=null}function xo(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function Tt(){this.i=null,this.l=null}b.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),Gn&&Gn(n)},(cn.prototype=new b.Component).__c=function(n,t){var e=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(e);var r=xo(o.__v),i=!1,l=function(){i||(i=!0,e.__R=null,r?r(d):d())};e.__R=l;var d=function(){if(!--o.__u){if(o.state.__a){var u=o.state.__a;o.__v.__k[0]=So(u,u.__c.__P,u.__c.__O)}var s;for(o.setState({__a:o.__b=null});s=o.o.pop();)s.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),n.then(l,l)},cn.prototype.componentWillUnmount=function(){this.o=[]},cn.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=wo(this.__b,e,o.__O=o.__P)}this.__b=null}var r=t.__a&&(0,b.createElement)(b.Fragment,null,n.fallback);return r&&(r.__u&=-33),[(0,b.createElement)(b.Fragment,null,t.__a?null:n.children),r]};var Vn=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};(Tt.prototype=new b.Component).__a=function(n){var t=this,e=xo(t.__v),o=t.l.get(n);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),Vn(t,n,o)):r()};e?e(i):i()}},Tt.prototype.render=function(n){this.i=null,this.l=new Map;var t=(0,b.toChildArray)(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},Tt.prototype.componentDidUpdate=Tt.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){Vn(n,e,t)})};var da=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,ua=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ha=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,pa=/[A-Z0-9]/g,fa=typeof document!="undefined",_a=function(n){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(n)};b.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(b.Component.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t})}})});var Zn=b.options.event;function ma(){}function va(){return this.cancelBubble}function ga(){return this.defaultPrevented}b.options.event=function(n){return Zn&&(n=Zn(n)),n.persist=ma,n.isPropagationStopped=va,n.isDefaultPrevented=ga,n.nativeEvent=n};var ya={enumerable:!1,configurable:!0,get:function(){return this.class}},Jn=b.options.vnode;b.options.vnode=function(n){typeof n.type=="string"&&(function(t){var e=t.props,o=t.type,r={},i=o.indexOf("-")===-1;for(var l in e){var d=e[l];if(!(l==="value"&&"defaultValue"in e&&d==null||fa&&l==="children"&&o==="noscript"||l==="class"||l==="className")){var u=l.toLowerCase();l==="defaultValue"&&"value"in e&&e.value==null?l="value":l==="download"&&d===!0?d="":u==="translate"&&d==="no"?d=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?l="ondblclick":u!=="onchange"||o!=="input"&&o!=="textarea"||_a(e.type)?u==="onfocus"?l="onfocusin":u==="onblur"?l="onfocusout":ha.test(l)&&(l=u):u=l="oninput":i&&ua.test(l)?l=l.replace(pa,"-$&").toLowerCase():d===null&&(d=void 0),u==="oninput"&&r[l=u]&&(l="oninputCapture"),r[l]=d}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,b.toChildArray)(e.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=(0,b.toChildArray)(e.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),e.class&&!e.className?(r.class=e.class,Object.defineProperty(r,"className",ya)):(e.className&&!e.class||e.class&&e.className)&&(r.class=r.className=e.className),t.props=r})(n),n.$$typeof=da,Jn&&Jn(n)};var Qn=b.options.__r;b.options.__r=function(n){Qn&&Qn(n),n.__c};var Yn=b.options.diffed;function We(){return We=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)({}).hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},We.apply(null,arguments)}b.options.diffed=function(n){Yn&&Yn(n);var t=n.props,e=n.__e;e!=null&&n.type==="textarea"&&"value"in t&&t.value!==e.value&&(e.value=t.value==null?"":t.value)},f.useCallback,f.useContext,f.useDebugValue,f.useEffect,f.useId,f.useImperativeHandle,f.useLayoutEffect,f.useMemo,f.useReducer,f.useRef,f.useState,b.Fragment,f.useState,f.useId,f.useReducer,f.useEffect,f.useLayoutEffect,f.useRef,f.useImperativeHandle,f.useMemo,f.useCallback,f.useContext,f.useDebugValue,b.createElement,b.createContext,b.createRef,b.Fragment,b.Component;var fn=class{static throttle(t,e,o={}){let{leading:r=!0,trailing:i=!0}=o,l,d,u,s=0,c=()=>{s=r===!1?0:Date.now(),u=null,t.apply(l,d)};return function(...v){let m=Date.now();s||r!==!1||(s=m);let _=e-(m-s);l=this,d=v,_<=0||_>e?(u&&(window.clearTimeout(u),u=null),s=m,t.apply(l,d)):u||i===!1||(u=window.setTimeout(c,_))}}},Co="hanko-session-created",Io="hanko-session-expired",Ao="hanko-user-logged-out",Eo="hanko-user-deleted",Po="hanko-after-state-change",Oo="hanko-before-state-change",_n=class extends CustomEvent{constructor(t,e){super(t,{detail:e})}},Zt=class n{constructor(){this.throttleLimit=1e3,this._addEventListener=document.addEventListener.bind(document),this._removeEventListener=document.removeEventListener.bind(document),this._throttle=fn.throttle}wrapCallback(t,e){let o=r=>{t(r.detail)};return e?this._throttle(o,this.throttleLimit,{leading:!0,trailing:!1}):o}addEventListenerWithType({type:t,callback:e,once:o=!1,throttle:r=!1}){let i=this.wrapCallback(e,r);return this._addEventListener(t,i,{once:o}),()=>this._removeEventListener(t,i)}static mapAddEventListenerParams(t,{once:e,callback:o},r){return{type:t,callback:o,once:e,throttle:r}}addEventListener(t,e,o){return this.addEventListenerWithType(n.mapAddEventListenerParams(t,e,o))}onSessionCreated(t,e){return this.addEventListener(Co,{callback:t,once:e},!0)}onSessionExpired(t,e){return this.addEventListener(Io,{callback:t,once:e},!0)}onUserLoggedOut(t,e){return this.addEventListener(Ao,{callback:t,once:e})}onUserDeleted(t,e){return this.addEventListener(Eo,{callback:t,once:e})}onAfterStateChange(t,e){return this.addEventListener(Po,{callback:t,once:e},!1)}onBeforeStateChange(t,e){return this.addEventListener(Oo,{callback:t,once:e},!1)}},Jt=class{constructor(){this._dispatchEvent=document.dispatchEvent.bind(document)}dispatch(t,e){this._dispatchEvent(new _n(t,e))}dispatchSessionCreatedEvent(t){this.dispatch(Co,t)}dispatchSessionExpiredEvent(){this.dispatch(Io,null)}dispatchUserLoggedOutEvent(){this.dispatch(Ao,null)}dispatchUserDeletedEvent(){this.dispatch(Eo,null)}dispatchAfterStateChangeEvent(t){this.dispatch(Po,t)}dispatchBeforeStateChangeEvent(t){this.dispatch(Oo,t)}},it=class n extends Error{constructor(t,e,o){super(t),this.code=void 0,this.cause=void 0,this.code=e,this.cause=o,Object.setPrototypeOf(this,n.prototype)}},Je=class n extends it{constructor(t){super("Technical error","somethingWentWrong",t),Object.setPrototypeOf(this,n.prototype)}};var mn=class n extends it{constructor(t){super("Request timed out error","requestTimeout",t),Object.setPrototypeOf(this,n.prototype)}};var Qt=class n extends it{constructor(t){super("Unauthorized error","unauthorized",t),Object.setPrototypeOf(this,n.prototype)}};function Mt(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)n[o]=e[o]}return n}var dn=(function n(t,e){function o(r,i,l){if(typeof document!="undefined"){typeof(l=Mt({},e,l)).expires=="number"&&(l.expires=new Date(Date.now()+864e5*l.expires)),l.expires&&(l.expires=l.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var u in l)l[u]&&(d+="; "+u,l[u]!==!0&&(d+="="+l[u].split(";")[0]));return document.cookie=r+"="+t.write(i,r)+d}}return Object.create({set:o,get:function(r){if(typeof document!="undefined"&&(!arguments.length||r)){for(var i=document.cookie?document.cookie.split("; "):[],l={},d=0;d<i.length;d++){var u=i[d].split("="),s=u.slice(1).join("=");try{var c=decodeURIComponent(u[0]);if(l[c]=t.read(s,c),r===c)break}catch(v){}}return r?l[r]:l}},remove:function(r,i){o(r,"",Mt({},i,{expires:-1}))},withAttributes:function(r){return n(this.converter,Mt({},this.attributes,r))},withConverter:function(r){return n(Mt({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})})({read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Yt=class{constructor(t){var e,o;this.authCookieName=void 0,this.authCookieDomain=void 0,this.authCookieSameSite=void 0,this.authCookieName=(e=t.cookieName)!=null?e:"hanko",this.authCookieDomain=t.cookieDomain,this.authCookieSameSite=(o=t.cookieSameSite)!=null?o:"lax"}getAuthCookie(){return dn.get(this.authCookieName)}setAuthCookie(t,e){let o={secure:!0,sameSite:this.authCookieSameSite};this.authCookieDomain!==void 0&&(o.domain=this.authCookieDomain);let r=We({},o,e);if((r.sameSite==="none"||r.sameSite==="None")&&r.secure===!1)throw new Je(new Error("Secure attribute must be set when SameSite=None"));dn.set(this.authCookieName,t,r)}removeAuthCookie(){dn.remove(this.authCookieName)}},vn=class{constructor(t){this.keyName=void 0,this.keyName=t.keyName}getSessionToken(){return sessionStorage.getItem(this.keyName)}setSessionToken(t){sessionStorage.setItem(this.keyName,t)}removeSessionToken(){sessionStorage.removeItem(this.keyName)}},gn=class{constructor(t){this._xhr=void 0,this._xhr=t}getResponseHeader(t){return this._xhr.getResponseHeader(t)}},yn=class{constructor(t){this.headers=void 0,this.ok=void 0,this.status=void 0,this.statusText=void 0,this.url=void 0,this._decodedJSON=void 0,this.xhr=void 0,this.headers=new gn(t),this.ok=t.status>=200&&t.status<=299,this.status=t.status,this.statusText=t.statusText,this.url=t.responseURL,this.xhr=t}json(){return this._decodedJSON||(this._decodedJSON=JSON.parse(this.xhr.response)),this._decodedJSON}parseNumericHeader(t){let e=parseInt(this.headers.getResponseHeader(t),10);return isNaN(e)?0:e}},Xt=class{constructor(t,e){var o;this.timeout=void 0,this.api=void 0,this.dispatcher=void 0,this.cookie=void 0,this.sessionTokenStorage=void 0,this.lang=void 0,this.sessionTokenLocation=void 0,this.api=t,this.timeout=(o=e.timeout)!=null?o:13e3,this.dispatcher=new Jt,this.cookie=new Yt(We({},e)),this.sessionTokenStorage=new vn({keyName:e.cookieName}),this.lang=e.lang,this.sessionTokenLocation=e.sessionTokenLocation}_fetch(t,e,o=new XMLHttpRequest){let r=this,i=this.api+t,l=this.timeout,d=this.getAuthToken(),u=this.lang;return new Promise(function(s,c){o.open(e.method,i,!0),o.setRequestHeader("Accept","application/json"),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("X-Language",u),d&&o.setRequestHeader("Authorization",`Bearer ${d}`),o.timeout=l,o.withCredentials=!0,o.onload=()=>{r.processHeaders(o),s(new yn(o))},o.onerror=()=>{c(new Je)},o.ontimeout=()=>{c(new mn)},o.send(e.body?e.body.toString():null)})}processHeaders(t){let e="",o=0,r="";if(t.getAllResponseHeaders().split(`\r
|
|
3
|
-
`).forEach(i=>{let l=i.toLowerCase();l.startsWith("x-auth-token")?e=t.getResponseHeader("X-Auth-Token"):l.startsWith("x-session-lifetime")?o=parseInt(t.getResponseHeader("X-Session-Lifetime"),10):l.startsWith("x-session-retention")&&(r=t.getResponseHeader("X-Session-Retention"))}),e){let i=new RegExp("^https://"),l=!!this.api.match(i)&&!!window.location.href.match(i),d=r==="session"?void 0:new Date(new Date().getTime()+1e3*o);this.setAuthToken(e,{secure:l,expires:d})}}get(t){return this._fetch(t,{method:"GET"})}post(t,e){return this._fetch(t,{method:"POST",body:JSON.stringify(e)})}put(t,e){return this._fetch(t,{method:"PUT",body:JSON.stringify(e)})}patch(t,e){return this._fetch(t,{method:"PATCH",body:JSON.stringify(e)})}delete(t){return this._fetch(t,{method:"DELETE"})}getAuthToken(){let t="";switch(this.sessionTokenLocation){case"cookie":default:t=this.cookie.getAuthCookie();break;case"sessionStorage":t=this.sessionTokenStorage.getSessionToken()}return t}setAuthToken(t,e){switch(this.sessionTokenLocation){case"cookie":default:return this.cookie.setAuthCookie(t,e);case"sessionStorage":return this.sessionTokenStorage.setSessionToken(t)}}},en=class{constructor(t,e){this.client=void 0,this.client=new Xt(t,e)}},tn=class extends en{async validate(){let t=await this.client.get("/sessions/validate");if(!t.ok)throw new Je;return await t.json()}},bn=class{constructor(t){this.storageKey=void 0,this.defaultState={expiration:0,lastCheck:0},this.storageKey=t}load(){let t=window.localStorage.getItem(this.storageKey);return t==null?this.defaultState:JSON.parse(t)}save(t){window.localStorage.setItem(this.storageKey,JSON.stringify(t||this.defaultState))}},kn=class{constructor(t,e){this.onActivityCallback=void 0,this.onInactivityCallback=void 0,this.handleFocus=()=>{this.onActivityCallback()},this.handleBlur=()=>{this.onInactivityCallback()},this.handleVisibilityChange=()=>{document.visibilityState==="visible"?this.onActivityCallback():this.onInactivityCallback()},this.hasFocus=()=>document.hasFocus(),this.onActivityCallback=t,this.onInactivityCallback=e,window.addEventListener("focus",this.handleFocus),window.addEventListener("blur",this.handleBlur),document.addEventListener("visibilitychange",this.handleVisibilityChange)}},wn=class{constructor(t,e,o){this.intervalID=null,this.timeoutID=null,this.checkInterval=void 0,this.checkSession=void 0,this.onSessionExpired=void 0,this.checkInterval=t,this.checkSession=e,this.onSessionExpired=o}scheduleSessionExpiry(t){var e=this;this.stop(),this.timeoutID=setTimeout(async function(){e.stop(),e.onSessionExpired()},t)}start(t=0,e=0){var o=this;let r=this.calcTimeToNextCheck(t);this.sessionExpiresSoon(e)?this.scheduleSessionExpiry(r):this.timeoutID=setTimeout(async function(){try{let i=await o.checkSession();if(i.is_valid){if(o.sessionExpiresSoon(i.expiration))return void o.scheduleSessionExpiry(i.expiration-Date.now());o.intervalID=setInterval(async function(){i=await o.checkSession(),i.is_valid?o.sessionExpiresSoon(i.expiration)&&o.scheduleSessionExpiry(i.expiration-Date.now()):o.stop()},o.checkInterval)}else o.stop()}catch(i){console.log(i)}},r)}stop(){this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null),this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)}isRunning(){return this.timeoutID!==null||this.intervalID!==null}sessionExpiresSoon(t){return t>0&&t-Date.now()<=this.checkInterval}calcTimeToNextCheck(t){let e=Date.now()-t;return this.checkInterval>=e?this.checkInterval-e%this.checkInterval:0}},Sn=class{constructor(t="hanko_session",e,o,r){this.channel=void 0,this.onSessionExpired=void 0,this.onSessionCreated=void 0,this.onLeadershipRequested=void 0,this.handleMessage=i=>{let l=i.data;switch(l.action){case"sessionExpired":this.onSessionExpired(l);break;case"sessionCreated":this.onSessionCreated(l);break;case"requestLeadership":this.onLeadershipRequested(l)}},this.onSessionExpired=e,this.onSessionCreated=o,this.onLeadershipRequested=r,this.channel=new BroadcastChannel(t),this.channel.onmessage=this.handleMessage}post(t){this.channel.postMessage(t)}},xn=class extends Jt{constructor(t,e){super(),this.listener=new Zt,this.checkInterval=3e4,this.client=void 0,this.sessionState=void 0,this.windowActivityManager=void 0,this.scheduler=void 0,this.sessionChannel=void 0,this.isLoggedIn=void 0,this.client=new tn(t,e),e.sessionCheckInterval&&(this.checkInterval=e.sessionCheckInterval<3e3?3e3:e.sessionCheckInterval),this.sessionState=new bn(`${e.cookieName}_session_state`),this.sessionChannel=new Sn(this.getSessionCheckChannelName(e.sessionTokenLocation,e.sessionCheckChannelName),()=>this.onChannelSessionExpired(),i=>this.onChannelSessionCreated(i),()=>this.onChannelLeadershipRequested()),this.scheduler=new wn(this.checkInterval,()=>this.checkSession(),()=>this.onSessionExpired()),this.windowActivityManager=new kn(()=>this.startSessionCheck(),()=>this.scheduler.stop());let o=Date.now(),{expiration:r}=this.sessionState.load();this.isLoggedIn=o<r,this.initializeEventListeners(),this.startSessionCheck()}initializeEventListeners(){this.listener.onSessionCreated(t=>{let{claims:e}=t,o=Date.parse(e.expiration),r=Date.now();this.isLoggedIn=!0,this.sessionState.save({expiration:o,lastCheck:r}),this.sessionChannel.post({action:"sessionCreated",claims:e}),this.startSessionCheck()}),this.listener.onUserLoggedOut(()=>{this.isLoggedIn=!1,this.sessionChannel.post({action:"sessionExpired"}),this.sessionState.save(null),this.scheduler.stop()}),window.addEventListener("beforeunload",()=>this.scheduler.stop())}startSessionCheck(){if(!this.windowActivityManager.hasFocus()||(this.sessionChannel.post({action:"requestLeadership"}),this.scheduler.isRunning()))return;let{lastCheck:t,expiration:e}=this.sessionState.load();this.isLoggedIn&&this.scheduler.start(t,e)}async checkSession(){let t=Date.now(),{is_valid:e,claims:o,expiration_time:r}=await this.client.validate(),i=r?Date.parse(r):0;return!e&&this.isLoggedIn&&this.dispatchSessionExpiredEvent(),e?(this.isLoggedIn=!0,this.sessionState.save({lastCheck:t,expiration:i})):(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"})),{is_valid:e,claims:o,expiration:i}}onSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"}),this.dispatchSessionExpiredEvent())}onChannelSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.dispatchSessionExpiredEvent())}onChannelSessionCreated(t){let{claims:e}=t,o=Date.now(),r=Date.parse(e.expiration)-o;this.isLoggedIn=!0,this.dispatchSessionCreatedEvent({claims:e,expirationSeconds:r})}onChannelLeadershipRequested(){this.windowActivityManager.hasFocus()||this.scheduler.stop()}getSessionCheckChannelName(t,e){if(t!=="sessionStorage")return e;let o=sessionStorage.getItem("sessionCheckChannelName");return o!=null&&o!==""||(o=`${e}-${Math.floor(100*Math.random())+1}`,sessionStorage.setItem("sessionCheckChannelName",o)),o}},nt=class{static supported(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}static async isPlatformAuthenticatorAvailable(){return!(!this.supported()||!window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable)&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}static async isSecurityKeySupported(){return window.PublicKeyCredential!==void 0&&window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported?window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported():this.supported()}static async isConditionalMediationAvailable(){return!(!window.PublicKeyCredential||!window.PublicKeyCredential.isConditionalMediationAvailable)&&window.PublicKeyCredential.isConditionalMediationAvailable()}};function To(n){let t="==".slice(0,(4-n.length%4)%4),e=n.replace(/-/g,"+").replace(/_/g,"/")+t,o=atob(e),r=new ArrayBuffer(o.length),i=new Uint8Array(r);for(let l=0;l<o.length;l++)i[l]=o.charCodeAt(l);return r}function Mo(n){let t=new Uint8Array(n),e="";for(let o of t)e+=String.fromCharCode(o);return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ae="copy",ze="convert";function st(n,t,e){if(t===ae)return e;if(t===ze)return n(e);if(t instanceof Array)return e.map(o=>st(n,t[0],o));if(t instanceof Object){let o={};for(let[r,i]of Object.entries(t)){if(i.derive){let l=i.derive(e);l!==void 0&&(e[r]=l)}if(r in e)o[r]=e[r]!=null?st(n,i.schema,e[r]):null;else if(i.required)throw new Error(`Missing key: ${r}`)}return o}}function Cn(n,t){return{required:!0,schema:n,derive:t}}function le(n){return{required:!0,schema:n}}function fe(n){return{required:!1,schema:n}}var Do={type:le(ae),id:le(ze),transports:fe(ae)},Lo={appid:fe(ae),appidExclude:fe(ae),credProps:fe(ae)},Uo={appid:fe(ae),appidExclude:fe(ae),credProps:fe(ae)},ba={publicKey:le({rp:le(ae),user:le({id:le(ze),name:le(ae),displayName:le(ae)}),challenge:le(ze),pubKeyCredParams:le(ae),timeout:fe(ae),excludeCredentials:fe([Do]),authenticatorSelection:fe(ae),attestation:fe(ae),extensions:fe(Lo)}),signal:fe(ae)},ka={type:le(ae),id:le(ae),rawId:le(ze),authenticatorAttachment:fe(ae),response:le({clientDataJSON:le(ze),attestationObject:le(ze),transports:Cn(ae,n=>{var t;return((t=n.getTransports)==null?void 0:t.call(n))||[]})}),clientExtensionResults:Cn(Uo,n=>n.getClientExtensionResults())},wa={mediation:fe(ae),publicKey:le({challenge:le(ze),timeout:fe(ae),rpId:fe(ae),allowCredentials:fe([Do]),userVerification:fe(ae),extensions:fe(Lo)}),signal:fe(ae)},Sa={type:le(ae),id:le(ae),rawId:le(ze),authenticatorAttachment:fe(ae),response:le({clientDataJSON:le(ze),authenticatorData:le(ze),signature:le(ze),userHandle:le(ze)}),clientExtensionResults:Cn(Uo,n=>n.getClientExtensionResults())};async function Xn(n){let t=await navigator.credentials.get((function(e){return st(To,wa,e)})(n));return(function(e){return st(Mo,Sa,e)})(t)}var ot=class n{constructor(){this.abortController=new AbortController}static getInstance(){return n.instance||(n.instance=new n),n.instance}createAbortSignal(){return this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal}async getWebauthnCredential(t){return await Xn(We({},t,{signal:this.createAbortSignal()}))}async getConditionalWebauthnCredential(t){return await Xn({publicKey:t,mediation:"conditional",signal:this.createAbortSignal()})}async createWebauthnCredential(t){return await(async function(e){return o=await navigator.credentials.create((function(r){return st(To,ba,r)})(e)),st(Mo,ka,o);var o})(We({},t,{signal:this.createAbortSignal()}))}};ot.instance=null;var Pn="hanko_pkce_code_verifier",On=()=>{let n="",t=new Uint8Array(1);for(;n.length<64;){window.crypto.getRandomValues(t);let e=t[0];e<198&&(n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~".charAt(e%66))}return n},Tn=n=>{typeof window!="undefined"&&window.sessionStorage&&window.sessionStorage.setItem(Pn,n)},xa=()=>typeof window!="undefined"&&window.sessionStorage?window.sessionStorage.getItem(Pn):null,at=()=>{typeof window!="undefined"&&window.sessionStorage&&window.sessionStorage.removeItem(Pn)};async function eo(n,t,e,o="webauthn_credential_already_exists",r="Webauthn credential already exists"){try{let i=await t.createWebauthnCredential(e);return await n.actions.webauthn_verify_attestation_response.run({public_key:i})}catch(i){let l=await n.actions.back.run();return l.error={code:o,message:r},l}}var to={preflight:async n=>await n.actions.register_client_capabilities.run({webauthn_available:nt.supported(),webauthn_conditional_mediation_available:await nt.isConditionalMediationAvailable(),webauthn_platform_authenticator_available:await nt.isPlatformAuthenticatorAvailable()}),login_passkey:async n=>{let t=ot.getInstance();try{let e=await t.getWebauthnCredential(n.payload.request_options);return await n.actions.webauthn_verify_assertion_response.run({assertion_response:e})}catch(e){let o=await n.actions.back.run();return n.error&&(o.error=n.error),o}},onboarding_verify_passkey_attestation:async n=>eo(n,ot.getInstance(),n.payload.creation_options),webauthn_credential_verification:async n=>eo(n,ot.getInstance(),n.payload.creation_options),async thirdparty(n){let t=new URLSearchParams(window.location.search),e=t.get("hanko_token"),o=t.get("error"),r=i=>{i.forEach(d=>t.delete(d));let l=t.toString()?`?${t.toString()}`:"";history.replaceState(null,null,`${window.location.pathname}${l}`)};if((e==null?void 0:e.length)>0){r(["hanko_token"]);let i=xa();try{return await n.actions.exchange_token.run({token:e,code_verifier:i||void 0})}finally{at()}}if((o==null?void 0:o.length)>0){let i=o==="access_denied"?"third_party_access_denied":"technical_error",l=t.get("error_description");r(["error","error_description"]);let d=await n.actions.back.run(null,{dispatchAfterStateChangeEvent:!1});return d.error={code:i,message:l},d.dispatchAfterStateChangeEvent(),d}return n.isCached?await n.actions.back.run():(n.saveToLocalStorage(),window.location.assign(n.payload.redirect_url),n)},success:async n=>{let{claims:t}=n.payload,e=Date.parse(t.expiration)-Date.now();return n.removeFromLocalStorage(),n.hanko.relay.dispatchSessionCreatedEvent({claims:t,expirationSeconds:e}),n},account_deleted:async n=>(n.removeFromLocalStorage(),n.hanko.relay.dispatchUserDeletedEvent(),n)},no={login_init:async n=>{(async function(){let t=ot.getInstance();if(n.payload.request_options)try{let{publicKey:e}=n.payload.request_options,o=await t.getConditionalWebauthnCredential(e);return await n.actions.webauthn_verify_assertion_response.run({assertion_response:o})}catch(e){return}})()}},xt=class n{constructor(t,e,o,r={}){if(this.name=void 0,this.flowName=void 0,this.error=void 0,this.payload=void 0,this.actions=void 0,this.csrfToken=void 0,this.status=void 0,this.previousAction=void 0,this.isCached=void 0,this.cacheKey=void 0,this.hanko=void 0,this.invokedAction=void 0,this.excludeAutoSteps=void 0,this.autoStep=void 0,this.passkeyAutofillActivation=void 0,this.flowName=e,this.name=o.name,this.error=o.error,this.payload=o.payload,this.csrfToken=o.csrf_token,this.status=o.status,this.hanko=t,this.actions=this.buildActionMap(o.actions),this.name in to){let c=to[this.name];this.autoStep=()=>c(this)}if(this.name in no){let c=no[this.name];this.passkeyAutofillActivation=()=>c(this)}let{dispatchAfterStateChangeEvent:i=!0,excludeAutoSteps:l=null,previousAction:d=null,isCached:u=!1,cacheKey:s="hanko-flow-state"}=r;this.excludeAutoSteps=l,this.previousAction=d,this.isCached=u,this.cacheKey=s,i&&this.dispatchAfterStateChangeEvent()}buildActionMap(t){let e={};return Object.keys(t).forEach(o=>{e[o]=new nn(t[o],this)}),new Proxy(e,{get:(o,r)=>{if(r in o)return o[r];let i=typeof r=="string"?r:r.toString();return nn.createDisabled(i,this)}})}dispatchAfterStateChangeEvent(){this.hanko.relay.dispatchAfterStateChangeEvent({state:this})}serialize(){return{flow_name:this.flowName,name:this.name,error:this.error,payload:this.payload,csrf_token:this.csrfToken,status:this.status,previous_action:this.previousAction,actions:Object.fromEntries(Object.entries(this.actions).map(([t,e])=>[t,{action:e.name,href:e.href,inputs:e.inputs,description:null}]))}}saveToLocalStorage(){localStorage.setItem(this.cacheKey,JSON.stringify(We({},this.serialize(),{is_cached:!0})))}removeFromLocalStorage(){localStorage.removeItem(this.cacheKey)}static async initializeFlowState(t,e,o,r={}){let i=new n(t,e,o,r);if(i.excludeAutoSteps!="all")for(;i&&i.autoStep&&((l=i.excludeAutoSteps)==null||!l.includes(i.name));){var l;let d=await i.autoStep();if(d.name==i.name)return d;i=d}return i}static readFromLocalStorage(t){let e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(o){return}}static async create(t,e,o={}){let{cacheKey:r="hanko-flow-state",loadFromCache:i=!0}=o;if(i){let d=n.readFromLocalStorage(r);if(d)return n.deserialize(t,d,We({},o,{cacheKey:r}))}let l=await n.fetchState(t,`/${e}`);return n.initializeFlowState(t,e,l,We({},o,{cacheKey:r}))}static async deserialize(t,e,o={}){return n.initializeFlowState(t,e.flow_name,e,We({},o,{previousAction:e.previous_action,isCached:e.is_cached}))}static async fetchState(t,e,o){try{return(await t.client.post(e,o)).json()}catch(r){return n.createErrorResponse(r)}}static createErrorResponse(t){return{actions:null,csrf_token:"",name:"error",payload:null,status:0,error:t}}},nn=class n{constructor(t,e,o=!0){this.enabled=void 0,this.href=void 0,this.name=void 0,this.inputs=void 0,this.parentState=void 0,this.enabled=o,this.href=t.href,this.name=t.action,this.inputs=t.inputs,this.parentState=e}static createDisabled(t,e){return new n({action:t,href:"",inputs:{},description:"Disabled action"},e,!1)}async run(t=null,e={}){let{name:o,hanko:r,flowName:i,csrfToken:l,invokedAction:d,excludeAutoSteps:u,cacheKey:s}=this.parentState,{dispatchAfterStateChangeEvent:c=!0}=e;if(!this.enabled)throw new Error(`Action '${this.name}' is not enabled in state '${o}'`);if(d)throw new Error(`An action '${d.name}' has already been invoked on state '${d.relatedStateName}'. No further actions can be run.`);this.parentState.invokedAction={name:this.name,relatedStateName:o},r.relay.dispatchBeforeStateChangeEvent({state:this.parentState});let v={input_data:We({},Object.keys(this.inputs).reduce((_,k)=>{let w=this.inputs[k];return w.value!==void 0&&(_[k]=w.value),_},{}),t),csrf_token:l},m=await xt.fetchState(r,this.href,v);return this.parentState.removeFromLocalStorage(),xt.initializeFlowState(r,i,m,{dispatchAfterStateChangeEvent:c,excludeAutoSteps:u,previousAction:d,cacheKey:s})}},In=class extends en{async getCurrent(){let t=await this.client.get("/me");if(t.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new Qt;if(!t.ok)throw new Je;let e=t.json(),o=await this.client.get(`/users/${e.id}`);if(o.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new Qt;if(!o.ok)throw new Je;return o.json()}async logout(){let t=await this.client.post("/logout");if(this.client.sessionTokenStorage.removeSessionToken(),this.client.cookie.removeAuthCookie(),this.client.dispatcher.dispatchUserLoggedOutEvent(),t.status!==401&&!t.ok)throw new Je}},An=class extends Zt{constructor(t,e){super(),this.session=void 0,this.user=void 0,this.cookie=void 0,this.client=void 0,this.relay=void 0;let o=We({timeout:13e3,cookieName:"hanko",localStorageKey:"hanko",sessionCheckInterval:3e4,sessionCheckChannelName:"hanko-session-check"},e);this.client=new Xt(t,o),this.session=new tn(t,o),this.user=new In(t,o),this.relay=new xn(t,o),this.cookie=new Yt(o)}setLang(t){this.client.lang=t}createState(t,e={}){return xt.create(this,t,e)}async getUser(){return this.user.getCurrent()}async validateSession(){return this.session.validate()}getSessionToken(){return this.cookie.getAuthCookie()}async logout(){return this.user.logout()}},Ca=Y(292),$e=Y.n(Ca),Ia=Y(360),Ge=Y.n(Ia),Aa=Y(884),Ve=Y.n(Aa),Ea=Y(88),Ze=Y.n(Ea),jt=Y(890),ht={};ht.setAttributes=Ve(),ht.insert=n=>{window._hankoStyle=n},ht.domAPI=Ge(),ht.insertStyleElement=Ze(),$e()(jt.A,ht);var Ct=jt.A&&jt.A.locals?jt.A.locals:void 0,Pa=(function(n){function t(e){var o=ko({},e);return delete o.ref,n(o,e.ref||null)}return t.$$typeof=la,t.render=n,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t})((n,t)=>{let{lang:e,hanko:o,setHanko:r}=(0,f.useContext)(Ae),{setLang:i}=(0,f.useContext)(G.TranslateContext);return(0,f.useEffect)(()=>{i(e.replace(/[-]/,"")),r(l=>(l.setLang(e),l))},[o,e,r,i]),a("section",{part:"container",className:Ct.container,ref:t,children:n.children})}),Wt=Y(313),pt={};pt.setAttributes=Ve(),pt.insert=n=>{window._hankoStyle=n},pt.domAPI=Ge(),pt.insertStyleElement=Ze(),$e()(Wt.A,pt);var T=Wt.A&&Wt.A.locals?Wt.A.locals:void 0,Oa=Y(452),J=Y.n(Oa),Ta=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-apple",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"20.5 16 15 19",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z"})}),Ma=({secondary:n,size:t,fadeOut:e,disabled:o})=>a("svg",{id:"icon-checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"4 4 40 40",width:t,height:t,className:J()(T.checkmark,n&&T.secondary,e&&T.fadeOut,o&&T.disabled),children:a("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z"})}),Da=({size:n,secondary:t,disabled:e})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),La=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-custom-provider",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:[a("path",{d:"M0 0h24v24H0z",fill:"none"}),a("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"})]}),Ua=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-discord",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 127.14 96.36",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})}),Na=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-exclamation",xmlns:"http://www.w3.org/2000/svg",viewBox:"5 2 13 20",width:n,height:n,className:J()(T.exclamationMark,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),za=({size:n,secondary:t,disabled:e})=>a("svg",{width:n,height:n,viewBox:"0 0 666.66668 666.66717",xmlns:"http://www.w3.org/2000/svg",children:[a("defs",{id:"defs13",children:a("clipPath",{clipPathUnits:"userSpaceOnUse",id:"clipPath25",children:a("path",{d:"M 0,700 H 700 V 0 H 0 Z",id:"path23"})})}),a("g",{id:"g17",transform:"matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)",children:a("g",{id:"g19",children:a("g",{id:"g21",clipPath:"url(#clipPath25)",children:[a("g",{id:"g27",transform:"translate(600,350)",children:a("path",{className:J()(T.facebookIcon,e?T.disabledOutline:T.outline),d:"m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0",id:"path29"})}),a("g",{id:"g31",transform:"translate(447.9175,273.6036)",children:a("path",{className:J()(T.facebookIcon,e?T.disabledLetter:T.letter),d:"M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z",id:"path33"})})]})})})]}),ja=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-github",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 97.63 96",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:[a("path",{d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})," "]}),Wa=({size:n,disabled:t})=>a("svg",{id:"icon-google",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:T.googleIcon,children:[a("path",{className:J()(T.googleIcon,t?T.disabled:T.blue),d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),a("path",{className:J()(T.googleIcon,t?T.disabled:T.green),d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),a("path",{className:J()(T.googleIcon,t?T.disabled:T.yellow),d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),a("path",{className:J()(T.googleIcon,t?T.disabled:T.red),d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}),a("path",{d:"M1 1h22v22H1z",fill:"none"})]}),Fa=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-linkedin",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,viewBox:"0 0 24 24",height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})}),Ra=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-mail",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"})}),Ha=({size:n,disabled:t})=>a("svg",{id:"icon-microsoft",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:T.microsoftIcon,children:[a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.blue),x:"1",y:"1",width:"9",height:"9"}),a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.green),x:"1",y:"11",width:"9",height:"9"}),a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.yellow),x:"11",y:"1",width:"9",height:"9"}),a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.red),x:"11",y:"11",width:"9",height:"9"})]}),qa=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-passkey",xmlns:"http://www.w3.org/2000/svg",viewBox:"3 1.5 19.5 19",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("g",{id:"icon-passkey-all",children:[a("circle",{id:"icon-passkey-head",cx:"10.5",cy:"6",r:"4.5"}),a("path",{id:"icon-passkey-key",d:"M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z"}),a("path",{id:"icon-passkey-body",d:"M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z"})]})}),Ka=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-password",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),Ba=({size:n,secondary:t,disabled:e})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z"})}),$a=({size:n,secondary:t,disabled:e})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z"})}),Ga=({size:n,disabled:t})=>a("svg",{id:"icon-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:J()(T.loadingSpinner,t&&T.disabled),children:[a("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"}),a("path",{d:"M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z"})]}),It=({name:n,secondary:t,size:e=18,fadeOut:o,disabled:r})=>a(pn[n],{size:e,secondary:t,fadeOut:o,disabled:r}),Mn=({children:n,isLoading:t,isSuccess:e,fadeOut:o,secondary:r,hasIcon:i,maxWidth:l})=>a(b.Fragment,{children:a("div",t?{className:J()(T.loadingSpinnerWrapper,T.centerContent,l&&T.maxWidth),children:a(It,{name:"spinner",secondary:r})}:e?{className:J()(T.loadingSpinnerWrapper,T.centerContent,l&&T.maxWidth),children:a(It,{name:"checkmark",secondary:r,fadeOut:o})}:{className:i?T.loadingSpinnerWrapperIcon:T.loadingSpinnerWrapper,children:n})}),Va=()=>a(Mn,{isLoading:!0}),be=n=>{let[t,e]=(0,f.useState)(n);return(0,f.useEffect)(()=>{n&&e(n)},[n]),{flowState:t}},Ft=Y(681),ft={};ft.setAttributes=Ve(),ft.insert=n=>{window._hankoStyle=n},ft.domAPI=Ge(),ft.insertStyleElement=Ze(),$e()(Ft.A,ft);var ge=Ft.A&&Ft.A.locals?Ft.A.locals:void 0,No=(n,t,e)=>{let{hanko:o,setUIState:r,isOwnFlow:i}=(0,f.useContext)(Ae);(0,f.useEffect)(()=>o.onBeforeStateChange(({state:l})=>{n&&i(l)&&(r(d=>Object.assign(Object.assign({},d),{isDisabled:!0,error:void 0})),t(l.invokedAction.name==n.name))}),[n,o,i,t,r]),(0,f.useEffect)(()=>o.onAfterStateChange(({state:l})=>{var d;n&&i(l)&&(e(((d=l.previousAction)===null||d===void 0?void 0:d.name)==n.name),t(!1))}),[o,e,t,n,i])},zo=(0,b.createContext)({}),X=({onSubmit:n,children:t,hidden:e=!1,maxWidth:o,flowAction:r})=>a(zo.Provider,{value:{flowAction:r},children:r&&r.enabled&&!e?a("form",{onSubmit:n||(i=>(function(l,d,u,s){return new(u||(u=Promise))(function(c,v){function m(w){try{k(s.next(w))}catch(x){v(x)}}function _(w){try{k(s.throw(w))}catch(x){v(x)}}function k(w){var x;w.done?c(w.value):(x=w.value,x instanceof u?x:new u(function(C){C(x)})).then(m,_)}k((s=s.apply(l,d||[])).next())})})(void 0,void 0,void 0,function*(){return i.preventDefault(),yield r.run()})),className:ge.form,children:a("ul",{className:ge.ul,children:(0,b.toChildArray)(t).map((i,l)=>a("li",{part:"form-item",className:J()(ge.li,o?ge.maxWidth:null),children:i},l))})}):null}),ee=n=>{var{title:t,children:e,secondary:o,dangerous:r,autofocus:i,showLastUsed:l,onClick:d,icon:u,showSuccessIcon:s}=n,c=(function(N,j){var V={};for(var K in N)Object.prototype.hasOwnProperty.call(N,K)&&j.indexOf(K)<0&&(V[K]=N[K]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function"){var Z=0;for(K=Object.getOwnPropertySymbols(N);Z<K.length;Z++)j.indexOf(K[Z])<0&&Object.prototype.propertyIsEnumerable.call(N,K[Z])&&(V[K[Z]]=N[K[Z]])}return V})(n,["title","children","secondary","dangerous","autofocus","showLastUsed","onClick","icon","showSuccessIcon"]);let v=(0,f.useRef)(null),{uiState:m}=(0,f.useContext)(Ae),{t:_}=(0,f.useContext)(G.TranslateContext),[k,w]=(0,f.useState)(!1),[x,C]=(0,f.useState)(!1),{flowAction:R}=(0,f.useContext)(zo);No(R,w,C),(0,f.useEffect)(()=>{let{current:N}=v;N&&i&&N.focus()},[i]);let P=(0,f.useMemo)(()=>s&&(x||c.isSuccess),[x,c,s]),L=(0,f.useMemo)(()=>m.isDisabled||c.disabled,[c,m]);return a("button",{part:r?"button dangerous-button":o?"button secondary-button":"button primary-button",title:t,ref:v,type:"submit",disabled:L,onClick:d,className:J()(ge.button,r?ge.dangerous:o?ge.secondary:ge.primary),"data-bubble":l?_("labels.lastUsed"):void 0,children:a(Mn,{isLoading:k,isSuccess:P,secondary:!0,hasIcon:!!u,maxWidth:!0,children:[u?a(It,{name:u,secondary:o,disabled:L}):null,a("div",{className:ge.caption,children:a("span",{children:e})})]})})},Oe=n=>{var t,e,o,r,i,{label:l}=n,d=(function(_,k){var w={};for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&k.indexOf(x)<0&&(w[x]=_[x]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var C=0;for(x=Object.getOwnPropertySymbols(_);C<x.length;C++)k.indexOf(x[C])<0&&Object.prototype.propertyIsEnumerable.call(_,x[C])&&(w[x[C]]=_[x[C]])}return w})(n,["label"]);let u=(0,f.useRef)(null),{uiState:s}=(0,f.useContext)(Ae),{t:c}=(0,f.useContext)(G.TranslateContext),v=(0,f.useMemo)(()=>s.isDisabled||d.disabled,[d,s]);(0,f.useEffect)(()=>{let{current:_}=u;_&&d.autofocus&&(_.focus(),_.select())},[d.autofocus]);let m=(0,f.useMemo)(()=>{var _;return d.markOptional&&!(!((_=d.flowInput)===null||_===void 0)&&_.required)?`${d.placeholder} (${c("labels.optional")})`:d.placeholder},[d.markOptional,d.placeholder,d.flowInput,c]);return a("div",{className:ge.inputWrapper,children:a("input",Object.assign({part:"input text-input",required:(t=d.flowInput)===null||t===void 0?void 0:t.required,maxLength:(e=d.flowInput)===null||e===void 0?void 0:e.max_length,minLength:(o=d.flowInput)===null||o===void 0?void 0:o.min_length,hidden:(r=d.flowInput)===null||r===void 0?void 0:r.hidden},d,{ref:u,"aria-label":m,placeholder:m,className:J()(ge.input,!!(!((i=d.flowInput)===null||i===void 0)&&i.error)&&d.markError&&ge.error),disabled:v}))})},_e=({children:n})=>a("section",{className:Ct.content,children:n}),Rt=Y(751),_t={};_t.setAttributes=Ve(),_t.insert=n=>{window._hankoStyle=n},_t.domAPI=Ge(),_t.insertStyleElement=Ze(),$e()(Rt.A,_t);var St=Rt.A&&Rt.A.locals?Rt.A.locals:void 0,Dn=({children:n,hidden:t})=>t?null:a("section",{part:"divider",className:St.divider,children:[a("div",{part:"divider-line",className:St.line}),n?a("div",{part:"divider-text",class:St.text,children:n}):null,a("div",{part:"divider-line",className:St.line})]}),Ht=Y(217),mt={};mt.setAttributes=Ve(),mt.insert=n=>{window._hankoStyle=n},mt.domAPI=Ge(),mt.insertStyleElement=Ze(),$e()(Ht.A,mt);var jo=Ht.A&&Ht.A.locals?Ht.A.locals:void 0,me=({state:n,error:t,flowError:e})=>{var o,r;let{t:i}=(0,f.useContext)(G.TranslateContext),{uiState:l,setUIState:d}=(0,f.useContext)(Ae);return(0,f.useEffect)(()=>{var u,s;if(((u=n==null?void 0:n.error)===null||u===void 0?void 0:u.code)=="form_data_invalid_error")for(let c of Object.values(n==null?void 0:n.actions)){let v=!1;for(let m of Object.values(c==null?void 0:c.inputs))if(!((s=m.error)===null||s===void 0)&&s.code)return d(Object.assign(Object.assign({},l),{error:m.error})),void(v=!0);v||d(Object.assign(Object.assign({},l),{error:n.error}))}else n!=null&&n.error&&d(Object.assign(Object.assign({},l),{error:n==null?void 0:n.error}))},[n]),a("section",{part:"error",className:jo.errorBox,hidden:!(!((o=l.error)===null||o===void 0)&&o.code)&&!(e!=null&&e.code)&&!t,children:[a("span",{children:a(It,{name:"exclamation",size:15})}),a("span",{id:"errorMessage",part:"error-text",children:i(t?`errors.${t.code}`:`flowErrors.${((r=l.error)===null||r===void 0?void 0:r.code)||(e==null?void 0:e.code)}`)})]})},qt=Y(547),vt={};vt.setAttributes=Ve(),vt.insert=n=>{window._hankoStyle=n},vt.domAPI=Ge(),vt.insertStyleElement=Ze(),$e()(qt.A,vt);var on=qt.A&&qt.A.locals?qt.A.locals:void 0,re=({children:n})=>a("h1",{part:"headline1",className:J()(on.headline,on.grade1),children:n}),Kt=Y(579),gt={};gt.setAttributes=Ve(),gt.insert=n=>{window._hankoStyle=n},gt.domAPI=Ge(),gt.insertStyleElement=Ze(),$e()(Kt.A,gt);var Dt=Kt.A&&Kt.A.locals?Kt.A.locals:void 0,En=n=>{var{loadingSpinnerPosition:t,dangerous:e=!1,onClick:o,flowAction:r}=n,i=(function(j,V){var K={};for(var Z in j)Object.prototype.hasOwnProperty.call(j,Z)&&V.indexOf(Z)<0&&(K[Z]=j[Z]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function"){var ne=0;for(Z=Object.getOwnPropertySymbols(j);ne<Z.length;ne++)V.indexOf(Z[ne])<0&&Object.prototype.propertyIsEnumerable.call(j,Z[ne])&&(K[Z[ne]]=j[Z[ne]])}return K})(n,["loadingSpinnerPosition","dangerous","onClick","flowAction"]);let{t:l}=(0,f.useContext)(G.TranslateContext),{uiState:d}=(0,f.useContext)(Ae),[u,s]=(0,f.useState)(),[c,v]=(0,f.useState)(!1),[m,_]=(0,f.useState)(!1),k;o||(o=j=>(function(V,K,Z,ne){return new(Z||(Z=Promise))(function(U,ce){function ve(pe){try{Pe(ne.next(pe))}catch(ue){ce(ue)}}function xe(pe){try{Pe(ne.throw(pe))}catch(ue){ce(ue)}}function Pe(pe){var ue;pe.done?U(pe.value):(ue=pe.value,ue instanceof Z?ue:new Z(function(Te){Te(ue)})).then(ve,xe)}Pe((ne=ne.apply(V,K||[])).next())})})(void 0,void 0,void 0,function*(){return j.preventDefault(),yield r==null?void 0:r.run()})),No(r,v,_);let w=j=>{j.preventDefault(),s(!0)},x=j=>{j.preventDefault(),s(!1)},C=(0,f.useMemo)(()=>c||i.isLoading,[c,i]),R=(0,f.useMemo)(()=>m||i.isSuccess,[m,i]),P=(0,f.useMemo)(()=>r&&!r.enabled||i.hidden,[r,i]),L=(0,f.useCallback)(j=>{j.preventDefault(),s(!1),o(j)},[o]),N=(0,f.useCallback)(()=>P?null:a(b.Fragment,{children:[u?a(b.Fragment,{children:[a(En,{onClick:L,children:l("labels.yes")}),"\xA0/\xA0",a(En,{onClick:x,children:l("labels.no")}),"\xA0"]}):null,a("button",Object.assign({},i,{onClick:e?w:o,disabled:u||i.disabled||d.isDisabled,part:"link",className:J()(Dt.link,e?Dt.danger:null),children:i.children}))]}),[P,d,u,e,o,L,i,l]);return a(b.Fragment,{children:a("span",{className:J()(Dt.linkWrapper,t==="right"?Dt.reverse:null),onMouseEnter:()=>{k&&window.clearTimeout(k)},onMouseLeave:()=>{k=window.setTimeout(()=>{s(!1)},1e3)},children:a(b.Fragment,u||!C&&!R?{children:N()}:{children:[a(Mn,{isLoading:C,isSuccess:R,secondary:i.secondary,fadeOut:!0}),N()]})})})},Q=En,Se=({children:n,hidden:t=!1})=>t?null:a("section",{className:Ct.footer,children:n}),Ln=n=>{var{label:t}=n,e=(function(i,l){var d={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&l.indexOf(u)<0&&(d[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(u=Object.getOwnPropertySymbols(i);s<u.length;s++)l.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(d[u[s]]=i[u[s]])}return d})(n,["label"]);let{uiState:o}=(0,f.useContext)(Ae),r=(0,f.useMemo)(()=>o.isDisabled||e.disabled,[e,o]);return a("div",{className:ge.inputWrapper,children:a("label",{className:ge.checkboxWrapper,children:[a("input",Object.assign({part:"input checkbox-input",type:"checkbox","aria-label":t,className:ge.checkbox},e)),a("span",{className:J()(ge.label,r?ge.disabled:null),children:t})]})})},an=()=>a("section",{className:St.spacer}),Bt=Y(193),yt={};yt.setAttributes=Ve(),yt.insert=n=>{window._hankoStyle=n},yt.domAPI=Ge(),yt.insertStyleElement=Ze(),$e()(Bt.A,yt);var un=Bt.A&&Bt.A.locals?Bt.A.locals:void 0,q=({children:n,hidden:t,center:e})=>t?null:a("p",{part:"paragraph",className:J()(un.paragraph,e&&un.center,e&&un.column),children:n}),Lt=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Za=n=>{var t;let{t:e}=(0,f.useContext)(G.TranslateContext),{init:o,initialComponentName:r,uiState:i,setUIState:l,hidePasskeyButtonOnLogin:d,lastLogin:u}=(0,f.useContext)(Ae),[s,c]=(0,f.useState)(!1),[v,m]=(0,f.useState)(null),[_,k]=(0,f.useState)(null),{flowState:w}=be(n.state),x=nt.supported(),[C,R]=(0,f.useState)(void 0),[P,L]=(0,f.useState)(null),[N,j]=(0,f.useState)(!1),V=U=>{if(U.preventDefault(),U.target instanceof HTMLInputElement){let{value:ce}=U.target;k(ce),K(ce)}},K=U=>{let ce=()=>l(xe=>Object.assign(Object.assign({},xe),{email:U,username:null})),ve=()=>l(xe=>Object.assign(Object.assign({},xe),{email:null,username:U}));switch(v){case"email":ce();break;case"username":ve();break;case"identifier":U.match(/^[^@]+@[^@]+\.[^@]+$/)?ce():ve()}},Z=(0,f.useMemo)(()=>(!!w.actions.webauthn_generate_request_options.enabled||!!w.actions.thirdparty_oauth.enabled)&&w.actions.continue_with_login_identifier.enabled,[w.actions]),ne=w.actions.continue_with_login_identifier.inputs;return(0,f.useEffect)(()=>{let U=w.actions.continue_with_login_identifier.inputs;U!=null&&U.email?(m("email"),k(i.email)):U!=null&&U.username?(m("username"),k(i.username)):(m("identifier"),k(i.email||i.username))},[w,i.email,i.username]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:e("headlines.signIn")}),a(me,{state:w,error:C}),ne?a(b.Fragment,{children:[a(X,{flowAction:w.actions.continue_with_login_identifier,onSubmit:U=>Lt(void 0,void 0,void 0,function*(){return U.preventDefault(),K(_),w.actions.continue_with_login_identifier.run({[v]:_})}),maxWidth:!0,children:[ne.email?a(Oe,{type:"email",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ne.email,onInput:V,value:_,placeholder:e("labels.email"),pattern:"^[^@]+@[^@]+\\.[^@]+$"}):ne.username?a(Oe,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ne.username,onInput:V,value:_,placeholder:e("labels.username")}):a(Oe,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ne.identifier,onInput:V,value:_,placeholder:e("labels.emailOrUsername")}),a(ee,{children:e("labels.continue")})]}),a(Dn,{hidden:!Z,children:e("labels.or")})]}):null,w.actions.thirdparty_oauth.enabled?(t=w.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(U=>a(X,{flowAction:w.actions.thirdparty_oauth,onSubmit:ce=>((ve,xe)=>Lt(void 0,void 0,void 0,function*(){ve.preventDefault(),L(xe);let Pe=On();Tn(Pe);try{let pe=yield w.actions.thirdparty_oauth.run({provider:xe,redirect_to:window.location.toString(),code_verifier:Pe});return pe.error&&(at(),L(null)),pe}catch(pe){throw at(),L(null),pe}}))(ce,U.value),children:a(ee,{isLoading:U.value==P,secondary:!0,icon:U.value.startsWith("custom_")?"customProvider":U.value,showLastUsed:(u==null?void 0:u.login_method)=="third_party"&&(u==null?void 0:u.third_party_provider)==U.value,children:e("labels.signInWith",{provider:U.name})})},U.value)):null,w.actions.webauthn_generate_request_options.enabled&&!d?a(X,{flowAction:w.actions.webauthn_generate_request_options,children:a(ee,{secondary:!0,title:x?null:e("labels.webauthnUnsupported"),disabled:!x,children:e("labels.signInPasskey")})}):null,w.actions.remember_me.enabled&&a(b.Fragment,{children:[a(an,{}),a(Ln,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:N,onChange:U=>Lt(void 0,void 0,void 0,function*(){return j(ce=>!ce),w.actions.remember_me.run({remember_me:!N})})})]})]}),a(Se,{hidden:r!=="auth",children:a(q,{center:!0,children:[a("span",{children:e("labels.dontHaveAnAccount")}),a(Q,{onClick:U=>Lt(void 0,void 0,void 0,function*(){U.preventDefault(),c(!0),o("registration")}),loadingSpinnerPosition:"left",isLoading:s,children:e("labels.signUp")})]})})]})},Ja=n=>{var{index:t,focus:e,digit:o=""}=n,r=(function(s,c){var v={};for(var m in s)Object.prototype.hasOwnProperty.call(s,m)&&c.indexOf(m)<0&&(v[m]=s[m]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var _=0;for(m=Object.getOwnPropertySymbols(s);_<m.length;_++)c.indexOf(m[_])<0&&Object.prototype.propertyIsEnumerable.call(s,m[_])&&(v[m[_]]=s[m[_]])}return v})(n,["index","focus","digit"]);let i=(0,f.useRef)(null),{uiState:l}=(0,f.useContext)(Ae),d=()=>{let{current:s}=i;s&&(s.focus(),s.select())},u=(0,f.useMemo)(()=>l.isDisabled||r.disabled,[r,l]);return(0,f.useEffect)(()=>{t===0&&d()},[t,r.disabled]),(0,f.useMemo)(()=>{e&&d()},[e]),a("div",{className:ge.passcodeDigitWrapper,children:a("input",Object.assign({},r,{part:"input passcode-input","aria-label":`${r.name}-digit-${t+1}`,name:r.name+t.toString(10),type:"text",inputMode:"numeric",maxLength:1,ref:i,value:o.charAt(0),required:!0,className:ge.input,disabled:u}))})},Un=({passcodeDigits:n=[],numberOfInputs:t=6,onInput:e,disabled:o=!1})=>{let[r,i]=(0,f.useState)(0),l=()=>n.slice(),d=()=>{r<t-1&&i(r+1)},u=()=>{r>0&&i(r-1)},s=_=>{let k=l();k[r]=_.charAt(0),e(k)},c=_=>{if(_.preventDefault(),o)return;let k=_.clipboardData.getData("text/plain").slice(0,t-r).split(""),w=l(),x=r;for(let C=0;C<t;++C)C>=r&&k.length>0&&(w[C]=k.shift(),x++);i(x),e(w)},v=_=>{_.key==="Backspace"?(_.preventDefault(),s(""),u()):_.key==="Delete"?(_.preventDefault(),s("")):_.key==="ArrowLeft"?(_.preventDefault(),u()):_.key==="ArrowRight"?(_.preventDefault(),d()):_.key!==" "&&_.key!=="Spacebar"&&_.key!=="Space"||_.preventDefault()},m=_=>{_.target instanceof HTMLInputElement&&s(_.target.value),d()};return(0,f.useEffect)(()=>{n.length===0&&i(0)},[n]),a("div",{className:ge.passcodeInputWrapper,children:Array.from(Array(t)).map((_,k)=>a(Ja,{name:"passcode",index:k,focus:r===k,digit:n[k],onKeyDown:v,onInput:m,onPaste:c,onFocus:()=>(w=>{i(w)})(k),disabled:o},k))})},oo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Qa=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),{uiState:o,setUIState:r}=(0,f.useContext)(Ae),[i,l]=(0,f.useState)(),[d,u]=(0,f.useState)(e.payload.resend_after),[s,c]=(0,f.useState)([]),v=(0,f.useMemo)(()=>{var _;return((_=e.error)===null||_===void 0?void 0:_.code)==="passcode_max_attempts_reached"},[e]),m=(0,f.useCallback)(_=>oo(void 0,void 0,void 0,function*(){return yield e.actions.verify_passcode.run({code:_})}),[e]);return(0,f.useEffect)(()=>{let _=i>0&&setInterval(()=>l(i-1),1e3);return()=>clearInterval(_)},[i]),(0,f.useEffect)(()=>{let _=d>0&&setInterval(()=>{u(d-1)},1e3);return()=>clearInterval(_)},[d]),(0,f.useEffect)(()=>{var _;d==0&&((_=e.error)===null||_===void 0?void 0:_.code)=="rate_limit_exceeded"&&r(k=>Object.assign(Object.assign({},k),{error:null}))},[d]),(0,f.useEffect)(()=>{c([]),e.payload.resend_after>=0&&u(e.payload.resend_after)},[e]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.loginPasscode")}),a(me,{state:e}),a(q,{children:o.email?t("texts.enterPasscode"):t("texts.enterPasscodeNoEmail")}),a(q,{hidden:!o.email,children:a("b",{children:o.email})}),a(X,{flowAction:e.actions.verify_passcode,onSubmit:_=>oo(void 0,void 0,void 0,function*(){return _.preventDefault(),m(s.join(""))}),children:[a(Un,{onInput:_=>{if(c(_),_.filter(k=>k!=="").length===6)return m(_.join(""))},passcodeDigits:s,numberOfInputs:6,disabled:i<=0||v}),a(ee,{disabled:i<=0||v,children:t("labels.continue")})]})]}),a(Se,{children:[a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")}),a(Q,{disabled:d>0,flowAction:e.actions.resend_passcode,loadingSpinnerPosition:"left",children:d>0?t("labels.passcodeResendAfter",{passcodeResendAfter:d}):t("labels.sendNewPasscode")})]})]})},Ya=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.registerAuthenticator")}),a(me,{state:e}),a(q,{children:t("texts.setupPasskey")}),a(X,{flowAction:e.actions.webauthn_generate_creation_options,children:a(ee,{autofocus:!0,icon:"passkey",children:t("labels.registerAuthenticator")})})]}),a(Se,{hidden:!e.actions.skip.enabled&&!e.actions.back.enabled,children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},ao=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Xa=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)(),[i,l]=(0,f.useState)(),d=(0,f.useMemo)(()=>a(Q,{flowAction:e.actions.continue_to_passcode_confirmation_recovery,loadingSpinnerPosition:"left",children:t("labels.forgotYourPassword")}),[e,t]),u=(0,f.useMemo)(()=>a(Q,{flowAction:e.actions.continue_to_login_method_chooser,loadingSpinnerPosition:"left",children:"Choose another method"}),[e]);return(0,f.useEffect)(()=>{let s=i>0&&setInterval(()=>l(i-1),1e3);return()=>clearInterval(s)},[i]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.loginPassword")}),a(me,{state:e}),a(X,{flowAction:e.actions.password_login,onSubmit:s=>ao(void 0,void 0,void 0,function*(){return s.preventDefault(),e.actions.password_login.run({password:o})}),children:[a(Oe,{type:"password",flowInput:e.actions.password_login.inputs.password,autocomplete:"current-password",placeholder:t("labels.password"),onInput:s=>ao(void 0,void 0,void 0,function*(){s.target instanceof HTMLInputElement&&r(s.target.value)}),autofocus:!0}),a(ee,{disabled:i>0,children:i>0?t("labels.passwordRetryAfter",{passwordRetryAfter:i}):t("labels.signIn")})]}),e.actions.continue_to_login_method_chooser.enabled?d:null]}),a(Se,{children:[a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")}),e.actions.continue_to_login_method_chooser.enabled?u:d]})]})},ro=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},er=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(_e,{children:[a(re,{children:t("headlines.registerPassword")}),a(me,{state:e}),a(q,{children:t("texts.passwordFormatHint",{minLength:e.actions.password_recovery.inputs.new_password.min_length,maxLength:72})}),a(X,{flowAction:e.actions.password_recovery,onSubmit:i=>ro(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.password_recovery.run({new_password:o})}),children:[a(Oe,{type:"password",autocomplete:"new-password",flowInput:e.actions.password_recovery.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>ro(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),autofocus:!0}),a(ee,{children:t("labels.continue")})]})]})},tr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.selectLoginMethod")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.howDoYouWantToLogin")}),a(X,{flowAction:e.actions.continue_to_passcode_confirmation,children:a(ee,{secondary:!0,icon:"mail",children:t("labels.passcode")})}),a(X,{flowAction:e.actions.continue_to_password_login,children:a(ee,{secondary:!0,icon:"password",children:t("labels.password")})}),a(X,{flowAction:e.actions.webauthn_generate_request_options,children:a(ee,{secondary:!0,icon:"passkey",children:t("labels.passkey")})})]}),a(Se,{children:a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")})})]})},Ut=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},nr=n=>{var t;let{t:e}=(0,f.useContext)(G.TranslateContext),{init:o,uiState:r,setUIState:i,initialComponentName:l}=(0,f.useContext)(Ae),{flowState:d}=be(n.state),u=d.actions.register_login_identifier.inputs,s=!(!(u!=null&&u.email)||!(u!=null&&u.username)),[c,v]=(0,f.useState)(void 0),[m,_]=(0,f.useState)(null),[k,w]=(0,f.useState)(!1),[x,C]=(0,f.useState)(!1),R=(0,f.useMemo)(()=>!!d.actions.thirdparty_oauth.enabled&&d.actions.register_login_identifier.enabled,[d.actions]);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:e("headlines.signUp")}),a(me,{state:d,error:c}),u?a(b.Fragment,{children:[a(X,{flowAction:d.actions.register_login_identifier,onSubmit:P=>Ut(void 0,void 0,void 0,function*(){return P.preventDefault(),yield d.actions.register_login_identifier.run({email:r.email,username:r.username})}),maxWidth:!0,children:[u.username?a(Oe,{markOptional:s,markError:s,type:"text",autoComplete:"username",autoCorrect:"off",flowInput:u.username,onInput:P=>{if(P.preventDefault(),P.target instanceof HTMLInputElement){let{value:L}=P.target;i(N=>Object.assign(Object.assign({},N),{username:L}))}},value:r.username,placeholder:e("labels.username")}):null,u.email?a(Oe,{markOptional:s,markError:s,type:"email",autoComplete:"email",autoCorrect:"off",flowInput:u.email,onInput:P=>{if(P.preventDefault(),P.target instanceof HTMLInputElement){let{value:L}=P.target;i(N=>Object.assign(Object.assign({},N),{email:L}))}},value:r.email,placeholder:e("labels.email"),pattern:"^.*[^0-9]+$"}):null,a(ee,{autofocus:!0,children:e("labels.continue")})]}),a(Dn,{hidden:!R,children:e("labels.or")})]}):null,d.actions.thirdparty_oauth.enabled?(t=d.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(P=>a(X,{flowAction:d.actions.thirdparty_oauth,onSubmit:L=>((N,j)=>Ut(void 0,void 0,void 0,function*(){N.preventDefault(),_(j);let V=On();Tn(V);try{let K=yield d.actions.thirdparty_oauth.run({provider:j,redirect_to:window.location.toString(),code_verifier:V},{dispatchAfterStateChangeEvent:!1});K.error&&(at(),_(null)),K.dispatchAfterStateChangeEvent()}catch(K){throw at(),_(null),K}}))(L,P.value),children:a(ee,{isLoading:P.value==m,secondary:!0,icon:P.value.startsWith("custom_")?"customProvider":P.value,children:e("labels.signInWith",{provider:P.name})})},P.value)):null,d.actions.remember_me.enabled&&a(b.Fragment,{children:[a(an,{}),a(Ln,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:k,onChange:P=>Ut(void 0,void 0,void 0,function*(){P.preventDefault();let L=yield d.actions.remember_me.run({remember_me:!k},{dispatchAfterStateChangeEvent:!1});w(N=>!N),L.dispatchAfterStateChangeEvent()})})]})]}),a(Se,{hidden:l!=="auth",children:a(q,{center:!0,children:[a("span",{children:e("labels.alreadyHaveAnAccount")}),a(Q,{onClick:P=>Ut(void 0,void 0,void 0,function*(){P.preventDefault(),C(!0),o("login")}),loadingSpinnerPosition:"left",isLoading:x,children:e("labels.signIn")})]})})]})},io=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},or=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.registerPassword")}),a(me,{state:e}),a(q,{children:t("texts.passwordFormatHint",{minLength:e.actions.register_password.inputs.new_password.min_length,maxLength:72})}),a(X,{flowAction:e.actions.register_password,onSubmit:i=>io(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.register_password.run({new_password:o})}),children:[a(Oe,{type:"password",autocomplete:"new-password",flowInput:e.actions.register_password.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>io(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),autofocus:!0}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.back.enabled&&!e.actions.skip.enabled,children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},$t=Y(597),bt={};bt.setAttributes=Ve(),bt.insert=n=>{window._hankoStyle=n},bt.domAPI=Ge(),bt.insertStyleElement=Ze(),$e()($t.A,bt);var He=$t.A&&$t.A.locals?$t.A.locals:void 0,At=function({name:n,columnSelector:t,contentSelector:e,data:o=[],checkedItemID:r,setCheckedItemID:i,dropdown:l=!1}){let d=(0,f.useCallback)(c=>`${n}-${c}`,[n]),u=(0,f.useCallback)(c=>d(c)===r,[r,d]),s=c=>{if(!(c.target instanceof HTMLInputElement))return;let v=parseInt(c.target.value,10),m=d(v);i(m===r?null:m)};return a("div",{className:He.accordion,children:o.map((c,v)=>a("div",{className:He.accordionItem,children:[a("input",{type:"radio",className:He.accordionInput,id:`${n}-${v}`,name:n,onClick:s,value:v,checked:u(v)}),a("label",{className:J()(He.label,l&&He.dropdown),for:`${n}-${v}`,children:a("span",{className:He.labelText,children:t(c,v)})}),a("div",{className:J()(He.accordionContent,l&&He.dropdownContent),children:e(c,v)})]},v))})},Ie=({children:n})=>a("h2",{part:"headline2",className:J()(on.headline,on.grade2),children:n}),hn=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},ar=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:r}=(0,f.useContext)(G.TranslateContext),i=(0,f.useMemo)(()=>!1,[]);return a(At,{name:"email-edit-dropdown",columnSelector:l=>{let d=a("span",{className:He.description,children:l.is_verified?l.is_primary?a(b.Fragment,{children:[" -"," ",r("labels.primaryEmail")]}):null:a(b.Fragment,{children:[" -"," ",r("labels.unverifiedEmail")]})});return l.is_primary?a(b.Fragment,{children:[a("b",{children:l.address}),d]}):a(b.Fragment,{children:[l.address,d]})},data:e.payload.user.emails,contentSelector:l=>{var d,u;return a(b.Fragment,{children:[l.is_primary?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.isPrimaryEmail")}),r("texts.isPrimaryEmail")]})}):a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.setPrimaryEmail")}),r("texts.setPrimaryEmail"),a("br",{}),a(Q,{flowAction:e.actions.email_set_primary,onClick:s=>((c,v)=>hn(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_set_primary.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,l.id),loadingSpinnerPosition:"right",children:r("labels.setAsPrimaryEmail")})]})}),l.is_verified?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.emailVerified")}),r("texts.emailVerified")]})}):a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.emailUnverified")}),r("texts.emailUnverified"),a("br",{}),a(Q,{flowAction:e.actions.email_verify,onClick:s=>((c,v)=>hn(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_verify.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,l.id),loadingSpinnerPosition:"right",children:r("labels.verify")})]})}),!((d=e.actions.email_delete.inputs.email_id.allowed_values)===null||d===void 0)&&d.map(s=>s.value).includes(l.id)?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.emailDelete")}),r("texts.emailDelete"),a("br",{}),a(Q,{dangerous:!0,flowAction:e.actions.email_delete,onClick:s=>((c,v)=>hn(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_delete.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,l.id),disabled:i,loadingSpinnerPosition:"right",children:r("labels.delete")})]})}):null,((u=l.identities)===null||u===void 0?void 0:u.length)>0?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.connectedAccounts")}),l.identities.map(s=>s.provider).join(", ")]})}):null]})},checkedItemID:n,setCheckedItemID:t})},rr=({onCredentialNameSubmit:n,oldName:t,onBack:e,credential:o,credentialType:r,flowState:i})=>{let{t:l}=(0,f.useContext)(G.TranslateContext),[d,u]=(0,f.useState)(t);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:l(r==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),a(me,{flowError:null}),a(q,{children:l(r==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey")}),a(X,{flowAction:i.actions.webauthn_credential_rename,onSubmit:s=>n(s,o.id,d),children:[a(Oe,{type:"text",name:r,value:d,minLength:3,maxLength:32,required:!0,placeholder:l(r==="security-key"?"labels.newSecurityKeyName":"labels.newPasskeyName"),onInput:s=>(function(c,v,m,_){return new(m||(m=Promise))(function(k,w){function x(P){try{R(_.next(P))}catch(L){w(L)}}function C(P){try{R(_.throw(P))}catch(L){w(L)}}function R(P){var L;P.done?k(P.value):(L=P.value,L instanceof m?L:new m(function(N){N(L)})).then(x,C)}R((_=_.apply(c,v||[])).next())})})(void 0,void 0,void 0,function*(){s.target instanceof HTMLInputElement&&u(s.target.value)}),autofocus:!0}),a(ee,{children:l("labels.save")})]})]}),a(Se,{children:a(Q,{onClick:e,loadingSpinnerPosition:"right",children:l("labels.back")})})]})},so=({credentials:n=[],checkedItemID:t,setCheckedItemID:e,onBack:o,onCredentialNameSubmit:r,allowCredentialDeletion:i,credentialType:l,onCredentialDelete:d,flowState:u})=>{let{t:s}=(0,f.useContext)(G.TranslateContext),{setPage:c}=(0,f.useContext)(Ae),v=_=>{if(_.name)return _.name;let k=_.public_key.replace(/[\W_]/g,"");return`${l==="security-key"?"SecurityKey":"Passkey"}-${k.substring(k.length-7,k.length)}`},m=_=>new Date(_).toLocaleString();return a(At,{name:l==="security-key"?"security-key-edit-dropdown":"passkey-edit-dropdown",columnSelector:_=>v(_),data:n,contentSelector:_=>a(b.Fragment,{children:[a(q,{children:[a(Ie,{children:s(l==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),s(l==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey"),a("br",{}),a(Q,{onClick:k=>((w,x,C)=>{w.preventDefault(),c(a(rr,{oldName:v(x),credential:x,credentialType:C,onBack:o,onCredentialNameSubmit:r,flowState:u}))})(k,_,l),loadingSpinnerPosition:"right",children:s("labels.rename")})]}),a(q,{hidden:!i,children:[a(Ie,{children:s(l==="security-key"?"headlines.deleteSecurityKey":"headlines.deletePasskey")}),s(l==="security-key"?"texts.deleteSecurityKey":"texts.deletePasskey"),a("br",{}),a(Q,{dangerous:!0,flowAction:u.actions.webauthn_credential_delete,onClick:k=>d(k,_.id),loadingSpinnerPosition:"right",children:s("labels.delete")})]}),a(q,{children:[a(Ie,{children:s("headlines.lastUsedAt")}),_.last_used_at?m(_.last_used_at):"-"]}),a(q,{children:[a(Ie,{children:s("headlines.createdAt")}),m(_.created_at)]})]}),checkedItemID:t,setCheckedItemID:e})},lt=({name:n,title:t,children:e,checkedItemID:o,setCheckedItemID:r})=>a(At,{dropdown:!0,name:n,columnSelector:()=>t,contentSelector:()=>a(b.Fragment,{children:e}),setCheckedItemID:r,checkedItemID:o,data:[{}]}),rn=({flowError:n})=>{let{t}=(0,f.useContext)(G.TranslateContext);return a(b.Fragment,{children:n?a("div",{className:jo.errorMessage,children:t(`flowErrors.${n==null?void 0:n.code}`)}):null})},ir=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r;let{t:i}=(0,f.useContext)(G.TranslateContext),{setUIState:l}=(0,f.useContext)(Ae),[d,u]=(0,f.useState)();return a(lt,{name:"email-create-dropdown",title:i("labels.addEmail"),checkedItemID:n,setCheckedItemID:t,children:[a(rn,{flowError:(r=e.actions.email_create.inputs.email)===null||r===void 0?void 0:r.error}),a(X,{flowAction:e.actions.email_create,onSubmit:s=>((c,v)=>(function(m,_,k,w){return new(k||(k=Promise))(function(x,C){function R(N){try{L(w.next(N))}catch(j){C(j)}}function P(N){try{L(w.throw(N))}catch(j){C(j)}}function L(N){var j;N.done?x(N.value):(j=N.value,j instanceof k?j:new k(function(V){V(j)})).then(R,P)}L((w=w.apply(m,_||[])).next())})})(void 0,void 0,void 0,function*(){c.preventDefault(),l(_=>Object.assign(Object.assign({},_),{email:v}));let m=yield e.actions.email_create.run({email:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,d).then(()=>u("")),children:[a(Oe,{markError:!0,type:"email",placeholder:i("labels.newEmailAddress"),onInput:s=>{s.preventDefault(),s.target instanceof HTMLInputElement&&u(s.target.value)},value:d,flowInput:e.actions.email_create.inputs.email}),a(ee,{children:i("labels.save")})]})]})},lo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},sr=({checkedItemID:n,setCheckedItemID:t,onState:e,flowState:o})=>{var r,i,l;let{t:d}=(0,f.useContext)(G.TranslateContext),[u,s]=(0,f.useState)(""),c=o.actions.password_create.enabled?o.actions.password_create:o.actions.password_update;return a(lt,{name:"password-edit-dropdown",title:d(o.actions.password_create.enabled?"labels.setPassword":"labels.changePassword"),checkedItemID:n,setCheckedItemID:t,children:[a(q,{children:d("texts.passwordFormatHint",{minLength:(r=c.inputs.password.min_length)===null||r===void 0?void 0:r.toString(10),maxLength:(i=c.inputs.password.max_length)===null||i===void 0?void 0:i.toString(10)})}),a(rn,{flowError:(l=o.actions.password_create.inputs.password)===null||l===void 0?void 0:l.error}),a(X,{flowAction:c,onSubmit:v=>((m,_)=>lo(void 0,void 0,void 0,function*(){m.preventDefault();let k=yield c.run({password:_},{dispatchAfterStateChangeEvent:!1});return e(k)}))(v,u).then(()=>s("")),children:[a(Oe,{markError:!0,autoComplete:"new-password",placeholder:d("labels.newPassword"),type:"password",onInput:v=>{v.preventDefault(),v.target instanceof HTMLInputElement&&s(v.target.value)},value:u,flowInput:c.inputs.password}),a(ee,{children:d("labels.save")})]}),a(Q,{dangerous:!0,flowAction:o.actions.password_delete,onClick:v=>(m=>lo(void 0,void 0,void 0,function*(){m.preventDefault();let _=yield o.actions.password_delete.run(null,{dispatchAfterStateChangeEvent:!1});return e(_)}))(v).then(()=>s("")),loadingSpinnerPosition:"right",children:d("labels.delete")})]})},co=({checkedItemID:n,setCheckedItemID:t,credentialType:e,flowState:o,onState:r})=>{let{t:i}=(0,f.useContext)(G.TranslateContext),l=nt.supported(),d=e=="passkey"?o.actions.webauthn_credential_create:o.actions.security_key_create;return a(lt,{name:e==="security-key"?"security-key-create-dropdown":"passkey-create-dropdown",title:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey"),checkedItemID:n,setCheckedItemID:t,children:[a(q,{children:i(e==="security-key"?"texts.securityKeySetUp":"texts.setupPasskey")}),a(X,{onSubmit:u=>(function(s,c,v,m){return new(v||(v=Promise))(function(_,k){function w(R){try{C(m.next(R))}catch(P){k(P)}}function x(R){try{C(m.throw(R))}catch(P){k(P)}}function C(R){var P;R.done?_(R.value):(P=R.value,P instanceof v?P:new v(function(L){L(P)})).then(w,x)}C((m=m.apply(s,c||[])).next())})})(void 0,void 0,void 0,function*(){u.preventDefault();let s=yield d.run(null,{dispatchAfterStateChangeEvent:!1});return r(s)}),flowAction:d,children:a(ee,{title:l?null:i("labels.webauthnUnsupported"),children:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey")})})]})},uo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},lr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r,i;let{t:l}=(0,f.useContext)(G.TranslateContext),[d,u]=(0,f.useState)();return a(lt,{name:"username-edit-dropdown",title:l(e.payload.user.username?"labels.changeUsername":"labels.setUsername"),checkedItemID:n,setCheckedItemID:t,children:[a(rn,{flowError:e.payload.user.username?(r=e.actions.username_update.inputs.username)===null||r===void 0?void 0:r.error:(i=e.actions.username_create.inputs.username)===null||i===void 0?void 0:i.error}),a(X,{flowAction:e.payload.user.username?e.actions.username_update:e.actions.username_create,onSubmit:s=>uo(void 0,void 0,void 0,function*(){s.preventDefault();let c=e.payload.user.username?e.actions.username_update:e.actions.username_create,v=yield c.run({username:d},{dispatchAfterStateChangeEvent:!1});return o(v).then(()=>u(""))}),children:[a(Oe,{markError:!0,placeholder:l("labels.username"),type:"text",onInput:s=>{s.preventDefault(),s.target instanceof HTMLInputElement&&u(s.target.value)},value:d,flowInput:e.payload.user.username?e.actions.username_update.inputs.username:e.actions.username_create.inputs.username}),a(ee,{children:l("labels.save")})]}),a(Q,{flowAction:e.actions.username_delete,onClick:s=>uo(void 0,void 0,void 0,function*(){s.preventDefault();let c=yield e.actions.username_delete.run(null,{dispatchAfterStateChangeEvent:!1});return o(c).then(()=>u(""))}),dangerous:!0,loadingSpinnerPosition:"right",children:l("labels.delete")})]})},cr=({state:n,onBack:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:e("headlines.deleteAccount")}),a(me,{flowError:null}),a(q,{children:e("texts.deleteAccount")}),a(X,{flowAction:n.actions.account_delete,children:[a(Ln,{required:!0,type:"checkbox",label:e("labels.deleteAccount")}),a(ee,{children:e("labels.delete")})]})]}),a(Se,{children:a(Q,{onClick:t,children:e("labels.back")})})]})},dr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:r}=(0,f.useContext)(G.TranslateContext),i=l=>new Date(l).toLocaleString();return a(At,{name:"session-edit-dropdown",columnSelector:l=>{let d=a("b",{children:l.user_agent?l.user_agent:l.id}),u=l.current?a("span",{className:He.description,children:a(b.Fragment,{children:[" -"," ",r("labels.currentSession")]})}):null;return a(b.Fragment,{children:[d,u]})},data:e.payload.sessions,contentSelector:l=>{var d,u,s;return a(b.Fragment,{children:[a(q,{hidden:!l.ip_address,children:[a(Ie,{children:r("headlines.ipAddress")}),l.ip_address]}),a(q,{children:[a(Ie,{children:r("headlines.lastUsed")}),i(l.last_used)]}),a(q,{children:[a(Ie,{children:r("headlines.createdAt")}),i(l.created_at)]}),!((s=(u=(d=e.actions.session_delete.inputs.session_id)===null||d===void 0?void 0:d.allowed_values)===null||u===void 0?void 0:u.map(c=>c.value))===null||s===void 0)&&s.includes(l.id)?a(q,{children:[a(Ie,{children:r("headlines.revokeSession")}),a(Q,{dangerous:!0,onClick:c=>((v,m)=>(function(_,k,w,x){return new(w||(w=Promise))(function(C,R){function P(j){try{N(x.next(j))}catch(V){R(V)}}function L(j){try{N(x.throw(j))}catch(V){R(V)}}function N(j){var V;j.done?C(j.value):(V=j.value,V instanceof w?V:new w(function(K){K(V)})).then(P,L)}N((x=x.apply(_,k||[])).next())})})(void 0,void 0,void 0,function*(){v.preventDefault();let _=yield e.actions.session_delete.run({session_id:m},{dispatchAfterStateChangeEvent:!1});return o(_)}))(c,l.id),loadingSpinnerPosition:"right",children:r("labels.revoke")})]}):null]})},checkedItemID:n,setCheckedItemID:t})},ho=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},ur=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r,i,l,d;let{t:u}=(0,f.useContext)(G.TranslateContext),s=a("span",{className:He.description,children:!((r=e.payload.user.mfa_config)===null||r===void 0)&&r.auth_app_set_up?a(b.Fragment,{children:[" -"," ",u("labels.configured")]}):null}),c=a(b.Fragment,{children:[u("labels.authenticatorAppManage")," ",s]});return a(lt,{name:"authenticator-app-manage-dropdown",title:c,checkedItemID:n,setCheckedItemID:t,children:[a(Ie,{children:u(!((i=e.payload.user.mfa_config)===null||i===void 0)&&i.auth_app_set_up?"headlines.authenticatorAppAlreadySetUp":"headlines.authenticatorAppNotSetUp")}),a(q,{children:[u(!((l=e.payload.user.mfa_config)===null||l===void 0)&&l.auth_app_set_up?"texts.authenticatorAppAlreadySetUp":"texts.authenticatorAppNotSetUp"),a("br",{}),!((d=e.payload.user.mfa_config)===null||d===void 0)&&d.auth_app_set_up?a(Q,{flowAction:e.actions.otp_secret_delete,onClick:v=>ho(void 0,void 0,void 0,function*(){v.preventDefault();let m=yield e.actions.otp_secret_delete.run(null,{dispatchAfterStateChangeEvent:!1});return o(m)}),loadingSpinnerPosition:"right",dangerous:!0,children:u("labels.delete")}):a(Q,{flowAction:e.actions.continue_to_otp_secret_creation,onClick:v=>ho(void 0,void 0,void 0,function*(){v.preventDefault();let m=yield e.actions.continue_to_otp_secret_creation.run(null,{dispatchAfterStateChangeEvent:!1});return o(m)}),loadingSpinnerPosition:"right",children:u("labels.authenticatorAppAdd")})]})]})},hr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:r}=(0,f.useContext)(G.TranslateContext),i=(0,f.useMemo)(()=>!1,[]);return a(At,{name:"connected-accounts",columnSelector:l=>{let d=a("b",{children:l.provider});return a(b.Fragment,{children:d})},contentSelector:l=>a(b.Fragment,{children:a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.deleteIdentity")}),a(Q,{dangerous:!0,flowAction:e.actions.disconnect_thirdparty_oauth_provider,onClick:d=>((u,s)=>(function(c,v,m,_){return new(m||(m=Promise))(function(k,w){function x(P){try{R(_.next(P))}catch(L){w(L)}}function C(P){try{R(_.throw(P))}catch(L){w(L)}}function R(P){var L;P.done?k(P.value):(L=P.value,L instanceof m?L:new m(function(N){N(L)})).then(x,C)}R((_=_.apply(c,v||[])).next())})})(void 0,void 0,void 0,function*(){u.preventDefault();let c=yield e.actions.disconnect_thirdparty_oauth_provider.run({identity_id:s},{dispatchAfterStateChangeEvent:!1});return o(c)}))(d,l.identity_id),disabled:i,loadingSpinnerPosition:"right",children:r("labels.delete")})]})})}),checkedItemID:n,setCheckedItemID:t,data:e.payload.user.identities})},pr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r,i;let{t:l}=(0,f.useContext)(G.TranslateContext);return a(lt,{name:"connect-account-dropdown",title:l("labels.connectAccount"),checkedItemID:n,setCheckedItemID:t,children:[a(rn,{flowError:(r=e.actions.connect_thirdparty_oauth_provider.inputs.provider)===null||r===void 0?void 0:r.error}),(i=e.actions.connect_thirdparty_oauth_provider.inputs.provider.allowed_values)===null||i===void 0?void 0:i.map(d=>a(X,{flowAction:e.actions.connect_thirdparty_oauth_provider,onSubmit:u=>((s,c)=>(function(v,m,_,k){return new(_||(_=Promise))(function(w,x){function C(L){try{P(k.next(L))}catch(N){x(N)}}function R(L){try{P(k.throw(L))}catch(N){x(N)}}function P(L){var N;L.done?w(L.value):(N=L.value,N instanceof _?N:new _(function(j){j(N)})).then(C,R)}P((k=k.apply(v,m||[])).next())})})(void 0,void 0,void 0,function*(){s.preventDefault();let v=On();Tn(v);try{let m=yield e.actions.connect_thirdparty_oauth_provider.run({provider:c,redirect_to:window.location.href,code_verifier:v});return m.error&&at(),o(m)}catch(m){throw at(),m}}))(u,d.value),children:a(ee,{icon:d.value.startsWith("custom_")?"customProvider":d.value,children:d.name},d)},d.value))]})},Nt=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Wo=n=>{var t,e,o,r,i,l,d;let{t:u}=(0,f.useContext)(G.TranslateContext),{setPage:s}=(0,f.useContext)(Ae),{flowState:c}=be(n.state),[v,m]=(0,f.useState)(""),_=x=>Nt(void 0,void 0,void 0,function*(){x!=null&&x.error||(m(null),yield new Promise(C=>setTimeout(C,360))),x.dispatchAfterStateChangeEvent()}),k=(x,C,R)=>Nt(void 0,void 0,void 0,function*(){x.preventDefault();let P=yield c.actions.webauthn_credential_rename.run({passkey_id:C,passkey_name:R},{dispatchAfterStateChangeEvent:!1});return _(P)}),w=x=>(x.preventDefault(),s(a(Wo,{state:c,enablePasskeys:n.enablePasskeys})),Promise.resolve());return a(_e,{children:[a(me,{state:((t=c==null?void 0:c.error)===null||t===void 0?void 0:t.code)!=="form_data_invalid_error"?c:null}),c.actions.username_create.enabled||c.actions.username_update.enabled||c.actions.username_delete.enabled?a(b.Fragment,{children:[a(re,{children:u("labels.username")}),c.payload.user.username?a(q,{children:a("b",{children:c.payload.user.username.username})}):null,a(q,{children:c.actions.username_create.enabled||c.actions.username_update.enabled?a(lr,{onState:_,flowState:c,checkedItemID:v,setCheckedItemID:m}):null})]}):null,!((o=(e=c.payload)===null||e===void 0?void 0:e.user)===null||o===void 0)&&o.emails||c.actions.email_create.enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.profileEmails")}),a(q,{children:[a(ar,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m}),c.actions.email_create.enabled?a(ir,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m}):null]})]}):null,c.actions.password_create.enabled||c.actions.password_update.enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.profilePassword")}),a(q,{children:a(sr,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m})})]}):null,n.enablePasskeys&&(!((i=(r=c.payload)===null||r===void 0?void 0:r.user)===null||i===void 0)&&i.passkeys||c.actions.webauthn_credential_create.enabled)?a(b.Fragment,{children:[a(re,{children:u("headlines.profilePasskeys")}),a(q,{children:[a(so,{flowState:c,onBack:w,onCredentialNameSubmit:k,onCredentialDelete:(x,C)=>Nt(void 0,void 0,void 0,function*(){x.preventDefault();let R=yield c.actions.webauthn_credential_delete.run({passkey_id:C},{dispatchAfterStateChangeEvent:!1});return _(R)}),credentials:c.payload.user.passkeys,checkedItemID:v,setCheckedItemID:m,allowCredentialDeletion:!!c.actions.webauthn_credential_delete.enabled,credentialType:"passkey"}),c.actions.webauthn_credential_create.enabled?a(co,{flowState:c,onState:_,credentialType:"passkey",checkedItemID:v,setCheckedItemID:m}):null]})]}):null,!((l=c.payload.user.mfa_config)===null||l===void 0)&&l.security_keys_enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.securityKeys")}),a(q,{children:[a(so,{onBack:w,flowState:c,onCredentialNameSubmit:k,onCredentialDelete:(x,C)=>Nt(void 0,void 0,void 0,function*(){x.preventDefault();let R=yield c.actions.security_key_delete.run({security_key_id:C},{dispatchAfterStateChangeEvent:!1});return _(R)}),credentials:c.payload.user.security_keys,checkedItemID:v,setCheckedItemID:m,allowCredentialDeletion:!!c.actions.security_key_delete.enabled,credentialType:"security-key"}),c.actions.security_key_create.enabled?a(co,{flowState:c,onState:_,credentialType:"security-key",checkedItemID:v,setCheckedItemID:m}):null]})]}):null,!((d=c.payload.user.mfa_config)===null||d===void 0)&&d.totp_enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.authenticatorApp")}),a(q,{children:a(ur,{onState:_,flowState:c,checkedItemID:v,setCheckedItemID:m})})]}):null,c.actions.connect_thirdparty_oauth_provider.enabled||c.actions.disconnect_thirdparty_oauth_provider.enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.connectedAccounts")}),a(hr,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m}),c.actions.connect_thirdparty_oauth_provider.enabled?a(pr,{setCheckedItemID:m,flowState:c,onState:_,checkedItemID:v}):null]}):null,c.payload.sessions?a(b.Fragment,{children:[a(re,{children:u("headlines.profileSessions")}),a(q,{children:a(dr,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m})})]}):null,c.actions.account_delete.enabled?a(b.Fragment,{children:[a(an,{}),a(q,{children:a(Dn,{})}),a(q,{children:a(X,{onSubmit:x=>(x.preventDefault(),s(a(cr,{onBack:w,state:c})),Promise.resolve()),flowAction:c.actions.account_delete,children:a(ee,{dangerous:!0,children:u("headlines.deleteAccount")})})})]}):null]})},fr=Wo,po=({state:n,error:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext),{init:o,componentName:r}=(0,f.useContext)(Ae),[i,l]=(0,f.useState)(!1),d=(0,f.useCallback)(()=>o(r),[r,o]),{flowState:u}=be(n);return(0,f.useEffect)(()=>(addEventListener("hankoAuthSuccess",d),()=>{removeEventListener("hankoAuthSuccess",d)}),[d]),a(_e,{children:[a(re,{children:e("headlines.error")}),a(me,{state:u,error:t}),a(X,{onSubmit:s=>{s.preventDefault(),l(!0),d()},children:a(ee,{isLoading:i,children:e("labels.continue")})})]})},fo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},_r=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.createEmail")}),a(me,{state:e}),a(X,{onSubmit:i=>fo(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.email_address_set.run({email:o})}),flowAction:e.actions.email_address_set,children:[a(Oe,{type:"email",autoComplete:"email",autoCorrect:"off",flowInput:e.actions.email_address_set.inputs.email,onInput:i=>fo(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),placeholder:t("labels.email"),pattern:"^.*[^0-9]+$",value:o}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.skip.enabled,children:[a("span",{hidden:!0}),a(Q,{flowAction:e.actions.skip,loadingSpinnerPosition:"left",children:t("labels.skip")})]})]})},_o=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},mr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.createUsername")}),a(me,{state:e}),a(X,{flowAction:e.actions.username_create,onSubmit:i=>_o(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.username_create.run({username:o})}),children:[a(Oe,{type:"text",autoComplete:"username",autoCorrect:"off",flowInput:e.actions.username_create.inputs.username,onInput:i=>_o(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),value:o,placeholder:t("labels.username")}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.skip.enabled,children:[a("span",{hidden:!0}),a(Q,{flowAction:e.actions.skip,loadingSpinnerPosition:"left",children:t("labels.skip")})]})]})},vr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.setupLoginMethod")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.selectLoginMethodForFutureLogins")}),a(X,{flowAction:e.actions.continue_to_passkey_registration,children:a(ee,{secondary:!0,icon:"passkey",children:t("labels.passkey")})}),a(X,{flowAction:e.actions.continue_to_password_registration,children:a(ee,{secondary:!0,icon:"password",children:t("labels.password")})})]}),a(Se,{hidden:!e.actions.back.enabled&&!e.actions.skip.enabled,children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},mo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},gr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)([]),i=(0,f.useCallback)(l=>mo(void 0,void 0,void 0,function*(){return e.actions.otp_code_validate.run({otp_code:l})}),[e]);return(0,f.useEffect)(()=>{r([])},[e]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.otpLogin")}),a(me,{state:e}),a(q,{children:t("texts.otpLogin")}),a(X,{flowAction:e.actions.otp_code_validate,onSubmit:l=>mo(void 0,void 0,void 0,function*(){return l.preventDefault(),i(o.join(""))}),children:[a(Un,{onInput:l=>{if(r(l),l.filter(d=>d!=="").length===6)return i(l.join(""))},passcodeDigits:o,numberOfInputs:6}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.continue_to_login_security_key.enabled,children:a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_security_key,children:t("labels.useAnotherMethod")})})]})},yr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.securityKeyLogin")}),a(me,{state:e}),a(q,{children:t("texts.securityKeyLogin")}),a(X,{flowAction:e.actions.webauthn_generate_request_options,children:a(ee,{autofocus:!0,icon:"securityKey",children:t("labels.securityKeyUse")})})]}),a(Se,{hidden:!e.actions.continue_to_login_otp.enabled,children:a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_otp,children:t("labels.useAnotherMethod")})})]})},br=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),o=(0,f.useMemo)(()=>{let{actions:r}=e;return r.continue_to_security_key_creation.enabled&&!r.continue_to_otp_secret_creation.enabled?r.continue_to_security_key_creation:!r.continue_to_security_key_creation.enabled&&r.continue_to_otp_secret_creation.enabled?r.continue_to_otp_secret_creation:void 0},[e]);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.mfaSetUp")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.mfaSetUp")}),o?a(X,{flowAction:o,children:a(ee,{children:t("labels.continue")})}):a(b.Fragment,{children:[a(X,{flowAction:e.actions.continue_to_security_key_creation,children:a(ee,{secondary:!0,icon:"securityKey",children:t("labels.securityKey")})}),a(X,{flowAction:e.actions.continue_to_otp_secret_creation,children:a(ee,{secondary:!0,icon:"qrCodeScanner",children:t("labels.authenticatorApp")})})]})]}),a(Se,{children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},Gt=Y(8),kt={};kt.setAttributes=Ve(),kt.insert=n=>{window._hankoStyle=n},kt.domAPI=Ge(),kt.insertStyleElement=Ze(),$e()(Gt.A,kt);var kr=Gt.A&&Gt.A.locals?Gt.A.locals:void 0,wr=({children:n,text:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext),[o,r]=(0,f.useState)(!1);return a("section",{className:Ct.clipboardContainer,children:[a("div",{children:[n,"\xA0"]}),a("div",{className:Ct.clipboardIcon,onClick:i=>(function(l,d,u,s){return new(u||(u=Promise))(function(c,v){function m(w){try{k(s.next(w))}catch(x){v(x)}}function _(w){try{k(s.throw(w))}catch(x){v(x)}}function k(w){var x;w.done?c(w.value):(x=w.value,x instanceof u?x:new u(function(C){C(x)})).then(m,_)}k((s=s.apply(l,d||[])).next())})})(void 0,void 0,void 0,function*(){i.preventDefault();try{yield navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1500)}catch(l){console.error("Failed to copy: ",l)}}),children:o?a("span",{children:["- ",e("labels.copied")]}):a(It,{name:"copy",secondary:!0,size:13})})]})},Sr=({src:n,secret:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext);return a("div",{className:kr.otpCreationDetails,children:[a("img",{alt:"QR-Code",src:n}),a(an,{}),a(wr,{text:t,children:e("texts.otpSecretKey")}),a("div",{children:t})]})},vo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},xr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)([]),i=(0,f.useCallback)(l=>vo(void 0,void 0,void 0,function*(){return e.actions.otp_code_verify.run({otp_code:l})}),[e]);return(0,f.useEffect)(()=>{var l;((l=e.error)===null||l===void 0?void 0:l.code)==="passcode_invalid"&&r([])},[e]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.otpSetUp")}),a(me,{state:e}),a(q,{children:t("texts.otpScanQRCode")}),a(Sr,{src:e.payload.otp_image_source,secret:e.payload.otp_secret}),a(q,{children:t("texts.otpEnterVerificationCode")}),a(X,{flowAction:e.actions.otp_code_verify,onSubmit:l=>vo(void 0,void 0,void 0,function*(){return l.preventDefault(),i(o.join(""))}),children:[a(Un,{onInput:l=>{if(r(l),l.filter(d=>d!=="").length===6)return i(l.join(""))},passcodeDigits:o,numberOfInputs:6}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{children:a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")})})]})},Cr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.securityKeySetUp")}),a(me,{state:e}),a(q,{children:t("texts.securityKeySetUp")}),a(X,{flowAction:e.actions.webauthn_generate_creation_options,children:a(ee,{autofocus:!0,icon:"securityKey",children:t("labels.createSecurityKey")})})]}),a(Se,{hidden:!e.actions.back.enabled,children:a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")})})]})},Ir=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.trustDevice")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.trustDevice")}),a(X,{flowAction:e.actions.trust_device,children:a(ee,{children:t("labels.trustDevice")})})]}),a(Se,{children:[a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")}),a(Q,{flowAction:e.actions.skip,loadingSpinnerPosition:"left",children:t("labels.skip")})]})]})},go=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Ae=(0,b.createContext)(null),Ar=n=>{var t,{lang:e,prefilledEmail:o,prefilledUsername:r,globalOptions:i,createWebauthnAbortSignal:l,nonce:d}=n,u=(function(F,W){var ye={};for(var oe in F)Object.prototype.hasOwnProperty.call(F,oe)&&W.indexOf(oe)<0&&(ye[oe]=F[oe]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function"){var ke=0;for(oe=Object.getOwnPropertySymbols(F);ke<oe.length;ke++)W.indexOf(oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(F,oe[ke])&&(ye[oe[ke]]=F[oe[ke]])}return ye})(n,["lang","prefilledEmail","prefilledUsername","globalOptions","createWebauthnAbortSignal","nonce"]);let{hanko:s,injectStyles:c,hidePasskeyButtonOnLogin:v,translations:m,translationsLocation:_,fallbackLanguage:k}=i;s.setLang((e==null?void 0:e.toString())||k);let w=(0,f.useRef)(null),x=(0,f.useMemo)(()=>`${i.storageKey}_last_login`,[i.storageKey]),[C,R]=(0,f.useState)(u.componentName),[P,L]=(0,f.useState)((t=u.mode)!==null&&t!==void 0?t:"login"),N=(0,f.useRef)(!1),[j,V]=(0,f.useState)(!1),K=(0,f.useMemo)(()=>({auth:P,login:"login",registration:"registration",profile:"profile",events:null}),[P]),Z=(0,f.useMemo)(()=>a(Va,{}),[]),[ne,U]=(0,f.useState)(Z),[,ce]=(0,f.useState)(s),[ve,xe]=(0,f.useState)(),[Pe,pe]=(0,f.useState)({email:o,username:r}),ue=function(F,W){var ye;(ye=w.current)===null||ye===void 0||ye.dispatchEvent(new CustomEvent(F,{detail:W,bubbles:!1,composed:!0}))},Te=(0,f.useCallback)(F=>K[C]==F.flowName,[K,C,P]),Ye=F=>{U(a(po,{error:F instanceof it?F:new Je(F)}))};(0,f.useMemo)(()=>s.onBeforeStateChange(({state:F})=>{Te(F)&&pe(W=>Object.assign(Object.assign({},W),{isDisabled:!0,error:void 0}))}),[s,Te]),(0,f.useEffect)(()=>{pe(F=>Object.assign(Object.assign(Object.assign({},F),o&&{email:o}),r&&{username:r}))},[o,r]),(0,f.useEffect)(()=>s.onAfterStateChange(F=>go(void 0,[F],void 0,function*({state:W}){var ye;if(Te(W))switch(["onboarding_verify_passkey_attestation","webauthn_credential_verification","login_passkey","thirdparty"].includes(W.name)||pe(oe=>Object.assign(Object.assign({},oe),{isDisabled:!1})),W.name){case"login_init":U(a(Za,{state:W})),W.passkeyAutofillActivation();break;case"passcode_confirmation":U(a(Qa,{state:W}));break;case"login_otp":U(a(gr,{state:W}));break;case"onboarding_create_passkey":U(a(Ya,{state:W}));break;case"login_password":U(a(Xa,{state:W}));break;case"login_password_recovery":U(a(er,{state:W}));break;case"login_security_key":U(a(yr,{state:W}));break;case"mfa_method_chooser":U(a(br,{state:W}));break;case"mfa_otp_secret_creation":U(a(xr,{state:W}));break;case"mfa_security_key_creation":U(a(Cr,{state:W}));break;case"login_method_chooser":U(a(tr,{state:W}));break;case"registration_init":U(a(nr,{state:W}));break;case"password_creation":U(a(or,{state:W}));break;case"success":!((ye=W.payload)===null||ye===void 0)&&ye.last_login&&localStorage.setItem(x,JSON.stringify(W.payload.last_login)),W.autoStep();break;case"profile_init":U(a(fr,{state:W,enablePasskeys:i.enablePasskeys}));break;case"error":U(a(po,{state:W}));break;case"onboarding_email":U(a(_r,{state:W}));break;case"onboarding_username":U(a(mr,{state:W}));break;case"credential_onboarding_chooser":U(a(vr,{state:W}));break;case"device_trust":U(a(Ir,{state:W}))}})),[C,K]);let Xe=(0,f.useCallback)(F=>go(void 0,void 0,void 0,function*(){pe(oe=>Object.assign(Object.assign({},oe),{isDisabled:!0}));let W=localStorage.getItem(x);W&&xe(JSON.parse(W));let ye={excludeAutoSteps:["success"],cacheKey:"hanko-auth-flow-state",dispatchAfterStateChangeEvent:!1};if(new URLSearchParams(window.location.search).get("saml_hint")==="idp_initiated")L("token_exchange"),yield s.createState("token_exchange",Object.assign(Object.assign({},ye),{dispatchAfterStateChangeEvent:!0}));else{let oe=yield s.createState(F,ye);L(oe.flowName),setTimeout(()=>oe.dispatchAfterStateChangeEvent(),500)}}),[]),I=(0,f.useCallback)(F=>{R(F);let W=K[F];W&&Xe(W).catch(Ye)},[K]);(0,f.useEffect)(()=>{if(!N.current){let F=setTimeout(()=>{var W;L((W=u.mode)!==null&&W!==void 0?W:"login"),V(!0)},0);return()=>clearTimeout(F)}},[u.mode]),(0,f.useEffect)(()=>{j&&!N.current&&(N.current=!0,I(C))},[j,P,C,I]),(0,f.useEffect)(()=>{s.onUserDeleted(()=>{ue("onUserDeleted")}),s.onSessionCreated(F=>{ue("onSessionCreated",F)}),s.onSessionExpired(()=>{ue("onSessionExpired")}),s.onUserLoggedOut(()=>{ue("onUserLoggedOut")}),s.onBeforeStateChange(F=>{ue("onBeforeStateChange",F)}),s.onAfterStateChange(F=>{ue("onAfterStateChange",F)})},[s]),(0,f.useMemo)(()=>{let F=()=>{I(C)};["auth","login","registration"].includes(C)?(s.onUserLoggedOut(F),s.onSessionExpired(F),s.onUserDeleted(F)):C==="profile"&&s.onSessionCreated(F)},[C,s,I]);let E=Ae.Provider,M=G.TranslateProvider,$=Pa;return a(E,{value:{init:I,initialComponentName:u.componentName,setUIState:pe,uiState:Pe,hanko:s,setHanko:ce,lang:(e==null?void 0:e.toString())||k,prefilledEmail:o,prefilledUsername:r,componentName:C,setComponentName:R,hidePasskeyButtonOnLogin:v,page:ne,setPage:U,lastLogin:ve,isOwnFlow:Te},children:a(M,{translations:m,fallbackLang:k,root:_,children:a($,{ref:w,children:C!=="events"?a(b.Fragment,{children:[c?a("style",{nonce:d||void 0,dangerouslySetInnerHTML:{__html:window._hankoStyle.innerHTML}}):null,ne]}):null})})})},Er={en:Y(6).en},Fo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Be={},Et=(n,t)=>{var e;let o=(e=document.getElementsByTagName(`hanko-${n}`).item(0))===null||e===void 0?void 0:e.nonce;return a(Ar,Object.assign({componentName:n,globalOptions:Be,createWebauthnAbortSignal:Lr},t,{nonce:o}))},Pr=n=>Et("auth",n),Or=n=>Et("login",n),Tr=n=>Et("registration",n),Mr=n=>Et("profile",n),Dr=n=>Et("events",n),zt=new AbortController,Lr=()=>(zt&&zt.abort(),zt=new AbortController,zt.signal),wt=n=>Fo(void 0,[n],void 0,function*({tagName:t,entryComponent:e,shadow:o=!0,observedAttributes:r}){customElements.get(t)||(function(i,l,d,u){function s(){var c=Reflect.construct(HTMLElement,[],s);return c._vdomComponent=i,c._root=u&&u.shadow?c.attachShadow({mode:"open"}):c,c}(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=ra,s.prototype.attributeChangedCallback=ia,s.prototype.disconnectedCallback=sa,d=d||i.observedAttributes||Object.keys(i.propTypes||{}),s.observedAttributes=d,d.forEach(function(c){Object.defineProperty(s.prototype,c,{get:function(){var v,m,_,k;return(v=(m=this._vdom)==null||(_=m.props)==null?void 0:_[c])!=null?v:(k=this._props)==null?void 0:k[c]},set:function(v){this._vdom?this.attributeChangedCallback(c,null,v):(this._props||(this._props={}),this._props[c]=v,this.connectedCallback());var m=typeof v;v!=null&&m!=="string"&&m!=="boolean"&&m!=="number"||this.setAttribute(c,v)}})}),customElements.define(l||i.tagName||i.displayName||i.name,s)})(e,t,r,{shadow:o})}),Ro=(n,...t)=>Fo(void 0,[n,...t],void 0,function*(e,o={}){let r=["api","lang","prefilled-email","entry","mode"];return o=Object.assign({shadow:!0,injectStyles:!0,enablePasskeys:!0,hidePasskeyButtonOnLogin:!1,translations:null,translationsLocation:"/i18n",fallbackLanguage:"en",storageKey:"hanko",sessionCheckInterval:3e4},o),Be.hanko=new An(e,{cookieName:o.storageKey,cookieDomain:o.cookieDomain,cookieSameSite:o.cookieSameSite,localStorageKey:o.storageKey,sessionCheckInterval:o.sessionCheckInterval,sessionTokenLocation:o.sessionTokenLocation}),Be.injectStyles=o.injectStyles,Be.enablePasskeys=o.enablePasskeys,Be.hidePasskeyButtonOnLogin=o.hidePasskeyButtonOnLogin,Be.translations=o.translations||Er,Be.translationsLocation=o.translationsLocation,Be.fallbackLanguage=o.fallbackLanguage,Be.storageKey=o.storageKey,yield Promise.all([wt(Object.assign(Object.assign({},o),{tagName:"hanko-auth",entryComponent:Pr,observedAttributes:r})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-login",entryComponent:Or,observedAttributes:r})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-registration",entryComponent:Tr,observedAttributes:r})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-profile",entryComponent:Mr,observedAttributes:r.filter(i=>["api","lang"].includes(i))})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-events",entryComponent:Dr,observedAttributes:[]}))]),{hanko:Be.hanko}});var Ho='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="256" width="256" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <defs>%0A <linearGradient id="c">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="a">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="u" y2="-179.97" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" y1="-94.672" x1="94.25"/>%0A <linearGradient id="v" y2="-30.438" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="35.75" y1="-114.44" x1="50.75"/>%0A <linearGradient id="w" y2="-74.625" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="115.25" y1="-163.12" x1="77.625"/>%0A <linearGradient id="x" y2="7.063" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="125.72" y1="-50.438" x1="56.5"/>%0A <linearGradient id="y" y2="-146.8" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="180.75" y1="-163.3" x1="35"/>%0A <linearGradient id="z" y2="-41.609" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="179" y1="-141.11" x1="57"/>%0A <linearGradient id="A" y2="39.75" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="208.25" y1="-26.5" x1="156"/>%0A <linearGradient id="B" y2="-77.297" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="235" y1="-169.3" x1="142.75"/>%0A <linearGradient id="m" y2="-113.72" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="166.5" y1="-161.36" x1="214.25"/>%0A <linearGradient id="b">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="n" y2="-62.469" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="57.656" y1="-126.5" x1="53.25"/>%0A <linearGradient id="o" y2="-17.125" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="75.719" y1="6.625" x1="39.5"/>%0A <linearGradient id="p" y2="-121.44" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="85.312" y1="-162.34" x1="102"/>%0A <linearGradient id="q" y2="-14.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="63.5" y1="-78.094" x1="117.75"/>%0A <linearGradient id="r" y2="-60.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="133.94" y1="-125.12" x1="180.69"/>%0A <linearGradient id="s" y2="33.375" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="130.22" y1="-23.5" x1="170.75"/>%0A <linearGradient id="t" y2="-5.656" xlink:href="%23b" gradientUnits="userSpaceOnUse" y1="-76" x2="181.75" x1="213.5"/>%0A <linearGradient id="l" y2="-213.25" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 -10)" y1="72.064" x1="210.17"/>%0A <linearGradient id="M" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="matrix(-1 0 0 1 46 0)" y1="150.38" x1="123"/>%0A <linearGradient id="L" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="translate(-210)" y1="134.36" x1="128"/>%0A <linearGradient id="O" y2="150.38" gradientUnits="userSpaceOnUse" y1="150.38" gradientTransform="matrix(-2 0 0 1.7699 174 -86.65)" x2="133" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="N" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="translate(-210)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="P" y2="186.5" gradientUnits="userSpaceOnUse" y1="186.5" gradientTransform="translate(-210 67)" x2="136" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="J" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 104.976 51.258) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="U" y2="150.38" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" y1="150.38" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="T" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="S" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="scale(-1.39197 1.39197) rotate(-45 -28.292 379.342)" y1="150.38" x1="123"/>%0A <linearGradient id="R" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="134.36" x1="128"/>%0A <linearGradient id="V" y2="150.38" xlink:href="%23a" gradientUnits="userSpaceOnUse" y1="167.73" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" x2="133" x1="108"/>%0A <linearGradient id="W" y2="137.2" gradientUnits="userSpaceOnUse" x2="179.96" gradientTransform="translate(0 -10)" y1="29.815" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="Z" y2="137.2" gradientUnits="userSpaceOnUse" y1="29.815" gradientTransform="matrix(-.50295 .1984 .1972 -.43254 276.16 123.42)" x2="179.96" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="G" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 192)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="h" y2="4.302" gradientUnits="userSpaceOnUse" x2="122" y1="245.45" x1="122">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="e" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="matrix(1 -.08088 0 1 0 203.06)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <clipPath id="j" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="k" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="i" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="D" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="E" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="F" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="C" clipPathUnits="userSpaceOnUse">%0A <path d="M123.62 141.06c20.832 20.243 54.607 19.289 75.439-2.132s20.832-55.196 0-75.439-54.607-19.289-75.439 2.132-20.832 55.196 0 75.439z" fill="url(%23d)"/>%0A </clipPath>%0A <clipPath id="H" clipPathUnits="userSpaceOnUse">%0A <path opacity=".039" d="M9 22.578s7.5 12.393 11.75 26.8C25 63.784 27 74.373 27 74.373s-5.5 13.195-8.25 25.417C16 112.01 13 123.25 13 123.25s5.75 15.535 9.25 29.252S26 176.449 26 176.449s-4 10.574-7.5 24.857-5 31.154-5 31.154 9.25-2.748 28.5-1.055 32.25 3.392 32.25 3.392 12.75-3.782 24-8.191 16.25-7.815 16.25-7.815 5.5.055 22.5 4.43c17 4.376 29.25 6.135 29.25 6.135s13-3.802 26-7.853 26.5-10.143 26.5-10.143-.75-4.94 4.25-24.844 8.75-28.708 8.75-28.708-.514-4.455-3.75-19.447c-1.75-8.108-2.25-4.068-2.25-4.068s16.264-26.155 16.5-40.334c.25-15.02-7.25-36.413-7.25-36.413s-4.75-14.866-7.5-29.143c-2.75-14.278-8.25-25.083-8.25-25.083S195 14.281 187.5 16.388c-7.5 2.107-21 6.948-21 6.948s-9.75-3.461-22-6.72c-12.25-3.26-29.75-3.094-29.75-3.094s-3.25 3.763-22 9.78c-18.75 6.016-27.5 7.973-27.5 7.973s-18.5-7.504-31.5-8.952-24-.06-24.75.252z" fill="url(%23e)"/>%0A </clipPath>%0A <radialGradient id="K" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(1.0213 0 0 -1.0213 -212.72 173.83)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Q" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="scale(1.4216 -1.4216) rotate(-45 -51.091 19.464)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Y" gradientUnits="userSpaceOnUse" cy="72.588" cx="159.61" gradientTransform="matrix(1.2125 0 0 .83915 -46.348 24.528)" r="38.417">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity=".93" offset=".5"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="X" gradientUnits="userSpaceOnUse" cx="159.61" cy="72.588" r="38.417" gradientTransform="matrix(1.2125 0 0 .83915 -45.92 25.814)">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="d" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(.80254 .77986 .80254 -.82522 -10.402 73.423)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <filter id="I">%0A <feGaussianBlur stdDeviation="4.287"/>%0A </filter>%0A <filter id="f">%0A <feGaussianBlur stdDeviation="6.311"/>%0A </filter>%0A <filter id="g">%0A <feGaussianBlur stdDeviation="4.457"/>%0A </filter>%0A </defs>%0A <path opacity=".7" d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" transform="matrix(1 .06864 0 .8487 0 26.913)" filter="url(%23f)" fill="%232d3335"/>%0A <path opacity=".5" d="M9 17.25s7.5 11 11.75 25.75S27 68.5 27 68.5s-5.5 12.75-8.25 24.75-5.75 25-5.75 25 5.75 16 9.25 30S26 170.5 26 170.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-2.5-3.75-17.75S218 121 218 121s1.75-12.5 6.75-25.75S235 68.5 235 68.5s-4.75-15.25-7.5-29.75S219.25 15 219.25 15 195 24 187.5 25.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" transform="matrix(1 0 0 .84657 0 27.66)" filter="url(%23g)" fill="url(%23h)"/>%0A <path fill="%23ceeeab" d="M9 2.25s7.5 13 11.75 27.75S27 55.5 27 55.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 157.5 26 157.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 106 218 106s1.75-10.5 6.75-23.75S235 55.5 235 55.5s-4.75-15.25-7.5-29.75S219.25 0 219.25 0 195 9 187.5 10.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5S9.75 2 9 2.25z"/>%0A <g transform="translate(0 -10)" clip-path="url(%23i)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 75.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 138.5 89 134.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 144.25 115 138.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.594 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 62.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 46.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g clip-path="url(%23j)" transform="translate(0 -10)" stroke="%236d7f42" fill="none">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23k)" transform="translate(0 -10)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <g opacity=".504">%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75c0 0 7.5 13 11.75 27.75S27 385.5 27 385.5l51.469 5.125 48.971-4 52.25 12.031c10.38-4.418 52.11-4.9 55.31-13.156 0 0-4.75-15.25-7.5-29.75S219.25 330 219.25 330z" fill="%23b1e479"/>%0A <path d="M27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.969 16.37 53.721-15.74 52.25 17.53c16.36-4.26 32.39-9.12 48.06-15.41 0 0 1.75-10.5 6.75-23.75S235 385.5 235 385.5c-3.2 8.256-44.93 8.738-55.31 13.156l-52.25-12.031-47.971 4L27 385.5z" fill="%2387d531"/>%0A <path d="M231.75 485.5c-17.9 7.67-35.94 14.9-54.31 21.41l-52.25-18.53-50.221 9L26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28z" fill="%23ceeeab"/>%0A <path d="M13 433.25s5.75 16 9.25 30S26 487.5 26 487.5l48.969 9.88 50.221-9 52.25 18.53c18.37-6.51 36.41-13.74 54.31-21.41 0 0-.5-4.5-3.75-19.75S218 436 218 436c-15.67 6.29-31.7 11.15-48.06 15.41l-52.25-17.53-53.721 15.74L13 433.25z" fill="%23b9e787"/>%0A </g>%0A <g opacity=".522">%0A <path d="M13.719 332.031c-2.729-.007-4.438.125-4.719.219 0 0 7.5 13 11.75 27.75S27 385.5 27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 487.5 26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6l1.5-53.25L63.5 450l16-59.75c-2.22-15.48-9.068-30.046-14.25-44.75 0 0-18.5-9-31.5-11.5-8.125-1.563-15.483-1.956-20.031-1.969z" fill="%2383d32b"/>%0A <path d="M114.75 331.75s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.704 12.03 29.27 14.25 44.75L63.5 450l12.25 46.5-1.5 53.25s12.75-2.75 24-6.25 16.25-6.5 16.25-6.5l11.25-48.5-8.25-54.25 11.75-45c-3.44-9.727-8.06-56.93-14.5-57.5z" fill="%23b1e479"/>%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.358 11.44 45.392 14.25 52.25l-11.25 53.25 9.5 55-12.75 45.5s13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 436 218 436s1.75-10.5 6.75-23.75S235 385.5 235 385.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75z" fill="%23a4df62"/>%0A <path d="M114.75 331.75c6.44.57 11.06 47.773 14.5 57.5l-11.75 45 8.25 53.25L114.5 537s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5l12.75-45.5-9.5-55L180.75 398c-2.81-6.858-9.33-53.608-14.25-52.25 0 0-9.75-4.25-22-8.5s-29.75-5.5-29.75-5.5z" fill="%23ceeeab"/>%0A </g>%0A <path opacity=".039" d="M9-189.75s7.5 13 11.75 27.75S27-136.5 27-136.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26-34.5 26-34.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6S87 25 98.25 21.5 114.5 15 114.5 15s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8S218 11 223-8.5s8.75-28 8.75-28-.5-4.5-3.75-19.75S218-86 218-86s1.75-10.5 6.75-23.75S235-136.5 235-136.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23l)" transform="translate(0 192)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 182)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 182)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 182)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 182)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 182)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 182)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 182)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 182)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 182)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 182)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 182)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 182)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 182)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 182)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 182)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 182)"/>%0A </g>%0A <g clip-path="url(%23C)" transform="matrix(1.2525 .0354 0 1.2525 -27.809 -48.344)">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A <g clip-path="url(%23D)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 85.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 148.5 89 144.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 154.25 115 148.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.595 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 72.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 56.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g stroke="%236d7f42" fill="none" clip-path="url(%23E)">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23F)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <path opacity=".039" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23G)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 192)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 192)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 192)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 192)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 192)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 192)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 192)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 192)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 192)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 192)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 192)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 192)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 192)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 192)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 192)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 192)"/>%0A </g>%0A </g>%0A <path d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" clip-path="url(%23H)" transform="matrix(1 .08088 0 1 0 -21.056)" filter="url(%23I)" fill="%232d3335"/>%0A <path d="m48.01 227.46-4.807 4.55c-5.007-5.31-10.24-10.7-15.08-16.13l4.491-4.07c6.829 6.53 8.872 8.53 15.396 15.65z" fill="url(%23J)"/>%0A <path d="M-95.5 225c28.719 0 52 23.28 52 52s-23.281 52-52 52c-28.72 0-52-23.28-52-52s23.28-52 52-52z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 136c-27.61 0-50-22.39-50-50 0-27.614 22.39-50 50-50 27.614 0 50 22.386 50 50 0 27.61-22.386 50-50 50zm0-3c26.51 0 48-20.49 48-47s-21.49-47-48-47-48 20.49-48 47 21.49 47 48 47z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M-82 136c-27.61 0-50-22.39-50-50v-.5c.27 27.38 22.55 49.5 50 49.5 27.446 0 49.729-22.12 50-49.5.002.168 0 .332 0 .5 0 27.61-22.386 50-50 50zm-48-50.5V85c0-26.51 21.49-47 48-47s48 20.49 48 47c0 .168.002.333 0 .5C-34.27 59.234-55.658 39-82 39c-26.34 0-47.73 20.234-48 46.5z"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill="url(%23K)"/>%0A <path fill="url(%23L)" d="m-96.438 130.72-.843 5C-92.451 137.2-87.316 138-82 138s10.451-.8 15.281-2.28l-.843-5C-72.115 132.19-76.959 133-82 133s-9.885-.81-14.438-2.28z"/>%0A <path fill="url(%23M)" d="M-82 136.25c1.757 0 3.431.3 5 .81v26.63c-1.569.51-3.243.81-5 .81s-3.431-.3-5-.81v-26.63c1.569-.51 3.243-.81 5-.81z"/>%0A <path d="M-82 150.5c3.514 0 5.613.65 8 2.44v67.12c-3.137.91-4.486 1.44-8 1.44s-4.863-.53-8-1.44v-67.12c2.637-1.79 4.486-2.44 8-2.44z" fill="url(%23N)"/>%0A <path d="M-82 154.5c3.514 0 7.238.78 10 2.44v65.12c-2.012 1.79-6.486 2.44-10 2.44s-7.863-.15-10-2.44v-65.12c1.887-1.66 6.486-2.44 10-2.44z" fill="url(%23O)"/>%0A <path d="M-82 217.5c3.514 0 5.863.78 8 2.44v5.12c-2.387 1.54-4.486 2.44-8 2.44s-5.738-.9-8-2.44v-5.12c2.387-1.91 4.486-2.44 8-2.44z" fill="url(%23P)"/>%0A <path fill="%23e0bb41" d="M-82 221.5c-3.514 0-5.613.28-8 2.44v1.12c2.262 1.54 4.486 2.44 8 2.44s5.613-.9 8-2.44v-1.12c-2.512-2.04-4.486-2.44-8-2.44z"/>%0A <path d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431 27.18-27.18 71.25-27.18 98.43 0s27.18 71.251 0 98.431-71.25 27.18-98.43 0zm2.96-2.96c26.09 26.1 67.41 27.08 93.5.99 26.1-26.1 25.11-67.416-.98-93.509-26.09-26.092-67.41-27.077-93.51-.984-26.09 26.093-25.11 67.413.99 93.503z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431.17-.166.33-.329.5-.493-26.689 27.218-26.526 70.924.49 97.934 27.01 27.02 70.72 27.18 97.93.49-.16.17-.32.33-.49.5-27.18 27.18-71.25 27.18-98.43 0zm2.46-96.955c.17-.167.33-.327.5-.492 26.09-26.093 67.41-25.109 93.5.984 26.1 26.093 27.08 67.413.99 93.503l-.5.5c25.59-26.12 24.46-67.091-1.47-93.019-25.93-25.927-66.9-27.063-93.02-1.476z"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill="url(%23Q)"/>%0A <path fill="url(%23R)" d="m116.05 115.28-5.75 4.09c3.3 6.21 7.56 12.05 12.8 17.28 5.23 5.24 11.07 9.5 17.28 12.8l4.09-5.75c-5.92-3.04-11.49-7.01-16.45-11.97s-8.93-10.53-11.97-16.45z"/>%0A <path fill="url(%23S)" d="M124.82 134.93c1.73 1.73 3.08 3.67 4.12 5.72l-26.21 26.21a22.302 22.302 0 0 1-5.718-4.12 22.268 22.268 0 0 1-4.121-5.72l26.209-26.21c2.05 1.04 3.99 2.39 5.72 4.12z"/>%0A <path d="M116.27 159.23 50.199 225.3c-3.984-2.19-5.832-3-9.29-6.46s-4.267-5.3-6.459-9.29l66.07-66.07c5.06 3.75 12.12 10.4 15.75 15.75z" fill="url(%23T)"/>%0A <path d="M105.78 154.12c3.46 3.46 7.43 6.66 8.52 11.02l-64.101 64.1c-6.517-5.16-14.555-12.79-19.686-19.69l64.1-64.1c3.491.23 7.657 5.16 11.117 8.62l.05.05z" fill="url(%23U)"/>%0A <path opacity=".596" d="M105.53 154.36c3.46 3.46 7.68 6.42 8.77 10.78l-64.101 64.1c-7.877-6.91-11.798-10.63-19.686-19.69l64.1-64.1c3.491.23 7.417 5.45 10.877 8.91h.04z" fill="url(%23V)"/>%0A <path opacity=".604" d="M131.17 37.05c40.66-32.173 78.13-12.728 77.78 5.303s-56.57 70.357-76.37 66.117-25.45-53.389-1.41-71.42z" fill="url(%23W)"/>%0A <text opacity=".461" font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="69.184" x="99.839" font-family="Monospace" fill="url(%23X)"><tspan y="69.184" x="99.839">01011001</tspan><tspan y="93.934" x="99.839">00110101</tspan><tspan y="118.684" x="99.839">10010011</tspan></text>%0A <text font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="67.898" x="99.41" font-family="Monospace" fill="url(%23Y)"><tspan y="67.898" x="99.41">01011001</tspan><tspan y="92.648" x="99.41">00110101</tspan><tspan y="117.398" x="99.41">10010011</tspan></text>%0A <path opacity=".765" d="M219.46 129.09c-26.79 21.98-41.81 21.01-38.07 13.14 3.73-7.87 42.32-41.66 51.45-43.75 9.12-2.093 2.27 18.04-13.38 30.61z" fill="url(%23Z)"/>%0A</svg>%0A';var Nr=`data:image/svg+xml;utf8,${encodeURIComponent(Ho)}`;Rn();var qo,Ko,Bo,$o,Go,Vo,Zo,Jo,Qo,Yo,Xo,ea,Ee=class extends jn{constructor(){super(...arguments);this.name="hot-header";Le(this,qo,"");Le(this,Ko,"");Le(this,Bo,!0);Le(this,$o,[]);Le(this,Go,[]);Le(this,Vo,"small");Le(this,Zo,!0);Le(this,Jo,0);Le(this,Qo,0);Le(this,Yo,!1);Le(this,Xo,!1);Le(this,ea,"user")}get title(){return De(this,qo)}set title(e){Ue(this,qo,e)}get logo(){return De(this,Ko)}set logo(e){Ue(this,Ko,e)}get drawer(){return De(this,Bo)}set drawer(e){Ue(this,Bo,e)}get tabs(){return De(this,$o)}set tabs(e){Ue(this,$o,e)}get drawerLinks(){return De(this,Go)}set drawerLinks(e){Ue(this,Go,e)}get size(){return De(this,Vo)}set size(e){Ue(this,Vo,e)}get borderBottom(){return De(this,Zo)}set borderBottom(e){Ue(this,Zo,e)}get selectedTab(){return De(this,Jo)}set selectedTab(e){Ue(this,Jo,e)}get activeTabIndex(){return De(this,Qo)}set activeTabIndex(e){Ue(this,Qo,e)}get showLogin(){return De(this,Yo)}set showLogin(e){Ue(this,Yo,e)}get loginModalOpen(){return De(this,Xo)}set loginModalOpen(e){Ue(this,Xo,e)}get defaultLoginIcon(){return De(this,ea)}set defaultLoginIcon(e){Ue(this,ea,e)}async connectedCallback(){super.connectedCallback(),await Ro("https://dev.login.hotosm.org",{shadow:!1,sessionCheckInterval:3e4}).catch(e=>{})}selectTab(e){if(e!==this.selectedTab&&e>=0&&e<this.tabs.length){let o=this.selectedTab;this.selectedTab=e,this.activeTabIndex=e,this.dispatchEvent(new CustomEvent("tab-change",{detail:{selectedIndex:e,previousIndex:o,tab:this.tabs[e]},bubbles:!0})),this.requestUpdate()}}render(){let e=typeof this.logo=="string"||this.logo instanceof URL?typeof this.logo=="string"?this.logo:this.logo.href:"";return Re`
|
|
3
|
+
`).forEach(i=>{let l=i.toLowerCase();l.startsWith("x-auth-token")?e=t.getResponseHeader("X-Auth-Token"):l.startsWith("x-session-lifetime")?o=parseInt(t.getResponseHeader("X-Session-Lifetime"),10):l.startsWith("x-session-retention")&&(r=t.getResponseHeader("X-Session-Retention"))}),e){let i=new RegExp("^https://"),l=!!this.api.match(i)&&!!window.location.href.match(i),d=r==="session"?void 0:new Date(new Date().getTime()+1e3*o);this.setAuthToken(e,{secure:l,expires:d})}}get(t){return this._fetch(t,{method:"GET"})}post(t,e){return this._fetch(t,{method:"POST",body:JSON.stringify(e)})}put(t,e){return this._fetch(t,{method:"PUT",body:JSON.stringify(e)})}patch(t,e){return this._fetch(t,{method:"PATCH",body:JSON.stringify(e)})}delete(t){return this._fetch(t,{method:"DELETE"})}getAuthToken(){let t="";switch(this.sessionTokenLocation){case"cookie":default:t=this.cookie.getAuthCookie();break;case"sessionStorage":t=this.sessionTokenStorage.getSessionToken()}return t}setAuthToken(t,e){switch(this.sessionTokenLocation){case"cookie":default:return this.cookie.setAuthCookie(t,e);case"sessionStorage":return this.sessionTokenStorage.setSessionToken(t)}}},en=class{constructor(t,e){this.client=void 0,this.client=new Xt(t,e)}},tn=class extends en{async validate(){let t=await this.client.get("/sessions/validate");if(!t.ok)throw new Je;return await t.json()}},bn=class{constructor(t){this.storageKey=void 0,this.defaultState={expiration:0,lastCheck:0},this.storageKey=t}load(){let t=window.localStorage.getItem(this.storageKey);return t==null?this.defaultState:JSON.parse(t)}save(t){window.localStorage.setItem(this.storageKey,JSON.stringify(t||this.defaultState))}},kn=class{constructor(t,e){this.onActivityCallback=void 0,this.onInactivityCallback=void 0,this.handleFocus=()=>{this.onActivityCallback()},this.handleBlur=()=>{this.onInactivityCallback()},this.handleVisibilityChange=()=>{document.visibilityState==="visible"?this.onActivityCallback():this.onInactivityCallback()},this.hasFocus=()=>document.hasFocus(),this.onActivityCallback=t,this.onInactivityCallback=e,window.addEventListener("focus",this.handleFocus),window.addEventListener("blur",this.handleBlur),document.addEventListener("visibilitychange",this.handleVisibilityChange)}},wn=class{constructor(t,e,o){this.intervalID=null,this.timeoutID=null,this.checkInterval=void 0,this.checkSession=void 0,this.onSessionExpired=void 0,this.checkInterval=t,this.checkSession=e,this.onSessionExpired=o}scheduleSessionExpiry(t){var e=this;this.stop(),this.timeoutID=setTimeout(async function(){e.stop(),e.onSessionExpired()},t)}start(t=0,e=0){var o=this;let r=this.calcTimeToNextCheck(t);this.sessionExpiresSoon(e)?this.scheduleSessionExpiry(r):this.timeoutID=setTimeout(async function(){try{let i=await o.checkSession();if(i.is_valid){if(o.sessionExpiresSoon(i.expiration))return void o.scheduleSessionExpiry(i.expiration-Date.now());o.intervalID=setInterval(async function(){i=await o.checkSession(),i.is_valid?o.sessionExpiresSoon(i.expiration)&&o.scheduleSessionExpiry(i.expiration-Date.now()):o.stop()},o.checkInterval)}else o.stop()}catch(i){console.log(i)}},r)}stop(){this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null),this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)}isRunning(){return this.timeoutID!==null||this.intervalID!==null}sessionExpiresSoon(t){return t>0&&t-Date.now()<=this.checkInterval}calcTimeToNextCheck(t){let e=Date.now()-t;return this.checkInterval>=e?this.checkInterval-e%this.checkInterval:0}},Sn=class{constructor(t="hanko_session",e,o,r){this.channel=void 0,this.onSessionExpired=void 0,this.onSessionCreated=void 0,this.onLeadershipRequested=void 0,this.handleMessage=i=>{let l=i.data;switch(l.action){case"sessionExpired":this.onSessionExpired(l);break;case"sessionCreated":this.onSessionCreated(l);break;case"requestLeadership":this.onLeadershipRequested(l)}},this.onSessionExpired=e,this.onSessionCreated=o,this.onLeadershipRequested=r,this.channel=new BroadcastChannel(t),this.channel.onmessage=this.handleMessage}post(t){this.channel.postMessage(t)}},xn=class extends Jt{constructor(t,e){super(),this.listener=new Zt,this.checkInterval=3e4,this.client=void 0,this.sessionState=void 0,this.windowActivityManager=void 0,this.scheduler=void 0,this.sessionChannel=void 0,this.isLoggedIn=void 0,this.client=new tn(t,e),e.sessionCheckInterval&&(this.checkInterval=e.sessionCheckInterval<3e3?3e3:e.sessionCheckInterval),this.sessionState=new bn(`${e.cookieName}_session_state`),this.sessionChannel=new Sn(this.getSessionCheckChannelName(e.sessionTokenLocation,e.sessionCheckChannelName),()=>this.onChannelSessionExpired(),i=>this.onChannelSessionCreated(i),()=>this.onChannelLeadershipRequested()),this.scheduler=new wn(this.checkInterval,()=>this.checkSession(),()=>this.onSessionExpired()),this.windowActivityManager=new kn(()=>this.startSessionCheck(),()=>this.scheduler.stop());let o=Date.now(),{expiration:r}=this.sessionState.load();this.isLoggedIn=o<r,this.initializeEventListeners(),this.startSessionCheck()}initializeEventListeners(){this.listener.onSessionCreated(t=>{let{claims:e}=t,o=Date.parse(e.expiration),r=Date.now();this.isLoggedIn=!0,this.sessionState.save({expiration:o,lastCheck:r}),this.sessionChannel.post({action:"sessionCreated",claims:e}),this.startSessionCheck()}),this.listener.onUserLoggedOut(()=>{this.isLoggedIn=!1,this.sessionChannel.post({action:"sessionExpired"}),this.sessionState.save(null),this.scheduler.stop()}),window.addEventListener("beforeunload",()=>this.scheduler.stop())}startSessionCheck(){if(!this.windowActivityManager.hasFocus()||(this.sessionChannel.post({action:"requestLeadership"}),this.scheduler.isRunning()))return;let{lastCheck:t,expiration:e}=this.sessionState.load();this.isLoggedIn&&this.scheduler.start(t,e)}async checkSession(){let t=Date.now(),{is_valid:e,claims:o,expiration_time:r}=await this.client.validate(),i=r?Date.parse(r):0;return!e&&this.isLoggedIn&&this.dispatchSessionExpiredEvent(),e?(this.isLoggedIn=!0,this.sessionState.save({lastCheck:t,expiration:i})):(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"})),{is_valid:e,claims:o,expiration:i}}onSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"}),this.dispatchSessionExpiredEvent())}onChannelSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.dispatchSessionExpiredEvent())}onChannelSessionCreated(t){let{claims:e}=t,o=Date.now(),r=Date.parse(e.expiration)-o;this.isLoggedIn=!0,this.dispatchSessionCreatedEvent({claims:e,expirationSeconds:r})}onChannelLeadershipRequested(){this.windowActivityManager.hasFocus()||this.scheduler.stop()}getSessionCheckChannelName(t,e){if(t!=="sessionStorage")return e;let o=sessionStorage.getItem("sessionCheckChannelName");return o!=null&&o!==""||(o=`${e}-${Math.floor(100*Math.random())+1}`,sessionStorage.setItem("sessionCheckChannelName",o)),o}},nt=class{static supported(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}static async isPlatformAuthenticatorAvailable(){return!(!this.supported()||!window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable)&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}static async isSecurityKeySupported(){return window.PublicKeyCredential!==void 0&&window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported?window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported():this.supported()}static async isConditionalMediationAvailable(){return!(!window.PublicKeyCredential||!window.PublicKeyCredential.isConditionalMediationAvailable)&&window.PublicKeyCredential.isConditionalMediationAvailable()}};function To(n){let t="==".slice(0,(4-n.length%4)%4),e=n.replace(/-/g,"+").replace(/_/g,"/")+t,o=atob(e),r=new ArrayBuffer(o.length),i=new Uint8Array(r);for(let l=0;l<o.length;l++)i[l]=o.charCodeAt(l);return r}function Mo(n){let t=new Uint8Array(n),e="";for(let o of t)e+=String.fromCharCode(o);return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ae="copy",ze="convert";function st(n,t,e){if(t===ae)return e;if(t===ze)return n(e);if(t instanceof Array)return e.map(o=>st(n,t[0],o));if(t instanceof Object){let o={};for(let[r,i]of Object.entries(t)){if(i.derive){let l=i.derive(e);l!==void 0&&(e[r]=l)}if(r in e)o[r]=e[r]!=null?st(n,i.schema,e[r]):null;else if(i.required)throw new Error(`Missing key: ${r}`)}return o}}function Cn(n,t){return{required:!0,schema:n,derive:t}}function le(n){return{required:!0,schema:n}}function fe(n){return{required:!1,schema:n}}var Do={type:le(ae),id:le(ze),transports:fe(ae)},Lo={appid:fe(ae),appidExclude:fe(ae),credProps:fe(ae)},Uo={appid:fe(ae),appidExclude:fe(ae),credProps:fe(ae)},ba={publicKey:le({rp:le(ae),user:le({id:le(ze),name:le(ae),displayName:le(ae)}),challenge:le(ze),pubKeyCredParams:le(ae),timeout:fe(ae),excludeCredentials:fe([Do]),authenticatorSelection:fe(ae),attestation:fe(ae),extensions:fe(Lo)}),signal:fe(ae)},ka={type:le(ae),id:le(ae),rawId:le(ze),authenticatorAttachment:fe(ae),response:le({clientDataJSON:le(ze),attestationObject:le(ze),transports:Cn(ae,n=>{var t;return((t=n.getTransports)==null?void 0:t.call(n))||[]})}),clientExtensionResults:Cn(Uo,n=>n.getClientExtensionResults())},wa={mediation:fe(ae),publicKey:le({challenge:le(ze),timeout:fe(ae),rpId:fe(ae),allowCredentials:fe([Do]),userVerification:fe(ae),extensions:fe(Lo)}),signal:fe(ae)},Sa={type:le(ae),id:le(ae),rawId:le(ze),authenticatorAttachment:fe(ae),response:le({clientDataJSON:le(ze),authenticatorData:le(ze),signature:le(ze),userHandle:le(ze)}),clientExtensionResults:Cn(Uo,n=>n.getClientExtensionResults())};async function Xn(n){let t=await navigator.credentials.get((function(e){return st(To,wa,e)})(n));return(function(e){return st(Mo,Sa,e)})(t)}var ot=class n{constructor(){this.abortController=new AbortController}static getInstance(){return n.instance||(n.instance=new n),n.instance}createAbortSignal(){return this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal}async getWebauthnCredential(t){return await Xn(We({},t,{signal:this.createAbortSignal()}))}async getConditionalWebauthnCredential(t){return await Xn({publicKey:t,mediation:"conditional",signal:this.createAbortSignal()})}async createWebauthnCredential(t){return await(async function(e){return o=await navigator.credentials.create((function(r){return st(To,ba,r)})(e)),st(Mo,ka,o);var o})(We({},t,{signal:this.createAbortSignal()}))}};ot.instance=null;var Pn="hanko_pkce_code_verifier",On=()=>{let n="",t=new Uint8Array(1);for(;n.length<64;){window.crypto.getRandomValues(t);let e=t[0];e<198&&(n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~".charAt(e%66))}return n},Tn=n=>{typeof window!="undefined"&&window.sessionStorage&&window.sessionStorage.setItem(Pn,n)},xa=()=>typeof window!="undefined"&&window.sessionStorage?window.sessionStorage.getItem(Pn):null,at=()=>{typeof window!="undefined"&&window.sessionStorage&&window.sessionStorage.removeItem(Pn)};async function eo(n,t,e,o="webauthn_credential_already_exists",r="Webauthn credential already exists"){try{let i=await t.createWebauthnCredential(e);return await n.actions.webauthn_verify_attestation_response.run({public_key:i})}catch(i){let l=await n.actions.back.run();return l.error={code:o,message:r},l}}var to={preflight:async n=>await n.actions.register_client_capabilities.run({webauthn_available:nt.supported(),webauthn_conditional_mediation_available:await nt.isConditionalMediationAvailable(),webauthn_platform_authenticator_available:await nt.isPlatformAuthenticatorAvailable()}),login_passkey:async n=>{let t=ot.getInstance();try{let e=await t.getWebauthnCredential(n.payload.request_options);return await n.actions.webauthn_verify_assertion_response.run({assertion_response:e})}catch(e){let o=await n.actions.back.run();return n.error&&(o.error=n.error),o}},onboarding_verify_passkey_attestation:async n=>eo(n,ot.getInstance(),n.payload.creation_options),webauthn_credential_verification:async n=>eo(n,ot.getInstance(),n.payload.creation_options),async thirdparty(n){let t=new URLSearchParams(window.location.search),e=t.get("hanko_token"),o=t.get("error"),r=i=>{i.forEach(d=>t.delete(d));let l=t.toString()?`?${t.toString()}`:"";history.replaceState(null,null,`${window.location.pathname}${l}`)};if((e==null?void 0:e.length)>0){r(["hanko_token"]);let i=xa();try{return await n.actions.exchange_token.run({token:e,code_verifier:i||void 0})}finally{at()}}if((o==null?void 0:o.length)>0){let i=o==="access_denied"?"third_party_access_denied":"technical_error",l=t.get("error_description");r(["error","error_description"]);let d=await n.actions.back.run(null,{dispatchAfterStateChangeEvent:!1});return d.error={code:i,message:l},d.dispatchAfterStateChangeEvent(),d}return n.isCached?await n.actions.back.run():(n.saveToLocalStorage(),window.location.assign(n.payload.redirect_url),n)},success:async n=>{let{claims:t}=n.payload,e=Date.parse(t.expiration)-Date.now();return n.removeFromLocalStorage(),n.hanko.relay.dispatchSessionCreatedEvent({claims:t,expirationSeconds:e}),n},account_deleted:async n=>(n.removeFromLocalStorage(),n.hanko.relay.dispatchUserDeletedEvent(),n)},no={login_init:async n=>{(async function(){let t=ot.getInstance();if(n.payload.request_options)try{let{publicKey:e}=n.payload.request_options,o=await t.getConditionalWebauthnCredential(e);return await n.actions.webauthn_verify_assertion_response.run({assertion_response:o})}catch(e){return}})()}},xt=class n{constructor(t,e,o,r={}){if(this.name=void 0,this.flowName=void 0,this.error=void 0,this.payload=void 0,this.actions=void 0,this.csrfToken=void 0,this.status=void 0,this.previousAction=void 0,this.isCached=void 0,this.cacheKey=void 0,this.hanko=void 0,this.invokedAction=void 0,this.excludeAutoSteps=void 0,this.autoStep=void 0,this.passkeyAutofillActivation=void 0,this.flowName=e,this.name=o.name,this.error=o.error,this.payload=o.payload,this.csrfToken=o.csrf_token,this.status=o.status,this.hanko=t,this.actions=this.buildActionMap(o.actions),this.name in to){let c=to[this.name];this.autoStep=()=>c(this)}if(this.name in no){let c=no[this.name];this.passkeyAutofillActivation=()=>c(this)}let{dispatchAfterStateChangeEvent:i=!0,excludeAutoSteps:l=null,previousAction:d=null,isCached:u=!1,cacheKey:s="hanko-flow-state"}=r;this.excludeAutoSteps=l,this.previousAction=d,this.isCached=u,this.cacheKey=s,i&&this.dispatchAfterStateChangeEvent()}buildActionMap(t){let e={};return Object.keys(t).forEach(o=>{e[o]=new nn(t[o],this)}),new Proxy(e,{get:(o,r)=>{if(r in o)return o[r];let i=typeof r=="string"?r:r.toString();return nn.createDisabled(i,this)}})}dispatchAfterStateChangeEvent(){this.hanko.relay.dispatchAfterStateChangeEvent({state:this})}serialize(){return{flow_name:this.flowName,name:this.name,error:this.error,payload:this.payload,csrf_token:this.csrfToken,status:this.status,previous_action:this.previousAction,actions:Object.fromEntries(Object.entries(this.actions).map(([t,e])=>[t,{action:e.name,href:e.href,inputs:e.inputs,description:null}]))}}saveToLocalStorage(){localStorage.setItem(this.cacheKey,JSON.stringify(We({},this.serialize(),{is_cached:!0})))}removeFromLocalStorage(){localStorage.removeItem(this.cacheKey)}static async initializeFlowState(t,e,o,r={}){let i=new n(t,e,o,r);if(i.excludeAutoSteps!="all")for(;i&&i.autoStep&&((l=i.excludeAutoSteps)==null||!l.includes(i.name));){var l;let d=await i.autoStep();if(d.name==i.name)return d;i=d}return i}static readFromLocalStorage(t){let e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(o){return}}static async create(t,e,o={}){let{cacheKey:r="hanko-flow-state",loadFromCache:i=!0}=o;if(i){let d=n.readFromLocalStorage(r);if(d)return n.deserialize(t,d,We({},o,{cacheKey:r}))}let l=await n.fetchState(t,`/${e}`);return n.initializeFlowState(t,e,l,We({},o,{cacheKey:r}))}static async deserialize(t,e,o={}){return n.initializeFlowState(t,e.flow_name,e,We({},o,{previousAction:e.previous_action,isCached:e.is_cached}))}static async fetchState(t,e,o){try{return(await t.client.post(e,o)).json()}catch(r){return n.createErrorResponse(r)}}static createErrorResponse(t){return{actions:null,csrf_token:"",name:"error",payload:null,status:0,error:t}}},nn=class n{constructor(t,e,o=!0){this.enabled=void 0,this.href=void 0,this.name=void 0,this.inputs=void 0,this.parentState=void 0,this.enabled=o,this.href=t.href,this.name=t.action,this.inputs=t.inputs,this.parentState=e}static createDisabled(t,e){return new n({action:t,href:"",inputs:{},description:"Disabled action"},e,!1)}async run(t=null,e={}){let{name:o,hanko:r,flowName:i,csrfToken:l,invokedAction:d,excludeAutoSteps:u,cacheKey:s}=this.parentState,{dispatchAfterStateChangeEvent:c=!0}=e;if(!this.enabled)throw new Error(`Action '${this.name}' is not enabled in state '${o}'`);if(d)throw new Error(`An action '${d.name}' has already been invoked on state '${d.relatedStateName}'. No further actions can be run.`);this.parentState.invokedAction={name:this.name,relatedStateName:o},r.relay.dispatchBeforeStateChangeEvent({state:this.parentState});let v={input_data:We({},Object.keys(this.inputs).reduce((_,k)=>{let w=this.inputs[k];return w.value!==void 0&&(_[k]=w.value),_},{}),t),csrf_token:l},m=await xt.fetchState(r,this.href,v);return this.parentState.removeFromLocalStorage(),xt.initializeFlowState(r,i,m,{dispatchAfterStateChangeEvent:c,excludeAutoSteps:u,previousAction:d,cacheKey:s})}},In=class extends en{async getCurrent(){let t=await this.client.get("/me");if(t.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new Qt;if(!t.ok)throw new Je;let e=t.json(),o=await this.client.get(`/users/${e.id}`);if(o.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new Qt;if(!o.ok)throw new Je;return o.json()}async logout(){let t=await this.client.post("/logout");if(this.client.sessionTokenStorage.removeSessionToken(),this.client.cookie.removeAuthCookie(),this.client.dispatcher.dispatchUserLoggedOutEvent(),t.status!==401&&!t.ok)throw new Je}},An=class extends Zt{constructor(t,e){super(),this.session=void 0,this.user=void 0,this.cookie=void 0,this.client=void 0,this.relay=void 0;let o=We({timeout:13e3,cookieName:"hanko",localStorageKey:"hanko",sessionCheckInterval:3e4,sessionCheckChannelName:"hanko-session-check"},e);this.client=new Xt(t,o),this.session=new tn(t,o),this.user=new In(t,o),this.relay=new xn(t,o),this.cookie=new Yt(o)}setLang(t){this.client.lang=t}createState(t,e={}){return xt.create(this,t,e)}async getUser(){return this.user.getCurrent()}async validateSession(){return this.session.validate()}getSessionToken(){return this.cookie.getAuthCookie()}async logout(){return this.user.logout()}},Ca=Y(292),$e=Y.n(Ca),Ia=Y(360),Ge=Y.n(Ia),Aa=Y(884),Ve=Y.n(Aa),Ea=Y(88),Ze=Y.n(Ea),jt=Y(890),ht={};ht.setAttributes=Ve(),ht.insert=n=>{window._hankoStyle=n},ht.domAPI=Ge(),ht.insertStyleElement=Ze(),$e()(jt.A,ht);var Ct=jt.A&&jt.A.locals?jt.A.locals:void 0,Pa=(function(n){function t(e){var o=ko({},e);return delete o.ref,n(o,e.ref||null)}return t.$$typeof=la,t.render=n,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t})((n,t)=>{let{lang:e,hanko:o,setHanko:r}=(0,f.useContext)(Ae),{setLang:i}=(0,f.useContext)(G.TranslateContext);return(0,f.useEffect)(()=>{i(e.replace(/[-]/,"")),r(l=>(l.setLang(e),l))},[o,e,r,i]),a("section",{part:"container",className:Ct.container,ref:t,children:n.children})}),Wt=Y(313),pt={};pt.setAttributes=Ve(),pt.insert=n=>{window._hankoStyle=n},pt.domAPI=Ge(),pt.insertStyleElement=Ze(),$e()(Wt.A,pt);var T=Wt.A&&Wt.A.locals?Wt.A.locals:void 0,Oa=Y(452),J=Y.n(Oa),Ta=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-apple",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"20.5 16 15 19",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z"})}),Ma=({secondary:n,size:t,fadeOut:e,disabled:o})=>a("svg",{id:"icon-checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"4 4 40 40",width:t,height:t,className:J()(T.checkmark,n&&T.secondary,e&&T.fadeOut,o&&T.disabled),children:a("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z"})}),Da=({size:n,secondary:t,disabled:e})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),La=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-custom-provider",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:[a("path",{d:"M0 0h24v24H0z",fill:"none"}),a("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"})]}),Ua=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-discord",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 127.14 96.36",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})}),Na=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-exclamation",xmlns:"http://www.w3.org/2000/svg",viewBox:"5 2 13 20",width:n,height:n,className:J()(T.exclamationMark,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),za=({size:n,secondary:t,disabled:e})=>a("svg",{width:n,height:n,viewBox:"0 0 666.66668 666.66717",xmlns:"http://www.w3.org/2000/svg",children:[a("defs",{id:"defs13",children:a("clipPath",{clipPathUnits:"userSpaceOnUse",id:"clipPath25",children:a("path",{d:"M 0,700 H 700 V 0 H 0 Z",id:"path23"})})}),a("g",{id:"g17",transform:"matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)",children:a("g",{id:"g19",children:a("g",{id:"g21",clipPath:"url(#clipPath25)",children:[a("g",{id:"g27",transform:"translate(600,350)",children:a("path",{className:J()(T.facebookIcon,e?T.disabledOutline:T.outline),d:"m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0",id:"path29"})}),a("g",{id:"g31",transform:"translate(447.9175,273.6036)",children:a("path",{className:J()(T.facebookIcon,e?T.disabledLetter:T.letter),d:"M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z",id:"path33"})})]})})})]}),ja=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-github",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 97.63 96",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:[a("path",{d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})," "]}),Wa=({size:n,disabled:t})=>a("svg",{id:"icon-google",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:T.googleIcon,children:[a("path",{className:J()(T.googleIcon,t?T.disabled:T.blue),d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),a("path",{className:J()(T.googleIcon,t?T.disabled:T.green),d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),a("path",{className:J()(T.googleIcon,t?T.disabled:T.yellow),d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),a("path",{className:J()(T.googleIcon,t?T.disabled:T.red),d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}),a("path",{d:"M1 1h22v22H1z",fill:"none"})]}),Fa=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-linkedin",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,viewBox:"0 0 24 24",height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})}),Ra=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-mail",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"})}),Ha=({size:n,disabled:t})=>a("svg",{id:"icon-microsoft",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:T.microsoftIcon,children:[a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.blue),x:"1",y:"1",width:"9",height:"9"}),a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.green),x:"1",y:"11",width:"9",height:"9"}),a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.yellow),x:"11",y:"1",width:"9",height:"9"}),a("rect",{className:J()(T.microsoftIcon,t?T.disabled:T.red),x:"11",y:"11",width:"9",height:"9"})]}),qa=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-passkey",xmlns:"http://www.w3.org/2000/svg",viewBox:"3 1.5 19.5 19",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("g",{id:"icon-passkey-all",children:[a("circle",{id:"icon-passkey-head",cx:"10.5",cy:"6",r:"4.5"}),a("path",{id:"icon-passkey-key",d:"M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z"}),a("path",{id:"icon-passkey-body",d:"M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z"})]})}),Ka=({size:n,secondary:t,disabled:e})=>a("svg",{id:"icon-password",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),Ba=({size:n,secondary:t,disabled:e})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z"})}),$a=({size:n,secondary:t,disabled:e})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:J()(T.icon,t&&T.secondary,e&&T.disabled),children:a("path",{d:"M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z"})}),Ga=({size:n,disabled:t})=>a("svg",{id:"icon-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:J()(T.loadingSpinner,t&&T.disabled),children:[a("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"}),a("path",{d:"M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z"})]}),It=({name:n,secondary:t,size:e=18,fadeOut:o,disabled:r})=>a(pn[n],{size:e,secondary:t,fadeOut:o,disabled:r}),Mn=({children:n,isLoading:t,isSuccess:e,fadeOut:o,secondary:r,hasIcon:i,maxWidth:l})=>a(b.Fragment,{children:a("div",t?{className:J()(T.loadingSpinnerWrapper,T.centerContent,l&&T.maxWidth),children:a(It,{name:"spinner",secondary:r})}:e?{className:J()(T.loadingSpinnerWrapper,T.centerContent,l&&T.maxWidth),children:a(It,{name:"checkmark",secondary:r,fadeOut:o})}:{className:i?T.loadingSpinnerWrapperIcon:T.loadingSpinnerWrapper,children:n})}),Va=()=>a(Mn,{isLoading:!0}),be=n=>{let[t,e]=(0,f.useState)(n);return(0,f.useEffect)(()=>{n&&e(n)},[n]),{flowState:t}},Ft=Y(681),ft={};ft.setAttributes=Ve(),ft.insert=n=>{window._hankoStyle=n},ft.domAPI=Ge(),ft.insertStyleElement=Ze(),$e()(Ft.A,ft);var ge=Ft.A&&Ft.A.locals?Ft.A.locals:void 0,No=(n,t,e)=>{let{hanko:o,setUIState:r,isOwnFlow:i}=(0,f.useContext)(Ae);(0,f.useEffect)(()=>o.onBeforeStateChange(({state:l})=>{n&&i(l)&&(r(d=>Object.assign(Object.assign({},d),{isDisabled:!0,error:void 0})),t(l.invokedAction.name==n.name))}),[n,o,i,t,r]),(0,f.useEffect)(()=>o.onAfterStateChange(({state:l})=>{var d;n&&i(l)&&(e(((d=l.previousAction)===null||d===void 0?void 0:d.name)==n.name),t(!1))}),[o,e,t,n,i])},zo=(0,b.createContext)({}),X=({onSubmit:n,children:t,hidden:e=!1,maxWidth:o,flowAction:r})=>a(zo.Provider,{value:{flowAction:r},children:r&&r.enabled&&!e?a("form",{onSubmit:n||(i=>(function(l,d,u,s){return new(u||(u=Promise))(function(c,v){function m(w){try{k(s.next(w))}catch(x){v(x)}}function _(w){try{k(s.throw(w))}catch(x){v(x)}}function k(w){var x;w.done?c(w.value):(x=w.value,x instanceof u?x:new u(function(C){C(x)})).then(m,_)}k((s=s.apply(l,d||[])).next())})})(void 0,void 0,void 0,function*(){return i.preventDefault(),yield r.run()})),className:ge.form,children:a("ul",{className:ge.ul,children:(0,b.toChildArray)(t).map((i,l)=>a("li",{part:"form-item",className:J()(ge.li,o?ge.maxWidth:null),children:i},l))})}):null}),ee=n=>{var{title:t,children:e,secondary:o,dangerous:r,autofocus:i,showLastUsed:l,onClick:d,icon:u,showSuccessIcon:s}=n,c=(function(N,j){var V={};for(var K in N)Object.prototype.hasOwnProperty.call(N,K)&&j.indexOf(K)<0&&(V[K]=N[K]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function"){var Z=0;for(K=Object.getOwnPropertySymbols(N);Z<K.length;Z++)j.indexOf(K[Z])<0&&Object.prototype.propertyIsEnumerable.call(N,K[Z])&&(V[K[Z]]=N[K[Z]])}return V})(n,["title","children","secondary","dangerous","autofocus","showLastUsed","onClick","icon","showSuccessIcon"]);let v=(0,f.useRef)(null),{uiState:m}=(0,f.useContext)(Ae),{t:_}=(0,f.useContext)(G.TranslateContext),[k,w]=(0,f.useState)(!1),[x,C]=(0,f.useState)(!1),{flowAction:R}=(0,f.useContext)(zo);No(R,w,C),(0,f.useEffect)(()=>{let{current:N}=v;N&&i&&N.focus()},[i]);let P=(0,f.useMemo)(()=>s&&(x||c.isSuccess),[x,c,s]),L=(0,f.useMemo)(()=>m.isDisabled||c.disabled,[c,m]);return a("button",{part:r?"button dangerous-button":o?"button secondary-button":"button primary-button",title:t,ref:v,type:"submit",disabled:L,onClick:d,className:J()(ge.button,r?ge.dangerous:o?ge.secondary:ge.primary),"data-bubble":l?_("labels.lastUsed"):void 0,children:a(Mn,{isLoading:k,isSuccess:P,secondary:!0,hasIcon:!!u,maxWidth:!0,children:[u?a(It,{name:u,secondary:o,disabled:L}):null,a("div",{className:ge.caption,children:a("span",{children:e})})]})})},Oe=n=>{var t,e,o,r,i,{label:l}=n,d=(function(_,k){var w={};for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&k.indexOf(x)<0&&(w[x]=_[x]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function"){var C=0;for(x=Object.getOwnPropertySymbols(_);C<x.length;C++)k.indexOf(x[C])<0&&Object.prototype.propertyIsEnumerable.call(_,x[C])&&(w[x[C]]=_[x[C]])}return w})(n,["label"]);let u=(0,f.useRef)(null),{uiState:s}=(0,f.useContext)(Ae),{t:c}=(0,f.useContext)(G.TranslateContext),v=(0,f.useMemo)(()=>s.isDisabled||d.disabled,[d,s]);(0,f.useEffect)(()=>{let{current:_}=u;_&&d.autofocus&&(_.focus(),_.select())},[d.autofocus]);let m=(0,f.useMemo)(()=>{var _;return d.markOptional&&!(!((_=d.flowInput)===null||_===void 0)&&_.required)?`${d.placeholder} (${c("labels.optional")})`:d.placeholder},[d.markOptional,d.placeholder,d.flowInput,c]);return a("div",{className:ge.inputWrapper,children:a("input",Object.assign({part:"input text-input",required:(t=d.flowInput)===null||t===void 0?void 0:t.required,maxLength:(e=d.flowInput)===null||e===void 0?void 0:e.max_length,minLength:(o=d.flowInput)===null||o===void 0?void 0:o.min_length,hidden:(r=d.flowInput)===null||r===void 0?void 0:r.hidden},d,{ref:u,"aria-label":m,placeholder:m,className:J()(ge.input,!!(!((i=d.flowInput)===null||i===void 0)&&i.error)&&d.markError&&ge.error),disabled:v}))})},_e=({children:n})=>a("section",{className:Ct.content,children:n}),Rt=Y(751),_t={};_t.setAttributes=Ve(),_t.insert=n=>{window._hankoStyle=n},_t.domAPI=Ge(),_t.insertStyleElement=Ze(),$e()(Rt.A,_t);var St=Rt.A&&Rt.A.locals?Rt.A.locals:void 0,Dn=({children:n,hidden:t})=>t?null:a("section",{part:"divider",className:St.divider,children:[a("div",{part:"divider-line",className:St.line}),n?a("div",{part:"divider-text",class:St.text,children:n}):null,a("div",{part:"divider-line",className:St.line})]}),Ht=Y(217),mt={};mt.setAttributes=Ve(),mt.insert=n=>{window._hankoStyle=n},mt.domAPI=Ge(),mt.insertStyleElement=Ze(),$e()(Ht.A,mt);var jo=Ht.A&&Ht.A.locals?Ht.A.locals:void 0,me=({state:n,error:t,flowError:e})=>{var o,r;let{t:i}=(0,f.useContext)(G.TranslateContext),{uiState:l,setUIState:d}=(0,f.useContext)(Ae);return(0,f.useEffect)(()=>{var u,s;if(((u=n==null?void 0:n.error)===null||u===void 0?void 0:u.code)=="form_data_invalid_error")for(let c of Object.values(n==null?void 0:n.actions)){let v=!1;for(let m of Object.values(c==null?void 0:c.inputs))if(!((s=m.error)===null||s===void 0)&&s.code)return d(Object.assign(Object.assign({},l),{error:m.error})),void(v=!0);v||d(Object.assign(Object.assign({},l),{error:n.error}))}else n!=null&&n.error&&d(Object.assign(Object.assign({},l),{error:n==null?void 0:n.error}))},[n]),a("section",{part:"error",className:jo.errorBox,hidden:!(!((o=l.error)===null||o===void 0)&&o.code)&&!(e!=null&&e.code)&&!t,children:[a("span",{children:a(It,{name:"exclamation",size:15})}),a("span",{id:"errorMessage",part:"error-text",children:i(t?`errors.${t.code}`:`flowErrors.${((r=l.error)===null||r===void 0?void 0:r.code)||(e==null?void 0:e.code)}`)})]})},qt=Y(547),vt={};vt.setAttributes=Ve(),vt.insert=n=>{window._hankoStyle=n},vt.domAPI=Ge(),vt.insertStyleElement=Ze(),$e()(qt.A,vt);var on=qt.A&&qt.A.locals?qt.A.locals:void 0,re=({children:n})=>a("h1",{part:"headline1",className:J()(on.headline,on.grade1),children:n}),Kt=Y(579),gt={};gt.setAttributes=Ve(),gt.insert=n=>{window._hankoStyle=n},gt.domAPI=Ge(),gt.insertStyleElement=Ze(),$e()(Kt.A,gt);var Dt=Kt.A&&Kt.A.locals?Kt.A.locals:void 0,En=n=>{var{loadingSpinnerPosition:t,dangerous:e=!1,onClick:o,flowAction:r}=n,i=(function(j,V){var K={};for(var Z in j)Object.prototype.hasOwnProperty.call(j,Z)&&V.indexOf(Z)<0&&(K[Z]=j[Z]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function"){var ne=0;for(Z=Object.getOwnPropertySymbols(j);ne<Z.length;ne++)V.indexOf(Z[ne])<0&&Object.prototype.propertyIsEnumerable.call(j,Z[ne])&&(K[Z[ne]]=j[Z[ne]])}return K})(n,["loadingSpinnerPosition","dangerous","onClick","flowAction"]);let{t:l}=(0,f.useContext)(G.TranslateContext),{uiState:d}=(0,f.useContext)(Ae),[u,s]=(0,f.useState)(),[c,v]=(0,f.useState)(!1),[m,_]=(0,f.useState)(!1),k;o||(o=j=>(function(V,K,Z,ne){return new(Z||(Z=Promise))(function(U,ce){function ve(pe){try{Pe(ne.next(pe))}catch(ue){ce(ue)}}function xe(pe){try{Pe(ne.throw(pe))}catch(ue){ce(ue)}}function Pe(pe){var ue;pe.done?U(pe.value):(ue=pe.value,ue instanceof Z?ue:new Z(function(Te){Te(ue)})).then(ve,xe)}Pe((ne=ne.apply(V,K||[])).next())})})(void 0,void 0,void 0,function*(){return j.preventDefault(),yield r==null?void 0:r.run()})),No(r,v,_);let w=j=>{j.preventDefault(),s(!0)},x=j=>{j.preventDefault(),s(!1)},C=(0,f.useMemo)(()=>c||i.isLoading,[c,i]),R=(0,f.useMemo)(()=>m||i.isSuccess,[m,i]),P=(0,f.useMemo)(()=>r&&!r.enabled||i.hidden,[r,i]),L=(0,f.useCallback)(j=>{j.preventDefault(),s(!1),o(j)},[o]),N=(0,f.useCallback)(()=>P?null:a(b.Fragment,{children:[u?a(b.Fragment,{children:[a(En,{onClick:L,children:l("labels.yes")}),"\xA0/\xA0",a(En,{onClick:x,children:l("labels.no")}),"\xA0"]}):null,a("button",Object.assign({},i,{onClick:e?w:o,disabled:u||i.disabled||d.isDisabled,part:"link",className:J()(Dt.link,e?Dt.danger:null),children:i.children}))]}),[P,d,u,e,o,L,i,l]);return a(b.Fragment,{children:a("span",{className:J()(Dt.linkWrapper,t==="right"?Dt.reverse:null),onMouseEnter:()=>{k&&window.clearTimeout(k)},onMouseLeave:()=>{k=window.setTimeout(()=>{s(!1)},1e3)},children:a(b.Fragment,u||!C&&!R?{children:N()}:{children:[a(Mn,{isLoading:C,isSuccess:R,secondary:i.secondary,fadeOut:!0}),N()]})})})},Q=En,Se=({children:n,hidden:t=!1})=>t?null:a("section",{className:Ct.footer,children:n}),Ln=n=>{var{label:t}=n,e=(function(i,l){var d={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&l.indexOf(u)<0&&(d[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(u=Object.getOwnPropertySymbols(i);s<u.length;s++)l.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(d[u[s]]=i[u[s]])}return d})(n,["label"]);let{uiState:o}=(0,f.useContext)(Ae),r=(0,f.useMemo)(()=>o.isDisabled||e.disabled,[e,o]);return a("div",{className:ge.inputWrapper,children:a("label",{className:ge.checkboxWrapper,children:[a("input",Object.assign({part:"input checkbox-input",type:"checkbox","aria-label":t,className:ge.checkbox},e)),a("span",{className:J()(ge.label,r?ge.disabled:null),children:t})]})})},an=()=>a("section",{className:St.spacer}),Bt=Y(193),yt={};yt.setAttributes=Ve(),yt.insert=n=>{window._hankoStyle=n},yt.domAPI=Ge(),yt.insertStyleElement=Ze(),$e()(Bt.A,yt);var un=Bt.A&&Bt.A.locals?Bt.A.locals:void 0,q=({children:n,hidden:t,center:e})=>t?null:a("p",{part:"paragraph",className:J()(un.paragraph,e&&un.center,e&&un.column),children:n}),Lt=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Za=n=>{var t;let{t:e}=(0,f.useContext)(G.TranslateContext),{init:o,initialComponentName:r,uiState:i,setUIState:l,hidePasskeyButtonOnLogin:d,lastLogin:u}=(0,f.useContext)(Ae),[s,c]=(0,f.useState)(!1),[v,m]=(0,f.useState)(null),[_,k]=(0,f.useState)(null),{flowState:w}=be(n.state),x=nt.supported(),[C,R]=(0,f.useState)(void 0),[P,L]=(0,f.useState)(null),[N,j]=(0,f.useState)(!1),V=U=>{if(U.preventDefault(),U.target instanceof HTMLInputElement){let{value:ce}=U.target;k(ce),K(ce)}},K=U=>{let ce=()=>l(xe=>Object.assign(Object.assign({},xe),{email:U,username:null})),ve=()=>l(xe=>Object.assign(Object.assign({},xe),{email:null,username:U}));switch(v){case"email":ce();break;case"username":ve();break;case"identifier":U.match(/^[^@]+@[^@]+\.[^@]+$/)?ce():ve()}},Z=(0,f.useMemo)(()=>(!!w.actions.webauthn_generate_request_options.enabled||!!w.actions.thirdparty_oauth.enabled)&&w.actions.continue_with_login_identifier.enabled,[w.actions]),ne=w.actions.continue_with_login_identifier.inputs;return(0,f.useEffect)(()=>{let U=w.actions.continue_with_login_identifier.inputs;U!=null&&U.email?(m("email"),k(i.email)):U!=null&&U.username?(m("username"),k(i.username)):(m("identifier"),k(i.email||i.username))},[w,i.email,i.username]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:e("headlines.signIn")}),a(me,{state:w,error:C}),ne?a(b.Fragment,{children:[a(X,{flowAction:w.actions.continue_with_login_identifier,onSubmit:U=>Lt(void 0,void 0,void 0,function*(){return U.preventDefault(),K(_),w.actions.continue_with_login_identifier.run({[v]:_})}),maxWidth:!0,children:[ne.email?a(Oe,{type:"email",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ne.email,onInput:V,value:_,placeholder:e("labels.email"),pattern:"^[^@]+@[^@]+\\.[^@]+$"}):ne.username?a(Oe,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ne.username,onInput:V,value:_,placeholder:e("labels.username")}):a(Oe,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ne.identifier,onInput:V,value:_,placeholder:e("labels.emailOrUsername")}),a(ee,{children:e("labels.continue")})]}),a(Dn,{hidden:!Z,children:e("labels.or")})]}):null,w.actions.thirdparty_oauth.enabled?(t=w.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(U=>a(X,{flowAction:w.actions.thirdparty_oauth,onSubmit:ce=>((ve,xe)=>Lt(void 0,void 0,void 0,function*(){ve.preventDefault(),L(xe);let Pe=On();Tn(Pe);try{let pe=yield w.actions.thirdparty_oauth.run({provider:xe,redirect_to:window.location.toString(),code_verifier:Pe});return pe.error&&(at(),L(null)),pe}catch(pe){throw at(),L(null),pe}}))(ce,U.value),children:a(ee,{isLoading:U.value==P,secondary:!0,icon:U.value.startsWith("custom_")?"customProvider":U.value,showLastUsed:(u==null?void 0:u.login_method)=="third_party"&&(u==null?void 0:u.third_party_provider)==U.value,children:e("labels.signInWith",{provider:U.name})})},U.value)):null,w.actions.webauthn_generate_request_options.enabled&&!d?a(X,{flowAction:w.actions.webauthn_generate_request_options,children:a(ee,{secondary:!0,title:x?null:e("labels.webauthnUnsupported"),disabled:!x,children:e("labels.signInPasskey")})}):null,w.actions.remember_me.enabled&&a(b.Fragment,{children:[a(an,{}),a(Ln,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:N,onChange:U=>Lt(void 0,void 0,void 0,function*(){return j(ce=>!ce),w.actions.remember_me.run({remember_me:!N})})})]})]}),a(Se,{hidden:r!=="auth",children:a(q,{center:!0,children:[a("span",{children:e("labels.dontHaveAnAccount")}),a(Q,{onClick:U=>Lt(void 0,void 0,void 0,function*(){U.preventDefault(),c(!0),o("registration")}),loadingSpinnerPosition:"left",isLoading:s,children:e("labels.signUp")})]})})]})},Ja=n=>{var{index:t,focus:e,digit:o=""}=n,r=(function(s,c){var v={};for(var m in s)Object.prototype.hasOwnProperty.call(s,m)&&c.indexOf(m)<0&&(v[m]=s[m]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var _=0;for(m=Object.getOwnPropertySymbols(s);_<m.length;_++)c.indexOf(m[_])<0&&Object.prototype.propertyIsEnumerable.call(s,m[_])&&(v[m[_]]=s[m[_]])}return v})(n,["index","focus","digit"]);let i=(0,f.useRef)(null),{uiState:l}=(0,f.useContext)(Ae),d=()=>{let{current:s}=i;s&&(s.focus(),s.select())},u=(0,f.useMemo)(()=>l.isDisabled||r.disabled,[r,l]);return(0,f.useEffect)(()=>{t===0&&d()},[t,r.disabled]),(0,f.useMemo)(()=>{e&&d()},[e]),a("div",{className:ge.passcodeDigitWrapper,children:a("input",Object.assign({},r,{part:"input passcode-input","aria-label":`${r.name}-digit-${t+1}`,name:r.name+t.toString(10),type:"text",inputMode:"numeric",maxLength:1,ref:i,value:o.charAt(0),required:!0,className:ge.input,disabled:u}))})},Un=({passcodeDigits:n=[],numberOfInputs:t=6,onInput:e,disabled:o=!1})=>{let[r,i]=(0,f.useState)(0),l=()=>n.slice(),d=()=>{r<t-1&&i(r+1)},u=()=>{r>0&&i(r-1)},s=_=>{let k=l();k[r]=_.charAt(0),e(k)},c=_=>{if(_.preventDefault(),o)return;let k=_.clipboardData.getData("text/plain").slice(0,t-r).split(""),w=l(),x=r;for(let C=0;C<t;++C)C>=r&&k.length>0&&(w[C]=k.shift(),x++);i(x),e(w)},v=_=>{_.key==="Backspace"?(_.preventDefault(),s(""),u()):_.key==="Delete"?(_.preventDefault(),s("")):_.key==="ArrowLeft"?(_.preventDefault(),u()):_.key==="ArrowRight"?(_.preventDefault(),d()):_.key!==" "&&_.key!=="Spacebar"&&_.key!=="Space"||_.preventDefault()},m=_=>{_.target instanceof HTMLInputElement&&s(_.target.value),d()};return(0,f.useEffect)(()=>{n.length===0&&i(0)},[n]),a("div",{className:ge.passcodeInputWrapper,children:Array.from(Array(t)).map((_,k)=>a(Ja,{name:"passcode",index:k,focus:r===k,digit:n[k],onKeyDown:v,onInput:m,onPaste:c,onFocus:()=>(w=>{i(w)})(k),disabled:o},k))})},oo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Qa=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),{uiState:o,setUIState:r}=(0,f.useContext)(Ae),[i,l]=(0,f.useState)(),[d,u]=(0,f.useState)(e.payload.resend_after),[s,c]=(0,f.useState)([]),v=(0,f.useMemo)(()=>{var _;return((_=e.error)===null||_===void 0?void 0:_.code)==="passcode_max_attempts_reached"},[e]),m=(0,f.useCallback)(_=>oo(void 0,void 0,void 0,function*(){return yield e.actions.verify_passcode.run({code:_})}),[e]);return(0,f.useEffect)(()=>{let _=i>0&&setInterval(()=>l(i-1),1e3);return()=>clearInterval(_)},[i]),(0,f.useEffect)(()=>{let _=d>0&&setInterval(()=>{u(d-1)},1e3);return()=>clearInterval(_)},[d]),(0,f.useEffect)(()=>{var _;d==0&&((_=e.error)===null||_===void 0?void 0:_.code)=="rate_limit_exceeded"&&r(k=>Object.assign(Object.assign({},k),{error:null}))},[d]),(0,f.useEffect)(()=>{c([]),e.payload.resend_after>=0&&u(e.payload.resend_after)},[e]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.loginPasscode")}),a(me,{state:e}),a(q,{children:o.email?t("texts.enterPasscode"):t("texts.enterPasscodeNoEmail")}),a(q,{hidden:!o.email,children:a("b",{children:o.email})}),a(X,{flowAction:e.actions.verify_passcode,onSubmit:_=>oo(void 0,void 0,void 0,function*(){return _.preventDefault(),m(s.join(""))}),children:[a(Un,{onInput:_=>{if(c(_),_.filter(k=>k!=="").length===6)return m(_.join(""))},passcodeDigits:s,numberOfInputs:6,disabled:i<=0||v}),a(ee,{disabled:i<=0||v,children:t("labels.continue")})]})]}),a(Se,{children:[a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")}),a(Q,{disabled:d>0,flowAction:e.actions.resend_passcode,loadingSpinnerPosition:"left",children:d>0?t("labels.passcodeResendAfter",{passcodeResendAfter:d}):t("labels.sendNewPasscode")})]})]})},Ya=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.registerAuthenticator")}),a(me,{state:e}),a(q,{children:t("texts.setupPasskey")}),a(X,{flowAction:e.actions.webauthn_generate_creation_options,children:a(ee,{autofocus:!0,icon:"passkey",children:t("labels.registerAuthenticator")})})]}),a(Se,{hidden:!e.actions.skip.enabled&&!e.actions.back.enabled,children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},ao=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Xa=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)(),[i,l]=(0,f.useState)(),d=(0,f.useMemo)(()=>a(Q,{flowAction:e.actions.continue_to_passcode_confirmation_recovery,loadingSpinnerPosition:"left",children:t("labels.forgotYourPassword")}),[e,t]),u=(0,f.useMemo)(()=>a(Q,{flowAction:e.actions.continue_to_login_method_chooser,loadingSpinnerPosition:"left",children:"Choose another method"}),[e]);return(0,f.useEffect)(()=>{let s=i>0&&setInterval(()=>l(i-1),1e3);return()=>clearInterval(s)},[i]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.loginPassword")}),a(me,{state:e}),a(X,{flowAction:e.actions.password_login,onSubmit:s=>ao(void 0,void 0,void 0,function*(){return s.preventDefault(),e.actions.password_login.run({password:o})}),children:[a(Oe,{type:"password",flowInput:e.actions.password_login.inputs.password,autocomplete:"current-password",placeholder:t("labels.password"),onInput:s=>ao(void 0,void 0,void 0,function*(){s.target instanceof HTMLInputElement&&r(s.target.value)}),autofocus:!0}),a(ee,{disabled:i>0,children:i>0?t("labels.passwordRetryAfter",{passwordRetryAfter:i}):t("labels.signIn")})]}),e.actions.continue_to_login_method_chooser.enabled?d:null]}),a(Se,{children:[a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")}),e.actions.continue_to_login_method_chooser.enabled?u:d]})]})},ro=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},er=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(_e,{children:[a(re,{children:t("headlines.registerPassword")}),a(me,{state:e}),a(q,{children:t("texts.passwordFormatHint",{minLength:e.actions.password_recovery.inputs.new_password.min_length,maxLength:72})}),a(X,{flowAction:e.actions.password_recovery,onSubmit:i=>ro(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.password_recovery.run({new_password:o})}),children:[a(Oe,{type:"password",autocomplete:"new-password",flowInput:e.actions.password_recovery.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>ro(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),autofocus:!0}),a(ee,{children:t("labels.continue")})]})]})},tr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.selectLoginMethod")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.howDoYouWantToLogin")}),a(X,{flowAction:e.actions.continue_to_passcode_confirmation,children:a(ee,{secondary:!0,icon:"mail",children:t("labels.passcode")})}),a(X,{flowAction:e.actions.continue_to_password_login,children:a(ee,{secondary:!0,icon:"password",children:t("labels.password")})}),a(X,{flowAction:e.actions.webauthn_generate_request_options,children:a(ee,{secondary:!0,icon:"passkey",children:t("labels.passkey")})})]}),a(Se,{children:a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")})})]})},Ut=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},nr=n=>{var t;let{t:e}=(0,f.useContext)(G.TranslateContext),{init:o,uiState:r,setUIState:i,initialComponentName:l}=(0,f.useContext)(Ae),{flowState:d}=be(n.state),u=d.actions.register_login_identifier.inputs,s=!(!(u!=null&&u.email)||!(u!=null&&u.username)),[c,v]=(0,f.useState)(void 0),[m,_]=(0,f.useState)(null),[k,w]=(0,f.useState)(!1),[x,C]=(0,f.useState)(!1),R=(0,f.useMemo)(()=>!!d.actions.thirdparty_oauth.enabled&&d.actions.register_login_identifier.enabled,[d.actions]);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:e("headlines.signUp")}),a(me,{state:d,error:c}),u?a(b.Fragment,{children:[a(X,{flowAction:d.actions.register_login_identifier,onSubmit:P=>Ut(void 0,void 0,void 0,function*(){return P.preventDefault(),yield d.actions.register_login_identifier.run({email:r.email,username:r.username})}),maxWidth:!0,children:[u.username?a(Oe,{markOptional:s,markError:s,type:"text",autoComplete:"username",autoCorrect:"off",flowInput:u.username,onInput:P=>{if(P.preventDefault(),P.target instanceof HTMLInputElement){let{value:L}=P.target;i(N=>Object.assign(Object.assign({},N),{username:L}))}},value:r.username,placeholder:e("labels.username")}):null,u.email?a(Oe,{markOptional:s,markError:s,type:"email",autoComplete:"email",autoCorrect:"off",flowInput:u.email,onInput:P=>{if(P.preventDefault(),P.target instanceof HTMLInputElement){let{value:L}=P.target;i(N=>Object.assign(Object.assign({},N),{email:L}))}},value:r.email,placeholder:e("labels.email"),pattern:"^.*[^0-9]+$"}):null,a(ee,{autofocus:!0,children:e("labels.continue")})]}),a(Dn,{hidden:!R,children:e("labels.or")})]}):null,d.actions.thirdparty_oauth.enabled?(t=d.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(P=>a(X,{flowAction:d.actions.thirdparty_oauth,onSubmit:L=>((N,j)=>Ut(void 0,void 0,void 0,function*(){N.preventDefault(),_(j);let V=On();Tn(V);try{let K=yield d.actions.thirdparty_oauth.run({provider:j,redirect_to:window.location.toString(),code_verifier:V},{dispatchAfterStateChangeEvent:!1});K.error&&(at(),_(null)),K.dispatchAfterStateChangeEvent()}catch(K){throw at(),_(null),K}}))(L,P.value),children:a(ee,{isLoading:P.value==m,secondary:!0,icon:P.value.startsWith("custom_")?"customProvider":P.value,children:e("labels.signInWith",{provider:P.name})})},P.value)):null,d.actions.remember_me.enabled&&a(b.Fragment,{children:[a(an,{}),a(Ln,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:k,onChange:P=>Ut(void 0,void 0,void 0,function*(){P.preventDefault();let L=yield d.actions.remember_me.run({remember_me:!k},{dispatchAfterStateChangeEvent:!1});w(N=>!N),L.dispatchAfterStateChangeEvent()})})]})]}),a(Se,{hidden:l!=="auth",children:a(q,{center:!0,children:[a("span",{children:e("labels.alreadyHaveAnAccount")}),a(Q,{onClick:P=>Ut(void 0,void 0,void 0,function*(){P.preventDefault(),C(!0),o("login")}),loadingSpinnerPosition:"left",isLoading:x,children:e("labels.signIn")})]})})]})},io=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},or=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.registerPassword")}),a(me,{state:e}),a(q,{children:t("texts.passwordFormatHint",{minLength:e.actions.register_password.inputs.new_password.min_length,maxLength:72})}),a(X,{flowAction:e.actions.register_password,onSubmit:i=>io(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.register_password.run({new_password:o})}),children:[a(Oe,{type:"password",autocomplete:"new-password",flowInput:e.actions.register_password.inputs.new_password,placeholder:t("labels.newPassword"),onInput:i=>io(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),autofocus:!0}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.back.enabled&&!e.actions.skip.enabled,children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},$t=Y(597),bt={};bt.setAttributes=Ve(),bt.insert=n=>{window._hankoStyle=n},bt.domAPI=Ge(),bt.insertStyleElement=Ze(),$e()($t.A,bt);var He=$t.A&&$t.A.locals?$t.A.locals:void 0,At=function({name:n,columnSelector:t,contentSelector:e,data:o=[],checkedItemID:r,setCheckedItemID:i,dropdown:l=!1}){let d=(0,f.useCallback)(c=>`${n}-${c}`,[n]),u=(0,f.useCallback)(c=>d(c)===r,[r,d]),s=c=>{if(!(c.target instanceof HTMLInputElement))return;let v=parseInt(c.target.value,10),m=d(v);i(m===r?null:m)};return a("div",{className:He.accordion,children:o.map((c,v)=>a("div",{className:He.accordionItem,children:[a("input",{type:"radio",className:He.accordionInput,id:`${n}-${v}`,name:n,onClick:s,value:v,checked:u(v)}),a("label",{className:J()(He.label,l&&He.dropdown),for:`${n}-${v}`,children:a("span",{className:He.labelText,children:t(c,v)})}),a("div",{className:J()(He.accordionContent,l&&He.dropdownContent),children:e(c,v)})]},v))})},Ie=({children:n})=>a("h2",{part:"headline2",className:J()(on.headline,on.grade2),children:n}),hn=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},ar=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:r}=(0,f.useContext)(G.TranslateContext),i=(0,f.useMemo)(()=>!1,[]);return a(At,{name:"email-edit-dropdown",columnSelector:l=>{let d=a("span",{className:He.description,children:l.is_verified?l.is_primary?a(b.Fragment,{children:[" -"," ",r("labels.primaryEmail")]}):null:a(b.Fragment,{children:[" -"," ",r("labels.unverifiedEmail")]})});return l.is_primary?a(b.Fragment,{children:[a("b",{children:l.address}),d]}):a(b.Fragment,{children:[l.address,d]})},data:e.payload.user.emails,contentSelector:l=>{var d,u;return a(b.Fragment,{children:[l.is_primary?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.isPrimaryEmail")}),r("texts.isPrimaryEmail")]})}):a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.setPrimaryEmail")}),r("texts.setPrimaryEmail"),a("br",{}),a(Q,{flowAction:e.actions.email_set_primary,onClick:s=>((c,v)=>hn(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_set_primary.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,l.id),loadingSpinnerPosition:"right",children:r("labels.setAsPrimaryEmail")})]})}),l.is_verified?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.emailVerified")}),r("texts.emailVerified")]})}):a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.emailUnverified")}),r("texts.emailUnverified"),a("br",{}),a(Q,{flowAction:e.actions.email_verify,onClick:s=>((c,v)=>hn(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_verify.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,l.id),loadingSpinnerPosition:"right",children:r("labels.verify")})]})}),!((d=e.actions.email_delete.inputs.email_id.allowed_values)===null||d===void 0)&&d.map(s=>s.value).includes(l.id)?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.emailDelete")}),r("texts.emailDelete"),a("br",{}),a(Q,{dangerous:!0,flowAction:e.actions.email_delete,onClick:s=>((c,v)=>hn(void 0,void 0,void 0,function*(){c.preventDefault();let m=yield e.actions.email_delete.run({email_id:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,l.id),disabled:i,loadingSpinnerPosition:"right",children:r("labels.delete")})]})}):null,((u=l.identities)===null||u===void 0?void 0:u.length)>0?a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.connectedAccounts")}),l.identities.map(s=>s.provider).join(", ")]})}):null]})},checkedItemID:n,setCheckedItemID:t})},rr=({onCredentialNameSubmit:n,oldName:t,onBack:e,credential:o,credentialType:r,flowState:i})=>{let{t:l}=(0,f.useContext)(G.TranslateContext),[d,u]=(0,f.useState)(t);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:l(r==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),a(me,{flowError:null}),a(q,{children:l(r==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey")}),a(X,{flowAction:i.actions.webauthn_credential_rename,onSubmit:s=>n(s,o.id,d),children:[a(Oe,{type:"text",name:r,value:d,minLength:3,maxLength:32,required:!0,placeholder:l(r==="security-key"?"labels.newSecurityKeyName":"labels.newPasskeyName"),onInput:s=>(function(c,v,m,_){return new(m||(m=Promise))(function(k,w){function x(P){try{R(_.next(P))}catch(L){w(L)}}function C(P){try{R(_.throw(P))}catch(L){w(L)}}function R(P){var L;P.done?k(P.value):(L=P.value,L instanceof m?L:new m(function(N){N(L)})).then(x,C)}R((_=_.apply(c,v||[])).next())})})(void 0,void 0,void 0,function*(){s.target instanceof HTMLInputElement&&u(s.target.value)}),autofocus:!0}),a(ee,{children:l("labels.save")})]})]}),a(Se,{children:a(Q,{onClick:e,loadingSpinnerPosition:"right",children:l("labels.back")})})]})},so=({credentials:n=[],checkedItemID:t,setCheckedItemID:e,onBack:o,onCredentialNameSubmit:r,allowCredentialDeletion:i,credentialType:l,onCredentialDelete:d,flowState:u})=>{let{t:s}=(0,f.useContext)(G.TranslateContext),{setPage:c}=(0,f.useContext)(Ae),v=_=>{if(_.name)return _.name;let k=_.public_key.replace(/[\W_]/g,"");return`${l==="security-key"?"SecurityKey":"Passkey"}-${k.substring(k.length-7,k.length)}`},m=_=>new Date(_).toLocaleString();return a(At,{name:l==="security-key"?"security-key-edit-dropdown":"passkey-edit-dropdown",columnSelector:_=>v(_),data:n,contentSelector:_=>a(b.Fragment,{children:[a(q,{children:[a(Ie,{children:s(l==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),s(l==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey"),a("br",{}),a(Q,{onClick:k=>((w,x,C)=>{w.preventDefault(),c(a(rr,{oldName:v(x),credential:x,credentialType:C,onBack:o,onCredentialNameSubmit:r,flowState:u}))})(k,_,l),loadingSpinnerPosition:"right",children:s("labels.rename")})]}),a(q,{hidden:!i,children:[a(Ie,{children:s(l==="security-key"?"headlines.deleteSecurityKey":"headlines.deletePasskey")}),s(l==="security-key"?"texts.deleteSecurityKey":"texts.deletePasskey"),a("br",{}),a(Q,{dangerous:!0,flowAction:u.actions.webauthn_credential_delete,onClick:k=>d(k,_.id),loadingSpinnerPosition:"right",children:s("labels.delete")})]}),a(q,{children:[a(Ie,{children:s("headlines.lastUsedAt")}),_.last_used_at?m(_.last_used_at):"-"]}),a(q,{children:[a(Ie,{children:s("headlines.createdAt")}),m(_.created_at)]})]}),checkedItemID:t,setCheckedItemID:e})},lt=({name:n,title:t,children:e,checkedItemID:o,setCheckedItemID:r})=>a(At,{dropdown:!0,name:n,columnSelector:()=>t,contentSelector:()=>a(b.Fragment,{children:e}),setCheckedItemID:r,checkedItemID:o,data:[{}]}),rn=({flowError:n})=>{let{t}=(0,f.useContext)(G.TranslateContext);return a(b.Fragment,{children:n?a("div",{className:jo.errorMessage,children:t(`flowErrors.${n==null?void 0:n.code}`)}):null})},ir=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r;let{t:i}=(0,f.useContext)(G.TranslateContext),{setUIState:l}=(0,f.useContext)(Ae),[d,u]=(0,f.useState)();return a(lt,{name:"email-create-dropdown",title:i("labels.addEmail"),checkedItemID:n,setCheckedItemID:t,children:[a(rn,{flowError:(r=e.actions.email_create.inputs.email)===null||r===void 0?void 0:r.error}),a(X,{flowAction:e.actions.email_create,onSubmit:s=>((c,v)=>(function(m,_,k,w){return new(k||(k=Promise))(function(x,C){function R(N){try{L(w.next(N))}catch(j){C(j)}}function P(N){try{L(w.throw(N))}catch(j){C(j)}}function L(N){var j;N.done?x(N.value):(j=N.value,j instanceof k?j:new k(function(V){V(j)})).then(R,P)}L((w=w.apply(m,_||[])).next())})})(void 0,void 0,void 0,function*(){c.preventDefault(),l(_=>Object.assign(Object.assign({},_),{email:v}));let m=yield e.actions.email_create.run({email:v},{dispatchAfterStateChangeEvent:!1});return o(m)}))(s,d).then(()=>u("")),children:[a(Oe,{markError:!0,type:"email",placeholder:i("labels.newEmailAddress"),onInput:s=>{s.preventDefault(),s.target instanceof HTMLInputElement&&u(s.target.value)},value:d,flowInput:e.actions.email_create.inputs.email}),a(ee,{children:i("labels.save")})]})]})},lo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},sr=({checkedItemID:n,setCheckedItemID:t,onState:e,flowState:o})=>{var r,i,l;let{t:d}=(0,f.useContext)(G.TranslateContext),[u,s]=(0,f.useState)(""),c=o.actions.password_create.enabled?o.actions.password_create:o.actions.password_update;return a(lt,{name:"password-edit-dropdown",title:d(o.actions.password_create.enabled?"labels.setPassword":"labels.changePassword"),checkedItemID:n,setCheckedItemID:t,children:[a(q,{children:d("texts.passwordFormatHint",{minLength:(r=c.inputs.password.min_length)===null||r===void 0?void 0:r.toString(10),maxLength:(i=c.inputs.password.max_length)===null||i===void 0?void 0:i.toString(10)})}),a(rn,{flowError:(l=o.actions.password_create.inputs.password)===null||l===void 0?void 0:l.error}),a(X,{flowAction:c,onSubmit:v=>((m,_)=>lo(void 0,void 0,void 0,function*(){m.preventDefault();let k=yield c.run({password:_},{dispatchAfterStateChangeEvent:!1});return e(k)}))(v,u).then(()=>s("")),children:[a(Oe,{markError:!0,autoComplete:"new-password",placeholder:d("labels.newPassword"),type:"password",onInput:v=>{v.preventDefault(),v.target instanceof HTMLInputElement&&s(v.target.value)},value:u,flowInput:c.inputs.password}),a(ee,{children:d("labels.save")})]}),a(Q,{dangerous:!0,flowAction:o.actions.password_delete,onClick:v=>(m=>lo(void 0,void 0,void 0,function*(){m.preventDefault();let _=yield o.actions.password_delete.run(null,{dispatchAfterStateChangeEvent:!1});return e(_)}))(v).then(()=>s("")),loadingSpinnerPosition:"right",children:d("labels.delete")})]})},co=({checkedItemID:n,setCheckedItemID:t,credentialType:e,flowState:o,onState:r})=>{let{t:i}=(0,f.useContext)(G.TranslateContext),l=nt.supported(),d=e=="passkey"?o.actions.webauthn_credential_create:o.actions.security_key_create;return a(lt,{name:e==="security-key"?"security-key-create-dropdown":"passkey-create-dropdown",title:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey"),checkedItemID:n,setCheckedItemID:t,children:[a(q,{children:i(e==="security-key"?"texts.securityKeySetUp":"texts.setupPasskey")}),a(X,{onSubmit:u=>(function(s,c,v,m){return new(v||(v=Promise))(function(_,k){function w(R){try{C(m.next(R))}catch(P){k(P)}}function x(R){try{C(m.throw(R))}catch(P){k(P)}}function C(R){var P;R.done?_(R.value):(P=R.value,P instanceof v?P:new v(function(L){L(P)})).then(w,x)}C((m=m.apply(s,c||[])).next())})})(void 0,void 0,void 0,function*(){u.preventDefault();let s=yield d.run(null,{dispatchAfterStateChangeEvent:!1});return r(s)}),flowAction:d,children:a(ee,{title:l?null:i("labels.webauthnUnsupported"),children:i(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey")})})]})},uo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},lr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r,i;let{t:l}=(0,f.useContext)(G.TranslateContext),[d,u]=(0,f.useState)();return a(lt,{name:"username-edit-dropdown",title:l(e.payload.user.username?"labels.changeUsername":"labels.setUsername"),checkedItemID:n,setCheckedItemID:t,children:[a(rn,{flowError:e.payload.user.username?(r=e.actions.username_update.inputs.username)===null||r===void 0?void 0:r.error:(i=e.actions.username_create.inputs.username)===null||i===void 0?void 0:i.error}),a(X,{flowAction:e.payload.user.username?e.actions.username_update:e.actions.username_create,onSubmit:s=>uo(void 0,void 0,void 0,function*(){s.preventDefault();let c=e.payload.user.username?e.actions.username_update:e.actions.username_create,v=yield c.run({username:d},{dispatchAfterStateChangeEvent:!1});return o(v).then(()=>u(""))}),children:[a(Oe,{markError:!0,placeholder:l("labels.username"),type:"text",onInput:s=>{s.preventDefault(),s.target instanceof HTMLInputElement&&u(s.target.value)},value:d,flowInput:e.payload.user.username?e.actions.username_update.inputs.username:e.actions.username_create.inputs.username}),a(ee,{children:l("labels.save")})]}),a(Q,{flowAction:e.actions.username_delete,onClick:s=>uo(void 0,void 0,void 0,function*(){s.preventDefault();let c=yield e.actions.username_delete.run(null,{dispatchAfterStateChangeEvent:!1});return o(c).then(()=>u(""))}),dangerous:!0,loadingSpinnerPosition:"right",children:l("labels.delete")})]})},cr=({state:n,onBack:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:e("headlines.deleteAccount")}),a(me,{flowError:null}),a(q,{children:e("texts.deleteAccount")}),a(X,{flowAction:n.actions.account_delete,children:[a(Ln,{required:!0,type:"checkbox",label:e("labels.deleteAccount")}),a(ee,{children:e("labels.delete")})]})]}),a(Se,{children:a(Q,{onClick:t,children:e("labels.back")})})]})},dr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:r}=(0,f.useContext)(G.TranslateContext),i=l=>new Date(l).toLocaleString();return a(At,{name:"session-edit-dropdown",columnSelector:l=>{let d=a("b",{children:l.user_agent?l.user_agent:l.id}),u=l.current?a("span",{className:He.description,children:a(b.Fragment,{children:[" -"," ",r("labels.currentSession")]})}):null;return a(b.Fragment,{children:[d,u]})},data:e.payload.sessions,contentSelector:l=>{var d,u,s;return a(b.Fragment,{children:[a(q,{hidden:!l.ip_address,children:[a(Ie,{children:r("headlines.ipAddress")}),l.ip_address]}),a(q,{children:[a(Ie,{children:r("headlines.lastUsed")}),i(l.last_used)]}),a(q,{children:[a(Ie,{children:r("headlines.createdAt")}),i(l.created_at)]}),!((s=(u=(d=e.actions.session_delete.inputs.session_id)===null||d===void 0?void 0:d.allowed_values)===null||u===void 0?void 0:u.map(c=>c.value))===null||s===void 0)&&s.includes(l.id)?a(q,{children:[a(Ie,{children:r("headlines.revokeSession")}),a(Q,{dangerous:!0,onClick:c=>((v,m)=>(function(_,k,w,x){return new(w||(w=Promise))(function(C,R){function P(j){try{N(x.next(j))}catch(V){R(V)}}function L(j){try{N(x.throw(j))}catch(V){R(V)}}function N(j){var V;j.done?C(j.value):(V=j.value,V instanceof w?V:new w(function(K){K(V)})).then(P,L)}N((x=x.apply(_,k||[])).next())})})(void 0,void 0,void 0,function*(){v.preventDefault();let _=yield e.actions.session_delete.run({session_id:m},{dispatchAfterStateChangeEvent:!1});return o(_)}))(c,l.id),loadingSpinnerPosition:"right",children:r("labels.revoke")})]}):null]})},checkedItemID:n,setCheckedItemID:t})},ho=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},ur=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r,i,l,d;let{t:u}=(0,f.useContext)(G.TranslateContext),s=a("span",{className:He.description,children:!((r=e.payload.user.mfa_config)===null||r===void 0)&&r.auth_app_set_up?a(b.Fragment,{children:[" -"," ",u("labels.configured")]}):null}),c=a(b.Fragment,{children:[u("labels.authenticatorAppManage")," ",s]});return a(lt,{name:"authenticator-app-manage-dropdown",title:c,checkedItemID:n,setCheckedItemID:t,children:[a(Ie,{children:u(!((i=e.payload.user.mfa_config)===null||i===void 0)&&i.auth_app_set_up?"headlines.authenticatorAppAlreadySetUp":"headlines.authenticatorAppNotSetUp")}),a(q,{children:[u(!((l=e.payload.user.mfa_config)===null||l===void 0)&&l.auth_app_set_up?"texts.authenticatorAppAlreadySetUp":"texts.authenticatorAppNotSetUp"),a("br",{}),!((d=e.payload.user.mfa_config)===null||d===void 0)&&d.auth_app_set_up?a(Q,{flowAction:e.actions.otp_secret_delete,onClick:v=>ho(void 0,void 0,void 0,function*(){v.preventDefault();let m=yield e.actions.otp_secret_delete.run(null,{dispatchAfterStateChangeEvent:!1});return o(m)}),loadingSpinnerPosition:"right",dangerous:!0,children:u("labels.delete")}):a(Q,{flowAction:e.actions.continue_to_otp_secret_creation,onClick:v=>ho(void 0,void 0,void 0,function*(){v.preventDefault();let m=yield e.actions.continue_to_otp_secret_creation.run(null,{dispatchAfterStateChangeEvent:!1});return o(m)}),loadingSpinnerPosition:"right",children:u("labels.authenticatorAppAdd")})]})]})},hr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:r}=(0,f.useContext)(G.TranslateContext),i=(0,f.useMemo)(()=>!1,[]);return a(At,{name:"connected-accounts",columnSelector:l=>{let d=a("b",{children:l.provider});return a(b.Fragment,{children:d})},contentSelector:l=>a(b.Fragment,{children:a(b.Fragment,{children:a(q,{children:[a(Ie,{children:r("headlines.deleteIdentity")}),a(Q,{dangerous:!0,flowAction:e.actions.disconnect_thirdparty_oauth_provider,onClick:d=>((u,s)=>(function(c,v,m,_){return new(m||(m=Promise))(function(k,w){function x(P){try{R(_.next(P))}catch(L){w(L)}}function C(P){try{R(_.throw(P))}catch(L){w(L)}}function R(P){var L;P.done?k(P.value):(L=P.value,L instanceof m?L:new m(function(N){N(L)})).then(x,C)}R((_=_.apply(c,v||[])).next())})})(void 0,void 0,void 0,function*(){u.preventDefault();let c=yield e.actions.disconnect_thirdparty_oauth_provider.run({identity_id:s},{dispatchAfterStateChangeEvent:!1});return o(c)}))(d,l.identity_id),disabled:i,loadingSpinnerPosition:"right",children:r("labels.delete")})]})})}),checkedItemID:n,setCheckedItemID:t,data:e.payload.user.identities})},pr=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var r,i;let{t:l}=(0,f.useContext)(G.TranslateContext);return a(lt,{name:"connect-account-dropdown",title:l("labels.connectAccount"),checkedItemID:n,setCheckedItemID:t,children:[a(rn,{flowError:(r=e.actions.connect_thirdparty_oauth_provider.inputs.provider)===null||r===void 0?void 0:r.error}),(i=e.actions.connect_thirdparty_oauth_provider.inputs.provider.allowed_values)===null||i===void 0?void 0:i.map(d=>a(X,{flowAction:e.actions.connect_thirdparty_oauth_provider,onSubmit:u=>((s,c)=>(function(v,m,_,k){return new(_||(_=Promise))(function(w,x){function C(L){try{P(k.next(L))}catch(N){x(N)}}function R(L){try{P(k.throw(L))}catch(N){x(N)}}function P(L){var N;L.done?w(L.value):(N=L.value,N instanceof _?N:new _(function(j){j(N)})).then(C,R)}P((k=k.apply(v,m||[])).next())})})(void 0,void 0,void 0,function*(){s.preventDefault();let v=On();Tn(v);try{let m=yield e.actions.connect_thirdparty_oauth_provider.run({provider:c,redirect_to:window.location.href,code_verifier:v});return m.error&&at(),o(m)}catch(m){throw at(),m}}))(u,d.value),children:a(ee,{icon:d.value.startsWith("custom_")?"customProvider":d.value,children:d.name},d)},d.value))]})},Nt=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Wo=n=>{var t,e,o,r,i,l,d;let{t:u}=(0,f.useContext)(G.TranslateContext),{setPage:s}=(0,f.useContext)(Ae),{flowState:c}=be(n.state),[v,m]=(0,f.useState)(""),_=x=>Nt(void 0,void 0,void 0,function*(){x!=null&&x.error||(m(null),yield new Promise(C=>setTimeout(C,360))),x.dispatchAfterStateChangeEvent()}),k=(x,C,R)=>Nt(void 0,void 0,void 0,function*(){x.preventDefault();let P=yield c.actions.webauthn_credential_rename.run({passkey_id:C,passkey_name:R},{dispatchAfterStateChangeEvent:!1});return _(P)}),w=x=>(x.preventDefault(),s(a(Wo,{state:c,enablePasskeys:n.enablePasskeys})),Promise.resolve());return a(_e,{children:[a(me,{state:((t=c==null?void 0:c.error)===null||t===void 0?void 0:t.code)!=="form_data_invalid_error"?c:null}),c.actions.username_create.enabled||c.actions.username_update.enabled||c.actions.username_delete.enabled?a(b.Fragment,{children:[a(re,{children:u("labels.username")}),c.payload.user.username?a(q,{children:a("b",{children:c.payload.user.username.username})}):null,a(q,{children:c.actions.username_create.enabled||c.actions.username_update.enabled?a(lr,{onState:_,flowState:c,checkedItemID:v,setCheckedItemID:m}):null})]}):null,!((o=(e=c.payload)===null||e===void 0?void 0:e.user)===null||o===void 0)&&o.emails||c.actions.email_create.enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.profileEmails")}),a(q,{children:[a(ar,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m}),c.actions.email_create.enabled?a(ir,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m}):null]})]}):null,c.actions.password_create.enabled||c.actions.password_update.enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.profilePassword")}),a(q,{children:a(sr,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m})})]}):null,n.enablePasskeys&&(!((i=(r=c.payload)===null||r===void 0?void 0:r.user)===null||i===void 0)&&i.passkeys||c.actions.webauthn_credential_create.enabled)?a(b.Fragment,{children:[a(re,{children:u("headlines.profilePasskeys")}),a(q,{children:[a(so,{flowState:c,onBack:w,onCredentialNameSubmit:k,onCredentialDelete:(x,C)=>Nt(void 0,void 0,void 0,function*(){x.preventDefault();let R=yield c.actions.webauthn_credential_delete.run({passkey_id:C},{dispatchAfterStateChangeEvent:!1});return _(R)}),credentials:c.payload.user.passkeys,checkedItemID:v,setCheckedItemID:m,allowCredentialDeletion:!!c.actions.webauthn_credential_delete.enabled,credentialType:"passkey"}),c.actions.webauthn_credential_create.enabled?a(co,{flowState:c,onState:_,credentialType:"passkey",checkedItemID:v,setCheckedItemID:m}):null]})]}):null,!((l=c.payload.user.mfa_config)===null||l===void 0)&&l.security_keys_enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.securityKeys")}),a(q,{children:[a(so,{onBack:w,flowState:c,onCredentialNameSubmit:k,onCredentialDelete:(x,C)=>Nt(void 0,void 0,void 0,function*(){x.preventDefault();let R=yield c.actions.security_key_delete.run({security_key_id:C},{dispatchAfterStateChangeEvent:!1});return _(R)}),credentials:c.payload.user.security_keys,checkedItemID:v,setCheckedItemID:m,allowCredentialDeletion:!!c.actions.security_key_delete.enabled,credentialType:"security-key"}),c.actions.security_key_create.enabled?a(co,{flowState:c,onState:_,credentialType:"security-key",checkedItemID:v,setCheckedItemID:m}):null]})]}):null,!((d=c.payload.user.mfa_config)===null||d===void 0)&&d.totp_enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.authenticatorApp")}),a(q,{children:a(ur,{onState:_,flowState:c,checkedItemID:v,setCheckedItemID:m})})]}):null,c.actions.connect_thirdparty_oauth_provider.enabled||c.actions.disconnect_thirdparty_oauth_provider.enabled?a(b.Fragment,{children:[a(re,{children:u("headlines.connectedAccounts")}),a(hr,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m}),c.actions.connect_thirdparty_oauth_provider.enabled?a(pr,{setCheckedItemID:m,flowState:c,onState:_,checkedItemID:v}):null]}):null,c.payload.sessions?a(b.Fragment,{children:[a(re,{children:u("headlines.profileSessions")}),a(q,{children:a(dr,{flowState:c,onState:_,checkedItemID:v,setCheckedItemID:m})})]}):null,c.actions.account_delete.enabled?a(b.Fragment,{children:[a(an,{}),a(q,{children:a(Dn,{})}),a(q,{children:a(X,{onSubmit:x=>(x.preventDefault(),s(a(cr,{onBack:w,state:c})),Promise.resolve()),flowAction:c.actions.account_delete,children:a(ee,{dangerous:!0,children:u("headlines.deleteAccount")})})})]}):null]})},fr=Wo,po=({state:n,error:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext),{init:o,componentName:r}=(0,f.useContext)(Ae),[i,l]=(0,f.useState)(!1),d=(0,f.useCallback)(()=>o(r),[r,o]),{flowState:u}=be(n);return(0,f.useEffect)(()=>(addEventListener("hankoAuthSuccess",d),()=>{removeEventListener("hankoAuthSuccess",d)}),[d]),a(_e,{children:[a(re,{children:e("headlines.error")}),a(me,{state:u,error:t}),a(X,{onSubmit:s=>{s.preventDefault(),l(!0),d()},children:a(ee,{isLoading:i,children:e("labels.continue")})})]})},fo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},_r=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.createEmail")}),a(me,{state:e}),a(X,{onSubmit:i=>fo(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.email_address_set.run({email:o})}),flowAction:e.actions.email_address_set,children:[a(Oe,{type:"email",autoComplete:"email",autoCorrect:"off",flowInput:e.actions.email_address_set.inputs.email,onInput:i=>fo(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),placeholder:t("labels.email"),pattern:"^.*[^0-9]+$",value:o}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.skip.enabled,children:[a("span",{hidden:!0}),a(Q,{flowAction:e.actions.skip,loadingSpinnerPosition:"left",children:t("labels.skip")})]})]})},_o=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},mr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)();return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.createUsername")}),a(me,{state:e}),a(X,{flowAction:e.actions.username_create,onSubmit:i=>_o(void 0,void 0,void 0,function*(){return i.preventDefault(),e.actions.username_create.run({username:o})}),children:[a(Oe,{type:"text",autoComplete:"username",autoCorrect:"off",flowInput:e.actions.username_create.inputs.username,onInput:i=>_o(void 0,void 0,void 0,function*(){i.target instanceof HTMLInputElement&&r(i.target.value)}),value:o,placeholder:t("labels.username")}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.skip.enabled,children:[a("span",{hidden:!0}),a(Q,{flowAction:e.actions.skip,loadingSpinnerPosition:"left",children:t("labels.skip")})]})]})},vr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.setupLoginMethod")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.selectLoginMethodForFutureLogins")}),a(X,{flowAction:e.actions.continue_to_passkey_registration,children:a(ee,{secondary:!0,icon:"passkey",children:t("labels.passkey")})}),a(X,{flowAction:e.actions.continue_to_password_registration,children:a(ee,{secondary:!0,icon:"password",children:t("labels.password")})})]}),a(Se,{hidden:!e.actions.back.enabled&&!e.actions.skip.enabled,children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},mo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},gr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)([]),i=(0,f.useCallback)(l=>mo(void 0,void 0,void 0,function*(){return e.actions.otp_code_validate.run({otp_code:l})}),[e]);return(0,f.useEffect)(()=>{r([])},[e]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.otpLogin")}),a(me,{state:e}),a(q,{children:t("texts.otpLogin")}),a(X,{flowAction:e.actions.otp_code_validate,onSubmit:l=>mo(void 0,void 0,void 0,function*(){return l.preventDefault(),i(o.join(""))}),children:[a(Un,{onInput:l=>{if(r(l),l.filter(d=>d!=="").length===6)return i(l.join(""))},passcodeDigits:o,numberOfInputs:6}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{hidden:!e.actions.continue_to_login_security_key.enabled,children:a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_security_key,children:t("labels.useAnotherMethod")})})]})},yr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.securityKeyLogin")}),a(me,{state:e}),a(q,{children:t("texts.securityKeyLogin")}),a(X,{flowAction:e.actions.webauthn_generate_request_options,children:a(ee,{autofocus:!0,icon:"securityKey",children:t("labels.securityKeyUse")})})]}),a(Se,{hidden:!e.actions.continue_to_login_otp.enabled,children:a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_otp,children:t("labels.useAnotherMethod")})})]})},br=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),o=(0,f.useMemo)(()=>{let{actions:r}=e;return r.continue_to_security_key_creation.enabled&&!r.continue_to_otp_secret_creation.enabled?r.continue_to_security_key_creation:!r.continue_to_security_key_creation.enabled&&r.continue_to_otp_secret_creation.enabled?r.continue_to_otp_secret_creation:void 0},[e]);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.mfaSetUp")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.mfaSetUp")}),o?a(X,{flowAction:o,children:a(ee,{children:t("labels.continue")})}):a(b.Fragment,{children:[a(X,{flowAction:e.actions.continue_to_security_key_creation,children:a(ee,{secondary:!0,icon:"securityKey",children:t("labels.securityKey")})}),a(X,{flowAction:e.actions.continue_to_otp_secret_creation,children:a(ee,{secondary:!0,icon:"qrCodeScanner",children:t("labels.authenticatorApp")})})]})]}),a(Se,{children:[a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")}),a(Q,{loadingSpinnerPosition:"left",flowAction:e.actions.skip,children:t("labels.skip")})]})]})},Gt=Y(8),kt={};kt.setAttributes=Ve(),kt.insert=n=>{window._hankoStyle=n},kt.domAPI=Ge(),kt.insertStyleElement=Ze(),$e()(Gt.A,kt);var kr=Gt.A&&Gt.A.locals?Gt.A.locals:void 0,wr=({children:n,text:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext),[o,r]=(0,f.useState)(!1);return a("section",{className:Ct.clipboardContainer,children:[a("div",{children:[n,"\xA0"]}),a("div",{className:Ct.clipboardIcon,onClick:i=>(function(l,d,u,s){return new(u||(u=Promise))(function(c,v){function m(w){try{k(s.next(w))}catch(x){v(x)}}function _(w){try{k(s.throw(w))}catch(x){v(x)}}function k(w){var x;w.done?c(w.value):(x=w.value,x instanceof u?x:new u(function(C){C(x)})).then(m,_)}k((s=s.apply(l,d||[])).next())})})(void 0,void 0,void 0,function*(){i.preventDefault();try{yield navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1500)}catch(l){console.error("Failed to copy: ",l)}}),children:o?a("span",{children:["- ",e("labels.copied")]}):a(It,{name:"copy",secondary:!0,size:13})})]})},Sr=({src:n,secret:t})=>{let{t:e}=(0,f.useContext)(G.TranslateContext);return a("div",{className:kr.otpCreationDetails,children:[a("img",{alt:"QR-Code",src:n}),a(an,{}),a(wr,{text:t,children:e("texts.otpSecretKey")}),a("div",{children:t})]})},vo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},xr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state),[o,r]=(0,f.useState)([]),i=(0,f.useCallback)(l=>vo(void 0,void 0,void 0,function*(){return e.actions.otp_code_verify.run({otp_code:l})}),[e]);return(0,f.useEffect)(()=>{var l;((l=e.error)===null||l===void 0?void 0:l.code)==="passcode_invalid"&&r([])},[e]),a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.otpSetUp")}),a(me,{state:e}),a(q,{children:t("texts.otpScanQRCode")}),a(Sr,{src:e.payload.otp_image_source,secret:e.payload.otp_secret}),a(q,{children:t("texts.otpEnterVerificationCode")}),a(X,{flowAction:e.actions.otp_code_verify,onSubmit:l=>vo(void 0,void 0,void 0,function*(){return l.preventDefault(),i(o.join(""))}),children:[a(Un,{onInput:l=>{if(r(l),l.filter(d=>d!=="").length===6)return i(l.join(""))},passcodeDigits:o,numberOfInputs:6}),a(ee,{children:t("labels.continue")})]})]}),a(Se,{children:a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")})})]})},Cr=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.securityKeySetUp")}),a(me,{state:e}),a(q,{children:t("texts.securityKeySetUp")}),a(X,{flowAction:e.actions.webauthn_generate_creation_options,children:a(ee,{autofocus:!0,icon:"securityKey",children:t("labels.createSecurityKey")})})]}),a(Se,{hidden:!e.actions.back.enabled,children:a(Q,{loadingSpinnerPosition:"right",flowAction:e.actions.back,children:t("labels.back")})})]})},Ir=n=>{let{t}=(0,f.useContext)(G.TranslateContext),{flowState:e}=be(n.state);return a(b.Fragment,{children:[a(_e,{children:[a(re,{children:t("headlines.trustDevice")}),a(me,{flowError:e==null?void 0:e.error}),a(q,{children:t("texts.trustDevice")}),a(X,{flowAction:e.actions.trust_device,children:a(ee,{children:t("labels.trustDevice")})})]}),a(Se,{children:[a(Q,{flowAction:e.actions.back,loadingSpinnerPosition:"right",children:t("labels.back")}),a(Q,{flowAction:e.actions.skip,loadingSpinnerPosition:"left",children:t("labels.skip")})]})]})},go=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Ae=(0,b.createContext)(null),Ar=n=>{var t,{lang:e,prefilledEmail:o,prefilledUsername:r,globalOptions:i,createWebauthnAbortSignal:l,nonce:d}=n,u=(function(F,W){var ye={};for(var oe in F)Object.prototype.hasOwnProperty.call(F,oe)&&W.indexOf(oe)<0&&(ye[oe]=F[oe]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function"){var ke=0;for(oe=Object.getOwnPropertySymbols(F);ke<oe.length;ke++)W.indexOf(oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(F,oe[ke])&&(ye[oe[ke]]=F[oe[ke]])}return ye})(n,["lang","prefilledEmail","prefilledUsername","globalOptions","createWebauthnAbortSignal","nonce"]);let{hanko:s,injectStyles:c,hidePasskeyButtonOnLogin:v,translations:m,translationsLocation:_,fallbackLanguage:k}=i;s.setLang((e==null?void 0:e.toString())||k);let w=(0,f.useRef)(null),x=(0,f.useMemo)(()=>`${i.storageKey}_last_login`,[i.storageKey]),[C,R]=(0,f.useState)(u.componentName),[P,L]=(0,f.useState)((t=u.mode)!==null&&t!==void 0?t:"login"),N=(0,f.useRef)(!1),[j,V]=(0,f.useState)(!1),K=(0,f.useMemo)(()=>({auth:P,login:"login",registration:"registration",profile:"profile",events:null}),[P]),Z=(0,f.useMemo)(()=>a(Va,{}),[]),[ne,U]=(0,f.useState)(Z),[,ce]=(0,f.useState)(s),[ve,xe]=(0,f.useState)(),[Pe,pe]=(0,f.useState)({email:o,username:r}),ue=function(F,W){var ye;(ye=w.current)===null||ye===void 0||ye.dispatchEvent(new CustomEvent(F,{detail:W,bubbles:!1,composed:!0}))},Te=(0,f.useCallback)(F=>K[C]==F.flowName,[K,C,P]),Ye=F=>{U(a(po,{error:F instanceof it?F:new Je(F)}))};(0,f.useMemo)(()=>s.onBeforeStateChange(({state:F})=>{Te(F)&&pe(W=>Object.assign(Object.assign({},W),{isDisabled:!0,error:void 0}))}),[s,Te]),(0,f.useEffect)(()=>{pe(F=>Object.assign(Object.assign(Object.assign({},F),o&&{email:o}),r&&{username:r}))},[o,r]),(0,f.useEffect)(()=>s.onAfterStateChange(F=>go(void 0,[F],void 0,function*({state:W}){var ye;if(Te(W))switch(["onboarding_verify_passkey_attestation","webauthn_credential_verification","login_passkey","thirdparty"].includes(W.name)||pe(oe=>Object.assign(Object.assign({},oe),{isDisabled:!1})),W.name){case"login_init":U(a(Za,{state:W})),W.passkeyAutofillActivation();break;case"passcode_confirmation":U(a(Qa,{state:W}));break;case"login_otp":U(a(gr,{state:W}));break;case"onboarding_create_passkey":U(a(Ya,{state:W}));break;case"login_password":U(a(Xa,{state:W}));break;case"login_password_recovery":U(a(er,{state:W}));break;case"login_security_key":U(a(yr,{state:W}));break;case"mfa_method_chooser":U(a(br,{state:W}));break;case"mfa_otp_secret_creation":U(a(xr,{state:W}));break;case"mfa_security_key_creation":U(a(Cr,{state:W}));break;case"login_method_chooser":U(a(tr,{state:W}));break;case"registration_init":U(a(nr,{state:W}));break;case"password_creation":U(a(or,{state:W}));break;case"success":!((ye=W.payload)===null||ye===void 0)&&ye.last_login&&localStorage.setItem(x,JSON.stringify(W.payload.last_login)),W.autoStep();break;case"profile_init":U(a(fr,{state:W,enablePasskeys:i.enablePasskeys}));break;case"error":U(a(po,{state:W}));break;case"onboarding_email":U(a(_r,{state:W}));break;case"onboarding_username":U(a(mr,{state:W}));break;case"credential_onboarding_chooser":U(a(vr,{state:W}));break;case"device_trust":U(a(Ir,{state:W}))}})),[C,K]);let Xe=(0,f.useCallback)(F=>go(void 0,void 0,void 0,function*(){pe(oe=>Object.assign(Object.assign({},oe),{isDisabled:!0}));let W=localStorage.getItem(x);W&&xe(JSON.parse(W));let ye={excludeAutoSteps:["success"],cacheKey:"hanko-auth-flow-state",dispatchAfterStateChangeEvent:!1};if(new URLSearchParams(window.location.search).get("saml_hint")==="idp_initiated")L("token_exchange"),yield s.createState("token_exchange",Object.assign(Object.assign({},ye),{dispatchAfterStateChangeEvent:!0}));else{let oe=yield s.createState(F,ye);L(oe.flowName),setTimeout(()=>oe.dispatchAfterStateChangeEvent(),500)}}),[]),I=(0,f.useCallback)(F=>{R(F);let W=K[F];W&&Xe(W).catch(Ye)},[K]);(0,f.useEffect)(()=>{if(!N.current){let F=setTimeout(()=>{var W;L((W=u.mode)!==null&&W!==void 0?W:"login"),V(!0)},0);return()=>clearTimeout(F)}},[u.mode]),(0,f.useEffect)(()=>{j&&!N.current&&(N.current=!0,I(C))},[j,P,C,I]),(0,f.useEffect)(()=>{s.onUserDeleted(()=>{ue("onUserDeleted")}),s.onSessionCreated(F=>{ue("onSessionCreated",F)}),s.onSessionExpired(()=>{ue("onSessionExpired")}),s.onUserLoggedOut(()=>{ue("onUserLoggedOut")}),s.onBeforeStateChange(F=>{ue("onBeforeStateChange",F)}),s.onAfterStateChange(F=>{ue("onAfterStateChange",F)})},[s]),(0,f.useMemo)(()=>{let F=()=>{I(C)};["auth","login","registration"].includes(C)?(s.onUserLoggedOut(F),s.onSessionExpired(F),s.onUserDeleted(F)):C==="profile"&&s.onSessionCreated(F)},[C,s,I]);let E=Ae.Provider,M=G.TranslateProvider,$=Pa;return a(E,{value:{init:I,initialComponentName:u.componentName,setUIState:pe,uiState:Pe,hanko:s,setHanko:ce,lang:(e==null?void 0:e.toString())||k,prefilledEmail:o,prefilledUsername:r,componentName:C,setComponentName:R,hidePasskeyButtonOnLogin:v,page:ne,setPage:U,lastLogin:ve,isOwnFlow:Te},children:a(M,{translations:m,fallbackLang:k,root:_,children:a($,{ref:w,children:C!=="events"?a(b.Fragment,{children:[c?a("style",{nonce:d||void 0,dangerouslySetInnerHTML:{__html:window._hankoStyle.innerHTML}}):null,ne]}):null})})})},Er={en:Y(6).en},Fo=function(n,t,e,o){return new(e||(e=Promise))(function(r,i){function l(s){try{u(o.next(s))}catch(c){i(c)}}function d(s){try{u(o.throw(s))}catch(c){i(c)}}function u(s){var c;s.done?r(s.value):(c=s.value,c instanceof e?c:new e(function(v){v(c)})).then(l,d)}u((o=o.apply(n,t||[])).next())})},Be={},Et=(n,t)=>{var e;let o=(e=document.getElementsByTagName(`hanko-${n}`).item(0))===null||e===void 0?void 0:e.nonce;return a(Ar,Object.assign({componentName:n,globalOptions:Be,createWebauthnAbortSignal:Lr},t,{nonce:o}))},Pr=n=>Et("auth",n),Or=n=>Et("login",n),Tr=n=>Et("registration",n),Mr=n=>Et("profile",n),Dr=n=>Et("events",n),zt=new AbortController,Lr=()=>(zt&&zt.abort(),zt=new AbortController,zt.signal),wt=n=>Fo(void 0,[n],void 0,function*({tagName:t,entryComponent:e,shadow:o=!0,observedAttributes:r}){customElements.get(t)||(function(i,l,d,u){function s(){var c=Reflect.construct(HTMLElement,[],s);return c._vdomComponent=i,c._root=u&&u.shadow?c.attachShadow({mode:"open"}):c,c}(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=ra,s.prototype.attributeChangedCallback=ia,s.prototype.disconnectedCallback=sa,d=d||i.observedAttributes||Object.keys(i.propTypes||{}),s.observedAttributes=d,d.forEach(function(c){Object.defineProperty(s.prototype,c,{get:function(){var v,m,_,k;return(v=(m=this._vdom)==null||(_=m.props)==null?void 0:_[c])!=null?v:(k=this._props)==null?void 0:k[c]},set:function(v){this._vdom?this.attributeChangedCallback(c,null,v):(this._props||(this._props={}),this._props[c]=v,this.connectedCallback());var m=typeof v;v!=null&&m!=="string"&&m!=="boolean"&&m!=="number"||this.setAttribute(c,v)}})}),customElements.define(l||i.tagName||i.displayName||i.name,s)})(e,t,r,{shadow:o})}),Ro=(n,...t)=>Fo(void 0,[n,...t],void 0,function*(e,o={}){let r=["api","lang","prefilled-email","entry","mode"];return o=Object.assign({shadow:!0,injectStyles:!0,enablePasskeys:!0,hidePasskeyButtonOnLogin:!1,translations:null,translationsLocation:"/i18n",fallbackLanguage:"en",storageKey:"hanko",sessionCheckInterval:3e4},o),Be.hanko=new An(e,{cookieName:o.storageKey,cookieDomain:o.cookieDomain,cookieSameSite:o.cookieSameSite,localStorageKey:o.storageKey,sessionCheckInterval:o.sessionCheckInterval,sessionTokenLocation:o.sessionTokenLocation}),Be.injectStyles=o.injectStyles,Be.enablePasskeys=o.enablePasskeys,Be.hidePasskeyButtonOnLogin=o.hidePasskeyButtonOnLogin,Be.translations=o.translations||Er,Be.translationsLocation=o.translationsLocation,Be.fallbackLanguage=o.fallbackLanguage,Be.storageKey=o.storageKey,yield Promise.all([wt(Object.assign(Object.assign({},o),{tagName:"hanko-auth",entryComponent:Pr,observedAttributes:r})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-login",entryComponent:Or,observedAttributes:r})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-registration",entryComponent:Tr,observedAttributes:r})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-profile",entryComponent:Mr,observedAttributes:r.filter(i=>["api","lang"].includes(i))})),wt(Object.assign(Object.assign({},o),{tagName:"hanko-events",entryComponent:Dr,observedAttributes:[]}))]),{hanko:Be.hanko}});var Ho='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="256" width="256" xmlns:xlink="http://www.w3.org/1999/xlink">%0A <defs>%0A <linearGradient id="c">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="a">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="u" y2="-179.97" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" y1="-94.672" x1="94.25"/>%0A <linearGradient id="v" y2="-30.438" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="35.75" y1="-114.44" x1="50.75"/>%0A <linearGradient id="w" y2="-74.625" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="115.25" y1="-163.12" x1="77.625"/>%0A <linearGradient id="x" y2="7.063" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="125.72" y1="-50.438" x1="56.5"/>%0A <linearGradient id="y" y2="-146.8" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="180.75" y1="-163.3" x1="35"/>%0A <linearGradient id="z" y2="-41.609" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="179" y1="-141.11" x1="57"/>%0A <linearGradient id="A" y2="39.75" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="208.25" y1="-26.5" x1="156"/>%0A <linearGradient id="B" y2="-77.297" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="235" y1="-169.3" x1="142.75"/>%0A <linearGradient id="m" y2="-113.72" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="166.5" y1="-161.36" x1="214.25"/>%0A <linearGradient id="b">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="n" y2="-62.469" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="57.656" y1="-126.5" x1="53.25"/>%0A <linearGradient id="o" y2="-17.125" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="75.719" y1="6.625" x1="39.5"/>%0A <linearGradient id="p" y2="-121.44" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="85.312" y1="-162.34" x1="102"/>%0A <linearGradient id="q" y2="-14.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="63.5" y1="-78.094" x1="117.75"/>%0A <linearGradient id="r" y2="-60.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="133.94" y1="-125.12" x1="180.69"/>%0A <linearGradient id="s" y2="33.375" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="130.22" y1="-23.5" x1="170.75"/>%0A <linearGradient id="t" y2="-5.656" xlink:href="%23b" gradientUnits="userSpaceOnUse" y1="-76" x2="181.75" x1="213.5"/>%0A <linearGradient id="l" y2="-213.25" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 -10)" y1="72.064" x1="210.17"/>%0A <linearGradient id="M" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="matrix(-1 0 0 1 46 0)" y1="150.38" x1="123"/>%0A <linearGradient id="L" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="translate(-210)" y1="134.36" x1="128"/>%0A <linearGradient id="O" y2="150.38" gradientUnits="userSpaceOnUse" y1="150.38" gradientTransform="matrix(-2 0 0 1.7699 174 -86.65)" x2="133" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="N" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="translate(-210)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="P" y2="186.5" gradientUnits="userSpaceOnUse" y1="186.5" gradientTransform="translate(-210 67)" x2="136" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="J" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 104.976 51.258) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="U" y2="150.38" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" y1="150.38" x1="123">%0A <stop stop-color="%232d3335" offset="0"/>%0A <stop stop-color="%234c464a" offset=".5"/>%0A <stop stop-color="%23384042" offset="1"/>%0A </linearGradient>%0A <linearGradient id="T" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="186.5" x1="120">%0A <stop stop-color="%23f9e295" offset="0"/>%0A <stop stop-color="%23f7dd84" offset=".125"/>%0A <stop stop-color="%23fff" offset=".206"/>%0A <stop stop-color="%23f4ce51" offset=".301"/>%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0A <stop stop-color="%23efbb0e" offset="1"/>%0A </linearGradient>%0A <linearGradient id="S" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="scale(-1.39197 1.39197) rotate(-45 -28.292 379.342)" y1="150.38" x1="123"/>%0A <linearGradient id="R" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="134.36" x1="128"/>%0A <linearGradient id="V" y2="150.38" xlink:href="%23a" gradientUnits="userSpaceOnUse" y1="167.73" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" x2="133" x1="108"/>%0A <linearGradient id="W" y2="137.2" gradientUnits="userSpaceOnUse" x2="179.96" gradientTransform="translate(0 -10)" y1="29.815" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="Z" y2="137.2" gradientUnits="userSpaceOnUse" y1="29.815" gradientTransform="matrix(-.50295 .1984 .1972 -.43254 276.16 123.42)" x2="179.96" x1="126.64">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="G" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 192)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="h" y2="4.302" gradientUnits="userSpaceOnUse" x2="122" y1="245.45" x1="122">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <linearGradient id="e" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="matrix(1 -.08088 0 1 0 203.06)" y1="72.064" x1="210.17">%0A <stop offset="0"/>%0A <stop stop-opacity="0" offset="1"/>%0A </linearGradient>%0A <clipPath id="j" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="k" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="i" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="D" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="E" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="F" clipPathUnits="userSpaceOnUse">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A </clipPath>%0A <clipPath id="C" clipPathUnits="userSpaceOnUse">%0A <path d="M123.62 141.06c20.832 20.243 54.607 19.289 75.439-2.132s20.832-55.196 0-75.439-54.607-19.289-75.439 2.132-20.832 55.196 0 75.439z" fill="url(%23d)"/>%0A </clipPath>%0A <clipPath id="H" clipPathUnits="userSpaceOnUse">%0A <path opacity=".039" d="M9 22.578s7.5 12.393 11.75 26.8C25 63.784 27 74.373 27 74.373s-5.5 13.195-8.25 25.417C16 112.01 13 123.25 13 123.25s5.75 15.535 9.25 29.252S26 176.449 26 176.449s-4 10.574-7.5 24.857-5 31.154-5 31.154 9.25-2.748 28.5-1.055 32.25 3.392 32.25 3.392 12.75-3.782 24-8.191 16.25-7.815 16.25-7.815 5.5.055 22.5 4.43c17 4.376 29.25 6.135 29.25 6.135s13-3.802 26-7.853 26.5-10.143 26.5-10.143-.75-4.94 4.25-24.844 8.75-28.708 8.75-28.708-.514-4.455-3.75-19.447c-1.75-8.108-2.25-4.068-2.25-4.068s16.264-26.155 16.5-40.334c.25-15.02-7.25-36.413-7.25-36.413s-4.75-14.866-7.5-29.143c-2.75-14.278-8.25-25.083-8.25-25.083S195 14.281 187.5 16.388c-7.5 2.107-21 6.948-21 6.948s-9.75-3.461-22-6.72c-12.25-3.26-29.75-3.094-29.75-3.094s-3.25 3.763-22 9.78c-18.75 6.016-27.5 7.973-27.5 7.973s-18.5-7.504-31.5-8.952-24-.06-24.75.252z" fill="url(%23e)"/>%0A </clipPath>%0A <radialGradient id="K" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(1.0213 0 0 -1.0213 -212.72 173.83)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Q" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="scale(1.4216 -1.4216) rotate(-45 -51.091 19.464)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <radialGradient id="Y" gradientUnits="userSpaceOnUse" cy="72.588" cx="159.61" gradientTransform="matrix(1.2125 0 0 .83915 -46.348 24.528)" r="38.417">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity=".93" offset=".5"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="X" gradientUnits="userSpaceOnUse" cx="159.61" cy="72.588" r="38.417" gradientTransform="matrix(1.2125 0 0 .83915 -45.92 25.814)">%0A <stop stop-color="%23fff" offset="0"/>%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0A </radialGradient>%0A <radialGradient id="d" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(.80254 .77986 .80254 -.82522 -10.402 73.423)" r="47">%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0A <stop stop-color="%23d0e9f2" offset="1"/>%0A </radialGradient>%0A <filter id="I">%0A <feGaussianBlur stdDeviation="4.287"/>%0A </filter>%0A <filter id="f">%0A <feGaussianBlur stdDeviation="6.311"/>%0A </filter>%0A <filter id="g">%0A <feGaussianBlur stdDeviation="4.457"/>%0A </filter>%0A </defs>%0A <path opacity=".7" d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" transform="matrix(1 .06864 0 .8487 0 26.913)" filter="url(%23f)" fill="%232d3335"/>%0A <path opacity=".5" d="M9 17.25s7.5 11 11.75 25.75S27 68.5 27 68.5s-5.5 12.75-8.25 24.75-5.75 25-5.75 25 5.75 16 9.25 30S26 170.5 26 170.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-2.5-3.75-17.75S218 121 218 121s1.75-12.5 6.75-25.75S235 68.5 235 68.5s-4.75-15.25-7.5-29.75S219.25 15 219.25 15 195 24 187.5 25.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" transform="matrix(1 0 0 .84657 0 27.66)" filter="url(%23g)" fill="url(%23h)"/>%0A <path fill="%23ceeeab" d="M9 2.25s7.5 13 11.75 27.75S27 55.5 27 55.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 157.5 26 157.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 106 218 106s1.75-10.5 6.75-23.75S235 55.5 235 55.5s-4.75-15.25-7.5-29.75S219.25 0 219.25 0 195 9 187.5 10.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5S9.75 2 9 2.25z"/>%0A <g transform="translate(0 -10)" clip-path="url(%23i)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 75.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 138.5 89 134.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 144.25 115 138.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.594 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 62.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 46.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g clip-path="url(%23j)" transform="translate(0 -10)" stroke="%236d7f42" fill="none">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23k)" transform="translate(0 -10)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <g opacity=".504">%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75c0 0 7.5 13 11.75 27.75S27 385.5 27 385.5l51.469 5.125 48.971-4 52.25 12.031c10.38-4.418 52.11-4.9 55.31-13.156 0 0-4.75-15.25-7.5-29.75S219.25 330 219.25 330z" fill="%23b1e479"/>%0A <path d="M27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.969 16.37 53.721-15.74 52.25 17.53c16.36-4.26 32.39-9.12 48.06-15.41 0 0 1.75-10.5 6.75-23.75S235 385.5 235 385.5c-3.2 8.256-44.93 8.738-55.31 13.156l-52.25-12.031-47.971 4L27 385.5z" fill="%2387d531"/>%0A <path d="M231.75 485.5c-17.9 7.67-35.94 14.9-54.31 21.41l-52.25-18.53-50.221 9L26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28z" fill="%23ceeeab"/>%0A <path d="M13 433.25s5.75 16 9.25 30S26 487.5 26 487.5l48.969 9.88 50.221-9 52.25 18.53c18.37-6.51 36.41-13.74 54.31-21.41 0 0-.5-4.5-3.75-19.75S218 436 218 436c-15.67 6.29-31.7 11.15-48.06 15.41l-52.25-17.53-53.721 15.74L13 433.25z" fill="%23b9e787"/>%0A </g>%0A <g opacity=".522">%0A <path d="M13.719 332.031c-2.729-.007-4.438.125-4.719.219 0 0 7.5 13 11.75 27.75S27 385.5 27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 487.5 26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6l1.5-53.25L63.5 450l16-59.75c-2.22-15.48-9.068-30.046-14.25-44.75 0 0-18.5-9-31.5-11.5-8.125-1.563-15.483-1.956-20.031-1.969z" fill="%2383d32b"/>%0A <path d="M114.75 331.75s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.704 12.03 29.27 14.25 44.75L63.5 450l12.25 46.5-1.5 53.25s12.75-2.75 24-6.25 16.25-6.5 16.25-6.5l11.25-48.5-8.25-54.25 11.75-45c-3.44-9.727-8.06-56.93-14.5-57.5z" fill="%23b1e479"/>%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.358 11.44 45.392 14.25 52.25l-11.25 53.25 9.5 55-12.75 45.5s13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 436 218 436s1.75-10.5 6.75-23.75S235 385.5 235 385.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75z" fill="%23a4df62"/>%0A <path d="M114.75 331.75c6.44.57 11.06 47.773 14.5 57.5l-11.75 45 8.25 53.25L114.5 537s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5l12.75-45.5-9.5-55L180.75 398c-2.81-6.858-9.33-53.608-14.25-52.25 0 0-9.75-4.25-22-8.5s-29.75-5.5-29.75-5.5z" fill="%23ceeeab"/>%0A </g>%0A <path opacity=".039" d="M9-189.75s7.5 13 11.75 27.75S27-136.5 27-136.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26-34.5 26-34.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6S87 25 98.25 21.5 114.5 15 114.5 15s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8S218 11 223-8.5s8.75-28 8.75-28-.5-4.5-3.75-19.75S218-86 218-86s1.75-10.5 6.75-23.75S235-136.5 235-136.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23l)" transform="translate(0 192)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 182)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 182)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 182)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 182)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 182)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 182)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 182)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 182)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 182)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 182)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 182)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 182)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 182)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 182)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 182)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 182)"/>%0A </g>%0A <g clip-path="url(%23C)" transform="matrix(1.2525 .0354 0 1.2525 -27.809 -48.344)">%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0A <g clip-path="url(%23D)">%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0A </g>%0A <path fill="%23aac3e7" d="M158.53 85.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 148.5 89 144.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 154.25 115 148.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.595 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 72.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 56.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0A <g stroke="%236d7f42" fill="none" clip-path="url(%23E)">%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0A </g>%0A <g clip-path="url(%23F)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0A </g>%0A <path opacity=".039" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23G)"/>%0A <g opacity=".27">%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 192)"/>%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 192)"/>%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 192)"/>%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 192)"/>%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 192)"/>%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 192)"/>%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 192)"/>%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 192)"/>%0A </g>%0A <g opacity=".043">%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 192)"/>%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 192)"/>%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 192)"/>%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 192)"/>%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 192)"/>%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 192)"/>%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 192)"/>%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 192)"/>%0A </g>%0A </g>%0A <path d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" clip-path="url(%23H)" transform="matrix(1 .08088 0 1 0 -21.056)" filter="url(%23I)" fill="%232d3335"/>%0A <path d="m48.01 227.46-4.807 4.55c-5.007-5.31-10.24-10.7-15.08-16.13l4.491-4.07c6.829 6.53 8.872 8.53 15.396 15.65z" fill="url(%23J)"/>%0A <path d="M-95.5 225c28.719 0 52 23.28 52 52s-23.281 52-52 52c-28.72 0-52-23.28-52-52s23.28-52 52-52z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 136c-27.61 0-50-22.39-50-50 0-27.614 22.39-50 50-50 27.614 0 50 22.386 50 50 0 27.61-22.386 50-50 50zm0-3c26.51 0 48-20.49 48-47s-21.49-47-48-47-48 20.49-48 47 21.49 47 48 47z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M-82 136c-27.61 0-50-22.39-50-50v-.5c.27 27.38 22.55 49.5 50 49.5 27.446 0 49.729-22.12 50-49.5.002.168 0 .332 0 .5 0 27.61-22.386 50-50 50zm-48-50.5V85c0-26.51 21.49-47 48-47s48 20.49 48 47c0 .168.002.333 0 .5C-34.27 59.234-55.658 39-82 39c-26.34 0-47.73 20.234-48 46.5z"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill="url(%23K)"/>%0A <path fill="url(%23L)" d="m-96.438 130.72-.843 5C-92.451 137.2-87.316 138-82 138s10.451-.8 15.281-2.28l-.843-5C-72.115 132.19-76.959 133-82 133s-9.885-.81-14.438-2.28z"/>%0A <path fill="url(%23M)" d="M-82 136.25c1.757 0 3.431.3 5 .81v26.63c-1.569.51-3.243.81-5 .81s-3.431-.3-5-.81v-26.63c1.569-.51 3.243-.81 5-.81z"/>%0A <path d="M-82 150.5c3.514 0 5.613.65 8 2.44v67.12c-3.137.91-4.486 1.44-8 1.44s-4.863-.53-8-1.44v-67.12c2.637-1.79 4.486-2.44 8-2.44z" fill="url(%23N)"/>%0A <path d="M-82 154.5c3.514 0 7.238.78 10 2.44v65.12c-2.012 1.79-6.486 2.44-10 2.44s-7.863-.15-10-2.44v-65.12c1.887-1.66 6.486-2.44 10-2.44z" fill="url(%23O)"/>%0A <path d="M-82 217.5c3.514 0 5.863.78 8 2.44v5.12c-2.387 1.54-4.486 2.44-8 2.44s-5.738-.9-8-2.44v-5.12c2.387-1.91 4.486-2.44 8-2.44z" fill="url(%23P)"/>%0A <path fill="%23e0bb41" d="M-82 221.5c-3.514 0-5.613.28-8 2.44v1.12c2.262 1.54 4.486 2.44 8 2.44s5.613-.9 8-2.44v-1.12c-2.512-2.04-4.486-2.44-8-2.44z"/>%0A <path d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431 27.18-27.18 71.25-27.18 98.43 0s27.18 71.251 0 98.431-71.25 27.18-98.43 0zm2.96-2.96c26.09 26.1 67.41 27.08 93.5.99 26.1-26.1 25.11-67.416-.98-93.509-26.09-26.092-67.41-27.077-93.51-.984-26.09 26.093-25.11 67.413.99 93.503z" fill="%232d3335"/>%0A <path fill="%239eaaac" d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431.17-.166.33-.329.5-.493-26.689 27.218-26.526 70.924.49 97.934 27.01 27.02 70.72 27.18 97.93.49-.16.17-.32.33-.49.5-27.18 27.18-71.25 27.18-98.43 0zm2.46-96.955c.17-.167.33-.327.5-.492 26.09-26.093 67.41-25.109 93.5.984 26.1 26.093 27.08 67.413.99 93.503l-.5.5c25.59-26.12 24.46-67.091-1.47-93.019-25.93-25.927-66.9-27.063-93.02-1.476z"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill-opacity=".476" fill="%23d0e9f2"/>%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill="url(%23Q)"/>%0A <path fill="url(%23R)" d="m116.05 115.28-5.75 4.09c3.3 6.21 7.56 12.05 12.8 17.28 5.23 5.24 11.07 9.5 17.28 12.8l4.09-5.75c-5.92-3.04-11.49-7.01-16.45-11.97s-8.93-10.53-11.97-16.45z"/>%0A <path fill="url(%23S)" d="M124.82 134.93c1.73 1.73 3.08 3.67 4.12 5.72l-26.21 26.21a22.302 22.302 0 0 1-5.718-4.12 22.268 22.268 0 0 1-4.121-5.72l26.209-26.21c2.05 1.04 3.99 2.39 5.72 4.12z"/>%0A <path d="M116.27 159.23 50.199 225.3c-3.984-2.19-5.832-3-9.29-6.46s-4.267-5.3-6.459-9.29l66.07-66.07c5.06 3.75 12.12 10.4 15.75 15.75z" fill="url(%23T)"/>%0A <path d="M105.78 154.12c3.46 3.46 7.43 6.66 8.52 11.02l-64.101 64.1c-6.517-5.16-14.555-12.79-19.686-19.69l64.1-64.1c3.491.23 7.657 5.16 11.117 8.62l.05.05z" fill="url(%23U)"/>%0A <path opacity=".596" d="M105.53 154.36c3.46 3.46 7.68 6.42 8.77 10.78l-64.101 64.1c-7.877-6.91-11.798-10.63-19.686-19.69l64.1-64.1c3.491.23 7.417 5.45 10.877 8.91h.04z" fill="url(%23V)"/>%0A <path opacity=".604" d="M131.17 37.05c40.66-32.173 78.13-12.728 77.78 5.303s-56.57 70.357-76.37 66.117-25.45-53.389-1.41-71.42z" fill="url(%23W)"/>%0A <text opacity=".461" font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="69.184" x="99.839" font-family="Monospace" fill="url(%23X)"><tspan y="69.184" x="99.839">01011001</tspan><tspan y="93.934" x="99.839">00110101</tspan><tspan y="118.684" x="99.839">10010011</tspan></text>%0A <text font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="67.898" x="99.41" font-family="Monospace" fill="url(%23Y)"><tspan y="67.898" x="99.41">01011001</tspan><tspan y="92.648" x="99.41">00110101</tspan><tspan y="117.398" x="99.41">10010011</tspan></text>%0A <path opacity=".765" d="M219.46 129.09c-26.79 21.98-41.81 21.01-38.07 13.14 3.73-7.87 42.32-41.66 51.45-43.75 9.12-2.093 2.27 18.04-13.38 30.61z" fill="url(%23Z)"/>%0A</svg>%0A';Promise.allSettled([import("@awesome.me/webawesome/dist/components/tab-group/tab-group.js"),import("@awesome.me/webawesome/dist/components/dialog/dialog.js"),import("@awesome.me/webawesome/dist/components/icon/icon.js"),import("@awesome.me/webawesome/dist/components/drawer/drawer.js")]);var Nr=`data:image/svg+xml;utf8,${encodeURIComponent(Ho)}`;Rn();var qo,Ko,Bo,$o,Go,Vo,Zo,Jo,Qo,Yo,Xo,ea,Ee=class extends jn{constructor(){super(...arguments);this.name="hot-header";Le(this,qo,"");Le(this,Ko,"");Le(this,Bo,!1);Le(this,$o,[]);Le(this,Go,[]);Le(this,Vo,"small");Le(this,Zo,!1);Le(this,Jo,0);Le(this,Qo,0);Le(this,Yo,!1);Le(this,Xo,!1);Le(this,ea,"user")}get title(){return De(this,qo)}set title(e){Ue(this,qo,e)}get logo(){return De(this,Ko)}set logo(e){Ue(this,Ko,e)}get drawer(){return De(this,Bo)}set drawer(e){Ue(this,Bo,e)}get tabs(){return De(this,$o)}set tabs(e){Ue(this,$o,e)}get drawerLinks(){return De(this,Go)}set drawerLinks(e){Ue(this,Go,e)}get size(){return De(this,Vo)}set size(e){Ue(this,Vo,e)}get borderBottom(){return De(this,Zo)}set borderBottom(e){Ue(this,Zo,e)}get selectedTab(){return De(this,Jo)}set selectedTab(e){Ue(this,Jo,e)}get activeTabIndex(){return De(this,Qo)}set activeTabIndex(e){Ue(this,Qo,e)}get showLogin(){return De(this,Yo)}set showLogin(e){Ue(this,Yo,e)}get loginModalOpen(){return De(this,Xo)}set loginModalOpen(e){Ue(this,Xo,e)}get defaultLoginIcon(){return De(this,ea)}set defaultLoginIcon(e){Ue(this,ea,e)}async connectedCallback(){super.connectedCallback(),this.showLogin&&await Ro("https://dev.login.hotosm.org",{shadow:!1,sessionCheckInterval:3e4}).catch(e=>{})}selectTab(e){if(e!==this.selectedTab&&e>=0&&e<this.tabs.length){let o=this.selectedTab;this.selectedTab=e,this.activeTabIndex=e,this.dispatchEvent(new CustomEvent("tab-change",{detail:{selectedIndex:e,previousIndex:o,tab:this.tabs[e]},bubbles:!0})),this.requestUpdate()}}render(){let e=typeof this.logo=="string"||this.logo instanceof URL?typeof this.logo=="string"?this.logo:this.logo.href:"";return Re`
|
|
4
4
|
<header class=${Wn({size:this.size,borderBottom:this.borderBottom})}>
|
|
5
5
|
<a href="/" class="header--link">
|
|
6
6
|
${e.length>0?Re`
|
|
@@ -12,7 +12,7 @@ import{a as Wn,b as Fn}from"./chunk.LHZ7Q2M3.js";import{a as Rn}from"./chunk.KO4
|
|
|
12
12
|
/>
|
|
13
13
|
`:Re`
|
|
14
14
|
<hot-logo
|
|
15
|
-
?
|
|
15
|
+
?icon-only=${this.title.length>0}
|
|
16
16
|
>
|
|
17
17
|
</hot-logo>
|
|
18
18
|
`}
|
|
@@ -114,7 +114,7 @@ import{a as Wn,b as Fn}from"./chunk.LHZ7Q2M3.js";import{a as Rn}from"./chunk.KO4
|
|
|
114
114
|
margin-left: 10px;
|
|
115
115
|
}
|
|
116
116
|
</style>
|
|
117
|
-
`}async _tabClick(e,o,r){e.preventDefault(),e.stopPropagation();try{this.selectTab(r),setTimeout(async()=>{try{typeof o=="function"&&await o()}catch(i){console.error("Error during navigation:",i),typeof o=="function"&&o()}},0)}catch(i){console.error("Error handling tab click:",i);try{typeof o=="function"&&o()}catch(l){console.error("Fallback navigation also failed:",l)}}}_handleTabShow(e){try{let o=e.target,r=parseInt(o.getAttribute("data-index")||"0",10);if(!isNaN(r)&&r<this.tabs.length){let i=this.tabs[r].clickEvent;typeof i=="function"&&i()}}catch(o){console.error("Error handling tab show event:",o)}}_handleLogin(){this.loginModalOpen=!0,this.dispatchEvent(new Event("login"))}_handleModalClose(){this.loginModalOpen=!1}_handleDrawerOpen(){var o;let e=(o=this.renderRoot)==null?void 0:o.querySelector("#drawer-overview");e&&(e.open=!0)}};qo=new WeakMap,Ko=new WeakMap,Bo=new WeakMap,$o=new WeakMap,Go=new WeakMap,Vo=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Yo=new WeakMap,Xo=new WeakMap,ea=new WeakMap,Ee.styles=[Fn],Me([Ne({type:String})],Ee.prototype,"title",1),Me([Ne({type:String})],Ee.prototype,"logo",1),Me([Ne({type:Boolean})],Ee.prototype,"drawer",1),Me([Ne({type:Array})],Ee.prototype,"tabs",1),Me([Ne({type:Array})],Ee.prototype,"drawerLinks",1),Me([Ne({type:String})],Ee.prototype,"size",1),Me([Ne({type:Boolean})],Ee.prototype,"borderBottom",1),Me([Ne({type:Number})],Ee.prototype,"selectedTab",1),Me([Ne({type:Number})],Ee.prototype,"activeTabIndex",1),Me([Ne({type:Boolean})],Ee.prototype,"showLogin",1),Me([Ne({type:Boolean})],Ee.prototype,"loginModalOpen",1),Me([Ne({type:String,attribute:"default-login-icon"})],Ee.prototype,"defaultLoginIcon",1);var
|
|
117
|
+
`}async _tabClick(e,o,r){e.preventDefault(),e.stopPropagation();try{this.selectTab(r),setTimeout(async()=>{try{typeof o=="function"&&await o()}catch(i){console.error("Error during navigation:",i),typeof o=="function"&&o()}},0)}catch(i){console.error("Error handling tab click:",i);try{typeof o=="function"&&o()}catch(l){console.error("Fallback navigation also failed:",l)}}}_handleTabShow(e){try{let o=e.target,r=parseInt(o.getAttribute("data-index")||"0",10);if(!isNaN(r)&&r<this.tabs.length){let i=this.tabs[r].clickEvent;typeof i=="function"&&i()}}catch(o){console.error("Error handling tab show event:",o)}}_handleLogin(){this.loginModalOpen=!0,this.dispatchEvent(new Event("login"))}_handleModalClose(){this.loginModalOpen=!1}_handleDrawerOpen(){var o;let e=(o=this.renderRoot)==null?void 0:o.querySelector("#drawer-overview");e&&(e.open=!0)}};qo=new WeakMap,Ko=new WeakMap,Bo=new WeakMap,$o=new WeakMap,Go=new WeakMap,Vo=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Yo=new WeakMap,Xo=new WeakMap,ea=new WeakMap,Ee.styles=[Fn],Me([Ne({type:String})],Ee.prototype,"title",1),Me([Ne({type:String})],Ee.prototype,"logo",1),Me([Ne({type:Boolean})],Ee.prototype,"drawer",1),Me([Ne({type:Array})],Ee.prototype,"tabs",1),Me([Ne({type:Array})],Ee.prototype,"drawerLinks",1),Me([Ne({type:String})],Ee.prototype,"size",1),Me([Ne({type:Boolean,attribute:"border-bottom"})],Ee.prototype,"borderBottom",1),Me([Ne({type:Number})],Ee.prototype,"selectedTab",1),Me([Ne({type:Number})],Ee.prototype,"activeTabIndex",1),Me([Ne({type:Boolean,attribute:"show-login"})],Ee.prototype,"showLogin",1),Me([Ne({type:Boolean,attribute:"login-modal-open"})],Ee.prototype,"loginModalOpen",1),Me([Ne({type:String,attribute:"default-login-icon"})],Ee.prototype,"defaultLoginIcon",1);var $r=Ee;export{Ee as a,$r as b};
|
|
118
118
|
/*! Bundled license information:
|
|
119
119
|
|
|
120
120
|
@teamhanko/hanko-elements/dist/elements.js:
|