PageSourceSearch

https://molin.ai/bundles/login.js?v=d4b73a89bb84

js molin.ai collected 2026-09-24 19:37:36 UTC 516,520 bytes, 783 lines download raw bytes

1import{b as $s,c as js,d as Ns,k as zs,l as Ws}from"./chunks/chunk-RXYK2KT5.js";import"./chunks/chunk-HL36R5CX.js";import"./chunks/chunk-6BUYCJCO.js";import{C as Us,E as Hs,d as Ai}from"./chunks/chunk-ASW6AUDU.js";import"./chunks/chunk-AQ3JMYV4.js";import{a as xs}from"./chunks/chunk-JAKNOA4E.js";import{c as Pi}from"./chunks/chunk-EQDQTSNK.js";import{c as qr}from"./chunks/chunk-PO3FTKV4.js";import{a as Zr}from"./chunks/chunk-KDPC3ZGH.js";import"./chunks/chunk-MYN2RQWK.js";var Gs,Vs,Ks,Zs,qs,Ys,Js,Xs,Qs,el,tl,nl,rl,al,il,Ti,ol,sl,ll,ul,cl,dl,hl,fl,pl,ml,vl,gl,yl,_l,bl,wl,Cl,El,kl,Sl,Ol,Pl,Al,Tl,Ll,Il,Dl,Rl,Fl,Ml,Bl,xl,$l,jl,Nl,Ul,Hl,zl,Wl,Gl,Vl,Kl,Zl,ql,Yl,Jl,Xl,Ql,eu,tu,nu,ru,au,iu,ou,su,lu,uu,cu,du,hu,fu,pu,mu,vu,gu,yu,_u,bu,wu,Lh=["offset"],Ih=["children"],Dh=["children"],Rh=["asChild"],Fh=["scope","children"],Mh=["scope","children"],Bh=["__scopeRovingFocusGroup","orientation","dir","loop","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus"],xh=["__scopeRovingFocusGroup","focusable","active"],$h=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"],jh=["__scopeTabs","loop"],Nh=["__scopeTabs","value","disabled"],Uh=["__scopeTabs","value","children"];function Cu(t,e,n,r,a,i,o){try{var s=t[i](o),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,a)}function Eu(t){return function(){var e=this,n=arguments;return new Promise(function(r,a){var i=t.apply(e,n);function o(u){Cu(i,r,a,o,s,"next",u)}function s(u){Cu(i,r,a,o,s,"throw",u)}o(void 0)})}}function Z(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function jt(t,e){if(t==null)return{};var n,r,a=Hh(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Hh(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function ku(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function re(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ku(Object(n),!0).forEach(function(r){V(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ku(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yn(t){var e=typeof Map=="function"?new Map:void 0;return Yn=function(r){if(r===null||!Wh(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return zh(r,arguments,_r(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),br(a,r)},Yn(t)}function zh(t,e,n){if(Ro())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var a=new(t.bind.apply(t,r));return n&&br(a,n.prototype),a}function Wh(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function _n(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Do(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,i=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function V(t,e,n){return(e=$c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e){return Kh(t)||Vh(t,e)||Do(t,e)||Gh()}
vendor: 5,884 bytes, lines 2-4
2function Gh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vh(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,i,o,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(h){c=!0,a=h}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function Kh(t){if(Array.isArray(t))return t}function zt(t){return Yh(t)||qh(t)||Do(t)||Zh()}function Zh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Do(t,e){if(t){if(typeof t=="string")return Yi(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(t,e):void 0}}function qh(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Yh(t){if(Array.isArray(t))return Yi(t)}function Yi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function hn(t,e,n){return e=_r(e),Jh(t,Ro()?Reflect.construct(e,n||[],_r(t).constructor):e.apply(t,n))}function Jh(t,e){if(e&&(Ae(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xh(t)}function Xh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ro(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ro=function(){return!!t})()}function _r(t){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_r(t)}function fn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&br(t,e)}function br(t,e){return br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},br(t,e)}function z(){var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(p,m,g,v){var _=m&&m.prototype instanceof s?m:s,b=Object.create(_.prototype);return Tt(b,"_invoke",(function(C,A,E){var T,O,L,j=0,X=E||[],w=!1,P={p:0,n:0,v:t,a:R,f:R.bind(t,4),d:function(B,N){return T=B,O=0,L=t,P.n=N,o}};function R(M,B){for(O=M,L=B,e=0;!w&&j&&!N&&e<X.length;e++){var N,U=X[e],Q=P.p,q=U[2];M>3?(N=q===B)&&(L=U[(O=U[4])?5:(O=3,3)],U[4]=U[5]=t):U[0]<=Q&&((N=M<2&&Q<U[1])?(O=0,P.v=B,P.n=U[1]):Q<q&&(N=M<3||U[0]>B||B>q)&&(U[4]=M,U[5]=B,P.n=q,O=0))}if(N||M>1)return o;throw w=!0,B}return function(M,B,N){if(j>1)throw TypeError("Generator is already running");for(w&&B===1&&R(B,N),O=B,L=N;(e=O<2?t:L)||!w;){T||(O?O<3?(O>1&&(P.n=-1),R(O,L)):P.n=L:P.v=L);try{if(j=2,T){if(O||(M="next"),e=T[M]){if(!(e=e.call(T,L)))throw TypeError("iterator result is not an object");if(!e.done)return e;L=e.value,O<2&&(O=0)}else O===1&&(e=T.return)&&e.call(T),O<2&&(L=TypeError("The iterator does not provide a '"+M+"' method"),O=1);T=t}else if((e=(w=P.n<0)?L:C.call(A,P))!==o)break}catch(U){T=t,O=1,L=U}finally{j=1}}return{value:e,done:w}}})(p,g,v),!0),b}var o={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var h=[][r]?e(e([][r]())):(Tt(e={},r,function(){return this}),e),d=c.prototype=s.prototype=Object.create(h);function f(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,c):(p.__proto__=c,Tt(p,a,"GeneratorFunction")),p.prototype=Object.create(d),p}return u.prototype=c,Tt(d,"constructor",c),Tt(c,"constructor",u),u.displayName="GeneratorFunction",Tt(c,a,"GeneratorFunction"),Tt(d),Tt(d,a,"Generator"),Tt(d,r,function(){return this}),Tt(d,"toString",function(){return"[object Generator]"}),(z=function(){return{w:i,m:f}})()}function Tt(t,e,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Tt=function(o,s,u,c){function h(d,f){Tt(o,d,function(p){return this._invoke(d,f,p)})}s?a?a(o,s,{value:u,enumerable:!c,configurable:!c,writable:!c}):o[s]=u:(h("next",0),h("throw",1),h("return",2))},Tt(t,e,n,r)}function Ae(t){"@babel/helpers - typeof";return Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(t)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Su(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$c(r.key),r)}}function lt(t,e,n){return e&&Su(t.prototype,e),n&&Su(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function $c(t){var e=Qh(t,"string");return Ae(e)=="symbol"?e:e+""}function Qh(t,e){if(Ae(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ae(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jc(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function ie(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}
4return new(n||(n=Promise))(function(i,o){function s(h){try{c(r.next(h))}catch(d){o(d)}}function u(h){try{c(r.throw(h))}catch(d){o(d)}}function c(h){h.done?i(h.value):a(h.value).then(s,u)}c((r=r.apply(t,[])).next())})}function bn(t){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bn(t)}function Ou(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ef(r.key),r)}}function Ce(t,e,n){return e&&Ou(t.prototype,e),n&&Ou(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ef(t){var e=tf(t,"string");return bn(e)=="symbol"?e:e+""}function tf(t,e){if(bn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(bn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Ee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ke(t,e,n){return e=Cr(e),nf(t,Fo()?Reflect.construct(e,n||[],Cr(t).constructor):e.apply(t,n))}function nf(t,e){if(e&&(bn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rf(t)}function rf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Se(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wr(t,e)}function Dn(t){var e=typeof Map=="function"?new Map:void 0;return Dn=function(r){if(r===null||!of(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return af(r,arguments,Cr(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),wr(a,r)},Dn(t)}function af(t,e,n){if(Fo())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var a=new(t.bind.apply(t,r));return n&&wr(a,n.prototype),a}function Fo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fo=function(){return!!t})()}function of(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function wr(t,e){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wr(t,e)}function Cr(t){return Cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(t)}var Be;(function(t){t.emailMagicLinks="emailMagicLinks",t.oauth="oauth",t.otp="otp",t.crypto="crypto",t.passwords="passwords",t.passkeys="passkeys"})(Be||(Be={}));var ye;(function(t){t.Google="google",t.Microsoft="microsoft",t.Apple="apple",t.Github="github",t.GitLab="gitlab",t.Facebook="facebook",t.Discord="discord",t.Salesforce="salesforce",t.Slack="slack",t.Amazon="amazon",t.Bitbucket="bitbucket",t.LinkedIn="linkedin",t.Coinbase="coinbase",t.Twitch="twitch",t.Twitter="twitter",t.TikTok="tiktok",t.Snapchat="snapchat",t.Figma="figma",t.Yahoo="yahoo"})(ye||(ye={}));var ce;(function(t){t.Vessel="Vessel",t.Phantom="Phantom",t.Metamask="Metamask",t.Coinbase="Coinbase",t.Binance="Binance",t.GenericEthereumWallet="Other Ethereum Wallet",t.GenericSolanaWallet="Other Solana Wallet"})(ce||(ce={}));var xt;(function(t){t.embedded="embedded",t.floating="floating",t.embeddedOnly="embeddedOnly",t.floatingOrEmbedded="floatingOrEmbedded",t.forceLegacyEmbedded="forceLegacyEmbedded"})(xt||(xt={}));var tt;(function(t){t.SMS="sms",t.WhatsApp="whatsapp",t.Email="email"})(tt||(tt={}));var fe;(function(t){t.MagicLinkLoginOrCreateEvent="MAGIC_LINK_LOGIN_OR_CREATE",t.OTPsLoginOrCreateEvent="OTP_LOGIN_OR_CREATE",t.OTPsAuthenticate="OTP_AUTHENTICATE",t.CryptoWalletAuthenticateStart="CRYPTO_WALLET_AUTHENTICATE_START",t.CryptoWalletAuthenticate="CRYPTO_WALLET_AUTHENTICATE",t.PasswordCreate="PASSWORD_CREATE",t.PasswordAuthenticate="PASSWORD_AUTHENTICATE",t.PasswordResetByEmailStart="PASSWORD_RESET_BY_EMAIL_START",t.PasswordResetByEmail="PASSWORD_RESET_BY_EMAIL",t.PasskeyRegister="PASSKEY_REGISTER",t.PasskeyAuthenticate="PASSKEY_AUTHENTICATE",t.PasskeySkip="PASSKEY_SKIP",t.PasskeyDone="PASSKEY_DONE",t.AuthenticateFlowComplete="AUTHENTICATE_FLOW_COMPLETE",t.OAuthAuthorizeFlowStart="OAUTH_AUTHORIZE_FLOW_START",t.OAuthAuthorizeFlowComplete="OAUTH_AUTHORIZE_FLOW_COMPLETE",t.OAuthAuthorizeFlowConsentDenied="OAUTH_AUTHORIZE_FLOW_CONSENT_DENIED",t.B2BMagicLinkEmailLoginOrSignup="B2B_MAGIC_LINK_EMAIL_LOGIN_OR_SIGNUP",t.B2BMagicLinkAuthenticate="B2B_MAGIC_LINK_AUTHENTICATE",t.B2BMagicLinkEmailDiscoverySend="B2B_MAGIC_LINK_EMAIL_DISCOVERY_SEND",t.B2BMagicLinkDiscoveryAuthenticate="B2B_MAGIC_LINK_DISCOVERY_AUTHENTICATE",t.B2BSSOStart="B2B_SSO_START",t.B2BSSOAuthenticate="B2B_SSO_AUTHENTICATE",t.B2BSSODiscoverConnections="B2B_SSO_DISCOVER_CONNECTIONS",t.B2BOAuthAuthenticate="B2B_OAUTH_AUTHENTICATE",t.B2BOAuthDiscoveryAuthenticate="B2B_OAUTH_DISCOVERY_AUTHENTICATE",t.B2BDiscoveryOrganizationsCreate="B2B_DISCOVERY_ORGANIZATIONS_CREATE",t.B2BDiscoveryIntermediateSessionExchange="B2B_DISCOVERY_INT
4ERMEDIATE_SESSION_EXCHANGE",t.B2BPasswordAuthenticate="B2B_PASSWORD_AUTHENTICATE",t.B2BPasswordDiscoveryAuthenticate="B2B_PASSWORD_DISCOVERY_AUTHENTICATE",t.B2BPasswordResetByEmailStart="B2B_PASSWORD_RESET_BY_EMAIL_START",t.B2BPasswordResetByEmail="B2B_PASSWORD_RESET_BY_EMAIL",t.B2BPasswordResetBySession="B2B_PASSWORD_RESET_BY_SESSION",t.B2BSMSOTPSend="B2B_SMS_OTP_SEND",t.B2BSMSOTPAuthenticate="B2B_SMS_OTP_AUTHENTICATE",t.B2BTOTPCreate="B2B_TOTP_CREATE",t.B2BTOTPAuthenticate="B2B_TOTP_AUTHENTICATE",t.B2BRecoveryCodesRecover="B2B_RECOVERY_CODES_RECOVER",t.B2BPasswordDiscoveryResetStart="B2B_PASSWORD_DISCOVERY_RESET_BY_EMAIL_START",t.B2BDiscoveryPasswordReset="B2B_PASSWORD_DISCOVERY_RESET_BY_EMAIL",t.B2BImpersonationAuthenticate="B2B_IMPERSONATION_AUTHENTICATE",t.B2BOTPsEmailAuthenticate="B2B_OTPS_EMAIL_AUTHENTICATE",t.B2BOTPsEmailDiscoveryAuthenticate="B2B_OTPS_EMAIL_DISCOVERY_AUTHENTICATE",t.B2BOTPsEmailDiscoverySend="B2B_OTPS_EMAIL_DISCOVERY_SEND",t.B2BOTPsEmailLoginOrSignup="B2B_OTPS_EMAIL_LOGIN_OR_SIGNUP",t.B2BOrganizationsGetBySlug="B2B_ORGANIZATIONS_GET_BY_SLUG"})(fe||(fe={}));var Pu;(function(t){t[t.emailMagicLinks=0]="emailMagicLinks",t[t.oauth=1]="oauth",t[t.otp=2]="otp",t[t.passwords=3]="passwords"})(Pu||(Pu={}));var sf=(function(t){function e(n,r){var a;return Ee(this,e),a=ke(this,e,[n+`
5`+r]),a.message=n+`
6`+r,a.name="SDKAPIUnreachableError",a.details=r,Object.setPrototypeOf(a,e.prototype),a}return Se(e,t),Ce(e)})(Dn(Error)),Wn=(function(t){function e(n,r){var a;return Ee(this,e),a=ke(this,e),a.name="StytchSDKUsageError",a.message="Invalid call to ".concat(n,`
7`)+r,a}return Se(e,t),Ce(e)})(Dn(Error)),lf=(function(t){function e(n){var r;Ee(this,e);var a;r=ke(this,e),r.name="StytchSDKSchemaError";var i=(a=n.body)===null||a===void 0?void 0:a.map(function(o){return"".concat(o.dataPath,": ").concat(o.message)}).join(`
8`);return r.message=`[400] Request does not match expected schema
9`.concat(i),r}return Se(e,t),Ce(e)})(Dn(Error)),uf=(function(t){function e(n){var r;Ee(this,e),r=ke(this,e),r.name="StytchSDKAPIError";var a=n.status_code,i=n.error_type,o=n.error_message,s=n.error_url,u=n.request_id,c=n.error_details;return r.error_type=i,r.error_message=o,r.error_url=s,r.request_id=u,r.status_code=a,r.error_details=c,r.message="[".concat(a,"] ").concat(i,`
10`)+"".concat(o,`
11`)+"See ".concat(s,` for more information.
12`)+(u?"request_id: ".concat(u,`
13`):"")+(r.error_details?`Details: 
14`+JSON.stringify(r.error_details)+`
15`:""),r}return Se(e,t),Ce(e)})(Dn(Error)),Ji=["unauthorized_credentials","user_unauthenticated","invalid_secret_authentication","session_not_found"],xa=(function(t){function e(n,r){var a;return Ee(this,e),a=ke(this,e,[r]),a.name=n,a}return Se(e,t),Ce(e)})(Dn(Error)),Gn=(function(t){function e(n){var r;return Ee(this,e),r=ke(this,e,["StytchAPIUnreachableError",n]),Object.setPrototypeOf(r,e.prototype),r}return Se(e,t),Ce(e)})(xa),Nc=(function(t){function e(n){Ee(this,e);var r,a=(r=n.body)===null||r===void 0?void 0:r.map(function(i){return"".concat(i.dataPath,": ").concat(i.message)}).join(`
16`);return ke(this,e,["StytchAPISchemaError",`Request does not match expected schema
17`.concat(a)])}return Se(e,t),Ce(e)})(xa),Fr=(function(t){function e(n){var r;Ee(this,e);var a=n.status_code,i=n.error_type,o=n.error_message,s=n.error_url,u=n.request_id,c=n.error_details;return r=ke(this,e,["StytchAPIError","[".concat(a,"] ").concat(i,`
18`)+"".concat(o,`
19`)+"See ".concat(s,` for more information.
20`)+(u?"request_id: ".concat(u,`
21`):"")+(c?`Details: 
22`+JSON.stringify(c)+`
23`:"")]),r.error_type=i,r.error_message=o,r.error_url=s,r.request_id=u,r.status_code=a,r.error_details=c,r}return Se(e,t),Ce(e,null,[{key:"from",value:function(r){if(r instanceof e)return r;if(r&&bn(r)==="object"){var a=r;if(typeof a.status_code=="number"&&typeof a.error_type=="string"&&typeof a.error_message=="string"&&typeof a.error_url=="string")return new e({status_code:a.status_code,error_type:a.error_type,error_message:a.error_message,error_url:a.error_url,request_id:typeof a.request_id=="string"?a.request_id:void 0,error_details:bn(a.error_details)==="object"?a.error_details:void 0})}var i=r instanceof Error?r.message:"Unknown error: "+String(r);return new e({status_code:400,error_type:"unknown_error",error_message:i,error_url:"",request_id:void 0,error_details:void 0})}}])})(xa),Ie=(function(t){function e(n,r,a){var i;return Ee(this,e),i=ke(this,e,[n,r]),i.options=a,i}return Se(e,t),Ce(e)})(xa),Uc=(function(t){function e(){return Ee(this,e),ke(this,e,["NoCurrentSessionError","There is no session currently available. Make sure the user is authenticated with a valid session."])}return Se(e,t),Ce(e)})(Ie),cf=(function(t){function e(n){var r;return Ee(this,e),r=ke(this,e,[n.name?n.name:"Internal Error",n.message?n.message:"An internal error has occurred. Please contact Stytch if this occurs."]),r.nativeStack=n.nativeStackAndroid||n.nativeStackIOS,r}return Se(e,t),Ce(e)})(Ie),df=(function(t){function e(){return Ee(this,e),ke(this,e,["NoBiometricsRegistrationError","There is no biometric registration available. Authenticate with another method and add a new biometric registration first."])}return Se(e,t),Ce(e)})(Ie),Li=(function(t){function e(){return Ee(this,e),ke(this,e,["BiometricsUnavailableError","Biometrics is not available on the device."])}return Se(e,t),Ce(e)})(Ie),Au=(function(t){function e(){return Ee(this,e),ke(this,e,["KeyInvalidatedError","The biometrics enrollment on the device has changed."])}return Se(e,t),Ce(e)})(Ie),hf=(function(t){function e(){return Ee(this,e),ke(this,e,["KeystoreUnavailableError","The Android keystore is unavailable on the device. Consider setting allowFallbackToCleartext to true."])}return Se(e,t),Ce(e)})(Ie),ff=(function(t){function e(){return Ee(this,e),ke(this,e,["NoBiometricsEnrolledError","There is no biometric factor enrolled on the device. Add a biometric factor in the device settings."])}return Se(e,t),Ce(e)})(Ie);var pf=(function(t){function e(){return Ee(this,e),ke(this,e,["UserCancellationError","The user canceled the prompt. Ask the user to try again."])}return Se(e,t),Ce(e)})(Ie),mf=(function(t){function e(){return Ee(this,e),ke(this,e,["UserLockedOutError","The user has been locked out due to too many failed attempts. Ask the user to try again later."])}return Se(e,t),Ce(e)})(Ie),vf=(function(t){function e(){return Ee(this,e),ke(this,e,["DeviceCredentialsNotAllowedError","The device credentials allowment is mismatched. Change the allowDeviceCredentials parameter to be the same in both the register and authenticate methods."])}return Se(e,t),Ce(e)})(Ie);var Ii=(function(t){function e(){return Ee(this,e),ke(this,e,["MissingAuthorizationCredentialIDTokenError","The authorization credential is missing an ID token."])}return Se(e,t),Ce(e)})(Ie),Di=(function(t){function e(){return Ee(this,e),ke(this,e,["InvalidAuthorizationCredentialError","The authorization credential is invali
23d. Verify that OAuth is set up correctly in the developer console, and call the start flow method."])}return Se(e,t),Ce(e)})(Ie),gf=(function(t){function e(){return Ee(this,e),ke(this,e,["NoCredentialsPresentError","The user did not provide credentials for a Google OneTap attempt"])}return Se(e,t),Ce(e)})(Ie),yf=(function(t){function e(){return Ee(this,e),ke(this,e,["MissingPublicKeyError","Failed to retrieve the public key. Add a new biometric registration."])}return Se(e,t),Ce(e)})(Ie),_f=(function(t){function e(){return Ee(this,e),ke(this,e,["ChallengeSigningFailedError","Failed to sign the challenge with the key."])}return Se(e,t),Ce(e)})(Ie),bf=(function(t){function e(){return Ee(this,e),ke(this,e,["SDKNotConfiguredError","Stytch client is not confiured. You must call the configure method before using the SDK"])}return Se(e,t),Ce(e)})(Ie),wf=(function(t){function e(){return Ee(this,e),ke(this,e,["FailedCodeChallengeError","Failed to create a code challenge"])}return Se(e,t),Ce(e)})(Ie),Cf=(function(t){function e(){return Ee(this,e),ke(this,e,["PasskeysUnsupportedError","Passkeys are not supported on this device"])}return Se(e,t),Ce(e)})(Ie),Ef=(function(t){function e(){return Ee(this,e),ke(this,e,["FailedToDecryptDataError","Failed to decrypt user data"])}return Se(e,t),Ce(e)})(Ie),kf=(function(t){function e(){return Ee(this,e),ke(this,e,["BiometricsFailedError","Biometric authentication failed"])}return Se(e,t),Ce(e)})(Ie),Sf=(function(t){function e(){return Ee(this,e),ke(this,e,["InvalidStartUrlError","The start URL was invalid or improperly formatted."])}return Se(e,t),Ce(e)})(Ie),Of=(function(t){function e(){return Ee(this,e),ke(this,e,["InvalidRedirectSchemeError","The scheme from the given redirect urls was invalid. Possible reasons include: nil scheme, non-custom scheme (using http or https), or differing schemes for login/signup urls."])}return Se(e,t),Ce(e)})(Ie),Pf=(function(t){function e(){return Ee(this,e),ke(this,e,["MissingUrlError","The underlying web authentication service failed to return a URL."])}return Se(e,t),Ce(e)})(Ie),Af=(function(t){function e(){return Ee(this,e),ke(this,e,["InvalidCredentialTypeError","The public key credential type was not of the expected type."])}return Se(e,t),Ce(e)})(Ie),Tf=(function(t){function e(){return Ee(this,e),ke(this,e,["MissingAttestationObjectError","The public key credential is missing the attestation object."])}return Se(e,t),Ce(e)})(Ie),Lf=(function(t){function e(){return Ee(this,e),ke(this,e,["JSONDataNotConvertibleToStringError","JSON data unable to be converted to String type."])}return Se(e,t),Ce(e)})(Ie),If=(function(t){function e(){return Ee(this,e),ke(this,e,["RandomNumberGenerationFailed","Random number generation failed"])}return Se(e,t),Ce(e)})(Ie),Df=(function(t){function e(){return Ee(this,e),ke(this,e,["PasskeysInvalidEncoding","Invalid passkey encoding"])}return Se(e,t),Ce(e)})(Ie),Rf=(function(t){function e(){return Ee(this,e),ke(this,e,["PasskeysMisconfigured","Passkeys are misconfigured. Verify that you have added the correct associated domain for your application, and that the signing information is correct."])}return Se(e,t),Ce(e)})(Ie),Ff=(function(t){function e(){return Ee(this,e),ke(this,e,["SignInWithAppleMisconfigured","Sign In With Apple is misconfigured. Verify that you have correctly configured Apple OAuth in the Stytch Dashboard and added the Sign In With Apple capability to your project."])}return Se(e,t),Ce(e)})(Ie),Mf=(function(t){function e(){return Ee(this,e),ke(this,e,["MissingCipherIv","The expected cipher Iv was not found when attempting to decrypt an existing biometric key."])}return Se(e,t),Ce(e)})(Ie),Bf=(function(t){function e(){return Ee(this,e),ke(this,e,["InvalidPrivateKeyLength","The private key was of an incorrect length."])}return Se(e,t),Ce(e)})(Ie),xf=(function(t){function e(){return Ee(this,e),ke(this,e,["BiometricRegistrationIdIsNullOrBlank","Attempted to set a blank or null biometric registration ID. This is not allowed, and indicates no registration was created on the server. Consider deleting any local keys that may have been generated."])}return Se(e,t),Ce(e)})(Ie),$f=(function(t){function e(){return Ee(this,e),ke(this,e,["DFPNotConfigured","You have attempted to retrieve a telemetry ID before the DFP client has been configured."])}return Se(e,t),Ce(e)})(Ie),Hc=(function(t){function e(n){return Ee(this,e),ke(this,e,["IDPOAuthFlowMissingParamError",n])}return Se(e,t),Ce(e)})(Ie);function jf(t){switch(t.message){case"no_current_session":return new Uc;case"no_biometrics_registration":return new df;case"biometrics_unavailable":return new Li;case"key_invalidated":return new Au;
23case"device_hardware_error":return new Li;case"biometrics_not_available":return new Li;case"no_biometrics_enrolled":return new ff;case"keystore_unavailable":return new hf;case"no_biometric_key":return new Au;case"device_credentials_not_allowed":return new vf;case"user_cancellation":return new pf;case"user_locked_out":return new mf;case"google_onetap_missing_id_token":return new Ii;case"google_onetap_missing_member":return new Di;case"oauth_apple_missing_id_token":return new Ii;case"oauth_apple_credential_invalid":return new Di;case"missing_public_key":return new yf;case"challenge_signing_failed":return new _f;case"missing_authorization_credential_id_token":return new Ii;case"invalid_authorization_credential":return new Di;case"no_credentials_present":return new gf;case"sdk_not_configured":return new bf;case"failed_code_challenge":return new wf;case"passkeys_unsupported":return new Cf;case"failed_to_decrypt_data":return new Ef;case"biometrics_failed":return new kf;case"invalid_start_url":return new Sf;case"invalid_redirect_scheme":return new Of;case"missing_url":return new Pf;case"invalid_credential_type":return new Af;case"missing_attestation_object":return new Tf;case"json_data_not_convertible_to_string":return new Lf;case"random_number_generation_failed":return new If;case"passkeys_invalid_encoding":return new Df;case"passkeys_misconfigured":return new Rf;case"signinwithapple_misconfigured":return new Ff;case"missing_cipher_iv":return new Mf;case"invalid_private_key_length":return new Bf;case"biometric_registration_id_is_null_or_blank":return new xf;case"dfp_not_configured":return new $f;default:return new cf(t)}}var Xi;(function(t){t.emailMagicLinks="emailMagicLinks",t.emailOtp="emailOtp",t.sso="sso",t.passwords="passwords",t.oauth="oauth"})(Xi||(Xi={}));var wa;(function(t){t.Discovery="Discovery",t.Organization="Organization",t.PasswordReset="PasswordReset"})(wa||(wa={}));var Tu;(function(t){t.ResetPassword="reset_password"})(Tu||(Tu={}));var Ca;(function(t){t.smsOtp="smsOtp",t.totp="totp"})(Ca||(Ca={}));var Lu;(function(t){t.Google="google",t.Microsoft="microsoft",t.HubSpot="hubspot",t.Slack="slack",t.GitHub="github"})(Lu||(Lu={}));function zc(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Mo(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,i=c},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw i}}}}function wn(t){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wn(t)}function Er(t){return Hf(t)||Uf(t)||Mo(t)||Nf()}function Nf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Hf(t){if(Array.isArray(t))return Qi(t)}function Wc(t,e){return Gf(t)||Wf(t,e)||Mo(t,e)||zf()}function zf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mo(t,e){if(t){if(typeof t=="string")return Qi(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(t,e):void 0}}function Qi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Wf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,i,o,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(h){c=!0,a=h}
26finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function Gf(t){if(Array.isArray(t))return t}function F(){var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function i(p,m,g,v){var _=m&&m.prototype instanceof s?m:s,b=Object.create(_.prototype);return Lt(b,"_invoke",(function(C,A,E){var T,O,L,j=0,X=E||[],w=!1,P={p:0,n:0,v:t,a:R,f:R.bind(t,4),d:function(B,N){return T=B,O=0,L=t,P.n=N,o}};function R(M,B){for(O=M,L=B,e=0;!w&&j&&!N&&e<X.length;e++){var N,U=X[e],Q=P.p,q=U[2];M>3?(N=q===B)&&(L=U[(O=U[4])?5:(O=3,3)],U[4]=U[5]=t):U[0]<=Q&&((N=M<2&&Q<U[1])?(O=0,P.v=B,P.n=U[1]):Q<q&&(N=M<3||U[0]>B||B>q)&&(U[4]=M,U[5]=B,P.n=q,O=0))}if(N||M>1)return o;throw w=!0,B}return function(M,B,N){if(j>1)throw TypeError("Generator is already running");for(w&&B===1&&R(B,N),O=B,L=N;(e=O<2?t:L)||!w;){T||(O?O<3?(O>1&&(P.n=-1),R(O,L)):P.n=L:P.v=L);try{if(j=2,T){if(O||(M="next"),e=T[M]){if(!(e=e.call(T,L)))throw TypeError("iterator result is not an object");if(!e.done)return e;L=e.value,O<2&&(O=0)}else O===1&&(e=T.return)&&e.call(T),O<2&&(L=TypeError("The iterator does not provide a '"+M+"' method"),O=1);T=t}else if((e=(w=P.n<0)?L:C.call(A,P))!==o)break}catch(U){T=t,O=1,L=U}finally{j=1}}return{value:e,done:w}}})(p,g,v),!0),b}var o={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var h=[][r]?e(e([][r]())):(Lt(e={},r,function(){return this}),e),d=c.prototype=s.prototype=Object.create(h);function f(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,c):(p.__proto__=c,Lt(p,a,"GeneratorFunction")),p.prototype=Object.create(d),p}return u.prototype=c,Lt(d,"constructor",c),Lt(c,"constructor",u),u.displayName="GeneratorFunction",Lt(c,a,"GeneratorFunction"),Lt(d),Lt(d,a,"Generator"),Lt(d,r,function(){return this}),Lt(d,"toString",function(){return"[object Generator]"}),(F=function(){return{w:i,m:f}})()}function Lt(t,e,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Lt=function(o,s,u,c){function h(d,f){Lt(o,d,function(p){return this._invoke(d,f,p)})}s?a?a(o,s,{value:u,enumerable:!c,configurable:!c,writable:!c}):o[s]=u:(h("next",0),h("throw",1),h("return",2))},Lt(t,e,n,r)}function Iu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Vf(r.key),r)}}function it(t,e,n){return e&&Iu(t.prototype,e),n&&Iu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vf(t){var e=Kf(t,"string");return wn(e)=="symbol"?e:e+""}function Kf(t,e){if(wn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(wn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zf(t,e,n){return e=Sr(e),qf(t,Bo()?Reflect.construct(e,n||[],Sr(t).constructor):e.apply(t,n))}function qf(t,e){if(e&&(wn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yf(t)}function Yf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kr(t,e)}function eo(t){var e=typeof Map=="function"?new Map:void 0;return eo=function(r){if(r===null||!Qf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return Xf(r,arguments,Sr(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),kr(a,r)},eo(t)}function Xf(t,e,n){if(Bo())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var a=new(t.bind.apply(t,r));return n&&kr(a,n.prototype),a}function Bo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bo=function(){return!!t})()}function Qf(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function kr(t,e){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kr(t,e)}function Sr(t){return Sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sr(t)}var ep="https://test.stytch.com",tp="https://api.stytch.com",np="https://js.stytch.com/clientside-services/index.html",rp="https://telemetry.stytch.com",ap="https://elements.stytch.com",Gc="https://accounts.google.com/gsi",ip="".concat(Gc,"/client"),on=30,Jn=5,Vc="It looks like you're creating multiple copies of the Stytch client. This behavior is unsupported, and unintended side effects may occur. Make sure you are creating the Stytch client at the global level, and not inside a component's render function.",Ea;(function(t){t.RequiredCaptcha="CAPTCHA required"})(Ea||(Ea={}));var Kc=(function(t){function e(n){var r;return ot(this,e),r=Zf(this,e,[n]),r.type=n,r}return Jf(e,t),it(e)})(eo(Error));function op(t){var e=t.method,n=t.finalURL,r=t.basicAuthHeader,a=t.xSDKClientHeader,i=t.xSDKParentHostHeader,o=t.body,s=t.retryCallback;return ie(this,void 0,void 0,F().m(function u(){var c,h;return F().w(function(d){for(;;)switch(d.p=d.n){case 0:return c={method:e,finalURL:n,basicAuthHeader:r,xSDKClientHeader:a,xSDKParentHostHeader:i,body:o},d.p=1,d.n=2,to(c);case 2:return d.a(2,d.v);case 3:if(d.p=3,h=d.v,!(h instanceof Kc)){d.n=6;break}return d.n=4,s(h,c);case 4:return c=d.v,d.n=5,to(c);case 5:return d.a(2,d.v);case 6:throw h;case 7:return d.a(2)}},u,null,[[1,3]])}
26))}function to(t){var e=t.method,n=t.finalURL,r=t.basicAuthHeader,a=t.xSDKClientHeader,i=t.xSDKParentHostHeader,o=t.body,s;return ie(this,void 0,void 0,F().m(function u(){var c,h,d,f,p,m,g;return F().w(function(v){for(;;)switch(v.p=v.n){case 0:return c={Authorization:r,"Content-Type":"application/json","X-SDK-Client":a},i&&(c["X-SDK-Parent-Host"]=i),h={method:e,headers:c,body:o&&JSON.stringify(o),credentials:"include"},v.p=1,v.n=2,fetch(n,h);case 2:d=v.v,v.n=5;break;case 3:if(v.p=3,g=v.v,g.message!=="Failed to fetch"){v.n=4;break}throw new Gn("Unable to contact our servers.");case 4:throw g;case 5:if(!(d.status<=299)){v.n=9;break}return v.p=6,v.n=7,d.json();case 7:return f=v.v,v.a(2,f.data);case 8:throw v.p=8,v.v,new Gn("Invalid JSON response from our servers.");case 9:if(!(d.status!==200&&(!((s=d.headers.get("content-type"))===null||s===void 0)&&s.includes("application/json")))){v.n=15;break}return v.p=10,v.n=11,d.json();case 11:p=v.v,v.n=13;break;case 12:throw v.p=12,v.v,new Gn("Invalid or no response from server");case 13:if(!("body"in p||"params"in p||"query"in p)){v.n=14;break}throw new Nc(p);case 14:throw new Fr(p);case 15:return v.p=15,v.n=16,d.text();case 16:m=v.v,v.n=18;break;case 17:throw v.p=17,v.v,new Gn("Invalid response from our servers.");case 18:if(!m.includes("Captcha required")){v.n=19;break}throw new Kc(Ea.RequiredCaptcha);case 19:throw new Gn("Invalid response from our servers.");case 20:return v.a(2)}},u,null,[[15,17],[10,12],[6,8],[1,3]])}))}function sp(t){var e=t.method,n=t.finalURL,r=t.basicAuthHeader,a=t.xSDKClientHeader,i=t.xSDKParentHostHeader,o=t.body;return ie(this,void 0,void 0,F().m(function s(){var u,c,h,d;return F().w(function(f){for(;;)switch(f.n){case 0:u=o||{},c=Object.assign(Object.assign({},u),{__Authorization:r,"__X-SDK-Client":a}),i&&(c["__X-SDK-Parent-Host"]=i),h=Object.entries(c).map(function(p){var m=Wc(p,2),g=m[0],v=m[1],_=document.createElement("input");return _.type="hidden",_.name=g,_.value=v,_}),d=document.createElement("form"),d.method=e,d.action=n,d.append.apply(d,Er(h)),document.body.appendChild(d),d.submit();case 1:return f.a(2)}},s)}))}var Yr,lp=new Uint8Array(16);function up(){if(!Yr&&(Yr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Yr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yr(lp)}var cp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function dp(t){return typeof t=="string"&&cp.test(t)}var _t=[];for(Jr=0;Jr<256;++Jr)_t.push((Jr+256).toString(16).substr(1));var Jr;function hp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(_t[t[e+0]]+_t[t[e+1]]+_t[t[e+2]]+_t[t[e+3]]+"-"+_t[t[e+4]]+_t[t[e+5]]+"-"+_t[t[e+6]]+_t[t[e+7]]+"-"+_t[t[e+8]]+_t[t[e+9]]+"-"+_t[t[e+10]]+_t[t[e+11]]+_t[t[e+12]]+_t[t[e+13]]+_t[t[e+14]]+_t[t[e+15]]).toLowerCase();if(!dp(n))throw TypeError("Stringified UUID is invalid");return n}function xo(t,e,n){t=t||{};var r=t.random||(t.rng||up)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,hp(r)}var Xr={};function $o(t,e){return ie(this,void 0,void 0,F().m(function n(){return F().w(function(r){for(;;)switch(r.n){case 0:if(Xr[t]===void 0){r.n=1;break}return r.a(2,Xr[t]);case 1:return Xr[t]=fp(t,e),r.a(2,Xr[t])}},n)}))}function fp(t,e){return new Promise(function(n,r){var a=mp(t);if(a&&a.dataset.loaded==="true")try{n(e())}catch(o){return r(new Error("".concat(t," already loaded, but module was not found in global scope: ").concat(o)))}var i=vp(t);i.addEventListener("load",function(){i.dataset.loaded="true";try{n(e())}catch(o){r(new Error("".concat(t," was loaded, but module was not found in global scope: ").concat(o)))}}),i.addEventListener("error",function(o){r(new Error("".concat(t," could not be loaded: ").concat(o)))})})}var pp=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]'))};function mp(t){var e=pp(t);if(e[0])return e[0]}function vp(t){var e=document.createElement("script");return e.setAttribute("src",t),e.setAttribute("async","true"),e.setAttribute("defer","true"),document.head.appendChild(e),e}var $a=function(e){try{var n=new URL(e);return"https://".concat(n.hostname)}catch{}
26try{var r=new URL("https://".concat(e));return"https://".concat(r.hostname)}catch{}},Ri=["[Stytch]"],gp=!1,Ye={debug:function(){return gp},log:function(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=console).log.apply(e,Ri.concat(r))},warn:function(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=console).warn.apply(e,Ri.concat(r))},error:function(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=console).error.apply(e,Ri.concat(r))}},yp=function(e){var n,r,a,i,o=(n=e?.customBaseUrl)!==null&&n!==void 0?n:(r=e?.endpointOptions)===null||r===void 0?void 0:r.apiDomain;if(o){var s=$a(o);if(s)return s;var u=e?.customBaseUrl?"customBaseUrl":"apiDomain";Ye.warn("Unable to use custom API domain `".concat(o,"`. ").concat(u," should be a valid domain."))}return(i=(a=e?.endpoints)===null||a===void 0?void 0:a.liveAPIURL)!==null&&i!==void 0?i:tp},_p=function(e){var n,r,a,i,o=(n=e?.customBaseUrl)!==null&&n!==void 0?n:(r=e?.endpointOptions)===null||r===void 0?void 0:r.testApiDomain;if(o){var s=$a(o);if(s)return s;var u=e?.customBaseUrl?"customBaseUrl":"testApiDomain";Ye.warn("Unable to use custom API domain `".concat(o,"`. ").concat(u," should be a valid domain."))}return(i=(a=e?.endpoints)===null||a===void 0?void 0:a.testAPIURL)!==null&&i!==void 0?i:ep},Fi=`
27You can find your public token at https://stytch.com/dashboard/api-keys.`,bp=function(e){typeof e!="string"?Ye.warn("Public token is malformed. Expected a string, got ".concat(wn(e),".").concat(Fi)):e===""?Ye.warn('Public token is malformed. Expected "public-token-...", got an empty string.'.concat(Fi)):e.startsWith("public-token-")||Ye.warn('Public token is malformed. Expected "public-token-...", got '.concat(e,".").concat(Fi))},Zc=function(e){var n=e==="StytchUIClient"?"createStytchUIClient":"createStytchHeadlessClient";if(typeof window>"u")throw new Error("`new ".concat(e,"()` is not supported in server environments. If using @stytch/react or @stytch/nextjs, use `").concat(n,"()` instead."))},qc={US:"1",AX:"358",AS:"1684",AG:"1268",AI:"1264",AR:"54",AT:"43",AU:"61",BE:"32",BJ:"229",BO:"591",BR:"55",IO:"246",BN:"673",BG:"359",BF:"226",CM:"237",CA:"1",BQ:"599",CF:"236",CL:"56",CX:"61",CC:"61",CO:"57",CD:"243",CK:"682",CR:"506",HR:"385",CZ:"420",DK:"45",DO:"1829",EC:"593",SV:"503",EE:"372",SZ:"268",FK:"500",FI:"358",FR:"33",GF:"594",DE:"49",GH:"233",GR:"30",GD:"1473",GT:"502",GG:"44",GW:"245",GY:"592",HU:"36",IS:"354",IN:"91",IE:"353",IM:"44",IT:"39",JM:"1876",JP:"81",KZ:"7",KE:"254",KI:"686",KR:"82",LV:"371",LT:"370",LU:"352",MO:"853",MT:"356",MH:"692",MR:"222",MU:"230",YT:"262",MX:"52",MC:"377",ME:"382",NR:"674",NL:"31",NZ:"64",NI:"505",NF:"672",NO:"47",PA:"507",PY:"595",PE:"51",PN:"870",PL:"48",PT:"351",PR:"1",RO:"40",BL:"590",SH:"290",KN:"1869",LC:"1758",MF:"590",PM:"508",SM:"378",ST:"239",SC:"248",SX:"599",SK:"421",SI:"386",ZA:"27",SS:"211",ES:"34",SR:"597",SJ:"47",SE:"46",CH:"41",TW:"886",TZ:"255",TK:"690",TO:"676",TT:"1868",TR:"90",UA:"380",GB:"44",UM:"1",UY:"598",VA:"379",EH:"212"},wp=function(e){var n,r,a,i,o=(n=e?.dfppaUrl)!==null&&n!==void 0?n:(r=e?.endpointOptions)===null||r===void 0?void 0:r.dfppaDomain;if(o){var s=$a(o);if(s)return s;var u=e?.dfppaUrl?"dfppaUrl":"dfppaDomain";Ye.warn("Unable to use custom DFPPA domain `".concat(o,"`. ").concat(u," should be a valid domain."))}
27return(i=(a=e?.endpoints)===null||a===void 0?void 0:a.dfpBackendURL)!==null&&i!==void 0?i:rp},Cp=function(e){var n,r,a=(n=e?.dfpCdnUrl)!==null&&n!==void 0?n:(r=e?.endpointOptions)===null||r===void 0?void 0:r.dfpCdnDomain;if(a){var i=$a(a);if(i)return i;var o=e?.dfpCdnUrl?"dfpCdnUrl":"dfpCdnDomain";Ye.warn("Unable to use custom DFP CDN domain `".concat(a,"`. ").concat(o," should be a valid domain."))}return ap};function Ep(t,e){if(t.length<=1)return[t,!1];var n=t.findIndex(e);if(n===-1)return[t,!1];var r=Er(t);return r.unshift.apply(r,Er(r.splice(n,1))),[r,!0]}var kp={moveToFront:Ep},ja=function(e){return e.includes("public-token-test")},Sp=function(){return"event-id-".concat(xo())},Op=function(){return"app-session-id-".concat(xo())},Pp=function(){return"persistent-id-".concat(xo())},He=function(e){var n={isObject:function(a,i){var o=wn(i)==="object"&&!Array.isArray(i)&&i!==null;if(!o)throw new Wn(e,a+" must be an object.");return n},isOptionalObject:function(a,i){return typeof i>"u"?n:n.isObject(a,i)},isString:function(a,i){if(typeof i!="string")throw new Wn(e,a+" must be a string.");return n},isOptionalString:function(a,i){return typeof i>"u"?n:n.isString(a,i)},isStringArray:function(a,i){if(!Array.isArray(i))throw new Wn(e,a+" must be an array of strings.");var o=zc(i),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;if(typeof u!="string")throw new Wn(e,a+" must be an array of strings.")}}catch(c){o.e(c)}finally{o.f()}return n},isOptionalStringArray:function(a,i){return typeof i>"u"?n:n.isStringArray(a,i)},isNumber:function(a,i){if(typeof i!="number")throw new Wn(e,a+" must be a number.");return n},isOptionalNumber:function(a,i){return typeof i>"u"?n:n.isNumber(a,i)},isBoolean:function(a,i){if(typeof i!="boolean")throw new Wn(e,a+" must be a boolean.");return n},isOptionalBoolean:function(a,i){return typeof i>"u"?n:n.isBoolean(a,i)}};return n},Qt=function(e){var n=jc(e,["request_id","status_code"]);return n},et=function(e){var n=jc(e,["__user"]);return n},Ap=function(e){return $o("".concat(e,"/telemetry.js"),function(){return window.GetTelemetryID})},Tp=it(function t(e,n,r,a){var i=this,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return Promise.resolve(void 0)};ot(this,t),this.bootstrapPromise=a,this.isEnabled=function(){return ie(i,void 0,void 0,F().m(function s(){return F().w(function(u){for(;;)if(u.n===0)return u.a(2,this.state.then(function(c){return c.enabled}))},s,this)}))},this.getTelemetryID=function(){return ie(i,void 0,void 0,F().m(function s(){var u,c,h,d;return F().w(function(f){for(;;)switch(f.n){case 0:return f.n=1,this.state;case 1:if(u=f.v,c=u.publicToken,h=u.enabled,d=u.dfpBackendURL,h){f.n=2;break}return f.a(2,void 0);case 2:return f.n=3,window.GetTelemetryID(c,"".concat(d,"/submit"));case 3:return f.a(2,f.v)}},s,this)}))},this.getDFPTelemetryIDAndCaptcha=function(){return ie(i,void 0,void 0,F().m(function s(){var u,c,h,d,f,p;return F().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,this.state;case 1:if(u=m.v,c=u.enabled,h=u.executeRecaptcha,d=u.mode,f=void 0,p=void 0,c){m.n=3;break}return m.n=2,h();case 2:p=m.v;case 3:if(d!=="DECISIONING"){m.n=5;break}return m.n=4,this.getTelemetryID();case 4:f=m.v,m.n=8;break;case 5:if(d!=="OBSERVATION"){m.n=8;break}return m.n=6,this.getTelemetryID();case 6:return f=m.v,m.n=7,h();case 7:p=m.v;case 8:return m.a(2,{dfp_telemetry_id:f,captcha_token:p})}},s,this)}))},this.retryWithCaptchaAndDFP=function(s,u){return ie(i,void 0,void 0,F().m(function c(){var h,d,f;return F().w(function(p){for(;;)switch(p.n){case 0:return p.n=1,this.state;case 1:if(h=p.v,d=h.enabled,f=h.executeRecaptcha,!(s.type===Ea.RequiredCaptcha&&d)){p.n=5;break}if(!u.body){p.n=4;break}return p.n=2,this.getTelemetryID();case 2:return u.body.dfp_telemetry_id=p.v,p.n=3,f();case 3:u.body.captcha_token=p.v;case 4:return p.a(2,u);case 5:throw new Error("Unable to query captcha and/or dfp telemetry ID");case 6:return p.a(2)}},c,this)}))},this.state=a.then(function(s){return ie(i,void 0,void 0,F().m(function u(){return F().w(function(c){for(;;)switch(c.n){case 0:if(s.runDFPProtectedAuth){c.n=1;break}
27return c.a(2,{publicToken:e,dfpBackendURL:n,enabled:!1,loaded:!1,executeRecaptcha:o});case 1:return c.n=2,Ap(r);case 2:return c.a(2,{publicToken:e,dfpBackendURL:n,enabled:!0,mode:s.dfpProtectedAuthMode||"OBSERVATION",loaded:!0,executeRecaptcha:o})}},u)}))})}),Lp=(function(){function t(){ot(this,t)}return it(t,null,[{key:"inflate",value:function(n,r){var a=new n(r);return Object.assign(a,r),Object.setPrototypeOf(a,n.prototype),a}},{key:"unmarshall",value:function(n){if("name"in n)switch(n.name){case"SDKAPIUnreachableError":return t.inflate(sf,n);case"StytchSDKSchemaError":return t.inflate(lf,n);case"StytchAPIUnreachableError":return t.inflate(Gn,n);case"StytchAPISchemaError":return t.inflate(Nc,n);case"StytchSDKAPIError":return t.inflate(uf,n);case"StytchAPIError":return t.inflate(Fr,n);case"TypeError":return t.inflate(TypeError,n);case"SyntaxError":return t.inflate(SyntaxError,n);case"ReferenceError":return t.inflate(ReferenceError,n);case"RangeError":return t.inflate(RangeError,n);case"EvalError":return t.inflate(EvalError,n);case"URIError":return t.inflate(URIError,n)}return t.inflate(Error,n)}}])})(),Ip=15,Dp=800,Rp=(function(){function t(e){ot(this,t),this.maxBatchSize=e.maxBatchSize,this.logEventURL=e.logEventURL,setInterval(this.flush.bind(this),e.intervalDurationMs),this.batch=[]}return it(t,[{key:"logEvent",value:function(n,r){this.batch.push({telemetry:n,event:r}),this.batch.length>=this.maxBatchSize&&this.flush()}},{key:"flush",value:function(){return ie(this,void 0,void 0,F().m(function n(){var r;return F().w(function(a){for(;;)switch(a.p=a.n){case 0:if(this.batch.length){a.n=1;break}return a.a(2);case 1:return r=this.batch,this.batch=[],a.p=2,a.n=3,fetch(this.logEventURL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});case 3:a.n=5;break;case 4:a.p=4,a.v;case 5:return a.a(2)}},n,this,[[2,4]])}))}}])})(),Cn;(function(t){t.LoginOrCreateEML="login_or_create_eml",t.LoginOrCreateOTP="login_or_create_otp",t.ResetPassword="reset_password"})(Cn||(Cn={}));var Fp=it(function t(e,n){var r=this;ot(this,t),this._networkClient=e,this._subscriptionService=n,this.get=function(){return ie(r,void 0,void 0,F().m(function a(){var i,o;return F().w(function(s){for(;;)switch(s.n){case 0:return s.n=1,this._networkClient.fetchSDK({url:"/users/me",method:"GET"});case 1:return i=s.v,o=Qt(i),this._subscriptionService.updateUser(o),s.a(2,o)}},a,this)}))},this.getSync=function(){return r._subscriptionService.getUser()},this.getInfo=function(){return{user:r.getSync(),fromCache:r._subscriptionService.getFromCache()}},this.update=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return He("stytch.user.update").isOptionalObject("untrusted_metadata",a.untrusted_metadata),u.n=1,this._networkClient.fetchSDK({url:"/users/me",body:a,method:"PUT"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.deleteEmail=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this._networkClient.fetchSDK({url:"/users/emails/".concat(a),method:"DELETE"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.deletePhoneNumber=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this._networkClient.fetchSDK({url:"/users/phone_numbers/".concat(a),method:"DELETE"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.deleteTOTP=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this._networkClient.fetchSDK({url:"/users/totps/".concat(a),method:"DELETE"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.deleteCryptoWallet=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this._networkClient.fetchSDK({url:"/users/crypto_wallets/".concat(a),method:"DELETE"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.deleteOAuthRegistration=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this._networkClient.fetchSDK({url:"/users/oauth/".concat(a),method:"DELETE"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.deleteWebauthnRegistration=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this._networkClient.fetchSDK({url:"/users/webauthn_registrations/".concat(a),method:"DELETE"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.deleteBiometricRegistration=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this._networkClient.fetchSDK({url:"/users/biometric_registrations/".concat(a),method:"DELETE"});case 1:return o=u.v,s=Qt(o.__user),this._subscriptionService.updateUser(s),u.a(2,et(o))}},i,this)}))},this.onChange=function(a){var i=r._subscriptionService.getUser(),o=function(u){var c;u?.user!==i&&(i=(c=u?.user)!==null&&c!==void 0?c:null,a(i))};return r._subscriptionService.subscribeToState(o)},this.getConnectedApps=function(){return ie(r,void 0,void 0,F().m(function a(){return F().w(function(i){for(;;)switch(i.n){case 0:return i.n=1,this._networkClient.fetchSDK({url:"/users/connected_apps",method:"GET"});case 1:return i.a(2,i.v)}},a,this)}))},this.revokedConnectedApp=function(a){return ie(r,void 0,void 0,F().m(function i(){return F().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,this._networkClient.fetchSDK({url:"/users/connected_apps/".concat(a,"/revoke"),method:"POST"});case 1:return o.a(2,o.v)}},i,this)}))}}),Mp=(function(){function t(e,n){var r=this;ot(this,t),this._networkClient=e,this._subscriptionService=n,this.get
27Sync=function(){return r._subscriptionService.getSession()},this.getInfo=function(){var a=r.getSync(),i=r._subscriptionService.getFromCache();return{session:a,fromCache:i}},this.onChange=function(a){var i=r._subscriptionService.getSession(),o=function(u){var c;u?.session!==i&&(i=(c=u?.session)!==null&&c!==void 0?c:null,a(i))};return r._subscriptionService.subscribeToState(o)},this.revoke=function(a){return ie(r,void 0,void 0,F().m(function i(){var o,s;return F().w(function(u){for(;;)switch(u.p=u.n){case 0:return u.p=0,u.n=1,this._networkClient.fetchSDK({url:"/sessions/revoke",method:"POST"});case 1:return o=u.v,this._subscriptionService.destroyState(),u.a(2,o);case 2:throw u.p=2,s=u.v,a?.forceClear?this._subscriptionService.destroyState():Ji.includes(s.error_type)&&this._subscriptionService.destroyState(),s;case 3:return u.a(2)}},i,this,[[0,2]])}))},this._authenticate=function(a){return ie(r,void 0,void 0,F().m(function i(){var o=this,s,u,c,h,d;return F().w(function(f){for(;;)switch(f.p=f.n){case 0:return s=this._subscriptionService.getSession(),u=function(){var m;return s?.session_id!==((m=o._subscriptionService.getSession())===null||m===void 0?void 0:m.session_id)},f.p=1,c={session_duration_minutes:a?.session_duration_minutes},f.n=2,this._networkClient.fetchSDK({url:"/sessions/authenticate",body:c,method:"POST"});case 2:if(h=f.v,!u()){f.n=3;break}return f.a(2,this._authenticate(a));case 3:return f.a(2,et(h));case 4:if(f.p=4,d=f.v,!u()){f.n=5;break}return f.a(2,this._authenticate(a));case 5:throw Ji.includes(d.error_type)&&this._subscriptionService.destroySession(),d;case 6:return f.a(2)}},i,this,[[1,4]])}))},this.authenticate=this._subscriptionService.withUpdateSession(this._authenticate),this.exchangeAccessToken=this._subscriptionService.withUpdateSession(function(a){return ie(r,void 0,void 0,F().m(function i(){var o;return F().w(function(s){for(;;)switch(s.n){case 0:return He("stytch.session.exchangeAccessToken").isString("access_token",a.access_token).isNumber("session_duration_minutes",a.session_duration_minutes),s.n=1,this._networkClient.fetchSDK({url:"/sessions/exchange_access_token",body:a,method:"POST"});case 1:return o=s.v,s.a(2,et(o))}},i,this)}))}),this.attest=this._subscriptionService.withUpdateSession(function(a){return ie(r,void 0,void 0,F().m(function i(){return F().w(function(o){for(;;)if(o.n===0)return He("stytch.session.attest").isString("profile_id",a.profile_id).isString("token",a.token).isOptionalNumber("session_duration_minutes",a.session_duration_minutes),o.a(2,this._networkClient.fetchSDK({url:"/sessions/attest",body:a,method:"POST"}))},i,this)}))})}return it(t,[{key:"getTokens",value:function(){return this._subscriptionService.getTokens()}},{key:"updateSession",value:function(n){var r;He("stytch.session.updateSession").isString("session_token",n.session_token).isOptionalString("session_jwt",(r=n.session_jwt)!==null&&r!==void 0?r:void 0),this._subscriptionService.updateTokens(n)}}])})(),Bp=Promise.resolve({pkceRequiredForEmailMagicLinks:!1}),xp=(function(){function t(e,n,r,a){var i=this,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:Bp,s=arguments.length>5?arguments[5]:void 0;ot(this,t),this._networkClient=e,this._subscriptionService=n,this._pkceManager=r,this._passwordResetPKCEManager=a,this._config=o,this.dfpProtectedAuth=s,this.email={loginOrCreate:function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ie(i,void 0,void 0,F().m(function d(){var f,p,m,g,v,_,b;return F().w(function(C){for(;;)switch(C.n){case 0:return C.n=1,this._config;case 1:if(f=C.v,p=f.pkceRequiredForEmailMagicLinks,m=void 0,!p){C.n=3;break}return C.n=2,this.getCodeChallenge();case 2:m=C.v;case 3:return C.n=4,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 4:return g=C.v,v=g.dfp_telemetry_id,_=g.captcha_token,b=Object.assign(Object.assign({},h),{email:c,code_challenge:m,captcha_token:_,dfp_telemetry_id:v}),C.a(2,this._networkClient.retriableFetchSDK({url:"/magic_links/email/login_or_create",body:b,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},d,this)}))},send:function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ie(i,void 0,void 0,F().m(function d(){var f,p,m,g,v,_,b,C,A;return F().w(function(E){for(;;)switch(E.n){case 0:return E.n=1,this._config;case 1:if(f=E.v,p=f.pkceRequiredForEmailMagicLinks,m=void 0,!p){E.n=3;break}
27return E.n=2,this.getCodeChallenge();case 2:m=E.v;case 3:return E.n=4,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 4:return g=E.v,v=g.dfp_telemetry_id,_=g.captcha_token,b=Object.assign(Object.assign({},h),{email:c,code_challenge:m,captcha_token:_,dfp_telemetry_id:v}),C=!!this._subscriptionService.getSession(),A=C?"/magic_links/email/send/secondary":"/magic_links/email/send/primary",E.a(2,this._networkClient.retriableFetchSDK({url:A,body:b,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},d,this)}))}},this.authenticate=this._subscriptionService.withUpdateSession(function(u,c){return ie(i,void 0,void 0,F().m(function h(){var d,f,p;return F().w(function(m){for(;;)switch(m.p=m.n){case 0:return He("stytch.magicLinks.authenticate").isString("Token",u).isNumber("session_duration_minutes",c.session_duration_minutes),m.n=1,this._passwordResetPKCEManager.getPKPair();case 1:if(d=m.v,f=null,!d?.code_verifier){m.n=6;break}return m.p=2,m.n=3,this.handlePKCEForAuthenticate(this._passwordResetPKCEManager,Object.assign(Object.assign({},c),{token:u}));case 3:f=m.v,m.n=6;break;case 4:if(m.p=4,p=m.v,!p.message.includes("pkce")){m.n=5;break}console.log("Authenticate with passwords pkce namespace failed. Falling back to authenticate with magic_links namespace."),m.n=6;break;case 5:throw p;case 6:if(f){m.n=8;break}return m.n=7,this.handlePKCEForAuthenticate(this._pkceManager,Object.assign(Object.assign({},c),{token:u}));case 7:f=m.v;case 8:return m.a(2,et(f))}},h,this,[[2,4]])}))})}return it(t,[{key:"getCodeChallenge",value:function(){return ie(this,void 0,void 0,F().m(function n(){var r;return F().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this._pkceManager.getPKPair();case 1:if(r=a.v,!r){a.n=2;break}return a.a(2,r.code_challenge);case 2:return a.n=3,this._pkceManager.startPKCETransaction();case 3:return r=a.v,a.a(2,r.code_challenge)}},n,this)}))}},{key:"handlePKCEForAuthenticate",value:function(n,r){return ie(this,void 0,void 0,F().m(function a(){var i,o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,n.getPKPair();case 1:return i=u.v,o=Object.assign({code_verifier:i?.code_verifier},r),u.n=2,this._networkClient.fetchSDK({url:"/magic_links/authenticate",body:o,method:"POST"});case 2:return s=u.v,n.clearPKPair(),u.a(2,s)}},a,this)}))}}])})(),$p=it(function t(e,n){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){return Promise.resolve(void 0)},i=arguments.length>3?arguments[3]:void 0;ot(this,t),this._networkClient=e,this._subscriptionService=n,this.executeRecaptcha=a,this.dfpProtectedAuth=i,this.sms={loginOrCreate:function(s,u){return ie(r,void 0,void 0,F().m(function c(){var h,d,f,p;return F().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return h=m.v,d=h.dfp_telemetry_id,f=h.captcha_token,p=Object.assign(Object.assign({},u),{phone_number:s,captcha_token:f,dfp_telemetry_id:d}),m.a(2,this._networkClient.retriableFetchSDK({url:"/otps/sms/login_or_create",body:p,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},c,this)}))},send:function(s,u){return ie(r,void 0,void 0,F().m(function c(){var h,d,f,p,m,g;return F().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return h=v.v,d=h.dfp_telemetry_id,f=h.captcha_token,p=Object.assign(Object.assign({},u),{phone_number:s,captcha_token:f,dfp_telemetry_id:d}),m=!!this._subscriptionService.getSession(),g=m?"/otps/sms/send/secondary":"/otps/sms/send/primary",v.a(2,this._networkClient.retriableFetchSDK({url:g,body:p,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},c,this)}))}},this.whatsapp={loginOrCreate:function(s,u){return ie(r,void 0,void 0,F().m(function c(){var h,d,f,p;return F().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return h=m.v,d=h.dfp_telemetry_id,f=h.captcha_token,p=Object.assign(Object.assign({},u),{phone_number:s,dfp_telemetry_id:d,captcha_token:f}),m.a(2,this._networkClient.retriableFetchSDK({url:"/otps/whatsapp/login_or_create",body:p,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},c,this)}))},send:function(s,u){return ie(r,void 0,void 0,F().m(function c(){var h,d,f,p,m,g;return F().w(function(v){for(;;)switch(v.n){case 0:return v.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return h=v.v,d=h.dfp_telemetry_id,f=h.captcha_token,p=Object.assign(Object.assign({},u),{phone_number:s,captcha_token:f,dfp_telemetry_id:d}),m=!!this._subscriptionService.getSession(),g=m?"/otps/whatsapp/send/secondary":"/otps/whatsapp/send/primary",v.a(2,this._networkClient.retriableFetchSDK({url:g,body:p,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},c,this)}))}},this.email={loginOrCreate:function(s,u){return ie(r,void 0,void 0,F().m(function c(){var h,d,f,p;return F().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return h=m.v,d=h.dfp_telemetry_id,f=h.captcha_token,p=Object.assign(Object.assign({},u),{email:s,captcha_token:f,dfp_telemetry_id:d}),m.a(2,this._networkClient.retriableFetchSDK({url:"/otps/email/login_or_create",body:p,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},c,this)}))},send:function(s,u){return ie(r,void 0,void 0,F().m(function c(){var h,d,f,p;return F().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,this.executeRecaptcha();case 1:return h=m.v,d=Object.assign(Object.assign({},u),{email:s,captcha_token:h}),f=!!this._subscriptionService.getSession(),p=f?"/otps/email/send/secondary":"/otps/email/send/primary",m.a(2,this._networkClient.fetchSDK({url:p,body:d,method:"POST"}))}},c,this)}))}},this.authenticate=this._subscriptionService.withUpdateSession(function(o,s,u){return ie(r,void 0,void 0,F().m(function c(){var h,d,f,p,m;return F().w(function(g){for(;;)switch(g.n){case 0:return He("stytch.otps.authenticate").isString("Code",o).isNumber("session_duration_minutes",u.session_duration_minutes),g.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return h=g.v,d=h.dfp_telemetry_id,f=h.captcha_token,p=Object.assign({token:o,method_id:s,dfp_telemetry_id:d,c
27aptcha_token:f},u),g.n=2,this._networkClient.retriableFetchSDK({url:"/otps/authenticate",body:p,method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 2:return m=g.v,g.a(2,et(m))}},c,this)}))})}),jp=(function(){function t(e,n,r,a,i){var o=this;ot(this,t),this._networkClient=e,this._subscriptionService=n,this._pkceManager=r,this._dynamicConfig=a,this._config=i,this.google={start:this.startOAuthFlow(ye.Google)},this.apple={start:this.startOAuthFlow(ye.Apple)},this.microsoft={start:this.startOAuthFlow(ye.Microsoft)},this.github={start:this.startOAuthFlow(ye.Github)},this.gitlab={start:this.startOAuthFlow(ye.GitLab)},this.facebook={start:this.startOAuthFlow(ye.Facebook)},this.discord={start:this.startOAuthFlow(ye.Discord)},this.salesforce={start:this.startOAuthFlow(ye.Salesforce)},this.slack={start:this.startOAuthFlow(ye.Slack)},this.amazon={start:this.startOAuthFlow(ye.Amazon)},this.bitbucket={start:this.startOAuthFlow(ye.Bitbucket)},this.linkedin={start:this.startOAuthFlow(ye.LinkedIn)},this.coinbase={start:this.startOAuthFlow(ye.Coinbase)},this.twitch={start:this.startOAuthFlow(ye.Twitch)},this.twitter={start:this.startOAuthFlow(ye.Twitter)},this.tiktok={start:this.startOAuthFlow(ye.TikTok)},this.snapchat={start:this.startOAuthFlow(ye.Snapchat)},this.figma={start:this.startOAuthFlow(ye.Figma)},this.yahoo={start:this.startOAuthFlow(ye.Yahoo)},this.authenticate=this._subscriptionService.withUpdateSession(function(s,u){return ie(o,void 0,void 0,F().m(function c(){var h,d;return F().w(function(f){for(;;)switch(f.n){case 0:return He("stytch.oauth.authenticate").isString("Token",s).isNumber("session_duration_minutes",u.session_duration_minutes),f.n=1,this._pkceManager.getPKPair();case 1:return h=f.v,h||Ye.warn(`No code verifier found in local storage for OAuth flow.
28Consider using stytch.oauth.$provider.start() to add PKCE to your OAuth flows for added security.
29See https://stytch.com/docs/oauth#guides_pkce for more information.`),f.n=2,this._networkClient.fetchSDK({url:"/oauth/authenticate",method:"POST",body:Object.assign({token:s,code_verifier:h?.code_verifier},u)});case 2:return d=f.v,this._pkceManager.clearPKPair(),f.a(2,et(d))}},c,this)}))})}return it(t,[{key:"attach",value:function(n){return ie(this,void 0,void 0,F().m(function r(){return F().w(function(a){for(;;)switch(a.n){case 0:return He("stytch.oauth.attach").isString("Provider",n),a.n=1,this._networkClient.fetchSDK({url:"/oauth/attach",method:"POST",body:{provider:n}});case 1:return a.a(2,a.v)}},r,this)}))}},{key:"getBaseApiUrl",value:function(){return ie(this,void 0,void 0,F().m(function n(){var r,a;return F().w(function(i){for(;;)switch(i.n){case 0:return i.n=1,this._dynamicConfig;case 1:if(r=i.v,a=r.cnameDomain,!a){i.n=2;break}return i.a(2,"https://".concat(a));case 2:if(!ja(this._config.publicToken)){i.n=3;break}return i.a(2,this._config.testAPIURL);case 3:return i.a(2,this._config.liveAPIURL)}},n,this)}))}},{key:"startOAuthFlow",value:function(n){var r=this;return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.login_redirect_url,o=a.signup_redirect_url,s=a.custom_scopes,u=a.provider_params,c=a.oauth_attach_token;return ie(r,void 0,void 0,F().m(function h(){var d,f,p,m,g,v,_;return F().w(function(b){for(;;)switch(b.n){case 0:return b.n=1,this._dynamicConfig;case 1:return d=b.v,f=d.cnameDomain,p=d.pkceRequiredForOAuth,b.n=2,this.getBaseApiUrl();case 2:if(m=b.v,this._networkClient.logEvent({name:"start_oauth_flow",details:{provider_type:n,custom_scopes:s,cname_domain:f,pkce:p,provider_params:u}}),g=new URL("".concat(m,"/v1/public/oauth/").concat(n,"/start")),g.searchParams.set("public_token",this._config.publicToken),!p){b.n=4;break}return b.n=3,this._pkceManager.startPKCETransaction();case 3:v=b.v,g.searchParams.set("code_challenge",v.code_challenge),b.n=5;break;case 4:this._pkceManager.clearPKPair();case 5:if(s&&(He("startOAuthFlow").isStringArray("custom_scopes",s),g.searchParams.set("custom_scopes",s.join(" "))),u){He("startOAuthFlow").isOptionalObject("provider_params",u);for(_ in u)g.searchParams.set("provider_"+_,u[_])}i&&g.searchParams.set("login_redirect_url",i),o&&g.searchParams.set("signup_redirect_url",o),c&&g.searchParams.set("oauth_attach_token",c),window.location.href=g.toString();case 6:return b.a(2)}},h,this)}))}}}])}
29)(),Np=Promise.resolve({siweRequiredForCryptoWallets:!1}),Up=(function(){function t(e,n,r){var a=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return Promise.resolve(void 0)},o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Np;ot(this,t),this._networkClient=e,this._apiNetworkClient=n,this._subscriptionService=r,this.executeRecaptcha=i,this.dfpProtectedAuth=o,this._config=s,this.authenticate=this._subscriptionService.withUpdateSession(function(u){return ie(a,void 0,void 0,F().m(function c(){var h,d,f,p;return F().w(function(m){for(;;)switch(m.n){case 0:return He("stytch.cryptoWallets.authenticate").isString("signature",u.signature).isString("crypto_wallet_address",u.crypto_wallet_address).isString("crypto_wallet_type",u.crypto_wallet_type).isNumber("session_duration_minutes",u.session_duration_minutes),m.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return h=m.v,d=h.dfp_telemetry_id,f=h.captcha_token,m.n=2,this._apiNetworkClient.retriableFetchSDK({url:"/crypto_wallets/authenticate",method:"POST",body:{session_duration_minutes:u.session_duration_minutes,crypto_wallet_address:u.crypto_wallet_address,crypto_wallet_type:u.crypto_wallet_type,signature:u.signature,captcha_token:f,dfp_telemetry_id:d},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 2:return p=m.v,m.a(2,et(p))}},c,this)}))})}return it(t,[{key:"authenticateStart",value:function(n){var r;return ie(this,void 0,void 0,F().m(function a(){var i,o,s,u,c,h,d;return F().w(function(f){for(;;)switch(f.n){case 0:return He("stytch.cryptoWallets.authenticateStart").isString("crypto_wallet_address",n.crypto_wallet_address).isString("crypto_wallet_type",n.crypto_wallet_type),n.siwe_params&&He("stytch.cryptoWallets.authenticateStart").isOptionalString("uri",n.siwe_params.uri).isOptionalString("chain_id",n.siwe_params.chain_id).isOptionalString("issued_at",n.siwe_params.issued_at).isOptionalString("statement",n.siwe_params.statement).isOptionalString("not_before",n.siwe_params.not_before).isOptionalString("message_request_id",n.siwe_params.message_request_id).isOptionalStringArray("resources",n.siwe_params.resources),i=!!this._subscriptionService.getSession(),f.n=1,this.executeRecaptcha();case 1:return o=f.v,f.n=2,this._config;case 2:return s=f.v,u=s.siweRequiredForCryptoWallets,c={crypto_wallet_address:n.crypto_wallet_address,crypto_wallet_type:n.crypto_wallet_type},u&&n.crypto_wallet_type=="ethereum"&&(c.siwe_params=Object.assign(Object.assign({},n.siwe_params),{uri:((r=n.siwe_params)===null||r===void 0?void 0:r.uri)||window.location.origin})),h=i?"/crypto_wallets/authenticate/start/secondary":"/crypto_wallets/authenticate/start/primary",d=Object.assign(Object.assign({},c),{captcha_token:o}),f.a(2,this._apiNetworkClient.fetchSDK({url:h,method:"POST",body:d}))}},a,this)}))}}])})(),Hp=(function(){function t(e,n,r){var a=this;ot(this,t),this._networkClient=e,this._subscriptionService=n,this.dfpProtectedAuth=r,this.authenticate=this._subscriptionService.withUpdateSession(function(i){return ie(a,void 0,void 0,F().m(function o(){var s,u,c,h;return F().w(function(d){for(;;)switch(d.n){case 0:return He("stytch.totps.authenticate").isNumber("session_duration_minutes",i.session_duration_minutes).isString("totp_code",i.totp_code),d.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return s=d.v,u=s.dfp_telemetry_id,c=s.captcha_token,d.n=2,this._networkClient.retriableFetchSDK({url:"/totps/authenticate",method:"POST",body:{session_duration_minutes:i.session_duration_minutes,totp_code:i.totp_code,captcha_token:c,dfp_telemetry_id:u},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 2:return h=d.v,d.a(2,et(h))}},o,this)}))}),this.recover=this._subscriptionService.withUpdateSession(function(i){return ie(a,void 0,void 0,F().m(function o(){var s,u,c,h;return F().w(function(d){for(;;)switch(d.n){case 0:return He("stytch.totps.recover").isNumber("session_duration_minutes",i.session_duration_minutes).isString("recovery_code",i.recovery_code),d.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return s=d.v,u=s.dfp_telemetry_id,c=s.captcha_token,d.n=2,this._networkClient.retriableFetchSDK({url:"/totps/recover",method:"POST",body:{session_duration_minutes:i.session_duration_minutes,recovery_code:i.recovery_code,captcha_token:c,dfp_telemetry_id:u},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 2:return h=d.v,d.a(2,et(h))}},o,this)}))})}return it(t,[{key:"create",value:function(n){return ie(this,void 0,void 0,F().m(function r(){var a;return F().w(function(i){for(;;)switch(i.n){case 0:return He("stytch.totps.create").isNumber("expiration_minutes",n.expiration_minutes),i.n=1,this._networkClient.fetchSDK({url:"/totps",method:"POST",body:{expiration_minutes:n.expiration_minutes}});case 1:return a=i.v,this._subscriptionService.updateUser(a.__user),i.a(2,et(a))}},r,this)}))}},{key:"recoveryCodes",value:function(){return ie(this,void 0,void 0,F().m(function n(){return F().w(function(r){for(;;)if(r.n===0)return r.a(2,this._networkClient.fetchSDK({url:"/totps/recovery_codes",method:"POST"}))},n,this)}))}}])})();function Yc(t){for(var e="==".slice(0,(4-t.length%4)%4),n=t.replace(/-/g,"+").replace(/_/g,"/")+e,r=atob(n),a=new ArrayBuffer(r.length),i=new Uint8Array(a),o=0;o<r.length;o++)i[o]=r.charCodeAt(o);return a}
29function Jc(t){var e=new Uint8Array(t),n="",r=zc(e),a;try{for(r.s();!(a=r.n()).done;){var i=a.value;n+=String.fromCharCode(i)}}catch(u){r.e(u)}finally{r.f()}var o=btoa(n),s=o.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return s}var je="copy",It="convert";function Xn(t,e,n){if(e===je)return n;if(e===It)return t(n);if(e instanceof Array)return n.map(function(h){return Xn(t,e[0],h)});if(e instanceof Object){for(var r={},a=0,i=Object.entries(e);a<i.length;a++){var o=Wc(i[a],2),s=o[0],u=o[1];if(u.derive){var c=u.derive(n);c!==void 0&&(n[s]=c)}if(!(s in n)){if(u.required)throw new Error("Missing key: ".concat(s));continue}if(n[s]==null){r[s]=null;continue}r[s]=Xn(t,u.schema,n[s])}return r}}function no(t,e){return{required:!0,schema:t,derive:e}}function Ze(t){return{required:!0,schema:t}}function nt(t){return{required:!1,schema:t}}var Xc={type:Ze(je),id:Ze(It),transports:nt(je)},Qc={appid:nt(je),appidExclude:nt(je),credProps:nt(je)},e1={appid:nt(je),appidExclude:nt(je),credProps:nt(je)},zp={publicKey:Ze({rp:Ze(je),user:Ze({id:Ze(It),name:Ze(je),displayName:Ze(je)}),challenge:Ze(It),pubKeyCredParams:Ze(je),timeout:nt(je),excludeCredentials:nt([Xc]),authenticatorSelection:nt(je),attestation:nt(je),extensions:nt(Qc)}),signal:nt(je)},Wp={type:Ze(je),id:Ze(je),rawId:Ze(It),authenticatorAttachment:nt(je),response:Ze({clientDataJSON:Ze(It),attestationObject:Ze(It),transports:no(je,function(t){var e;return((e=t.getTransports)==null?void 0:e.call(t))||[]})}),clientExtensionResults:no(e1,function(t){return t.getClientExtensionResults()})},Gp={mediation:nt(je),publicKey:Ze({challenge:Ze(It),timeout:nt(je),rpId:nt(je),allowCredentials:nt([Xc]),userVerification:nt(je),extensions:nt(Qc)}),signal:nt(je)},Vp={type:Ze(je),id:Ze(je),rawId:Ze(It),authenticatorAttachment:nt(je),response:Ze({clientDataJSON:Ze(It),authenticatorData:Ze(It),signature:Ze(It),userHandle:Ze(It)}),clientExtensionResults:no(e1,function(t){return t.getClientExtensionResults()})};function Kp(t){return Xn(Yc,zp,t)}function Zp(t){return Xn(Jc,Wp,t)}function qp(t){return ie(this,void 0,void 0,F().m(function e(){var n;return F().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,navigator.credentials.create(Kp(t));case 1:return n=r.v,r.a(2,Zp(n))}},e)}))}function Yp(t){return Xn(Yc,Gp,t)}function Jp(t){return Xn(Jc,Vp,t)}function Xp(t){return ie(this,void 0,void 0,F().m(function e(){var n;return F().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,navigator.credentials.get(Yp(t));case 1:return n=r.v,r.a(2,Jp(n))}},e)}))}var Qp=(function(){function t(e,n,r){var a=this;ot(this,t),this._networkClient=e,this._subscriptionService=n,this.dfpProtectedAuth=r,this.register=this._subscriptionService.withUpdateSession(function(i){return ie(a,void 0,void 0,F().m(function o(){var s,u,c,h,d,f,p;return F().w(function(m){for(;;)switch(m.n){case 0:return He("stytch.webauthn.register").isOptionalString("domain",i?.domain).isOptionalString("authenticator_type",i?.authenticator_type).isOptionalBoolean("is_passkey",i?.is_passkey).isOptionalNumber("session_duration_minutes",i?.session_duration_minutes).isOptionalString("override_id",i?.override_id).isOptionalString("override_name",i?.override_name).isOptionalString("override_display_name",i?.override_display_name).isOptionalBoolean("use_base64_url_encoding",i?.use_base64_url_encoding),m.n=1,this._networkClient.fetchSDK({url:"/webauthn/register/start",method:"POST",body:{domain:(s=i?.domain)!==null&&s!==void 0?s:window.location.hostname,authenticator_type:(u=i?.authenticator_type)!==null&&u!==void 0?u:void 0,return_passkey_credential_options:i?.is_passkey,override_id:i?.override_id,override_name:i?.override_name,override_display_name:i?.override_display_name,user_agent:navigator.userAgent,use_base64_url_encoding:i?.use_base64_url_encoding}});case 1:return c=m.v,h=c.public_key_credential_creation_options,d=JSON.parse(h),m.n=2,qp({publicKey:d});case 2:return f=m.v,m.n=3,this._networkClient.fetchSDK({url:"/webauthn/register",method:"POST",body:{public_key_credential:JSON.stringify(f),session_duration_minutes:i?.session_duration_minutes}});case 3:return p=m.v,m.a(2,et(p))}},o,this)}))}),this.authenticate=this._subscriptionService.withUpdateSession(function(i){return ie(a,void 0,void 0,F().m(function o(){var s,u,c,h,d,f,p,m,g,v,_,b,C,A;return F().w(function(E){for(;;)switch(E.n){case 0:return He("stytch.webauthn.authenticate").isOptionalString("domain",i.domain).isNumber("session_duration_minutes",i.session_duration_minutes).isOptionalBoolean("is_passkey",i.is_passkey).isOptionalObject("signal",i.signal),E.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:if(c=E.v,h=c.dfp_telemetry_id,d=c.captcha_token,!i.conditional_mediation){E.n=4;break}return E.n=2,this.browserSupportsAutofill();case 2:if(E.v){E.n=3;break}return Ye.error("Browser does not support WebAuthn autofill"),E.a(2,null);case 3:if(this.checkEligibleInputs()){E.n=4;break}return E.a(2,null);case 4:return f=!!this._subscriptionService.getSession(),p=f?"/webauthn/authenticate/start/secondary":"/webauthn/authenticate/start/primary",E.n=5,this._networkClient.fetchSDK({url:p,method:"POST",body:{domain:(s=i.domain)!==null&&s!==void 0?s:window.location.hostname,return_passkey_credential_options:i?.is_passkey}});case 5:return m=E.v,g=m.public_key_credential_request_options,v=new AbortController,_={publicKey:JSON.parse(g),signal:(u=i.signal)!==null&&u!==void 0?u:v.signal},b=Object.assign(Object.assign({},_),{mediation:"conditional"}),E.n=6,Xp(i.conditional_mediation?b:_);case 6:return C=E.v,E.n=7,this._networkClient.retriableFetchSDK({url:"/webauthn/authenticate",method:"POST",body:{public_key_credential:JSON.stringify(C),session_duration_minutes:i.session_duration_minutes,dfp_telemetry_id:h,captcha_token:d},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 7:return A=E.v,E.a(2,et(A))}},o,this)}))}),this.checkEligibleInputs=function(){var i=document.querySelectorAll("input[autocomplete*='webauthn']");return i.length<1?(Ye.error('No <input> with `"webauthn"` in its `autocomplete` attribute was detected'),!1):!0}}return it(t,[{key:"update",value:function(n){return ie(this,void 0,void 0,F().m(function r(){var a;return F().w(function(i){for(;;)switch(i.n){case 0:return He("stytch.webauthn.update").isString("webauthn_registration_id",n.webauthn_registration_id).isString("name",n.name),a="/webauthn/update/"+n.webauthn_registration_id,i.n=1,this._networkClient.fetchSDK({url:a,method:"PUT",body:{name:n.name}});case 1:return i.a(2,i.v)}},r,this)}))}},{key:"browserSupportsAutofill",value:function(){var n,r,a;return ie(this,void 0,void 0,F().m(function i(){var o,s,u;return F().w(function(c){for(;;)switch(c.n){case 0:return c.n=1,(r=(n=window.PublicKeyCredential)===null||n===void 0?void 0:n.isConditionalMediationAvailable)===null||r===void 0?void 0:r.call(n);case 1:if(s=a=c.v,o=s!==null,!o){c.n=2;break}o=a!==void 0;case 2:if(!o){c.n=3;break}u=a,c.n=4;break;case 3:u=!1;case 4:return c.a(2,u)}},i)}))}}])})(),e2=Promise.resolve({pkceRequiredForPasswordResets:!1}),t2=(function(){function t(e,n,r){var a=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e2,o=arguments.length>4?arguments[4]:void 0;ot(this,t),this._networkClient=e,this._subscriptionService=n,this._pkceManager=r,this._config=i,this.dfpProtectedAuth=o,this.create=this._subscriptionService.withUpdateSession(function(s){return ie(a,void 0,void 0,F().m(function u(){var c,h,d,f;return F().w(function(p){for(;;)switch(p.n){case 0:return He("stytch.passwords.create").isString("password",s.password).isString("email",s.email).isNumber("session_duration_minutes",s.session_duration_minutes),p.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return c=p.v,h=c.dfp_telemetry_id,d=c.captcha_token,p.n=2,this._networkClient.retriableFetchSDK({url:"/passwords",method:"POST",body:{email:s.email,password:s.password,session_duration_minutes:s.session_duration_minutes,c
29aptcha_token:d,dfp_telemetry_id:h},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 2:return f=p.v,p.a(2,et(f))}},u,this)}))}),this.authenticate=this._subscriptionService.withUpdateSession(function(s){return ie(a,void 0,void 0,F().m(function u(){var c,h,d,f;return F().w(function(p){for(;;)switch(p.n){case 0:return He("stytch.passwords.authenticate").isString("password",s.password).isString("email",s.email).isNumber("session_duration_minutes",s.session_duration_minutes),p.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return c=p.v,h=c.dfp_telemetry_id,d=c.captcha_token,p.n=2,this._networkClient.retriableFetchSDK({url:"/passwords/authenticate",method:"POST",body:{email:s.email,password:s.password,session_duration_minutes:s.session_duration_minutes,captcha_token:d,dfp_telemetry_id:h},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 2:return f=p.v,p.a(2,et(f))}},u,this)}))}),this.resetByEmail=this._subscriptionService.withUpdateSession(function(s){return ie(a,void 0,void 0,F().m(function u(){var c,h,d,f,p,m;return F().w(function(g){for(;;)switch(g.n){case 0:return He("stytch.passwords.resetByEmail").isString("token",s.token).isString("password",s.password).isNumber("session_duration_minutes",s.session_duration_minutes),g.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return c=g.v,h=c.dfp_telemetry_id,d=c.captcha_token,g.n=2,this._pkceManager.getPKPair();case 2:return f=g.v,p=f?.code_verifier,g.n=3,this._networkClient.retriableFetchSDK({url:"/passwords/email/reset",method:"POST",body:{token:s.token,password:s.password,session_duration_minutes:s.session_duration_minutes,captcha_token:d,code_verifier:p,dfp_telemetry_id:h},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 3:return m=g.v,this._pkceManager.clearPKPair(),g.a(2,et(m))}},u,this)}))}),this.resetByExistingPassword=this._subscriptionService.withUpdateSession(function(s){return ie(a,void 0,void 0,F().m(function u(){var c,h,d,f;return F().w(function(p){for(;;)switch(p.n){case 0:return He("stytch.passwords.resetByExistingPassword").isString("email",s.email).isString("existing_password",s.existing_password).isString("new_password",s.new_password).isNumber("session_duration_minutes",s.session_duration_minutes),p.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return c=p.v,h=c.dfp_telemetry_id,d=c.captcha_token,p.n=2,this._networkClient.retriableFetchSDK({url:"/passwords/existing_password/reset",method:"POST",body:{email:s.email,existing_password:s.existing_password,new_password:s.new_password,session_duration_minutes:s.session_duration_minutes,dfp_telemetry_id:h,captcha_token:d},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP});case 2:return f=p.v,p.a(2,et(f))}},u,this)}))}),this.resetBySession=this._subscriptionService.withUpdateSession(function(s){return ie(a,void 0,void 0,F().m(function u(){var c,h,d;return F().w(function(f){for(;;)switch(f.n){case 0:return He("stytch.passwords.resetBySession").isString("password",s.password),f.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return c=f.v,h=c.dfp_telemetry_id,d=c.captcha_token,f.a(2,this._networkClient.retriableFetchSDK({url:"/passwords/session/reset",method:"POST",body:{password:s.password,session_duration_minutes:s.session_duration_minutes,dfp_telemetry_id:h,captcha_token:d},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},u,this)}))})}return it(t,[{key:"getCodeChallenge",value:function(){return ie(this,void 0,void 0,F().m(function n(){var r,a,i;return F().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,this._config;case 1:if(r=o.v,a=r.pkceRequiredForPasswordResets,a){o.n=2;break}return o.a(2,void 0);case 2:return o.n=3,this._pkceManager.getPKPair();case 3:if(i=o.v,!i){o.n=4;break}return o.a(2,i.code_challenge);case 4:return o.n=5,this._pkceManager.startPKCETransaction();case 5:return i=o.v,o.a(2,i.code_challenge)}},n,this)}))}},{key:"resetByEmailStart",value:function(n){return ie(this,void 0,void 0,F().m(function r(){var a,i,o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return He("stytch.passwords.resetByEmailStart").isString("email",n.email).isOptionalString("login_redirect_url",n.login_redirect_url).isOptionalString("reset_password_redirect_url",n.reset_password_redirect_url).isOptionalString("reset_password_template_id",n.reset_password_template_id).isOptionalNumber("reset_password_expiration_minutes",n.reset_password_expiration_minutes).isOptionalString("locale",n.locale),u.n=1,this.getCodeChallenge(
29);case 1:return a=u.v,u.n=2,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 2:return i=u.v,o=i.dfp_telemetry_id,s=i.captcha_token,u.a(2,this._networkClient.retriableFetchSDK({url:"/passwords/email/reset/start",method:"POST",body:{email:n.email,login_redirect_url:n.login_redirect_url,reset_password_redirect_url:n.reset_password_redirect_url,reset_password_expiration_minutes:n.reset_password_expiration_minutes,reset_password_template_id:n.reset_password_template_id,locale:n.locale,code_challenge:a,captcha_token:s,dfp_telemetry_id:o},retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},r,this)}))}},{key:"strengthCheck",value:function(n){return ie(this,void 0,void 0,F().m(function r(){return F().w(function(a){for(;;)if(a.n===0)return He("stytch.passwords.strengthCheck").isOptionalString("email",n.email).isString("password",n.password),a.a(2,this._networkClient.fetchSDK({url:"/passwords/strength_check",method:"POST",body:{email:n.email,password:n.password}}))},r,this)}))}}])})(),n2=it(function t(e,n,r){var a=this;ot(this,t),this._networkClient=e,this._subscriptionService=n,this.dfpProtectedAuth=r,this.authenticate=this._subscriptionService.withUpdateSession(function(i){return ie(a,void 0,void 0,F().m(function o(){var s,u,c;return F().w(function(h){for(;;)switch(h.n){case 0:return He("stytch.impersonation.authenticate").isString("impersonation_token",i.impersonation_token),h.n=1,this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha();case 1:return s=h.v,u=s.dfp_telemetry_id,c=s.captcha_token,h.a(2,this._networkClient.retriableFetchSDK({url:"/impersonation/authenticate",body:Object.assign(Object.assign({},i),{dfp_telemetry_id:u,captcha_token:c}),method:"POST",retryCallback:this.dfpProtectedAuth.retryWithCaptchaAndDFP}))}},o,this)}))})}),r2="*",Mi=(function(){function t(e,n){var r=this;ot(this,t),this.roles=e,this.resources=n,this.rolesByID={},e.forEach(function(a){return r.rolesByID[a.role_id]=a})}return it(t,[{key:"mergeWithCustomRoles",value:function(n){var r=[].concat(Er(this.roles),Er(n));return new t(r,this.resources)}},{key:"callerIsAuthorized",value:function(n,r,a){var i=this;return!!n.map(function(o){return i.rolesByID[o]}).filter(function(o){return o}).flatMap(function(o){return o.permissions}).filter(function(o){return o.resource_id===r}).find(function(o){return o.actions.includes(a)||o.actions.includes(r2)})}},{key:"allPermissionsForCaller",value:function(n){var r=this,a=Object.create(null);return this.resources.forEach(function(i){a[i.resource_id]={},i.actions.forEach(function(o){a[i.resource_id][o]=r.callerIsAuthorized(n,i.resource_id,o)})}),a}}],[{key:"fromJSON",value:function(n){return new t(n.roles,n.resources)}}])})(),a2=(function(){function t(e,n,r){var a=this;ot(this,t),this._subscriptionService=r,this.isAuthorizedSync=function(i,o){var s;return!!(!((s=a.cachedPolicy)===null||s===void 0)&&s.callerIsAuthorized(a.roleIds(),i,o))},this.isAuthorized=function(i,o){return a.policyPromise.then(function(s){return s.callerIsAuthorized(a.roleIds(),i,o)})},this.cachedPolicy=e.rbacPolicy?Mi.fromJSON(e.rbacPolicy):null,this.policyPromise=n.then(function(i){return i.rbacPolicy?(a.cachedPolicy=Mi.fromJSON(i.rbacPolicy),a.cachedPolicy):(Ye.error("Unable to retrieve RBAC policy from servers. Assuming caller has no permissions."),new Mi([],[]))})}return it(t,[{key:"allPermissions",value:function(){var n=this;return this.policyPromise.then(function(r){return r.allPermissionsForCaller(n.roleIds())})}},{key:"roleIds",value:function(){var n,r=this._subscriptionService.getUser();return r?(n=r.roles)!==null&&n!==void 0?n:[]:[]}}])})(),i2=it(function t(e){var n=this;ot(this,t),this._networkClient=e,this.oauthAuthorizeStart=function(r){return ie(n,void 0,void 0,F().m(function a(){return F().w(function(i){for(;;)if(i.n===0)return i.a(2,this._networkClient.fetchSDK({url:"/idp/oauth/authorize/start",method:"POST",body:r}))},a,this)}))},this.oauthAuthorizeSubmit=function(r){return ie(n,void 0,void 0,F().m(function a(){return F().w(function(i){for(;;)if(i.n===0)return i.a(2,this._networkClient.fetchSDK({url:"/idp/oauth/authorize/submit",method:"POST",body:r}))},a,this)}))},this.oauthLogoutStart=function(r){return ie(n,void 0,void 0,F().m(function a(){return F().w(function(i){for(;;)if(i.n===0)return i.a(2,this._networkClient.fetchSDK({url:"/oauth/logout/start",method:"POST",body:r}))},a,this)}))}});Promise.resolve({pkceRequiredForEmailMagicLinks:!1});Promise.resolve({pkceRequiredForPasswordResets:!1});var o2=(function(){function t(e){ot(this,t),this.iframeURL=e,this.createIframe()}return it(t,[{key:"createIframe",value:function(){var n=document.querySelector('[src~="'.concat(this.iframeURL,'"]'));if(n?Ye.warn(Vc):(n=document.createElement("iframe"),n.src=this.iframeURL,n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.border="0",document.body.appendChild(n)),n.dataset.loaded==="true"){this.frame=Promise.resolve(n);return}this.frame=new Promise(function(r){n.addEventListener("load",function(){n.dataset.loaded="true",r(n)},{once:!0})})}},{key:"call",value:function(n,r){return ie(this,void 0,void 0,F().m(function a(){var i=this,o,s;return F().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this.frame;case 1:return o=u.v,s=new MessageChannel,u.a(2,new Promise(function(c,h){var d;s.port1.onmessage=function(p){var m=p.data;s.port1.close(),m.success?c(m.payload):h(Lp.unmarshall(m.error))};var f={method:n,args:r};(d=o.contentWindow)===null||d===void 0||d.postMessage(f,i.iframeURL,[s.port2])}))}},a,this)}))}}])})(),s2=(function(){function t(e,n){ot(this,t),this._networkClient=e,this.dfpProtectedAuth=n}return it(t,[{key:"searchUser",value:function(n){var r=this;return this.dfpProtectedAuth.getDFPTelemetryIDAndCaptcha().then(function(a){var i=a.dfp_telemetry_id,o=a.captcha_token;return r._networkClient.fetchSDK({url:"/users/search",method:"POST",body:{email:n,dfp_telemetry_id:i,captcha_token:o}})})}},{key:"searchMember",value:function(n,r){return this._networkClient.fetchSDK({url:"/b2b/organizations/members/search",method:"POST",body:{email_address:n,organization_id:r}})}}])}
29)(),l2=function(e){return!!e?.session},u2=(function(){function t(){ot(this,t),this.hasWarned=!1,this.registry=new Map}return it(t,[{key:"register",value:function(n,r){var a=this.registry.get(n);a&&a!==r&&(this.hasWarned||(Ye.warn(Vc),this.hasWarned=!0),a.cancelBackgroundRefresh()),this.registry.set(n,r)}},{key:"unregister",value:function(n,r){var a=this.registry.get(n);a&&a===r&&this.registry.delete(n)}}])})(),jo=(function(){function t(e,n,r,a){var i=this;ot(this,t),this._subscriptionService=e,this._headlessSessionClient=n,this._publicToken=r,this._options=a,this.timeout=null,this._onDataChange=function(o){o!=null&&o.sessionDurationMinutes&&(i.lastAuthenticationSessionDuration=o.sessionDurationMinutes),l2(o)?i.scheduleBackgroundRefresh():i.cancelBackgroundRefresh()},this._reauthenticateWithBackoff=function(){return ie(i,void 0,void 0,F().m(function o(){var s,u,c;return F().w(function(h){for(;;)switch(h.p=h.n){case 0:s=0;case 1:return h.p=2,u={session_duration_minutes:this._options.keepSessionAlive?this.lastAuthenticationSessionDuration:void 0},h.n=3,this._headlessSessionClient.authenticate(u);case 3:return h.a(2,h.v);case 4:if(h.p=4,c=h.v,!t.isUnrecoverableError(c)){h.n=5;break}return h.a(2,Promise.reject(c));case 5:return s++,h.n=6,new Promise(function(d){return setTimeout(d,t.timeoutForAttempt(s))});case 6:h.n=1;break;case 7:return h.a(2)}},o,this,[[2,4]])}))},this._subscriptionService.subscribeToState(this._onDataChange)}return it(t,[{key:"register",value:function(){t.registry.register(this._publicToken,this)}},{key:"unregister",value:function(){t.registry.unregister(this._publicToken,this)}},{key:"performBackgroundRefresh",value:function(){var n=this;this._reauthenticateWithBackoff().then(function(){n.scheduleBackgroun
29dRefresh()}).catch(function(r){Ye.warn("Session background refresh failed. Signalling to app that user is logged out.",{error:r}),n._subscriptionService.destroySession()})}},{key:"scheduleBackgroundRefresh",value:function(){var n=this;this.cancelBackgroundRefresh(),this.register(),this.timeout=setTimeout(function(){n.performBackgroundRefresh()},t.REFRESH_INTERVAL_MS)}},{key:"cancelBackgroundRefresh",value:function(){this.timeout!==null&&(this.unregister(),clearTimeout(this.timeout),this.timeout=null)}}],[{key:"timeoutForAttempt",value:function(n){n=Math.min(n,7);var r=Math.floor(Math.random()*350)-175,a=2e3*Math.pow(2,n);return r+a}},{key:"isUnrecoverableError",value:function(n){return Ji.includes(n.error_type)}}])})();jo.REFRESH_INTERVAL_MS=1e3*60*3;jo.registry=new u2;var c2=it(function t(e,n){var r=this;ot(this,t),this._subscriptionService=e,this.emptyState=n,this.onStateChange=function(a){return r._subscriptionService.subscribeToState(function(i){a(i??r.emptyState)})}}),d2="B2B",Du="bootstrap",Bi=function(){return{displayWatermark:!1,projectName:null,cnameDomain:null,emailDomains:["stytch.com"],captchaSettings:{enabled:!1},pkceRequiredForEmailMagicLinks:!1,pkceRequiredForPasswordResets:!1,pkceRequiredForOAuth:!1,pkceRequiredForSso:!1,slugPattern:null,createOrganizationEnabled:!1,passwordConfig:null,runDFPProtectedAuth:!1,rbacPolicy:null,siweRequiredForCryptoWallets:!1,vertical:null}},h2=(function(){function t(e,n,r){var a=this;st(this,t),this._publicToken=e,this._networkClient=n,this._dataLayer=r,this._bootstrapDataPromise=this._networkClient.fetchSDK({url:"/projects/bootstrap/".concat(this._publicToken),method:"GET"}).then(t.mapBootstrapData).then(function(i){return a._dataLayer.setItem(Du,JSON.stringify(i)),i}).catch(function(i){return Ye.error(i),Bi()})}return lt(t,[{key:"getSync",value:function(){var n=this._dataLayer.getItem(Du);if(n===null)return Bi();try{return JSON.parse(n)}catch{return Bi()}}},{key:"getAsync",value:function(){return this._bootstrapDataPromise}}],[{key:"mapBootstrapData",value:function(n){var r,a,i=n.password_config!==null?{ludsComplexity:n.password_config.luds_complexity,ludsMinimumCount:n.password_config.luds_minimum_count}:null;return{projectName:n.project_name,displayWatermark:!n.disable_sdk_watermark,captchaSettings:n.captcha_settings,cnameDomain:n.cname_domain,emailDomains:n.email_domains,pkceRequiredForEmailMagicLinks:n.pkce_required_for_email_magic_links,pkceRequiredForPasswordResets:n.pkce_required_for_password_resets,pkceRequiredForOAuth:n.pkce_required_for_oauth,pkceRequiredForSso:n.pkce_required_for_sso,slugPattern:n.slug_pattern,createOrganizationEnabled:n.create_organization_enabled,passwordConfig:i,runDFPProtectedAuth:(r=n.dfp_protected_auth_enabled)!==null&&r!==void 0?r:!1,dfpProtectedAuthMode:n.dfp_protected_auth_mode,rbacPolicy:(a=n.rbac_policy)!==null&&a!==void 0?a:null,siweRequiredForCryptoWallets:n.siwe_required_for_crypto_wallets,vertical:n.vertical}}}])})();function or(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function be(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(h){try{c(r.next(h))}catch(d){o(d)}}function u(h){try{c(r.throw(h))}catch(d){o(d)}}function c(h){h.done?i(h.value):a(h.value).then(s,u)}c((r=r.apply(t,e||[])).next())})}var f2=function(e){return $o("https://www.google.com/recaptcha/enterprise.js?render=".concat(e),function(){return window.grecaptcha.enterprise})},p2=lt(function t(e){var n=this;st(this,t),this.bootstrapPromise=e,this.executeRecaptcha=function(){return be(n,void 0,void 0,z().m(function r(){var a,i,o,s;return z().w(function(u){for(;;)switch(u.n){case 0:return u.n=1,this.state;case 1:if(a=u.v,i=a.captchaClient,o=a.configured,s=a.siteKey,o){u.n=2;break}return u.a(2,void 0);case 2:return u.n=3,new Promise(function(c){return i.ready(c)});case 3:return u.a(2,i.execute(s,{action:"LOGIN"}))}},r,this)}))},this.state=e.then(function(r){return be(n,void 0,void 0,z().m(function a(){var i,o;return z().w(function(s){for(;;)switch(s.n){case 0:if(r.captchaSettings.enabled){s.n=1;break}return s.a(2,{configured:!1});case 1:return s.n=2,f2(r.captchaSettings.siteKey);case 2:return i=s.v,o=r.captchaSettings.siteKey,s.a(2,{configured:!0,captchaClient:i,siteKey:o})}},a)}))})}),m2=(function(){function t(e){var n=this;st(this,t),this.iframeURL=e,this.oneTapStart=function(r){return n.call("oneTapStart",r)},this.oneTapSubmit=function(r){return n.call("oneTapSubmit",r)},this.parsedPhoneNumber=function(r){return n.call("parsedPhoneNumber",r)}}return lt(t,[{key:"frameClient",get:function(){var n;return this._frameClient=(n=this._frameClient)!==null&&n!==void 0?n:new o2(this.iframeURL),this._frameClient}},{key:"call",value:function(n,r){return this.frameClient.call(n,[r])}}])})(),v2=(function(t){function e(n,r,a,i,o,s){var u;return st(this,e),u=hn(this,e,[n,r,a,i,o]),u._oneTap=s,u.startOneTap=function(c){return be(u,void 0,void 0,z().m(function h(){var d,f,p;return z().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,this._oneTap.createOneTapClient();case 1:if(d=m.v,d.success){m.n=2;break}throw new Error("One Tap could not load: ".concat(d.reason));case 2:return f=d.client,p=this._oneTap.createOnSuccessHandler({signupRedirectUrl:c.signup_redirect_url,loginRedirectUrl:c.login_redirect_url,onSuccess:this._oneTap.redirectOnSuccess}),m.a(2,f.render({style:{position:xt.floating},onOneTapCancelled:c.onOneTapCancelled,callback:p,cancelOnTapOutside:c.cancel_on_tap_outside}))}},h,this)}))},u.googleOneTap={start:u.startOneTap},u}return fn(e,t),lt(e)})(jp),g2="5.45.1",y2=(function(){function t(e,n,r,a,i){st(this,t),this._publicToken=e,this._subscriptionDataLayer=n,this.additionalTelemetryDataFn=i,this.updateSessionToken=function(){return null},this.baseURL=r,ja(e)&&(this.baseURL=a),this.eventLogger=new Rp({maxBatchSize:Ip,intervalDurationMs:Dp,logEventURL:this.buildSDKUrl("/events")})}return lt(t,[{key:"logEvent",value:function(n){var r=n.name,a=n.details,i=n.error,o=i===void 0?{}:i;this.eventLogger.logEvent(this.createTelemetryBlob(),{public_token:this._publicToken,event_name:r,details:a,error_code:o.error_code,error_description:o.error_description,http_status_code:o.http_status_code})}},{key:"createTelemetryBlob",value:function(){return Object.assign(Object.assign({event_id:Sp(),app_session_id:Op(),persistent_id:Pp(),client_sent_at:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone},this.additionalTelemetryDataFn()),{app:{identifier:window.location.hostname},sdk:{identifier:"Stytch.js Javascript SDK",version:g2}})}},{key:"fetchSDK",value:function(n){var r=n.url,a=n.body,i=n.method;return be(this,void 0,void 0,z().m(function o(){var s,u,c,h;return z().w(function(d){for(;;)if(d.n===0)return s=this._subscriptionDataLayer.readSessionCookie().session_token,u="Basic "+window.btoa(this._publicToken+":"+(s||this._publicToken)),c=window.btoa(JSON.stringify(this.createTelemetryBlob())),h=window.location.origin,d.a(2,to({basicAuthHeader:u,body:a,finalURL:this.buildSDKUrl(r),method:i,xSDKClientHeader:c,xSDKParentHostHeader:h}))},o,this)}))}},{key:"submitFormSDK",value:function(n){var r=n.url,a=n.body,i=n.method;return be(this,void 0,void 0,z().m(function o(){var s,u,c,h;return z().w(function(d){for(;;)if(d.n===0)return s=this._subscriptionDataLayer.readSessionCookie().session_token,u="Basic "+window.btoa(this._publicToken+":"+(s||this._publicToken)),c=window.btoa(JSON.stringify(this.createTelemetryBlob())),h=window.location.origin,d.a(2,sp({basicAuthHeader:u,body:a,finalURL:this.buildSDKUrl(r),method:i,xSDKClientHeader:c,xSDKParentHostHeader:h}))},o,this)}))}}
29,{key:"retriableFetchSDK",value:function(n){var r=n.url,a=n.body,i=n.method,o=n.retryCallback;return be(this,void 0,void 0,z().m(function s(){var u,c,h,d;return z().w(function(f){for(;;)if(f.n===0)return u=this._subscriptionDataLayer.readSessionCookie().session_token,c="Basic "+window.btoa(this._publicToken+":"+(u||this._publicToken)),h=window.btoa(JSON.stringify(this.createTelemetryBlob())),d=window.location.origin,f.a(2,op({basicAuthHeader:c,body:a,finalURL:this.buildSDKUrl(r),method:i,xSDKClientHeader:h,xSDKParentHostHeader:d,retryCallback:o}))},s,this)}))}},{key:"buildSDKUrl",value:function(n){return"".concat(this.baseURL,"/sdk/v1").concat(n)}}])})(),t1=typeof window<"u"&&"IdentityCredential"in window,No=function(e){return e===xt.forceLegacyEmbedded?"force":e===xt.embeddedOnly||e===xt.embedded||e===xt.floatingOrEmbedded},n1=function(e){var n=No(e);return n==="force"||n&&!t1},_2=function(e){return e!==xt.embeddedOnly&&!n1(e)},b2=function(e){var n=No(e);return n==="force"||n&&!t1?"embedded":e!==xt.embeddedOnly?"floating":!1},w2=(function(){function t(e,n){st(this,t),this._googleClient=e,this._clientId=n}return lt(t,[{key:"cancel",value:function(){this._googleClient.cancel()}},{key:"render",value:function(n){var r=n.callback,a=n.onOneTapCancelled,i=n.style,o=n.cancelOnTapOutside,s=o===void 0?!0:o;return be(this,void 0,void 0,z().m(function u(){var c=this,h,d,f;return z().w(function(p){for(;;)if(p.n===0)return h=No(i.position),d=n1(i.position),f={client_id:this._clientId,callback:r,auto_select:!1,context:"use",itp_support:!0,use_fedcm_for_prompt:h!=="force",cancel_on_tap_outside:s},d&&(f.prompt_parent_id="google-parent-prompt",f.cancel_on_tap_outside=!1),this._googleClient.initialize(f),p.a(2,new Promise(function(m){c._googleClient.prompt(function(g){var v,_,b,C,A;if(g.isSkippedMoment()){var E=(_=(v=g.getSkippedReason)===null||v===void 0?void 0:v.call(g))!==null&&_!==void 0?_:"unknown_reason";return E==="user_cancel"&&a?.(),m({success:!1,reason:E})}if(!g.isNotDisplayed&&d||!((b=g.isNotDisplayed)===null||b===void 0)&&b.call(g))return m({success:!1,reason:(A=(C=g.getNotDisplayedReason)===null||C===void 0?void 0:C.call(g))!==null&&A!==void 0?A:"unknown_reason"});if(!g.isDismissedMoment())return c.styleFrame(d),m({success:!0})})}))},u,this)}))}},{key:"styleFrame",value:function(n){n&&Array.from(document.getElementsByTagName("iframe")).forEac
29h(function(r){r.src.includes(Gc)&&(r.style.width="100%")})}}])})(),C2=function(){return $o(ip,function(){return window.google.accounts.id})},r1=(function(){function t(e,n){var r=this;st(this,t),this._publicToken=e,this.clientsideServices=n,this.createOnSuccessHandler=function(a){var i=a.loginRedirectUrl,o=a.signupRedirectUrl,s=a.onSuccess;return function(u){return be(r,void 0,void 0,z().m(function c(){var h,d,f;return z().w(function(p){for(;;)switch(p.n){case 0:return h=u.credential,p.n=1,this.submitGoogleOneTapToken({credential:h,loginRedirectUrl:i,signupRedirectUrl:o});case 1:d=p.v,f=d.redirect_url,s(f);case 2:return p.a(2)}},c,this)}))}},this.redirectOnSuccess=function(a){window.location.href=a}}return lt(t,[{key:"createOneTapClient",value:function(){return be(this,void 0,void 0,z().m(function n(){var r,a,i,o,s,u,c,h;return z().w(function(d){for(;;)switch(d.p=d.n){case 0:return d.p=0,d.n=1,this.fetchGoogleStart();case 1:a=d.v,r=a.googleClientId,d.n=3;break;case 2:return d.p=2,s=d.v,i=Fr.from(s),d.a(2,{success:!1,reason:i.error_type});case 3:if(r!==""){d.n=4;break}return d.a(2,{success:!1,reason:"oauth_config_not_found"});case 4:return u=w2,d.n=5,C2();case 5:return c=d.v,h=r,o=new u(c,h),d.a(2,{success:!0,client:o})}},n,this,[[0,2]])}))}},{key:"fetchGoogleStart",value:function(){return this.googleConfig?this.googleConfig:(this.googleConfig=this.clientsideServices.oneTapStart({publicToken:this._publicToken}),this.googleConfig)}},{key:"submitGoogleOneTapToken",value:function(n){var r=n.credential,a=n.loginRedirectUrl,i=n.signupRedirectUrl;return be(this,void 0,void 0,z().m(function o(){var s,u;return z().w(function(c){for(;;)switch(c.n){case 0:return c.n=1,this.fetchGoogleStart();case 1:return s=c.v,u=s.oauthCallbackId,c.a(2,this.clientsideServices.oneTapSubmit({publicToken:this._publicToken,idToken:r,loginRedirectURL:a,oauthCallbackID:u,signupRedirectURL:i}))}},o,this)}))}}],[{key:"willGoogleOneTapShowEmbedded",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:navigator.userAgent,r=function(s,u){return s.indexOf(u)!==-1},a=r(n,"iPad")||r(n,"Android")&&!r(n,"Mobile")||r(n,"Silk"),i=r(n,"iPod")||r(n,"iPhone")||r(n,"Android")||r(n,"IEMobile");return!a&&i}}])})(),E2="PKCE_VERIFIER";function k2(t){var e=t.toString(16);return e.length===1&&(e="0"+e),e}function S2(t){var e;return btoa((e=String.fromCharCode).call.apply(e,[null].concat(zt(new Uint8Array(t))))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var xi=(function(){function t(e,n){st(this,t),this._dataLayer=e,this.namespace=n}return lt(t,[{key:"key",value:function(){return"".concat(E2,":").concat(this.namespace)}},{key:"startPKCETransaction",value:function(){return be(this,void 0,void 0,z().m(function n(){var r;return z().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,t.createProofkeyPair();case 1:return r=a.v,this._dataLayer.setItem(this.key(),JSON.stringify(r)),a.a(2,r)}},n,this)}))}},{key:"getPKPair",value:function(){var n=this._dataLayer.getItem(this.key());if(n!==null)try{return JSON.parse(n)}catch{Ye.warn("Found malformed Proof Key pair in localstorage.");return}}},{key:"clearPKPair",value:function(){return this._dataLayer.removeItem(this.key())}}],[{key:"createProofkeyPair",value:function(){return be(this,void 0,void 0,z().m(function n(){var r,a,i;return z().w(function(o){for(;;)switch(o.n){case 0:return r=new Uint32Array(16),window.crypto.getRandomValues(r),a=Array.from(r).map(k2).join(""),o.n=1,window.crypto.subtle.digest("SHA-256",new TextEncoder().encode(a));case 1:return i=o.v,o.a(2,{code_challenge:S2(i),code_verifier:a})}},n)}))}}])})();function Qr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var O2={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ro(t,e){function n(a,i,o){if(!(typeof document>"u")){o=Qr({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decode
29URIComponent).replace(/[()]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,o[u]!==!0&&(s+="="+o[u].split(";")[0]));return document.cookie=a+"="+t.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s<i.length;s++){var u=i[s].split("="),c=u.slice(1).join("=");try{var h=decodeURIComponent(u[0]);if(o[h]=t.read(c,h),a===h)break}catch{}}return a?o[a]:o}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",Qr({},o,{expires:-1}))},withAttributes:function(i){return ro(this.converter,Qr({},this.attributes,i))},withConverter:function(i){return ro(Qr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var en=ro(O2,{path:"/"}),P2=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.KEYS_TO_EXCLUDE,r=n===void 0?[]:n,a=function(o,s){return Ae(o)!==Ae(s)?!1:o===null||s===null?o===s:Ae(o)==="object"?Object.keys(o).length!==Object.keys(s).length||Object.keys(o).some(function(u){return!(u in s)})?!1:Object.entries(o).filter(function(u){var c=I(u,1),h=c[0];return!r.includes(h)}).every(function(u){var c=I(u,2),h=c[0],d=c[1];return a(d,s[h])}):o===s};return a},Uo=/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,Na=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{signup_magic_link_url:e.signupRedirectURL,signup_expiration_minutes:e.signupExpirationMinutes,login_magic_link_url:e.loginRedirectURL,login_expiration_minutes:e.loginExpirationMinutes,login_template_id:e.loginTemplateId,signup_template_id:e.signupTemplateId,locale:e.locale}},un=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{email:e,login_redirect_url:n.loginRedirectURL,login_expiration_minutes:n.loginExpirationMinutes,reset_password_redirect_url:n.resetPasswordRedirectURL,reset_password_expiration_minutes:n.resetPasswordExpirationMinutes,reset_password_template_id:n.resetPasswordTemplateId,locale:n.locale}},a1=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,r,a=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];clearTimeout(r),r=setTimeout(function(){return e.apply(void 0,s)},n)};return a},A2=function(){return!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))},ea=function(e){var n=document.cookie?document.cookie.split("; "):[],r=n.filter(function(a){var i=a.split("="),o=I(i,1),s=o[0];return e===s});return r.length>1},T2="stytch_sdk_state_",fa=function(e,n){return"".concat(T2).concat(e).concat(n?"::".concat(n):"")};function i1(t){return t==null?{getItem:function(){return null},removeItem:function(){},setItem:function(){}}:{getItem:function(n,r){var a=fa(n,r);try{return t.getItem(a)}catch{return null}},setItem:function(n,r,a){var i=fa(n,r);try{a&&t.setItem(i,a)}catch{}},removeItem:function(n,r){var a=fa(n,r);try{t.removeItem(a)}catch{}}}}var ao=i1(globalThis.localStorage),L2=i1(globalThis.sessionStorage);function Ru(t,e){return{getItem:function(r){return t.getItem(e,r)},setItem:function(r,a){t.setItem(e,r,a)},removeItem:function(r){t.removeItem(e,r)}}}var I2="stytch_session",D2="stytch_session_jwt",R2="stytch_intermediate_session_token",Fu="seen_domains",F2=(function(){function t(e,n){st(this,t),this._opaqueTokenCookieName=null,this._jwtCookieName=null,this._cookiePath=null,this._domain=null,this._cookieAvailableToSubdomains=!1,this._istCookieName=null,this.publicToken=e,this.state=null,this.stateKeysUpdated=new Set,this.subscriptions={},this._localStorage=Ru(ao,e),this.browserSessionStorage=Ru(L2,e),n?.cookieOptions&&(this._opaqueTokenCookieName=n.cookieOptions.opaqueTokenCookieName||null,this._jwtCookieName=n.cookieOptions.jwtCookieName||null,this._cookiePath=n.cookieOptions.path||null,this._domain=n.cookieOptions.domain||null,this._cookieAvailableToSubdomains=n.cookieOptions.availableToSubdomains||!1,this._istCookieName=n.cookieOptions.istCookieName||null);var r=this._localStorage.getItem("");
29if(r){var a;try{a=JSON.parse(r)}catch{this.syncToLocalStorage();return}this.state=a}}return lt(t,[{key:"opaqueTokenCookieName",get:function(){var n;return(n=this._opaqueTokenCookieName)!==null&&n!==void 0?n:I2}},{key:"jwtCookieName",get:function(){var n;return(n=this._jwtCookieName)!==null&&n!==void 0?n:D2}},{key:"istCookieName",get:function(){var n;return(n=this._istCookieName)!==null&&n!==void 0?n:R2}},{key:"readSessionCookie",value:function(){return{session_token:en.get(this.opaqueTokenCookieName),session_jwt:en.get(this.jwtCookieName)}}},{key:"readIntermediateSessionTokenCookie",value:function(){return en.get(this.istCookieName)}},{key:"writeSessionCookie",value:function(n){var r,a,i,o,s=n.state,u=n.session_token,c=n.session_jwt,h=t.generateCookieOpts({expiresAt:(a=(r=s?.session)===null||r===void 0?void 0:r.expires_at)!==null&&a!==void 0?a:"",availableToSubdomains:this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});h.domain&&this.addSeenDomain(h.domain),en.set(this.opaqueTokenCookieName,u,h),en.set(this.jwtCookieName,c,h);var d=t.generateCookieOpts({expiresAt:(o=(i=s?.session)===null||i===void 0?void 0:i.expires_at)!==null&&o!==void 0?o:"",availableToSubdomains:!this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});d.domain&&this.addSeenDomain(d.domain),ea(this.jwtCookieName)&&en.remove(this.jwtCookieName,d),ea(this.opaqueTokenCookieName)&&en.remove(this.opaqueTokenCookieName,d),ea(this.jwtCookieName)&&Ye.warn("Could not remove extraneous JWT cookie. This might happen if the cookie has been set using multiple `path` settings, and may produce unwanted behavior."),ea(this.opaqueTokenCookieName)&&Ye.warn("Could not remove extraneous opaque token cookie.")}},{key:"writeIntermediateSessionTokenCookie",value:function(n){var r=new Date(Date.now()+6e5),a=t.generateCookieOpts({expiresAt:r.toString(),availableToSubdomains:this._cookieAvailableToSubdomains,path:this._cookiePath,domain:this._domain});en.set(this.istCookieName,n,a)}},{key:"removeSessionCookie",value:function(){this.removeCookies([this.opaqueTokenCookieName,this.jwtCookieName])}},{key:"removeISTCookie",value:function(){this.removeCookies([this.istCookieName])}},{key:"removeCookies",value:function(n){var r=this,a=this.getSeenDomains(),i=[this._domain,null].concat(zt(a)),o=zt(new Set(i));[!0,!1].forEach(function(s){[r._cookiePath,null].forEach(function(u){o.forEach(function(c){var h=t.generateCookieOpts({expiresAt:new Date(0).toString(),availableToSubdomains:s,path:u,domain:c});n.forEach(function(d){en.remove(d,h)})})})})}},{key:"syncToLocalStorage",value:function(){this._localStorage.setItem("",JSON.stringify(this.state))}},{key:"getItem",value:function(n){return this._localStorage.getItem(n)}},{key:"setItem",value:function(n,r){this._localStorage.setItem(n,r)}},{key:"removeItem",value:function(n){this._localStorage.removeItem(n)}},{key:"getSeenDomains",value:function(){var n=this.getItem(Fu);if(!n)return[];try{var r=JSON.parse(n);return Array.isArray(r)?r:[]}catch{return[]}}},{key:"addSeenDomain",value:function(n){if(n){var r=this.getSeenDomains();r.includes(n)||(r.push(n),this.setItem(Fu,JSON.stringify(r)))}}}],[{key:"generateCookieOpts",value:function(n){var r=n.path,a=n.domain,i=n.availableToSubdomains,o=n.expiresAt,s={expires:new Date(o),sameSite:"lax"};return r&&(s.path=r),A2()?s.secure=!1:(i&&(s.domain=a||window.location.host),s.secure=!0),s}}])})(),M2=(function(t){function e(){return st(this,e),hn(this,e,arguments)}return fn(e,t),lt(e)})(F2),$i=Symbol.for("__stytch_DataLayer"),B2=function(){var e=window;return e[$i]||(e[$i]={}),e[$i]},x2=function(e,n){var r=B2();return r[e]||(r[e]=new M2(e,n)),r[e]},$2=function(e,n){var r=Math.random().toString(36).slice(-10);return e[r]=n,function(){return delete e[r]}},Mu=function(e,n){Object.values(e).forEach(function(r){return r(n)})},Bu=P2({KEYS_TO_EXCLUDE:["last_accessed_at"]}),j2=(function(){function t(e,n,r){var a=this,i=r.usingCustomApiEndpoint;if(st(this,t),this._publicToken=e,this._datalayer=n,this.fromCache=!0,this._listen=function(u){if(u.key===fa(a._publicToken,"")){var c=u.newValue===null||u.newValue==="null"?null:JSON.parse(u.newValue);a.updateState(c,!0)}},window.addEventListener("storage",this._listen),!i){var o=this._datalayer.readSessionCookie(),s=o.session_token;if(!s){this.destroySession();return}}}return lt(t,[{key:"getTokens",value:function(){var n=this._datalayer.readSessionCookie(),r=n.session_token,a=n.session_jwt;return typeof r!="string"||typeof a!="string"?null:{session_token:r,session_jwt:a}}},{key:"getIntermediateSessionToken",value:function(){return this._datalayer.readIntermediateSessionTokenCookie()||null}},{key:"destroyState",value:function(){this.updateStateAndTokens({state:null,session_token:null,
29session_jwt:null,intermediate_session_token:null})}},{key:"destroySession",value:function(){this._datalayer.removeSessionCookie(),this.updateState(null)}},{key:"_updateStateAndTokensInternal",value:function(n,r){var a=this._datalayer.state,i=n.state===null?null:Object.assign(Object.assign({},this._datalayer.state),n.state);this._datalayer.state=i;var o=this.getFromCache();if(this.setCacheRefreshed(),o||!Bu(a,i)){var s;i==null||r.fromCache?s=i:s=Object.assign(Object.assign({},i),{sessionDurationMinutes:r.sessionDurationMinutes}),Mu(this._datalayer.subscriptions,s)}}},{key:"updateStateAndTokens",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromCache:!1};n.state?(typeof n.session_token=="string"?this._datalayer.writeSessionCookie(n):this._datalayer.removeSessionCookie(),this._datalayer.removeISTCookie()):n.intermediate_session_token?(typeof n.intermediate_session_token=="string"?this._datalayer.writeIntermediateSessionTokenCookie(n.intermediate_session_token):this._datalayer.removeISTCookie(),this._datalayer.removeSessionCookie()):(this._datalayer.removeSessionCookie(),this._datalayer.removeISTCookie()),this._updateStateAndTokensInternal(n,r),this._datalayer.syncToLocalStorage()}},{key:"updateState",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this._datalayer.state,i=n===null?null:Object.assign(Object.assign({},this._datalayer.state),n);this._datalayer.state=i;var o=this.getFromCache();this.setCacheRefreshed();var s=!Bu(a,i);(o||s)&&(Mu(this._datalayer.subscriptions,i),s&&!r&&this._datalayer.syncToLocalStorage())}},{key:"updateTokens",value:function(n){var r=n.session_token,a=n.session_jwt,i=this._datalayer.readSessionCookie(),o=Object.assign(Object.assign({},i),{session_token:r,session_jwt:a});typeof r=="string"||typeof a=="string"?(this._datalayer.writeSessionCookie(o),this._datalayer.removeISTCookie()):this._datalayer.removeSessionCookie()}},{key:"subscribeToState",value:function(n){return $2(this._datalayer.subscriptions,n)}},{key:"getState",value:function(){return this._datalayer.state}},{key:"destroy",value:function(){window.removeEventListener("storage",this._listen)}},{key:"syncFromDeviceStorage",value:function(){return null}},{key:"getFromCache",value:function(){return this.fromCache}},{key:"setCacheRefreshed",value:function(){this.fromCache=!1}}])})(),N2=(function(t){function e(){var n;return st(this,e),n=hn(this,e,arguments),n.updateUser=function(r){return n.updateState({user:r})},n.getUser=function(){var r,a;return(a=(r=n.getState())===null||r===void 0?void 0:r.user)!==null&&a!==void 0?a:null},n.getSession=function(){var r,a;return(a=(r=n.getState())===null||r===void 0?void 0:r.session)!==null&&a!==void 0?a:null},n.updateSession=function(r,a){var i=r.session,o=r.user,s=r.session_jwt,u=r.session_token;u&&s?n.updateStateAndTokens({state:{session:i,user:o},session_jwt:s,session_token:u,intermediate_session_token:null},{fromCache:!1,sessionDurationMinutes:a?.sessionDurationMinutes}):n.updateStateAndTokens({state:{session:i,user:o},session_token:!0,session_jwt:!0,intermediate_session_token:null},{fromCache:!1,sessionDurationMinutes:a?.sessionDurationMinutes})},n.withUpdateSession=function(r){return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return be(n,void 0,void 0,z().m(function s(){var u,c;return z().w(function(h){for(;;)switch(h.n){case 0:return h.n=1,r.apply(void 0,i);case 1:return u=h.v,u!=null&&(c=i.find(function(d){return d!=null&&typeof d!="string"}),this.updateSession(u,{sessionDurationMinutes:c?.session_duration_minutes})),h.a(2,u)}},s,this)}))}},n}return fn(e,t),lt(e)})(j2),io=Symbol.for("stytch__internal_b2c"),U2=function(e,n){Object.assign(e,V({},io,n))},Je=function(e){var n=e;if(!n[io])throw Error("Internals not found!");return n[io]},H2=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,i=n.cookieOptions,o=n.keepSessionAlive,s=He(e);return s.isOptionalBoolean("keepSessionAlive",o),i&&s.isOptionalString("cookieOptions.opaqueTokenCookieName",i.opaqueTokenCookieName).isOptionalString("cookieOptions.jwtCookieName",i.jwtCookieName).isOptionalString("cookieOptions.istCookieName",i.istCookieName).isOptionalString("cookieOptions.path",i.path).isOptionalString("cookieOptions.domain",i.domain),{cookieOptions:i,keepSessionAlive:o,endpoints:{testAPIURL:_p(n),liveAPIURL:yp(n),dfpBacken
29dURL:wp(n),dfpCdnURL:Cp(n),clientsideServicesIframeURL:(a=(r=n?.endpoints)===null||r===void 0?void 0:r.clientsideServicesIframeURL)!==null&&a!==void 0?a:np}}},z2=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.customBaseUrl,a=n.endpointOptions;return ja(e)?!!(r||a?.testApiDomain):!!(r||a?.apiDomain)};function W2(t,e){return t.includes(e)}var G2=function(){var e=K2(window.location.toString());window.history.replaceState(null,document.title,e)},V2=function(e){var n=Object.keys(e),r=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location.href,s=new URL(o),u=s.searchParams.get("stytch_token_type"),c=s.searchParams.get("token");return!c||!u?null:W2(n,u)?{handled:!0,token:c,tokenType:u}:{handled:!1,token:c,tokenType:u}},a=function(o,s){return be(void 0,void 0,void 0,z().m(function u(){var c,h,d,f,p,m,g,v;return z().w(function(_){for(;;)switch(_.n){case 0:if(c=o.clearParams,h=or(o,["clearParams"]),s===void 0&&(s=window.location.href),d=c??s===window.location.href,f=r(s),f!=null){_.n=1;break}return _.a(2,null);case 1:if(f.handled){_.n=2;break}return _.a(2,f);case 2:return p=f.token,m=f.tokenType,g=e[m],d&&G2(),_.n=3,g(p,h);case 3:return v=_.v,_.a(2,{handled:!0,tokenType:m,data:v})}},u)}))};return{authenticateByUrl:a,parseAuthenticateUrl:r}};function K2(t){var e=new URL(t),n=e.searchParams;return n.delete("token"),n.delete("stytch_token_type"),e}var Z2=lt(function t(e,n){var r=this;st(this,t),Zc("StytchHeadlessClient"),bp(e);var a=e??"",i=H2(this.constructor.name,n),o=z2(a,n);this._dataLayer=x2(a,i),this._subscriptionService=new N2(a,this._dataLayer,{usingCustomApiEndpoint:o}),this._stateChangeClient=new c2(this._subscriptionService,{}),this.onStateChange=function(){var C;return(C=r._stateChangeClient).onStateChange.apply(C,arguments)};var s=function(){var A,E,T,O;return{stytch_user_id:(E=(A=r._dataLayer.state)===null||A===void 0?void 0:A.user)===null||E===void 0?void 0:E.user_id,stytch_session_id:(O=(T=r._dataLayer.state)===null||T===void 0?void 0:T.session)===null||O===void 0?void 0:O.session_id}},u=new xi(this._dataLayer,"passwords"),c=new y2(a,this._dataLayer,i.endpoints.liveAPIURL,i.endpoints.testAPIURL,s);this._networkClient=c;var h=new h2(a,this._networkClient,this._dataLayer),d=new p2(h.getAsync()),f=new Tp(a,i.endpoints.dfpBacken
29dURL,i.endpoints.dfpCdnURL,h.getAsync(),d.executeRecaptcha),p=new m2(i.endpoints.clientsideServicesIframeURL),m=new r1(a,p),g=new s2(this._networkClient,f);this.user=new Fp(this._networkClient,this._subscriptionService),this.session=new Mp(this._networkClient,this._subscriptionService),this.magicLinks=new xp(this._networkClient,this._subscriptionService,new xi(this._dataLayer,"magic_links"),u,h.getAsync(),f),this.otps=new $p(this._networkClient,this._subscriptionService,d.executeRecaptcha,f),this.oauth=new v2(this._networkClient,this._subscriptionService,new xi(this._dataLayer,"oauth"),h.getAsync(),{publicToken:a,testAPIURL:i.endpoints.testAPIURL,liveAPIURL:i.endpoints.liveAPIURL},m),this.cryptoWallets=new Up(this._networkClient,this._networkClient,this._subscriptionService,d.executeRecaptcha,f,h.getAsync()),this.totps=new Hp(this._networkClient,this._subscriptionService,f),this.webauthn=new Qp(this._networkClient,this._subscriptionService,f),this.passwords=new t2(this._networkClient,this._subscriptionService,u,h.getAsync(),f),this.impersonation=new n2(this._networkClient,this._subscriptionService,f),this.rbac=new a2(h.getSync(),h.getAsync(),this._subscriptionService),this.idp=new i2(this._networkClient),this._sessionManager=new jo(this._subscriptionService,this.session,a,{keepSessionAlive:i.keepSessionAlive}),(o||this._dataLayer.readSessionCookie().session_token)&&this._sessionManager.performBackgroundRefresh(),this._networkClient.logEvent({name:"sdk_instance_instantiated",details:{event_callback_registered:!1,error_callback_registered:!1,success_callback_registered:!1}}),h.getAsync().then(function(C){C.vertical===d2&&Ye.error("This application is using a Stytch client for Consumer projects, but the public token is for a Stytch B2B project. Use a B2B Stytch client instead, or verify that the public token is correct.")});var v=V2({magic_links:function(A,E){return r.magicLinks.authenticate(A,E)},oauth:function(A,E){return r.oauth.authenticate(A,E)},impersonation:function(A){return r.impersonation.authenticate({impersonation_token:A})}}),_=v.authenticateByUrl,b=v.parseAuthenticateUrl;this.authenticateByUrl=_,this.parseAuthenticateUrl=b,U2(this,{bootstrap:h,clientsideServices:p,captcha:d,oneTap:m,searchManager:g,publicToken:a,dataLayer:this._dataLayer,networkClient:this._networkClient})}),Mr,ue,o1,An,xu,s1,oo,l1,Or={},u1=[],q2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ua=Array.isArray;function an(t,e){for(var n in e)t[n]=e[n];return t}function c1(t){var e=t.parentNode;e&&e.removeChild(t)}function H(t,e,n){var r,a,i,o={};for(i in e)i=="key"?r=e[i]:i=="ref"?a=e[i]:o[i]=e[i];if(arguments.length>2&&(o.children=arguments.length>3?Mr.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)o[i]===void 0&&(o[i]=t.defaultProps[i]);return vr(t,o,r,a,null)}function vr(t,e,n,r,a){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:a??++o1,__i:-1,__u:0};return a==null&&ue.vnode!=null&&ue.vnode(i),i}function d1(){return{current:null}}function Rt(t){return t.children}function Ht(t,e){this.props=t,this.context=e}function Qn(t,e){if(e==null)return t.__?Qn(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?Qn(t):null}function h1(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return h1(t)}}function so(t){(!t.__d&&(t.__d=!0)&&An.push(t)&&!ka.__r++||xu!==ue.debounceRendering)&&((xu=ue.debounceRendering)||s1)(ka)}function ka(){var t,e,n,r,a,i,o,s,u;for(An.sort(oo);t=An.shift();)t.__d&&(e=An.length,r=void 0,i=(a=(n=t).__v).__e,s=[],u=[],(o=n.__P)&&((r=an({},a)).__v=a.__v+1,ue.vnode&&ue.vnode(r),Ho(o,r,a,n.__n,o.ownerSVGElement!==void 0,32&a.__u?[i]:null,s,i??Qn(a),!!(32&a.__u),u),r.__.__k[r.__i]=r,m1(s,r,u),r.__e!=i&&h1(r)),An.length>e&&An.sort(oo));ka.__r=0}function f1(t,e,n,r,a,i,o,s,u,c,h){var d,f,p,m,g,v=r&&r.__k||u1,_=e.length;for(n.__d=u,Y2(n,e,v),u=n.__d,d=0;d<_;d++)(p=n.__k[d])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?Or:v[p.__i]||Or,p.__i=d,Ho(t,p,f,a,i,o,s,u,c,h),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&zo(f.ref,null,p),h.push(p.ref,p.__c||m,p)),g==null&&m!=null&&(g=m),65536&p.__u||f.__k===p.__k?u=p1(p,u,t):typeof p.t
vendor: 5,639 bytes, line 29
29ype=="function"&&p.__d!==void 0?u=p.__d:m&&(u=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=u,n.__e=g}function Y2(t,e,n){var r,a,i,o,s,u=e.length,c=n.length,h=c,d=0;for(t.__k=[],r=0;r<u;r++)(a=t.__k[r]=(a=e[r])==null||typeof a=="boolean"||typeof a=="function"?null:typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?vr(null,a,null,null,a):Ua(a)?vr(Rt,{children:a},null,null,null):a.__b>0?vr(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)!=null?(a.__=t,a.__b=t.__b+1,s=J2(a,n,o=r+d,h),a.__i=s,i=null,s!==-1&&(h--,(i=n[s])&&(i.__u|=131072)),i==null||i.__v===null?(s==-1&&d--,typeof a.type!="function"&&(a.__u|=65536)):s!==o&&(s===o+1?d++:s>o?h>u-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==r+d&&(a.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==t.__d&&(t.__d=Qn(i)),lo(i,i,!1),n[r]=null,h--);if(h)for(r=0;r<c;r++)(i=n[r])!=null&&(131072&i.__u)==0&&(i.__e==t.__d&&(t.__d=Qn(i)),lo(i,i))}function p1(t,e,n){var r,a;if(typeof t.type=="function"){for(r=t.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=t,e=p1(r[a],e,n));return e}return t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e),e&&e.nextSibling}function sn(t,e){return e=e||[],t==null||typeof t=="boolean"||(Ua(t)?t.some(function(n){sn(n,e)}):e.push(t)),e}function J2(t,e,n,r){var a=t.key,i=t.type,o=n-1,s=n+1,u=e[n];if(u===null||u&&a==u.key&&i===u.type)return n;if(r>(u!=null&&(131072&u.__u)==0?1:0))for(;o>=0||s<e.length;){if(o>=0){if((u=e[o])&&(131072&u.__u)==0&&a==u.key&&i===u.type)return o;o--}if(s<e.length){if((u=e[s])&&(131072&u.__u)==0&&a==u.key&&i===u.type)return s;s++}}return-1}function $u(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||q2.test(e)?n:n+"px"}function ta(t,e,n,r,a){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||$u(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||$u(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,i?Nu:ju,i)):t.removeEventListener(e,i?Nu:ju,i);else{if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,n))}}function ju(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(ue.event?ue.event(t):t)}function Nu(t){return this.l[t.type+!0](ue.event?ue.event(t):t)}function Ho(t,e,n,r,a,i,o,s,u,c){var h,d,f,p,m,g,v,_,b,C,A,E,T,O,L,j=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[s=e.__e=n.__e]),(h=ue.__b)&&h(e);e:if(typeof j=="function")try{if(_=e.props,b=(h=j.contextType)&&r[h.__c],C=h?b?b.props.value:h.__:r,n.__c?v=(d=e.__c=n.__c).__=d.__E:("prototype"in j&&j.prototype.render?e.__c=d=new j(_,C):(e.__c=d=new Ht(_,C),d.constructor=j,d.render=Q2),b&&b.sub(d),d.props=_,d.state||(d.state={}),d.context=C,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),j.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=an({},d.__s)),an(d.__s,j.getDerivedStateFromProps(_,d.__s))),p=d.props,m=d.state,d.__v=e,f)j.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(j.getDerivedStateFromProps==null&&_!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,C),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(_,d.__s,C)===!1||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(X){X&&(X.__=e)}),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,C),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,g)})}if(d.context=C,d.props=_,d.__P=t,d.__e=!1,E=ue.__r,T=0,"prototype"in j&&j.prototype.render){for(d.state=d.__s,d.__d=!1,E&&E(e),h=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do d.__d=!1,E&&E(e),h=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++T<25);d.state=d.__s,d.getChildContext!=null&&(r=an(an({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(p,m)),f1(t,Ua(L=h!=null&&h.type===Rt&&h.key==null?h.props.children:h)?L:[L],e,n,r,a,i,o,s,u,c),d.base=e.__e,e.__u&=-161,d.__h.length&&o.push(d),v&&(d.__E=d.__=null)}catch(X){e.__v=null,u||i!=null?(e.__e=s,e.__u|=u?160:32,i[i.indexOf(s)]=null):(e.__e=n.__e,e.__k=n.__k),ue.__e(X,e,n)}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=X2(n.__e,e,n,r,a,i,o,u,c);(h=ue.diffed)&&h(e)}function m1(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)zo(n[r],n[++r],n[++r]);ue.__c&&ue.__c(e,t),t.some(function(a){try{t=a.__h,a.__h=[],t.some(function(i){i.call(a)})}catch(i){ue.__e(i,a.__v)}})}function X2(t,e,n,r,a,i,o,s,u){var c,h,d,f,p,m,g,v=n.props,_=e.props,b=e.type;if(b==="svg"&&(a=!0),i!=null){for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!b&&(b?p.localName===b:p.nodeType===3)){t=p,i[c]=null;break}}if(t==null){if(b===null)return document.createTextNode(_);t=a?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,_.is&&_),i=null,s=!1}if(b===null)v===_||s&&t.data===_||(t.data=_);else{if(i=i&&Mr.call(t.childNodes),v=n.props||Or,!s&&i!=null)for(v={}
vendor: 16,385 bytes, line 29
29,c=0;c<t.attributes.length;c++)v[(p=t.attributes[c]).name]=p.value;for(c in v)p=v[c],c=="children"||(c=="dangerouslySetInnerHTML"?d=p:c==="key"||c in _||ta(t,c,null,p,a));for(c in _)p=_[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?h=p:c=="value"?m=p:c=="checked"?g=p:c==="key"||s&&typeof p!="function"||v[c]===p||ta(t,c,p,v[c],a);if(h)s||d&&(h.__html===d.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(d&&(t.innerHTML=""),f1(t,Ua(f)?f:[f],e,n,r,a&&b!=="foreignObject",i,o,i?i[0]:n.__k&&Qn(n,0),s,u),i!=null)for(c=i.length;c--;)i[c]!=null&&c1(i[c]);s||(c="value",m!==void 0&&(m!==t[c]||b==="progress"&&!m||b==="option"&&m!==v[c])&&ta(t,c,m,v[c],!1),c="checked",g!==void 0&&g!==t[c]&&ta(t,c,g,v[c],!1))}return t}function zo(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){ue.__e(r,n)}}function lo(t,e,n){var r,a;if(ue.unmount&&ue.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||zo(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ue.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(a=0;a<r.length;a++)r[a]&&lo(r[a],e,n||typeof t.type!="function");n||t.__e==null||c1(t.__e),t.__=t.__e=t.__d=void 0}function Q2(t,e,n){return this.constructor(t,n)}function Pr(t,e,n){var r,a,i,o;ue.__&&ue.__(t,e),a=(r=typeof n=="function")?null:n&&n.__k||e.__k,i=[],o=[],Ho(e,t=(!r&&n||e).__k=H(Rt,null,[t]),a||Or,Or,e.ownerSVGElement!==void 0,!r&&n?[n]:a?null:e.firstChild?Mr.call(e.childNodes):null,i,!r&&n?n:a?a.__e:e.firstChild,r,o),m1(i,t,o)}function v1(t,e){Pr(t,e,v1)}function em(t,e,n){var r,a,i,o,s=an({},t.props);for(i in t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)i=="key"?r=e[i]:i=="ref"?a=e[i]:s[i]=e[i]===void 0&&o!==void 0?o[i]:e[i];return arguments.length>2&&(s.children=arguments.length>3?Mr.call(arguments,2):n),vr(t.type,s,r||t.key,a||t.ref,null)}function Rn(t,e){var n={__c:e="__cC"+l1++,__:t,Consumer:function(a,i){return a.children(i)},Provider:function(a){var i,o;return this.getChildContext||(i=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(u){u.__e=!0,so(u)})},this.sub=function(s){i.push(s);var u=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),u&&u.call(s)}}),a.children}};return n.Provider.__=n.Consumer.contextType=n}Mr=u1.slice,ue={__e:function(e,n,r,a){for(var i,o,s;n=n.__;)if((i=n.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,a||{}),s=i.__d),s)return i.__E=i}catch(u){e=u}throw e}},o1=0,Ht.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=an({},this.state),typeof t=="function"&&(t=t(an({},n),this.props)),t&&an(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),so(this))},Ht.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),so(this))},Ht.prototype.render=Rt,An=[],s1=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,oo=function(e,n){return e.__v.__b-n.__v.__b},ka.__r=0,l1=0;var cn,Ve,ji,Uu,er=0,g1=[],pa=[],Hu=ue.__b,zu=ue.__r,Wu=ue.diffed,Gu=ue.__c,Vu=ue.unmount;function Bn(t,e){ue.__h&&ue.__h(Ve,t,er||e),er=0;var n=Ve.__H||(Ve.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:pa}),n.__[t]}function J(t){return er=1,Br(w1,t)}function Br(t,e,n){var r=Bn(cn++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):w1(void 0,e),function(s){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,s);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=Ve,!Ve.u)){var a=function(u,c,h){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return p.__c});if(d.every(function(p){return!p.__N}))return!i||i.call(this,u,c,h);var f=!1;return d.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(f=!0)}}),!(!f&&r.__c.props===u)&&(!i||i.call(this,u,c,h))};Ve.u=!0;var i=Ve.shouldComponentUpdate,o=Ve.componentWillUpdate;Ve.componentWillUpdate=function(s,u,c){if(this.__e){var h=i;i=void 0,a(s,u,c),i=h}o&&o.call(this,s,u,c)},Ve.shouldComponentUpdate=a}return r.__N||r.__}function Te(t,e){var n=Bn(cn++,3);!ue.__s&&Wo(n.__H,e)&&(n.__=t,n.i=e,Ve.__H.__h.push(n))}function xn(t,e){var n=Bn(cn++,4);!ue.__s&&Wo(n.__H,e)&&(n.__=t,n.i=e,Ve.__h.push(n))}function kt(t){return er=5,at(function(){return{current:t}},[])}function y1(t,e,n){er=6,xn(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},n==null?n:n.concat(t))}function at(t,e){var n=Bn(cn++,7);return Wo(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function dt(t,e){return er=8,at(function(){return t},e)}function Wt(t){var e=Ve.context[t.__c],n=Bn(cn++,9);return n.c=t,e?(n.__==null&&(n.__=!0,e.sub(Ve)),e.props.value):t.__}function _1(t,e){ue.useDebugValue&&ue.useDebugValue(e?e(t):t)}function tm(t){var e=Bn(cn++,10),n=J();return e.__=t,Ve.componentDidCatch||(Ve.componentDidCatch=function(r,a){e.__&&e.__(r,a),n[1](r)}),[n[0],function(){n[1](void 0)}]}function b1(){var t=Bn(cn++,11);if(!t.__){for(var e=Ve.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function nm(){for(var t;t=g1.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ma),t.__H.__h.forEach(uo),t.__H.__h=[]}catch(e){t.__H.__h=[],ue.__e(e,t.__v)}}ue.__b=function(t){Ve=null,Hu&&Hu(t)},ue.__r=function(t){zu&&zu(t),cn=0;var e=(Ve=t.__c).__H;e&&(ji===Ve?(e.__h=[],Ve.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=pa,n.__N=n.i=void 0})):(e.__h.forEach(ma),e.__h.forEach(uo),e.__h=[],cn=0)),ji=Ve},ue.diffed=function(t){Wu&&Wu(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(g1.push(e)!==1&&Uu===ue.requestAnimationFrame||((Uu=ue.requestAnimationFrame)||rm)(nm)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==pa&&(n.__=n.__V),n.i=void 0,n.__V=pa})),ji=Ve=null},ue.__c=function(t,e){e.some(function(n){try{n.__h.forEach(ma),n.__h=n.__h.filter(function(r){return!r.__||uo(r)})}catch(r){e.some(function(a){a.__h&&(a.__h=[])}),e=[],ue.__e(r,n.__v)}}),Gu&&Gu(t,e)},ue.unmount=function(t){Vu&&Vu(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ma(r)}catch(a){e=a}}),n.__H=void 0,e&&ue.__e(e,n.__v))};var Ku=typeof requestAnimationFrame=="function";function rm(t){var e,n=function(){clearTimeout(r),Ku&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Ku&&(e=requestAnimationFrame(n))}function ma(t){var e=Ve,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Ve=e}function uo(t){var e=Ve;t.__c=t.__(),Ve=e}function Wo(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function w1(t,e){return typeof e=="function"?e(t):e}function C1(t,e){for(var n in e)t[n]=e[n];return t}function co(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Sa(t){this.props=t}function Go(t,e){function n(a){var i=this.props.ref,o=i==a.ref;return!o&&i&&(i.call?i(null):i.current=null),e?!e(this.props,a)||!o:co(this.props,a)}function r(a){return this.shouldComponentUpdate=n,H(t,a)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Sa.prototype=new Ht).isPureReactComponent=!0,Sa.prototype.shouldComponentUpdate=function(t,e){return co(this.props,t)||co(this.state,e)};var Zu=ue.__b;ue.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Zu&&Zu(t)};var am=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Nt(t){function e(n){var r=C1({},n);return delete r.ref,t(r,n.ref||null)}return e.$$typeof=am,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var qu=function(e,n){return e==null?null:sn(sn(e).map(n))},tr={map:qu,forEach:qu,count:function(e){return e?sn(e).length:0},only:function(e){var n=sn(e);if(n.length!==1)throw"Children.only";return n[0]},toArray:sn},im=ue.__e;ue.__e=function(t,e,n,r){if(t.then){for(var a,i=e;i=i.__;)if((a=i.__c)&&a.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),a.__c(t,e)}im(t,e,n,r)};var Yu=ue.unmount;function E1(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=C1({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return E1(r,e,n)})),t}function k1(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return k1(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function gr(){this.__u=0,this.t=null,this.__b=null}function S1(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function O1(t){var e,n,r;function a(i){if(e||(e=t()).then(function(o){n=o.default||o},function(o){r=o}),r)throw r;if(!n)throw e;return H(n,i)}return a.displayName="Lazy",a.__f=!0,a}function Kn(){this.u=null,this.o=null}ue.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Yu&&Yu(t)},(gr.prototype=new Ht).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var a=S1(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,a?a(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=k1(c,c.__c.__P,c.__c.__O)}var h;for(r.setState({__a:r.__b=null});h=r.t.pop();)h.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(o,o)},gr.prototype.componentWillUnmount=function(){this.t=[]},gr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=E1(this.__b,n,r.__O=r.__P)}this.__b=null}var a=e.__a&&H(Rt,null,t.fallback);return a&&(a.__u&=-33),[H(Rt,null,e.__a?null:t.children),a]};var Ju=function(e,n,r){if(++r[1]===r[0]&&e.o.delete(n),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function om(t){return this.getChildContext=function(){return t.context},t.children}function sm(t){var e=this,n=t.i;e.componentWillUnmount=function(){Pr(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(a){this.childNodes.push(a),e.i.appendChild(a)},insertBefore:function(a,i){this.childNodes.push(a),e.i.appendChild(a)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),e.i.removeChild(a)}}),Pr(H(om,{context:e.context},t.__v),e.l)}function P1(t,e){var n=H(sm,{__v:t,i:e});return n.containerInfo=e,n}(Kn.prototype=new Ht).__a=function(t){var e=this,n=S1(e.__v),r=e.o.get(t);return r[0]++,function(a){var i=function(){e.props.revealOrder?(r.push(a),Ju(e,t,r)):a()};n?n(i):i()}},Kn.prototype.render=function(t){this.u=null,this.o=new Map;var e=sn(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Kn.prototype.componentDidUpdate=Kn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Ju(t,n,e)})};var A1=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,lm=/^(?: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]/,um=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cm=/[A-Z0-9]/g,dm=typeof document<"u",hm=function(e){return(typeof Symbol<"u"&&Ae(Symbol())=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function T1(t,e,n){return e.__k==null&&(e.textContent=""),Pr(t,e),typeof n=="function"&&n(),t?t.__c:null}function L1(t,e,n){return v1(t,e),typeof n=="function"&&n(),t?t.__c:null}Ht.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Ht.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var Xu=ue.event;function fm(){}function pm(){return this.cancelBubble}function mm(){return this.defaultPrevented}ue.event=function(t){return Xu&&(t=Xu(t)),t.persist=fm,t.isPropagationStopped=pm,t.isDefaultPrevented=mm,t.nativeEvent=t};var Vo,vm={enumerable:!1,configurable:!0,get:function(){return this.class}},Qu=ue.vnode;ue.vnode=function(t){typeof t.type=="string"&&(function(e){var n=e.props,r=e.type,a={};for(var i in n){var o=n[i];if(!(i==="value"&&"defaultValue"in n&&o==null||dm&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&o===!0?o="":s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||hm(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":um.test(i)?i=s:r.indexOf("-")===-1&&lm.test(i)?i=i.replace(cm,"-$&").toLowerCase():o===null&&(o=void 0):s=i="oninput",s==="oninput"&&a[i=s]&&(i="oninputCapture"),a[i]=o}}r=="select"&&a.multiple&&Array.isArray(a.value)&&(a.value=sn(n.children).forEach(function(u){u.props.selected=a.value.indexOf(u.props.value)!=-1})),r=="select"&&a.defaultValue!=null&&(a.value=sn(n.children).forEach(function(u){u.props.selected=a.multiple?a.defaultValue.indexOf(u.props.value)!=-1:a.defaultValue==u.props.value})),n.class&&!n.className?(a.class=n.class,Object.defineProperty(a,"className",vm)):(n.className&&!n.class||n.class&&n.className)&&(a.class=a.className=n.className),e.props=a})(t),t.$$typeof=A1,Qu&&Qu(t)};var ec=ue.__r;ue.__r=function(t){ec&&ec(t),Vo=t.__c};var tc=ue.diffed;ue.diffed=function(t){tc&&tc(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value),Vo=null};var I1={ReactCurrentDispatcher:{current:{readContext:function(e){return Vo.__n[e.__c].props.value}}}},gm="17.0.2";function D1(t){return H.bind(null,t)}function $n(t){return!!t&&t.$$typeof===A1}function R1(t){return $n(t)&&t.type===Rt}function Ko(t){return $n(t)?em.apply(null,arguments):t}function F1(t){return!!t.__k&&(Pr(null,t),!0)}function M1(t){return t&&(t.base||t.nodeType===1&&t)||null}var B1=function(e,n){return e(n)},x1=function(e,n){return e(n)},$1=Rt;function Zo(t){t()}function j1(t){return t}function N1(){return[!1,Zo]}var U1=xn,H1=$n;function qo(t,e){var n=e(),r=J({h:{__:n,v:e}}),a=r[0].h,i=r[1];return xn(function(){a.__=n,a.v=e,Ni(a)&&i({h:a})},[t,n,e]),Te(function(){return Ni(a)&&i({h:a}),t(function(){Ni(a)&&i({h:a})})},[t]),n}function Ni(t){var e,n,r=t.v,a=t.__;try{var i=r();return!((e=a)===(n=i)&&(e!==0||1/e==1/n)||e!=e&&n!=n)}catch{return!0}}var l={useState:J,useId:b1,useReducer:Br,useEffect:Te,useLayoutEffect:xn,useInsertionEffect:U1,useTransition:N1,useDeferredValue:j1,useSyncExternalStore:qo,startTransition:Zo,useRef:kt,useImperativeHandle:y1,useMemo:at,useCallback:dt,useContext:Wt,useDebugValue:_1,version:"17.0.2",Children:tr,render:T1,hydrate:L1,unmountComponentAtNode:F1,createPortal:P1,createElement:H,createContext:Rn,createFactory:D1,cloneElement:Ko,createRef:d1,Fragment:Rt,isValidElement:$n,isElement:H1,isFragment:R1,findDOMNode:M1,Component:Ht,PureComponent:Sa,memo:Go,forwardRef:Nt,flushSync:x1,unstable_batchedUpdates:B1,StrictMode:$1,Suspense:gr,SuspenseList:Kn,lazy:O1,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:I1},z1=Object.freeze({__proto__:null,Children:tr,Component:Ht,Fragment:Rt,PureComponent:Sa,StrictMode:$1,Suspense:gr,SuspenseList:Kn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:I1,cloneElement:Ko,createContext:Rn,createElement:H,createFactory:D1,createPortal:P1,createRef:d1,default:l,findDOMNode:M1,flushSync:x1,forwardRef:Nt,hydrate:L1,isElement:H1,isFragment:R1,isValidElement:$n,lazy:O1,memo:Go,render:T1,startTransition:Zo,unmountComponentAtNode:F1,unstable_batchedUpdates:B1,useCallback:dt,useContext:Wt,useDebugValue:_1,useDeferredValue:j1,useEffect:Te,useErrorBoundary:tm,useId:b1,useImperativeHandle:y1,useInsertionEffect:U1,useLayoutEffect:xn,useMemo:at,useReducer:Br,useRef:kt,useState:J,useSyncExternalStore:qo,useTransition:N1,version:gm}),Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}
29function ym(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var W1={exports:{}},Ne={},vt=typeof Symbol=="function"&&Symbol.for,Jo=vt?Symbol.for("react.element"):60103,Xo=vt?Symbol.for("react.portal"):60106,Ha=vt?Symbol.for("react.fragment"):60107,za=vt?Symbol.for("react.strict_mode"):60108,Wa=vt?Symbol.for("react.profiler"):60114,Ga=vt?Symbol.for("react.provider"):60109,Va=vt?Symbol.for("react.context"):60110,Qo=vt?Symbol.for("react.async_mode"):60111,Ka=vt?Symbol.for("react.concurrent_mode"):60111,Za=vt?Symbol.for("react.forward_ref"):60112,qa=vt?Symbol.for("react.suspense"):60113,_m=vt?Symbol.for("react.suspense_list"):60120,Ya=vt?Symbol.for("react.memo"):60115,Ja=vt?Symbol.for("react.lazy"):60116,bm=vt?Symbol.for("react.block"):60121,wm=vt?Symbol.for("react.fundamental"):60117,Cm=vt?Symbol.for("react.responder"):60118,Em=vt?Symbol.for("react.scope"):60119;function Ft(t){if(Ae(t)==="object"&&t!==null){var e=t.$$typeof;switch(e){case Jo:switch(t=t.type,t){case Qo:case Ka:case Ha:case Wa:case za:case qa:return t;default:switch(t=t&&t.$$typeof,t){case Va:case Za:case Ja:case Ya:case Ga:return t;default:return e}}case Xo:return e}}}function G1(t){return Ft(t)===Ka}Ne.AsyncMode=Qo;Ne.ConcurrentMode=Ka;Ne.ContextConsumer=Va;Ne.ContextProvider=Ga;Ne.Element=Jo;Ne.ForwardRef=Za;Ne.Fragment=Ha;Ne.Lazy=Ja;Ne.Memo=Ya;Ne.Portal=Xo;Ne.Profiler=Wa;Ne.StrictMode=za;Ne.Suspense=qa;Ne.isAsyncMode=function(t){return G1(t)||Ft(t)===Qo};Ne.isConcurrentMode=G1;Ne.isContextConsumer=function(t){return Ft(t)===Va};Ne.isContextProvider=function(t){return Ft(t)===Ga};Ne.isElement=function(t){return Ae(t)==="object"&&t!==null&&t.$$typeof===Jo};Ne.isForwardRef=function(t){return Ft(t)===Za};Ne.isFragment=function(t){return Ft(t)===Ha};Ne.isLazy=function(t){return Ft(t)===Ja};Ne.isMemo=function(t){return Ft(t)===Ya};Ne.isPortal=function(t){return Ft(t)===Xo};Ne.isProfiler=function(t){return Ft(t)===Wa};Ne.isStrictMode=function(t){return Ft(t)===za};Ne.isSuspense=function(t){return Ft(t)===qa};Ne.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ha||t===Ka||t===Wa||t===za||t===qa||t===_m||Ae(t)==="object"&&t!==null&&(t.$$typeof===Ja||t.$$typeof===Ya||t.$$typeof===Ga||t.$$typeof===Va||t.$$typeof===Za||t.$$typeof===wm||t.$$typeof===Cm||t.$$typeof===Em||t.$$typeof===bm)};Ne.typeOf=Ft;W1.exports=Ne;var es=W1.exports,km=function(e,n,r,a){var i=r?r.call(a,e,n):void 0;if(i!==void 0)return!!i;if(e===n)return!0;if(Ae(e)!=="object"||!e||Ae(n)!=="object"||!n)return!1;var o=Object.keys(e),s=Object.keys(n);if(o.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(n),c=0;c<o.length;c++){var h=o[c];if(!u(h))return!1;var d=e[h],f=n[h];if(i=r?r.call(a,d,f,h):void 0,i===!1||i===void 0&&d!==f)return!1}return!0},Sm=Yo(km);function Om(t){function e(Y,x,W,G,S){for(var se=0,$=0,de=0,me=0,ge,ee,Le=0,we=0,he,$e=he=ge=0,Oe=0,We=0,ft=0,Pe=0,St=W.length,gt=St-1,Ke,ve="",Ue="",Gt="",Vt="",ut;Oe<St;){if(ee=W.charCodeAt(Oe),Oe===gt&&$+me+de+se!==0&&($!==0&&(ee=$===47?10:47),me=de=se=0,St++,gt++),$+me+de+se===0){if(Oe===gt&&(0<We&&(ve=ve.replace(f,"")),0<ve.trim().length)){switch(ee){case 32:case 9:case 59:case 13:case 10:break;default:ve+=W.charAt(Oe)}ee=59}switch(ee){case 123:for(ve=ve.trim(),ge=ve.charCodeAt(0),he=1,Pe=++Oe;Oe<St;){switch(ee=W.charCodeAt(Oe)){case 123:he++;break;case 125:he--;break;case 47:switch(ee=W.charCodeAt(Oe+1)){case 42:case 47:e:{for($e=Oe+1;$e<gt;++$e)switch(W.charCodeAt($e)){case 47:if(ee===42&&W.charCodeAt($e-1)===42&&Oe+2!==$e){Oe=$e+1;break e}break;case 10:if(ee===47){Oe=$e+1;break e}}Oe=$e}}break;case 91:ee++;case 40:ee++;case 34:case 39:for(;Oe++<gt&&W.charCodeAt(Oe)!==ee;);}if(he===0)break;Oe++}switch(he=W.substring(Pe,Oe),ge===0&&(ge=(ve=ve.replace(d,"").trim()).charCo
29deAt(0)),ge){case 64:switch(0<We&&(ve=ve.replace(f,"")),ee=ve.charCodeAt(1),ee){case 100:case 109:case 115:case 45:We=x;break;default:We=N}if(he=e(x,We,he,ee,S+1),Pe=he.length,0<Q&&(We=n(N,ve,ft),ut=s(3,he,We,x,R,P,Pe,ee,S,G),ve=We.join(""),ut!==void 0&&(Pe=(he=ut.trim()).length)===0&&(ee=0,he="")),0<Pe)switch(ee){case 115:ve=ve.replace(T,o);case 100:case 109:case 45:he=ve+"{"+he+"}";break;case 107:ve=ve.replace(b,"$1 $2"),he=ve+"{"+he+"}",he=B===1||B===2&&i("@"+he,3)?"@-webkit-"+he+"@"+he:"@"+he;break;default:he=ve+he,G===112&&(he=(Ue+=he,""))}else he="";break;default:he=e(x,n(x,ve,ft),he,G,S+1)}Gt+=he,he=ft=We=$e=ge=0,ve="",ee=W.charCodeAt(++Oe);break;case 125:case 59:if(ve=(0<We?ve.replace(f,""):ve).trim(),1<(Pe=ve.length))switch($e===0&&(ge=ve.charCodeAt(0),ge===45||96<ge&&123>ge)&&(Pe=(ve=ve.replace(" ",":")).length),0<Q&&(ut=s(1,ve,x,Y,R,P,Ue.length,G,S,G))!==void 0&&(Pe=(ve=ut.trim()).length)===0&&(ve="\0\0"),ge=ve.charCodeAt(0),ee=ve.charCodeAt(1),ge){case 0:break;case 64:if(ee===105||ee===99){Vt+=ve+W.charAt(Oe);break}default:ve.charCodeAt(Pe-1)!==58&&(Ue+=a(ve,ge,ee,ve.charCodeAt(2)))}ft=We=$e=ge=0,ve="",ee=W.charCodeAt(++Oe)}}switch(ee){case 13:case 10:$===47?$=0:1+ge===0&&G!==107&&0<ve.length&&(We=1,ve+="\0"),0<Q*te&&s(0,ve,x,Y,R,P,Ue.length,G,S,G),P=1,R++;break;case 59:case 125:if($+me+de+se===0){P++;break}default:switch(P++,Ke=W.charAt(Oe),ee){case 9:case 32:if(me+se+$===0)switch(Le){case 44:case 58:case 9:case 32:Ke="";break;default:ee!==32&&(Ke=" ")}break;case 0:Ke="\\0";break;case 12:Ke="\\f";break;case 11:Ke="\\v";break;case 38:me+$+se===0&&(We=ft=1,Ke="\f"+Ke);break;case 108:if(me+$+se+M===0&&0<$e)switch(Oe-$e){case 2:Le===112&&W.charCodeAt(Oe-3)===58&&(M=Le);case 8:we===111&&(M=we)}break;case 58:me+$+se===0&&($e=Oe);break;case 44:$+de+me+se===0&&(We=1,Ke+="\r");break;case 34:case 39:$===0&&(me=me===ee?0:me===0?ee:me);break;case 91:me+$+de===0&&se++;break;case 93:me+$+de===0&&se--;break;case 41:me+$+se===0&&de--;break;case 40:me+$+se===0&&(ge===0&&(2*Le+3*we===533||(ge=1)),de++);break;case 64:$+de+me+se+$e+he===0&&(he=1);break;case 42:case 47:if(!(0<me+se+de))switch($){case 0:switch(2*ee+3*W.charCodeAt(Oe+1)){case 235:$=47;break;case 220:Pe=Oe,$=42}break;case 42:ee===47&&Le===42&&Pe+2!==Oe&&(W.charCodeAt(Pe+2)===33&&(Ue+=W.substring(Pe,Oe+1)),Ke="",$=0)}}$===0&&(ve+=Ke)}we=Le,Le=ee,Oe++}if(Pe=Ue.length,0<Pe){if(We=x,0<Q&&(ut=s(2,Ue,We,Y,R,P,Pe,G,S,G),ut!==void 0&&(Ue=ut).length===0))return Vt+Ue+Gt;if(Ue=We.join(",")+"{"+Ue+"}",B*M!==0){switch(B!==2||i(Ue,2)||(M=0),M){case 111:Ue=Ue.replace(A,":-moz-$1")+Ue;break;case 112:Ue=Ue.replace(C,"::-webkit-input-$1")+Ue.replace(C,"::-moz-$1")+Ue.replace(C,":-ms-input-$1")+Ue}M=0}}return Vt+Ue+Gt}function n(Y,x,W){var G=x.trim().split(v);x=G;var S=G.length,se=Y.length;switch(se){case 0:case 1:var $=0;for(Y=se===0?"":Y[0]+" ";$<S;++$)x[$]=r(Y,x[$],W).trim();break;default:var de=$=0;for(x=[];$<S;++$)for(var me=0;me<se;++me)x[de++]=r(Y[me]+" ",G[$],W).trim()}return x}function r(Y,x,W){var G=x.charCodeAt(0);switch(33>G&&(G=(x=x.trim()).charCodeAt(0)),G){case 38:return x.replace(_,"$1"+Y.trim());case 58:return Y.trim()+x.replace(_,"$1"+Y.trim());default:if(0<1*W&&0<x.indexOf("\f"))return x.replace(_,(Y.charCodeAt(0)===58?"":"$1")+Y.trim())}return Y+x}function a(Y,x,W,G){var S=Y+";",se=2*x+3*W+4*G;if(se===944){Y=S.indexOf(":",9)+1;var $=S.substring(Y,S.length-1).trim();return $=S.substring(0,Y).trim()+$+";",B===1||B===2&&i($,1)?"-webkit-"+$+$:$}if(B===0||B===2&&!i(S,1))return S;
29switch(se){case 1015:return S.charCodeAt(10)===97?"-webkit-"+S+S:S;case 951:return S.charCodeAt(3)===116?"-webkit-"+S+S:S;case 963:return S.charCodeAt(5)===110?"-webkit-"+S+S:S;case 1009:if(S.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+S+S;case 978:return"-webkit-"+S+"-moz-"+S+S;case 1019:case 983:return"-webkit-"+S+"-moz-"+S+"-ms-"+S+S;case 883:if(S.charCodeAt(8)===45)return"-webkit-"+S+S;if(0<S.indexOf("image-set(",11))return S.replace(w,"$1-webkit-$2")+S;break;case 932:if(S.charCodeAt(4)===45)switch(S.charCodeAt(5)){case 103:return"-webkit-box-"+S.replace("-grow","")+"-webkit-"+S+"-ms-"+S.replace("grow","positive")+S;case 115:return"-webkit-"+S+"-ms-"+S.replace("shrink","negative")+S;case 98:return"-webkit-"+S+"-ms-"+S.replace("basis","preferred-size")+S}return"-webkit-"+S+"-ms-"+S+S;case 964:return"-webkit-"+S+"-ms-flex-"+S+S;case 1023:if(S.charCodeAt(8)!==99)break;return $=S.substring(S.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+$+"-webkit-"+S+"-ms-flex-pack"+$+S;case 1005:return m.test(S)?S.replace(p,":-webkit-")+S.replace(p,":-moz-")+S:S;case 1e3:switch($=S.substring(13).trim(),x=$.indexOf("-")+1,$.charCodeAt(0)+$.charCodeAt(x)){case 226:$=S.replace(E,"tb");break;case 232:$=S.replace(E,"tb-rl");break;case 220:$=S.replace(E,"lr");break;default:return S}return"-webkit-"+S+"-ms-"+$+S;case 1017:if(S.indexOf("sticky",9)===-1)break;case 975:switch(x=(S=Y).length-10,$=(S.charCodeAt(x)===33?S.substring(0,x):S).substring(Y.indexOf(":",7)+1).trim(),se=$.charCodeAt(0)+($.charCodeAt(7)|0)){case 203:if(111>$.charCodeAt(8))break;case 115:S=S.replace($,"-webkit-"+$)+";"+S;break;case 207:case 102:S=S.replace($,"-webkit-"+(102<se?"inline-":"")+"box")+";"+S.replace($,"-webkit-"+$)+";"+S.replace($,"-ms-"+$+"box")+";"+S}return S+";";case 938:if(S.charCodeAt(5)===45)switch(S.charCodeAt(6)){case 105:return $=S.replace("-items",""),"-webkit-"+S+"-webkit-box-"+$+"-ms-flex-"+$+S;case 115:return"-webkit-"+S+"-ms-flex-item-"+S.replace(L,"")+S;default:return"-webkit-"+S+"-ms-flex-line-pack"+S.replace("align-content","").replace(L,"")+S}break;case 973:case 989:if(S.charCodeAt(3)!==45||S.charCodeAt(4)===122)break;case 931:case 953:if(X.test(Y)===!0)return($=Y.substring(Y.indexOf(":")+1)).charCodeAt(0)===115?a(Y.replace("stretch","fill-available"),x,W,G).replace(":fill-available",":stretch"):S.replace($,"-webkit-"+$)+S.replace($,"-moz-"+$.replace("fill-",""))+S;break;case 962:if(S="-webkit-"+S+(S.charCodeAt(5)===102?"-ms-"+S:"")+S,W+G===211&&S.charCodeAt(13)===105&&0<S.indexOf("transform",10))return S.substring(0,S.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+S}return S}function i(Y,x){var W=Y.indexOf(x===1?":":"{"),G=Y.substring(0,x!==3?W:10);return W=Y.substring(W+1,Y.length-1),q(x!==2?G:G.replace(j,"$1"),W,x)}function o(Y,x){var W=a(x,x.charCodeAt(0),x.charCodeAt(1),x.charCodeAt(2));return W!==x+";"?W.replace(O," or ($1)").substring(4):"("+x+")"}function s(Y,x,W,G,S,se,$,de,me,ge){for(var ee=0,Le=x,we;ee<Q;++ee)switch(we=U[ee].call(h,Y,Le,W,G,S,se,$,de,me,ge)){case void 0:case!1:case!0:case null:break;default:Le=we}if(Le!==x)return Le}function u(Y){switch(Y){case void 0:case null:Q=U.length=0;break;default:if(typeof Y=="function")U[Q++]=Y;else if(Ae(Y)==="object")for(var x=0,W=Y.length;x<W;++x)u(Y[x]);else te=!!Y|0}return u}function c(Y){return Y=Y.prefix,Y!==void 0&&(q=null,Y?typeof Y!="function"?B=1:(B=2,q=Y):B=0),c}function h(Y,x){var W=Y;if(33>W.charCodeAt(0)&&(W=W.trim()),_e=W,W=[_e],0<Q){var G=s(-1,x,W,W,R,P,0,0,0,0);G!==void 0&&typeof G=="string"&&(x=G)}var S=e(N,W,x,0,0);return 0<Q&&(G=s(-2,S,W,W,R,P,S.length,0,0,0),G!==void 0&&(S=G)),_e="",M=0,P=R=1,S}var d=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,g=/([,: ])(transform)/g,v=/,\r+?/g,_=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,C=/::(place)/g,A=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,T=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,L=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,X=/stretch|:\s*\w+\-(?:conte|avail)/,w=/([^-])(image-set\()/,P=1,R=1,M=0,B=1,N=[],U=[],Q=0,q=null,te=0,_e="";return h.use=u,h.set=c,t!==void 0&&c(t),h}var Pm={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
29idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Am(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Tm=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nc=Am(function(t){return Tm.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),ts=es,Lm={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Im={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dm={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ns={};ns[ts.ForwardRef]=Dm;ns[ts.Memo]=V1;function rc(t){return ts.isMemo(t)?V1:ns[t.$$typeof]||Lm}var Rm=Object.defineProperty,Fm=Object.getOwnPropertyNames,ac=Object.getOwnPropertySymbols,Mm=Object.getOwnPropertyDescriptor,Bm=Object.getPrototypeOf,ic=Object.prototype;function K1(t,e,n){if(typeof e!="string"){if(ic){var r=Bm(e);r&&r!==ic&&K1(t,r,n)}var a=Fm(e);ac&&(a=a.concat(ac(e)));for(var i=rc(t),o=rc(e),s=0;s<a.length;++s){var u=a[s];if(!Im[u]&&!(n&&n[u])&&!(o&&o[u])&&!(i&&i[u])){var c=Mm(e,u);try{Rm(t,u,c)}catch{}}}}return t}var xm=K1,$m=Yo(xm);function Zt(){return(Zt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var oc=function(e,n){for(var r=[e[0]],a=0,i=n.length;a<i;a+=1)r.push(n[a],e[a+1]);return r},ho=function(e){return e!==null&&Ae(e)=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!es.typeOf(e)},Oa=Object.freeze([]),yn=Object.freeze({});function nr(t){return typeof t=="function"}function sc(t){return t.displayName||t.name||"Component"}function rs(t){return t&&typeof t.styledComponentId=="string"}var rr=typeof process<"u"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",as=typeof window<"u"&&"HTMLElement"in window,jm=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY);function Fn(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Nm=(function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var r=0,a=0;a<n;a++)r+=this.groupSizes[a];return r},e.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var a=this.groupSizes,i=a.length,o=i;n>=o;)(o<<=1)<0&&Fn(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(a),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var u=this.indexOfGroup(n+1),c=0,h=r.length;c<h;c++)this.tag.insertRule(u,r[c])&&(this.groupSizes[n]++,u++)},e.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],a=this.indexOfGroup(n),i=a+r;this.groupSizes[n]=0;for(var o=a;o<i;o++)this.tag.deleteRule(a)}},e.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var a=this.groupSizes[n],i=this.indexOfGroup(n),o=i+a,s=i;s<o;
29s++)r+=this.tag.getRule(s)+`/*!sc*/
30`;return r},t})(),va=new Map,Pa=new Map,yr=1,na=function(e){if(va.has(e))return va.get(e);for(;Pa.has(yr);)yr++;var n=yr++;return va.set(e,n),Pa.set(n,e),n},Um=function(e){return Pa.get(e)},Hm=function(e,n){n>=yr&&(yr=n+1),va.set(e,n),Pa.set(n,e)},zm="style["+rr+'][data-styled-version="5.3.5"]',Wm=new RegExp("^"+rr+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Gm=function(e,n,r){for(var a,i=r.split(","),o=0,s=i.length;o<s;o++)(a=i[o])&&e.registerName(n,a)},Vm=function(e,n){for(var r=(n.textContent||"").split(`/*!sc*/
31`),a=[],i=0,o=r.length;i<o;i++){var s=r[i].trim();if(s){var u=s.match(Wm);if(u){var c=0|parseInt(u[1],10),h=u[2];c!==0&&(Hm(h,c),Gm(e,h,u[3]),e.getTag().insertRules(c,a)),a.length=0}else a.push(s)}}},Km=function(){return typeof window<"u"&&window.__webpack_nonce__!==void 0?window.__webpack_nonce__:null},Z1=function(e){var n=document.head,r=e||n,a=document.createElement("style"),i=(function(u){for(var c=u.childNodes,h=c.length;h>=0;h--){var d=c[h];if(d&&d.nodeType===1&&d.hasAttribute(rr))return d}})(r),o=i!==void 0?i.nextSibling:null;a.setAttribute(rr,"active"),a.setAttribute("data-styled-version","5.3.5");var s=Km();return s&&a.setAttribute("nonce",s),r.insertBefore(a,o),a},Zm=(function(){function t(n){var r=this.element=Z1(n);r.appendChild(document.createTextNode("")),this.sheet=(function(a){if(a.sheet)return a.sheet;for(var i=document.styleSheets,o=0,s=i.length;o<s;o++){var u=i[o];if(u.ownerNode===a)return u}Fn(17)})(r),this.length=0}var e=t.prototype;return e.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},t})(),qm=(function(){function t(n){var r=this.element=Z1(n);this.nodes=r.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(n,r){if(n<=this.length&&n>=0){var a=document.createTextNode(r),i=this.nodes[n];return this.element.insertBefore(a,i||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},t})(),Ym=(function(){function t(n){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.getRule=function(n){return n<this.length?this.rules[n]:""},t})(),lc=as,Jm={isServer:!as,useCSSOMInjection:!jm},q1=(function(){function t(n,r,a){n===void 0&&(n=yn),r===void 0&&(r={}),this.options=Zt({},Jm,{},n),this.gs=r,this.names=new Map(a),this.server=!!n.isServer,!this.server&&as&&lc&&(lc=!1,(function(i){for(var o=document.querySelectorAll(zm),s=0,u=o.length;s<u;s++){var c=o[s];c&&c.getAttribute(rr)!=="active"&&(Vm(i,c),c.parentNode&&c.parentNode.removeChild(c))}})(this))}t.registerId=function(n){return na(n)};var e=t.prototype;return e.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new t(Zt({},this.options,{},n),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.getTag=function(){return this.tag||(this.tag=(a=(r=this.options).isServer,i=r.useCSSOMInjection,o=r.target,n=a?new Ym(o):i?new Zm(o):new qm(o),new Nm(n)));var n,r,a,i,o},e.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.registerName=function(n,r){if(na(n),this.names.has(n))this.names.get(n).add(r);else{var a=new Set;a.add(r),this.names.set(n,a)}},e.insertRules=function(n,r,a){this.registerName(n,r),this.getTag().insertRules(na(n),a)},e.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.clearRules=function(n){this.getTag().clearGroup(na(n)),this.clearNames(n)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return(function(n){for(var r=n.getTag(),a=r.length,i="",o=0;o<a;o++){var s=Um(o);if(s!==void 0){var u=n.names.get(s),c=r.getGroup(o);if(u&&c&&u.size){var h=rr+".g"+o+'[id="'+s+'"]',d="";u!==void 0&&u.forEach(function(f){f.length>0&&(d+=f+",")}),i+=""+c+h+'{content:"'+d+`"}/*!sc*/
32`}}}return i})(this)},t})(),Xm=/(a)(d)/gi,uc=function(e){return String.fromCharCode(e+(e>25?39:97))};function fo(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=uc(e%52)+n;return(uc(e%52)+n).replace(Xm,"$1-$2")}var Zn=function(e,n){for(var r=n.length;r;
32)e=33*e^n.charCodeAt(--r);return e},Y1=function(e){return Zn(5381,e)};function Qm(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(nr(n)&&!rs(n))return!1}return!0}var ev=Y1("5.3.5"),tv=(function(){function t(e,n,r){this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&Qm(e),this.componentId=n,this.baseHash=Zn(ev,n),this.baseStyle=r,q1.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var a=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(a,this.staticRulesId))i.push(this.staticRulesId);else{var o=ar(this.rules,e,n,r).join(""),s=fo(Zn(this.baseHash,o)>>>0);if(!n.hasNameForId(a,s)){var u=r(o,"."+s,void 0,a);n.insertRules(a,s,u)}i.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,h=Zn(this.baseHash,r.hash),d="",f=0;f<c;f++){var p=this.rules[f];if(typeof p=="string")d+=p;else if(p){var m=ar(p,e,n,r),g=Array.isArray(m)?m.join(""):m;h=Zn(h,g+f),d+=g}}if(d){var v=fo(h>>>0);if(!n.hasNameForId(a,v)){var _=r(d,"."+v,void 0,a);n.insertRules(a,v,_)}i.push(v)}}return i.join(" ")},t})(),nv=/^\s*\/\/.*$/gm,rv=[":","[",".","#"];function J1(t){var e,n,r,a,i=t===void 0?yn:t,o=i.options,s=o===void 0?yn:o,u=i.plugins,c=u===void 0?Oa:u,h=new Om(s),d=[],f=(function(g){function v(_){if(_)try{g(_+"}")}catch{}}return function(_,b,C,A,E,T,O,L,j,X){switch(_){case 1:if(j===0&&b.charCodeAt(0)===64)return g(b+";"),"";break;case 2:if(L===0)return b+"/*|*/";break;case 3:switch(L){case 102:case 112:return g(C[0]+b),"";default:return b+(X===0?"/*|*/":"")}case-2:b.split("/*|*/}").forEach(v)}}})(function(g){d.push(g)}),p=function(v,_,b){return _===0&&rv.indexOf(b[n.length])!==-1||b.match(a)?v:"."+e};function m(g,v,_,b){b===void 0&&(b="&");var C=g.replace(nv,""),A=v&&_?_+" "+v+" { "+C+" }":C;return e=b,n=v,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),h(_||!v?"":v,A)}return h.use([].concat(c,[function(g,v,_){g===2&&_.length&&_[0].lastIndexOf(n)>0&&(_[0]=_[0].replace(r,p))},f,function(g){if(g===-2){var v=d;return d=[],v}}])),m.hash=c.length?c.reduce(function(g,v){return v.name||Fn(15),Zn(g,v.name)},5381).toString():"",m}var is=l.createContext();is.Consumer;var os=l.createContext(),av=(os.Consumer,new q1),po=J1();function X1(){return Wt(is)||av}function iv(){return Wt(os)||po}function Q1(t){var e=J(t.stylisPlugins),n=e[0],r=e[1],a=X1(),i=at(function(){var s=a;return t.sheet?s=t.sheet:t.target&&(s=s.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(s=s.reconstructWithOptions({useCSSOMInjection:!1})),s},[t.disableCSSOMInjection,t.sheet,t.target]),o=at(function(){return J1({options:{prefix:!t.disableVendorPrefixes},plugins:n})},[t.disableVendorPrefixes,n]);return Te(function(){Sm(n,t.stylisPlugins)||r(t.stylisPlugins)},[t.stylisPlugins]),l.createElement(is.Provider,{value:i},l.createElement(os.Provider,{value:o},t.children))}var ed=(function(){function t(e,n){var r=this;this.inject=function(a,i){i===void 0&&(i=po);var o=r.name+i.hash;a.hasNameForId(r.id,o)||a.insertRules(r.id,o,i(r.rules,o,"@keyframes"))},this.toString=function(){return Fn(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=po),this.name+e.hash},t})(),ov=/([A-Z])/,sv=/([A-Z])/g,lv=/^ms-/,uv=function(e){return"-"+e.toLowerCase()};function cc(t){return ov.test(t)?t.replace(sv,uv).replace(lv,"-ms-"):t}var dc=function(e){return e==null||e===!1||e===""};function ar(t,e,n,r){if(Array.isArray(t)){for(var a,i=[],o=0,s=t.length;o<s;o+=1)(a=ar(t[o],e,n,r))!==""&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));return i}if(dc(t))return"";if(rs(t))return"."+t.styledComponentId;if(nr(t)){if(typeof(c=t)!="function"||c.prototype&&c.prototype.isReactComponent||!e)return t;var u=t(e);return ar(u,e,n,r)}var c;return t instanceof ed?n?(t.inject(n,r),t.getName(r)):t:ho(t)?(function h(d,f){var p,m,g=[];for(var v in d)d.hasOwnProperty(v)&&!dc(d[v])&&(Array.isArray(d[v])&&d[v].isCss||nr(d[v])?g.push(cc(v)+":",d[v],";"):ho(d[v])?g.push.apply(g,h(d[v],v)):g.push(cc(v)+": "+(p=v,(m=d[v])==null||typeof m=="boolean"||m===""?"":typeof m!="number"||m===0||p in Pm?String(m).trim():m+"px")+";"));return f?[f+" {"].concat(g,["}"]):g})(t):t.toString()}var hc=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ss(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return nr(t)||ho(t)?hc(ar(oc(Oa,[t].concat(n)))):n.length===0&&t.length===1&&typeof t[0]=="string"?t:hc(ar(oc(t,n)))}var cv=function(e,n,r){return r===void 0&&(r=yn),e.theme!==r.theme&&e.theme||n||r.theme},dv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hv=/(^-|-$)/g;function Ui(t){return t.replace(dv,"-").replace(hv,"")}var td=function(e){return fo(Y1(e)>>>0)};function ra(t){return typeof t=="string"&&!0}var mo=function(e){return typeof e=="function"||Ae(e)=="object"&&e!==null&&!Array.isArray(e)},fv=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function pv(t,e,n){var r=t[n];mo(e)&&mo(r)?nd(r,e):t[n]=e}
32function nd(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var a=0,i=n;a<i.length;a++){var o=i[a];if(mo(o))for(var s in o)fv(s)&&pv(t,o[s],s)}return t}var Ar=l.createContext();Ar.Consumer;function Xa(t){var e=Wt(Ar),n=at(function(){return(function(r,a){if(!r)return Fn(14);if(nr(r)){var i=r(a);return i}return Array.isArray(r)||Ae(r)!="object"?Fn(8):a?Zt({},a,{},r):r})(t.theme,e)},[t.theme,e]);return t.children?l.createElement(Ar.Provider,{value:n},t.children):null}var Hi={};function rd(t,e,n){var r=rs(t),a=!ra(t),i=e.attrs,o=i===void 0?Oa:i,s=e.componentId,u=s===void 0?(function(b,C){var A=typeof b!="string"?"sc":Ui(b);Hi[A]=(Hi[A]||0)+1;var E=A+"-"+td("5.3.5"+A+Hi[A]);return C?C+"-"+E:E})(e.displayName,e.parentComponentId):s,c=e.displayName,h=c===void 0?(function(b){return ra(b)?"styled."+b:"Styled("+sc(b)+")"})(t):c,d=e.displayName&&e.componentId?Ui(e.displayName)+"-"+e.componentId:e.componentId||u,f=r&&t.attrs?Array.prototype.concat(t.attrs,o).filter(Boolean):o,p=e.shouldForwardProp;r&&t.shouldForwardProp&&(p=e.shouldForwardProp?function(b,C,A){return t.shouldForwardProp(b,C,A)&&e.shouldForwardProp(b,C,A)}:t.shouldForwardProp);var m,g=new tv(n,d,r?t.componentStyle:void 0),v=g.isStatic&&o.length===0,_=function(C,A){return(function(E,T,O,L){var j=E.attrs,X=E.componentStyle,w=E.defaultProps,P=E.foldedComponentIds,R=E.shouldForwardProp,M=E.styledComponentId,B=E.target,N=(function(S,se,$){S===void 0&&(S=yn);var de=Zt({},se,{theme:S}),me={};return $.forEach(function(ge){var ee,Le,we,he=ge;for(ee in nr(he)&&(he=he(de)),he)de[ee]=me[ee]=ee==="className"?(Le=me[ee],we=he[ee],Le&&we?Le+" "+we:Le||we):he[ee]}),[de,me]})(cv(T,Wt(Ar),w)||yn,T,j),U=N[0],Q=N[1],q=(function(S,se,$,de){var me=X1(),ge=iv(),ee=se?S.generateAndInjectStyles(yn,me,ge):S.generateAndInjectStyles($,me,ge);return ee})(X,L,U),te=O,_e=Q.$as||T.$as||Q.as||T.as||B,Y=ra(_e),x=Q!==T?Zt({},T,{},Q):T,W={};for(var G in x)G[0]!=="$"&&G!=="as"&&(G==="forwardedAs"?W.as=x[G]:(R?R(G,nc,_e):!Y||nc(G))&&(W[G]=x[G]));return T.style&&Q.style!==T.style&&(W.style=Zt({},T.style,{},Q.style)),W.className=Array.prototype.concat(P,M,q!==M?q:null,T.className,Q.className).filter(Boolean).join(" "),W.ref=te,H(_e,W)})(m,C,A,v)};return _.displayName=h,(m=l.forwardRef(_)).attrs=f,m.componentStyle=g,m.displayName=h,m.shouldForwardProp=p,m.foldedComponentIds=r?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Oa,m.styledComponentId=d,m.target=r?t.target:t,m.withComponent=function(b){var C=e.componentId,A=(function(T,O){if(T==null)return{};var L,j,X={},w=Object.keys(T);for(j=0;j<w.length;j++)L=w[j],O.indexOf(L)>=0||(X[L]=T[L]);return X})(e,["componentId"]),E=C&&C+"-"+(ra(b)?b:Ui(sc(b)));return rd(b,Zt({},A,{attrs:f,componentId:E}),n)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=r?nd({},t.defaultProps,C):C}}),m.toString=function(){return"."+m.styledComponentId},a&&$m(m,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}
32var oe=function(e){return(function n(r,a,i){if(i===void 0&&(i=yn),!es.isValidElementType(a))return Fn(1,String(a));var o=function(){return r(a,i,ss.apply(void 0,arguments))};return o.withConfig=function(s){return n(r,a,Zt({},i,{},s))},o.attrs=function(s){return n(r,a,Zt({},i,{attrs:Array.prototype.concat(i.attrs,s).filter(Boolean)}))},o})(rd,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){oe[t]=oe(t)});function xr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var a=ss.apply(void 0,[t].concat(n)).join(""),i=td(a);return new ed(i,a)}var Qa=function(){return Wt(Ar)},mv={"button.back.ariaLabel":["Back"],"button.cancel":["Cancel"],"button.continue":["Continue"],"button.createPasskey":["Create a Passkey"],"button.createPasswordInstead":["Create a password instead"],"button.delete":["Delete"],"button.done":["Done"],"button.edit":["Edit"],"button.emailLogin":["Continue with email"],"button.emailMagicLink":["Email me a login link"],"button.emailOTP":["Email me a login code"],"button.forgotPassword":["Forgot Password?"],"button.hidePassword":["Hide password"],"button.loginWithPasskey":["Login with a Passkey"],"button.loginWithoutPassword":["Login without a password"],"button.retry":["Try again"],"button.save":["Save"],"button.showPassword":["Show password"],"button.skip":["Skip"],"button.sms":["Continue with text message"],"button.whatsapp":["Continue with WhatsApp"],"createAccount.title":["Choose how you would like to create your account."],"crypto.connectWallet.instructionPopup":["Complete sign in by connecting through the wallet pop up in the right corner of your screen."],"crypto.connectWallet.title":["Connecting to your wallet..."],"crypto.continueWithOtherWallet.title":["Continue with other wallet"],"crypto.error.content":["Your sign in request could not be completed. Use the back arrow to return to the log in screen and try again!"],"crypto.error.title":["Looks like there was an error!"],"crypto.setupNewWallet.content":["Signing in with a crypto wallet can help keep your account private and secure."],"crypto.setupNewWallet.instruction":["Get started by downloading any Ethereum or Solana wallet. We\u2019ve included a few examples of wallet extensions you can find below. Once you\u2019ve set up your wallet, you can use it to sign in!"],"crypto.setupNewWallet.title":["Set up a new crypto wallet"],"crypto.signMessage.instruction":["Complete the signature request through the wallet pop up in the right corner of your screen."],"crypto.signMessage.title":["Completing signature request..."],"crypto.success.content":["You have successfully connected your wallet."],"crypto.success.title":["Success!"],"crypto.troubleHelp":["Having trouble? Use the back arrow to return to the main screen and try logging in again."],"crypto.wallet.binance":["Binance"],"crypto.wallet.coinbase":["Coinbase"],"crypto.wallet.continueWithBinance":["Continue with Binance"],"crypto.wallet.continueWithCoinbase":["Continue with Coinbase"],"crypto.wallet.continueWithEthereum":["Continue with Other Ethereum Wallet"],"crypto.wallet.continueWithMetamask":["Continue with Metamask"],"crypto.wallet.continueWithOtherWallet":["Continue with other Crypto Wallet"],"crypto.wallet.continueWithPhantom":["Continue with Phantom"],"crypto.wallet.continueWithSolana":["Continue with Other Solana Wallet"],"crypto.wallet.continueWithVessel":["Continue with Vessel"],"crypto.wallet.metamask":["Metamask"],"crypto.wallet.otherEthereum":["Other Ethereum Wallet"],"crypto.wallet.otherSolana":["Other Solana Wallet"],"crypto.wallet.phantom":["Phantom"],"crypto.wallet.setupNewWallet":["Set up a new crypto wallet"],"crypto.wallet.vessel":["Vessel"],"emailConfirmation.content":["An email was sent to <bold>",["email"],"</bold>."],"emailConfirmation.title":["Check your email"],"error.breachedPassword":["Password appears in the list of breached passwords and must be reset."],"error.duplicatePasskey":["The Passkey cannot be created as it seems to be already registered. It is possible this Passkey was registered on another device but has synced cross-device."],"error.duplicatePhoneNumber":["A member with the specified phone number already exists for this organization."],"error.emailNotFound":["Email not found."],"error.inactiveEmail"
32:["The email address is marked as inactive. Please try another email address, or contact your admin if you think this is a mistake."],"error.invalidCode":["Code format is invalid, please try again."],"error.invalidEmail":["Email format is invalid."],"error.invalidPhoneNumber":["Phone number format is invalid. Ensure the phone number is in the E.164 format."],"error.invalidPhoneNumberCountryCode":["The phone number's country code is invalid, unsupported, or disabled."],"error.invalidSessionToken":["Invalid session token."],"error.memberPasswordNotFound":["Member password not found."],"error.noUserPassword":["Password not found for this user. Please try again."],"error.oauthFlowCallbackError":["An error was encountered in the callback of the OAuth flow. Please try again."],"error.oauthTokenNotFound":["OAuth Token could not be found."],"error.otpCodeNotFound":["Invalid passcode, please try again."],"error.passkeyNotCreated":["Your Passkey was not created. Click \u201CCreate a Passkey\u201D to try again or skip without adding a Passkey."],"error.passkeyRegistrationNotFound":["Passkey registration not found. You may have deleted the passkey from your account but not password manager. Please try again."],"error.passkeyUnknown":["Unknown error occurred during passkey authentication. Please try again."],"error.resetPassword":["Password must be reset."],"error.sessionNotFound":["Session not found."],"error.title":["Looks like there was an error!"],"error.unableToAuthMagicLink":["The magic link could not be authenticated because it was either already used or expired. Please try again."],"error.unauthorizedAction":["Unauthorized action."],"error.unauthorizedCredentials":["Unauthorized credentials."],"error.unsubscribedPhoneNumber":["Phone number is unsubscribed. User has unsubscribed. Resubscribe by texting 'START' before messages can be sent."],"error.userLockLimitReached":["Too many failed authentication attempts. Please try again later."],"error.userUnauthenticated":["Must have an active session to call this method. Have you logged in yet?"],"errors.invalidEmail":["Invalid email address."],"formField.countryCode.label":["Country code"],"formField.email.label":["Email"],"formField.email.placeholder":["[email protected]"],"formField.otp.ariaLabel":["One-time passcode"],"formField.passcode.status.verifying":["Verifying passcode..."],"formField.password.label":["Password"],"formField.phone.label":["Phone number"],"idpConsent.allowClientTo":["Allow ",["clientName"]," to:"],"idpConsent.button.allow":["Allow"],"idpConsent.button.deny":["Deny"],"idpConsent.cannotGrantRequest":["You cannot grant ",["clientName"],"'s request to:"],"idpConsent.customScopes.title":[["clientName"]," wants to access your ",["projectName"]," account"],"idpConsent.defaultClientName":["The App"],"idpConsent.denied":["Access to the application was denied."],"idpConsent.noActiveSession":["No active session detected. Please log in to continue."],"idpConsent.noPermissionsToGrant":["You do not have permissions to grant ",["clientName"]," access to some of the requested scopes."],"idpConsent.signIn.title":["Sign in to ",["clientName"]," with ",["projectName"]],"idpLogout.confirmMessage":["Are you sure you want to log out of your ",["projectName"]," account?"],"idpLogout.no":["No"],"idpLogout.notLoggedOut":["You have not been logged out. You may close this page."],"idpLogout.title":["Log out?"],"idpLogout.yes":["Yes"],"link.openInGmail":["Open in Gmail"],"link.openInOutlook":["Open in Outlook"],"link.openInYahoo":["Open in Yahoo"],"login.loading":["Logging in..."],"login.success.content":["You have successfully logged in."],"login.title":["Sign up or log in"],"methodDivider.text":["or"],"oauth.continueWithAmazon":["Continue with Amazon"],"oauth.continueWithApple":["Continue with Apple"],"oauth.continueWithBitbucket":["Continue with Bitbucket"],"oauth.continueWithCoinbase":["Continue with Coinbase"],"oauth.continueWithDiscord":["Continue with Discord"],"oauth.continueWithFacebook":["Continue with Facebook"],"oauth.continueWithFigma":["Continue with Figma"],"oauth.continueWithGitHub":["Continue with GitHub"],"oauth.continueWithGitLab":["Continue with GitLab"],"oauth.continueWithGoogle":["Continue with Google"],"oauth.continueWithLinkedIn":["Continue with LinkedIn"],"oauth.continueWithMicrosoft":["Continue with Microsoft"],"oauth.continueWithSalesforce":["Continue with Salesforce"],"oauth.continueWithSlack":["Continue with Slack"],"oauth.continueWithSnapchat":["Continue with Snapchat"],"oauth.continueWithTikTok":["Continue with TikTok"],"oauth.continueWithTwitch":["Continue with Twitch"],"oauth.continueWithTwitter":["Continue with Twitter"],"oauth.continueWithYahoo":["Continue with Yahoo"],"otp.success.content":["Your passcode has been successfully verified."],"passcode.codeSent":["Code sent"],"passcode.didntGetIt":["Didn't get it?"],"passcode.expirationCountdown":["Your code expires in ",["timeRemaining"],"."],"passcode.expired":["Your code has expired."],"passcode.resendCode":["Resend code"],"passcode.sentConfirmation":["A 6-digit passcode was sent to you at <bold>
32",["destination"],"</bold>."],"passcode.title":["Enter passcode"],"passkey.editing.label":["Passkey name"],"passkey.registrationStart.description":["Passkeys are encrypted digital keys you create using your fingerprint, face, or screen lock. Creating a Passkey will allow you to easily and securely log in to your account."],"passkey.registrationStart.error.noUser":["Error: Cannot use PasskeyRegistration component without active user authenticated."],"passkey.registrationStart.subtitle":["With Passkeys you don't need to remember complex passwords."],"passkey.registrationStart.title":["Set up a new Passkey"],"passkey.registrationSuccess.deleteWarning":["Once deleted, the passkey cannot be restored."],"passkey.registrationSuccess.existingPasskeys":["Existing Passkeys"],"passkey.registrationSuccess.setupAnother":["Set up another Passkey"],"passkey.registrationSuccess.title":["Passkey successfully created!"],"passkey.success.content":["Your Passkey has been successfully authenticated."],"password.breached.content":["A different site where you use the same password had a security issue recently. For your safety, an email was sent to you at <bold>",["email"],"</bold> to reset your password."],"password.breached.title":["Check your email to set a new password"],"password.createAccount.content":["Finish creating your account by setting a password."],"password.didntGetItResend":["Didn't get it? <resendButton>Resend email</resendButton>"],"password.forgot.content":["A link to reset your password was sent to you at <bold>",["email"],"</bold>."],"password.forgot.title":["Forgot password?"],"password.login.title":["Log In"],"password.reset.loggingInProgress":["Logging in..."],"password.reset.loginWithoutPassword":["Login without a password"],"password.reset.title":["Reset your password"],"password.resetRequired.content":["We want to make sure your account is secure and that it's really you logging in! A login link was sent to you at <bold>",["email"],"</bold>."],"password.resetRequired.title":["Check your email to set a new password!"],"password.setNew.content":["A login link was sent to you at <bold>",["email"],"</bold>."],"password.setNew.title":["Check your email!"],"password.strengthError.breached":["This password may have been used on a different site that experienced a security issue. Please choose another password."],"password.strengthError.complexity":[["complexity","plural",{one:["Must contain ","#"," of the following: uppercase letter, lowercase letter, number, symbol"],other:["Must contain ","#"," of the following: uppercase letter, lowercase letter, number, symbol"]}]],"password.strengthError.minimumLength":[["characterLength","plural",{one:["Must be at least ","#"," character long"],other:["Must be at least ","#"," characters long"]}]],"password.zxcvbn.suggestion.addWords":["Add another word or two. Uncommon words are better."],"password.zxcvbn.suggestion.allUppercase":["All-uppercase is almost as easy to guess as all-lowercase."],"password.zxcvbn.suggestion.avoidDatesAndYearsAssociatedWithYou":["Avoid dates and years that are associated with you."],"password.zxcvbn.suggestion.avoidRecentYears":["Avoid recent years."],"password.zxcvbn.suggestion.avoidRepeats":["Avoid repeated words and characters."],"password.zxcvbn.suggestion.avoidSequences":["Avoid sequences."],"password.zxcvbn.suggestion.avoidYearsAssociatedWithYou":["Avoid years that are associated with you."],"password.zxcvbn.suggestion.capitalization":["Capitalization doesn't help very much."],"password.zxcvbn.suggestion.longerKeyboardPattern":["Use a longer keyboard pattern with more turns."],"password.zxcvbn.suggestion.noSymbolsDigitsUppercase":["No need for symbols, digits, or uppercase letters."],"password.zxcvbn.suggestion.predictableSubstitutions":["Predictable substitutions like '@' instead of 'a' don't help very much."],"password.zxcvbn.suggestion.reversed":["Reversed words aren't much harder to guess."],"password.zxcvbn.suggestion.useAFewWords":["Use a few words, avoid common phrases."],"password.zxcvbn.warning.commonNames":["Common names and surnames are easy to guess."],"password.zxcvbn.warning.dates":["Dates are often easy to guess."],"password.zxcvbn.warning.longerRepeats":['Repeats like "abcabcabc" are only slightly harder to guess than "abc".'],"password.zxcvbn.warning.names":["Names and surnames by themselves are easy to guess."],"password.zxcvbn.warning.recentYears":["Recent years are easy to guess."],"password.zxcvbn.warning.repeats":['Repeats like "aaa" are easy to guess.'],"password.zxcvbn.warning.sequences":['
32Sequences like "abc" or "6543" are easy to guess.'],"password.zxcvbn.warning.shortKeyboardPatterns":["Short keyboard patterns are easy to guess."],"password.zxcvbn.warning.similarToCommonPassword":["This is similar to a commonly used password."],"password.zxcvbn.warning.straightRows":["Straight rows of keys are easy to guess."],"password.zxcvbn.warning.top100CommonPassword":["This is a top-100 common password."],"password.zxcvbn.warning.top10CommonPassword":["This is a top-10 common password."],"password.zxcvbn.warning.veryCommonPassword":["This is a very common password."],"password.zxcvbn.warning.wordByItself":["A word by itself is easy to guess."],"provider.lastUsed":["Last used"],"success.title":["Success!"],"tab.email":["Email"],"tab.text":["Text"],"tab.whatsapp":["WhatsApp"],"toast.emailResent":["Email resent"],"watermark.altText":["Powered by Stytch"]},ei=mv,ti={},ad={},id={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.moo=n()})(Ln,function(){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=typeof new RegExp().sticky=="boolean";function a(w){return w&&n.call(w)==="[object RegExp]"}function i(w){return w&&Ae(w)==="object"&&!a(w)&&!Array.isArray(w)}function o(w){return w.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(w){var P=new RegExp("|"+w);return P.exec("").length-1}function u(w){return"("+w+")"}function c(w){if(!w.length)return"(?!)";var P=w.map(function(R){return"(?:"+R+")"}).join("|");return"(?:"+P+")"}function h(w){if(typeof w=="string")return"(?:"+o(w)+")";if(a(w)){if(w.ignoreCase)throw new Error("RegExp /i flag not allowed");if(w.global)throw new Error("RegExp /g flag is implied");if(w.sticky)throw new Error("RegExp /y flag is implied");if(w.multiline)throw new Error("RegExp /m flag is implied");return w.source}else throw new Error("Not a pattern: "+w)}function d(w,P){return w.length>P?w:Array(P-w.length+1).join(" ")+w}function f(w,P){for(var R=w.length,M=0;;){var B=w.lastIndexOf(`
33`,R-1);if(B===-1||(M++,R=B,M===P)||R===0)break}var N=M<P?0:R+1;return w.substring(N).split(`
34`)}function p(w){for(var P=Object.getOwnPropertyNames(w),R=[],M=0;M<P.length;M++){var B=P[M],N=w[B],U=[].concat(N);if(B==="include"){for(var Q=0;Q<U.length;Q++)R.push({include:U[Q]});continue}var q=[];U.forEach(function(te){i(te)?(q.length&&R.push(g(B,q)),R.push(g(B,te)),q=[]):q.push(te)}),q.length&&R.push(g(B,q))}return R}function m(w){for(var P=[],R=0;R<w.length;R++){var M=w[R];if(M.include){for(var B=[].concat(M.include),N=0;N<B.length;N++)P.push({include:B[N]});continue}if(!M.type)throw new Error("Rule has no type: "+JSON.stringify(M));P.push(g(M.type,M))}return P}function g(w,P){if(i(P)||(P={match:P}),P.include)throw new Error("Matching rules cannot also include states");var R={defaultType:w,lineBreaks:!!P.error||!!P.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var M in P)e.call(P,M)&&(R[M]=P[M]);if(typeof R.type=="string"&&w!==R.type)throw new Error("Type transform cannot be a string (type '"+R.type+"' for token '"+w+"')");var B=R.match;return R.match=Array.isArray(B)?B:B?[B]:[],R.match.sort(function(N,U){return a(N)&&a(U)?0:a(U)?-1:a(N)?1:U.length-N.length}),R}function v(w){return Array.isArray(w)?m(w):p(w)}var _=g("error",{lineBreaks:!0,shouldThrow:!0});function b(w,P){for(var R=null,M=Object.create(null),B=!0,N=null,U=[],Q=[],q=0;q<w.length;q++)w[q].fallback&&(B=!1);for(var q=0;q<w.length;q++){var te=w[q];if(te.include)throw new Error("Inheritance is not allowed in stateless lexers");if(te.error||te.fallback){if(R)throw!te.fallback==!R.fallback?new Error("Multiple "+(te.fallback?"fallback":"error")+" rules not allowed (for token '"+te.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+te.defaultType+"')");R=te}var _e=te.match.slice();if(B)for(;_e.length&&typeof _e[0]=="string"&&_e[0].length===1;){var Y=_e.shift();M[Y.charCodeAt(0)]=te}if(te.pop||te.push||te.next){if(!P)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+te.defaultType+"')");if(te.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+te.defaultType+"')")}if(_e.length!==0){B=!1,U.push(te);for(var x=0;x<_e.length;x++){var W=_e[x];if(a(W)){if(N===null)N=W.unicode;else if(N!==W.unicode&&te.fallback===!1)throw new Error("If one rule is /u then all must be")}}var G=c(_e.map(h)),S=new RegExp(G);if(S.test(""))throw new Error("RegExp matches empty string: "+S);var se=s(G);
vendor: 5,252 bytes, lines 34-39
34if(se>0)throw new Error("RegExp has capture groups: "+S+`
35Use (?: \u2026 ) instead`);if(!te.lineBreaks&&S.test(`
36`))throw new Error("Rule should declare lineBreaks: "+S);Q.push(u(G))}}var $=R&&R.fallback,de=r&&!$?"ym":"gm",me=r||$?"":"|";N===!0&&(de+="u");var ge=new RegExp(c(Q)+me,de);return{regexp:ge,groups:U,fast:M,error:R||_}}function C(w){var P=b(v(w));return new O({start:P},"start")}function A(w,P,R){var M=w&&(w.push||w.next);if(M&&!R[M])throw new Error("Missing state '"+M+"' (in token '"+w.defaultType+"' of state '"+P+"')");if(w&&w.pop&&+w.pop!=1)throw new Error("pop must be 1 (in token '"+w.defaultType+"' of state '"+P+"')")}function E(w,P){var R=w.$all?v(w.$all):[];delete w.$all;var M=Object.getOwnPropertyNames(w);P||(P=M[0]);for(var B=Object.create(null),N=0;N<M.length;N++){var U=M[N];B[U]=v(w[U]).concat(R)}for(var N=0;N<M.length;N++)for(var U=M[N],Q=B[U],q=Object.create(null),te=0;te<Q.length;te++){var _e=Q[te];if(_e.include){var Y=[te,1];if(_e.include!==U&&!q[_e.include]){q[_e.include]=!0;var x=B[_e.include];if(!x)throw new Error("Cannot include nonexistent state '"+_e.include+"' (in state '"+U+"')");for(var W=0;W<x.length;W++){var G=x[W];Q.indexOf(G)===-1&&Y.push(G)}}Q.splice.apply(Q,Y),te--}}for(var S=Object.create(null),N=0;N<M.length;N++){var U=M[N];S[U]=b(B[U],!0)}for(var N=0;N<M.length;N++){for(var se=M[N],$=S[se],de=$.groups,te=0;te<de.length;te++)A(de[te],se,S);for(var me=Object.getOwnPropertyNames($.fast),te=0;te<me.length;te++)A($.fast[me[te]],se,S)}return new O(S,P)}function T(w){for(var P=typeof Map<"u",R=P?new Map:Object.create(null),M=Object.getOwnPropertyNames(w),B=0;B<M.length;B++){var N=M[B],U=w[N],Q=Array.isArray(U)?U:[U];Q.forEach(function(q){if(typeof q!="string")throw new Error("keyword must be string (in keyword '"+N+"')");P?R.set(q,N):R[q]=N})}return function(q){return P?R.get(q):R[q]}}var O=function(P,R){this.startState=R,this.states=P,this.buffer="",this.stack=[],this.reset()};O.prototype.reset=function(w,P){return this.buffer=w||"",this.index=0,this.line=P?P.line:1,this.col=P?P.col:1,this.queuedToken=P?P.queuedToken:null,this.queuedText=P?P.queuedText:"",this.queuedThrow=P?P.queuedThrow:null,this.setState(P?P.state:this.startState),this.stack=P&&P.stack?P.stack.slice():[],this},O.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},O.prototype.setState=function(w){if(!(!w||this.state===w)){this.state=w;var P=this.states[w];this.groups=P.groups,this.error=P.error,this.re=P.regexp,this.fast=P.fast}},O.prototype.popState=function(){this.setState(this.stack.pop())},O.prototype.pushState=function(w){this.stack.push(this.state),this.setState(w)};var L=r?function(w,P){return w.exec(P)}:function(w,P){var R=w.exec(P);return R[0].length===0?null:R};O.prototype._getGroup=function(w){for(var P=this.groups.length,R=0;R<P;R++)if(w[R+1]!==void 0)return this.groups[R];throw new Error("Cannot find token type for matched text")};function j(){return this.value}if(O.prototype.next=function(){var w=this.index;if(this.queuedGroup){var P=this._token(this.queuedGroup,this.queuedText,w);return this.queuedGroup=null,this.queuedText="",P}var R=this.buffer;if(w!==R.length){var U=this.fast[R.charCodeAt(w)];if(U)return this._token(U,R.charAt(w),w);var M=this.re;M.lastIndex=w;var B=L(M,R),N=this.error;if(B==null)return this._token(N,R.slice(w,R.length),w);var U=this._getGroup(B),Q=B[0];return N.fallback&&B.index!==w?(this.queuedGroup=U,this.queuedText=Q,this._token(N,R.slice(w,B.index),w)):this._token(U,Q,w)}},O.prototype._token=function(w,P,R){var M=0;if(w.lineBreaks){var B=/\n/g,N=1;if(P===`
37`)M=1;else for(;B.exec(P);)M++,N=B.lastIndex}var U={type:typeof w.type=="function"&&w.type(P)||w.defaultType,value:typeof w.value=="function"?w.value(P):P,text:P,toString:j,offset:R,lineBreaks:M,line:this.line,col:this.col},Q=P.length;if(this.index+=Q,this.line+=M,M!==0?this.col=Q-N+1:this.col+=Q,w.shouldThrow){var q=new Error(this.formatError(U,"invalid syntax"));throw q}return w.pop?this.popState():w.push?this.pushState(w.push):w.next&&this.setState(w.next),U},typeof Symbol<"u"&&Symbol.iterator){var X=function(P){this.lexer=P};X.prototype.next=function(){var w=this.lexer.next();return{value:w,done:!w}},X.prototype[Symbol.iterator]=function(){return this},O.prototype[Symbol.iterator]=function(){return new X(this)}}return O.prototype.formatError=function(w,P){if(w==null)var R=this.buffer.slice(this.index),w={text:R,offset:this.index,lineBreaks:R.indexOf(`
38`)===-1?0:1,line:this.line,col:this.col};var M=2,B=Math.max(w.line-M,1),N=w.line+M,U=String(N).length,Q=f(this.buffer,this.line-w.line+M+1).slice(0,5),q=[];q.push(P+" at line "+w.line+" col "+w.col+":"),q.push("");for(var te=0;te<Q.length;te++){var _e=Q[te],Y=B+te;q.push(d(String(Y),U)+"  "+_e),Y===w.line&&q.push(d("",U+w.col+1)+"^")}return q.join(`
39`)},O.prototype.clone=function(){return new O(this.states,this.state)},O.prototype.has=function(w){return!0},{compile:C,states:E,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:T}})})(id);var vv=id.exports;(function(t){var e=Ln&&Ln.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};
39Object.defineProperty(t,"__esModule",{value:!0}),t.lexer=t.states=void 0;var n=e(vv);t.states={body:{doubleapos:{match:"''",value:function(){return"'"}},quoted:{lineBreaks:!0,match:/'[#\{\}](?:(?:[\0-&\(-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|'')*'(?!')/,value:function(a){return a.slice(1,-1).replace(/''/g,"'")}},argument:{lineBreaks:!0,match:/\{[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[\0-\x08\x0E-\x1F0-9A-Z_a-z\x7F-\x84\x86-\xA0\xA8\xAA\xAD\xAF\xB2-\xB5\xB7-\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u200D\u202A-\u202F\u203F\u2040\u2054\u205F-\u218F\u2460-\u24FF\u2776-\u2793\u2C00-\u2DFF\u2E80-\u3000\u3004-\u3007\u3021-\u302F\u3031-\uD7FF\uE000-\uFD3D\uFD40-\uFE44\uFE47-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*/,push:"arg",value:function(a){return a.substring(1).trim()}},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\0-"\$-&\(-z\|~-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*/}},arg:{select:{lineBreaks:!0,match:/,[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:plural|select|selectordinal)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*/,next:"select",value:function(a){return a.split(",")[1].trim()}},"func-args":{lineBreaks:!0,match:/,[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[\0-\x08\x0E-\x1F0-9A-Z_a-z\x7F-\x84\x86-\xA0\xA8\xAA\xAD\xAF\xB2-\xB5\xB7-\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u200D\u202A-\u202F\u203F\u2040\u2054\u205F-\u218F\u2460-\u24FF\u2776-\u2793\u2C00-\u2DFF\u2E80-\u3000\u3004-\u3007\u3021-\u302F\u3031-\uD7FF\uE000-\uFD3D\uFD40-\uFE44\uFE47-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,/,next:"body",value:function(a){return a.split(",")[1].trim()}},"func-simple":{lineBreaks:!0,match:/,[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[\0-\x08\x0E-\x1F0-9A-Z_a-z\x7F-\x84\x86-\xA0\xA8\xAA\xAD\xAF\xB2-\xB5\xB7-\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u200D\u202A-\u202F\u203F\u2040\u2054\u205F-\u218F\u2460-\u24FF\u2776-\u2793\u2C00-\u2DFF\u2E80-\u3000\u3004-\u3007\u3021-\u302F\u3031-\uD7FF\uE000-\uFD3D\uFD40-\uFE44\uFE47-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*/,value:function(a){return a.substring(1).trim()}},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*offset[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*[0-9]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*/,value:function(a){return a.split(":")[1].trim()}},case:{lineBreaks:!0,match:/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:=[0-9]+|(?:[\0-\x08\x0E-\x1F0-9A-Z_a-z\x7F-\x84\x86-\xA0\xA8\xAA\xAD\xAF\xB2-\xB5\xB7-\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u200D\u202A-\u202F\u203F\u2040\u2054\u205F-\u218F\u2460-\u24FF\u2776-\u2793\u2C00-\u2DFF\u2E80-\u3000\u3004-\u3007\u3021-\u302F\u3031-\uD7FF\uE000-\uFD3D\uFD40-\uFE44\uFE47-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\{/,push:"body",value:function(a){return a.substring(0,a.indexOf("{")).trim()}},end:{match:/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\}/,pop:1}}},t.lexer=n.default.states(t.states)})(ad);Object.defineProperty(ti,"__esModule",{value:!0});ti.ParseError=void 0;var gv=ti.parse=wv,od=ad,aa=function(e){return{offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}},zi=function(e){return e==="plural"||e==="select"||e==="selectordinal"};function yv(t,e){var n="",r="",a=_n(e),i;try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.ctx.text;switch(r+=s,o.type){case"content":n+=o.value;break;case"argument":case"function":case"octothorpe":n+=s;break;default:throw new mt(t,"Unsupported part in strict mode function arg style: ".concat(s))}}}catch(c){a.e(c)}finally{a.f()}var u={type:"content",value:n.trim(),ctx:Object.assign({},e[0].ctx,{text:r})};return[u]}var _v=["number","date","time","spellout","ordinal","duration"],fc=["zero","one","two","few","many","other"],mt=(function(t){function e(n,r){return st(this,e),hn(this,e,[od.lexer.formatError(n,r)])}return fn(e,t),lt(e)})(Yn(Error));ti.ParseError=mt;var bv=(function(){function t(e,n){st(this,t);var r,a,i,o;this.lexer=od.lexer.reset(e),this.cardinalKeys=(r=n?.cardinal)!==null&&r!==void 0?r:fc,this.ordinalKeys=(a=n?.ordinal)!==null&&a!==void 0?a:fc,this.strict=(i=n?.strict)!==null&&i!==void 0?i:!1,this.strictPluralKeys=(o=n?.strictPluralKeys)!==null&&o!==void 0?o:!0}return lt(t,[{key:"parse",value:function(){return this.parseBody(!1,!0)}},{key:"checkSelectKey",value:function(n,r,a){if(a[0]==="="){if(r==="select")throw new mt(n,"The case ".concat(a," is not val
39id with select"))}else if(r!=="select"){var i=r==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&i.length>0&&!i.includes(a)){var o="The ".concat(r," case ").concat(a," is not valid in this locale");throw new mt(n,o)}}}},{key:"parseSelect",value:function(n,r,a,i){var o=n.value,s={type:i,arg:o,cases:[],ctx:a};i==="plural"||i==="selectordinal"?r=!0:this.strict&&(r=!1);var u=_n(this.lexer),c;try{for(u.s();!(c=u.n()).done;){var h=c.value;switch(h.type){case"offset":if(i==="select")throw new mt(h,"Unexpected plural offset for select");if(s.cases.length>0)throw new mt(h,"Plural offset must be set before cases");s.pluralOffset=Number(h.value),a.text+=h.text,a.lineBreaks+=h.lineBreaks;break;case"case":{this.checkSelectKey(h,i,h.value),s.cases.push({key:h.value,tokens:this.parseBody(r),ctx:aa(h)});break}case"end":return s;default:throw new mt(h,"Unexpected lexer token: ".concat(h.type))}}}catch(d){u.e(d)}finally{u.f()}throw new mt(null,"Unexpected message end")}},{key:"parseArgToken",value:function(n,r){var a=aa(n),i=this.lexer.next();if(!i)throw new mt(null,"Unexpected message end");if(a.text+=i.text,a.lineBreaks+=i.lineBreaks,this.strict&&(i.type==="func-simple"||i.type==="func-args")&&!_v.includes(i.value)){var o="Invalid strict mode function arg type: ".concat(i.value);throw new mt(n,o)}switch(i.type){case"end":return{type:"argument",arg:n.value,ctx:a};case"func-simple":{var s=this.lexer.next();if(!s)throw new mt(null,"Unexpected message end");if(s.type!=="end")throw new mt(s,"Unexpected lexer token: ".concat(s.type));if(a.text+=s.text,zi(i.value.toLowerCase()))throw new mt(i,"Invalid type identifier: ".concat(i.value));return{type:"function",arg:n.value,key:i.value,ctx:a}}case"func-args":{if(zi(i.value.toLowerCase())){var u="Invalid type identifier: ".concat(i.value);throw new mt(i,u)}var c=this.parseBody(this.strict?!1:r);return this.strict&&c.length>0&&(c=yv(n,c)),{type:"function",arg:n.value,key:i.value,param:c,ctx:a}}case"select":if(zi(i.value))return this.parseSelect(n,r,a,i.value);throw new mt(i,"Unexpected select type ".concat(i.value));default:throw new mt(i,"Unexpected lexer token: ".concat(i.type))}}},{key:"parseBody",value:function(n,r){var a=[],i=null,o=_n(this.lexer),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;if(u.type==="argument")i&&(i=null),a.push(this.parseArgToken(u,n));else if(u.type==="octothorpe"&&n)i&&(i=null),a.push({type:"octothorpe",ctx:aa(u)});else{if(u.type==="end"&&!r)return a;var c=u.value;if(!n&&u.type==="quoted"&&c[0]==="#"){if(c.includes("{")){var h="Unsupported escape pattern: ".concat(c);throw new mt(u,h)}c=u.text}i?(i.value+=c,i.ctx.text+=u.text,i.ctx.lineBreaks+=u.lineBreaks):(i={type:"content",value:c,ctx:aa(u)},a.push(i))}}}catch(d){o.e(d)}finally{o.f()}if(r)return a;throw new mt(null,"Unexpected message end")}}])})();function wv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new bv(t,e);return n.parse()}var Tn=(function(t){function e(n,r,a){var i;return st(this,e),i=hn(this,e,[n]),i.token=r,i.type=a||"error",i}return fn(e,t),lt(e)})(Yn(Error)),sd=function(e){return e<4?"short":e===4?"long":"narrow"},Tr=function(e){return e%2===0?"2-digit":"numeric"};function Cv(t,e){switch(t.char){case"y":return{year:Tr(t.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return e("".concat(t.desc," is not supported; falling back to year:numeric"),Tn.WARNING),{year:"numeric"}}}function Ev(t,e){switch(t.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:e("".concat(t.desc," is not supported with width ").concat(t.width));return}}function kv(t,e){var n=t.char,r=t.desc,a=t.width;if(n==="d")return Tr(a);e("".concat(r," is not supported"))}function Sv(t,e){var n=t.char,r=t.desc,a=t.width;if((n==="c"||n==="e")&&a<3){var i="Numeric value is not supported for ".concat(r,"; falling back to weekday:short");e(i,Tn.WARNING)}return sd(a)}function Ov(t){var e=Tr(t.width),n;switch(t.char){case"h":n="h12";break;case"H":n="h23";break;case"k":n="h24";break;case"K":n="h11";break}return n?{hour:e,hourCycle:n}:{hour:e}}
39function Pv(t,e){var n=t.char,r=t.desc,a=t.width;switch(n){case"v":case"z":return a===4?"long":"short";case"V":if(a===4)return"long";e("".concat(r," is not supported with width ").concat(a));return;case"X":e("".concat(r," is not supported"));return}return"short"}function Av(t,e){switch(t.field){case"era":return{era:sd(t.width)};case"year":return Cv(t,e);case"month":return{month:Ev(t,e)};case"day":return{day:kv(t,e)};case"weekday":return{weekday:Sv(t,e)};case"period":return;case"hour":return Ov(t);case"min":return{minute:Tr(t.width)};case"sec":return{second:Tr(t.width)};case"tz":return{timeZoneName:Pv(t,e)};case"quarter":case"week":case"sec-frac":case"ms":e("".concat(t.desc," is not supported"))}}function Tv(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(u){throw u},r={timeZone:e},a=[],i=_n(t),o;try{var s=function(){var c=o.value,h=c.error,d=c.field,f=c.str;if(h){var p=new Tn(h.message,c);p.stack=h.stack,n(p)}if(f){var m="Ignoring string part: ".concat(f);n(new Tn(m,c,Tn.WARNING))}d&&(a.indexOf(d)===-1?a.push(d):n(new Tn("Duplicate ".concat(d," token"),c)));var g=Av(c,function(v,_){return n(new Tn(v,c,_))});g&&Object.assign(r,g)};for(i.s();!(o=i.n()).done;)s()}catch(u){i.e(u)}finally{i.f()}return r}var Lv={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},pc=function(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"};function Iv(t,e){for(var n=t[e],r=1;t[++e]===n;)++r;var a=Lv[n];if(!a){var i="The letter ".concat(n," is not a valid field identifier");return{char:n,error:new Error(i),width:r}}return{char:n,field:a.field,desc:a.desc,width:r}}function Dv(t,e){var n=t[++e],r=2;if(n==="'")return{char:"'",str:n,width:r};for(;;){var a=t[++e];if(++r,a===void 0){var i="Unterminated quoted literal in pattern: ".concat(n||t);return{char:"'",error:new Error(i),str:n,width:r}}else if(a==="'"){if(t[++e]!=="'")return{char:"'",str:n,width:r};++r}n+=a}}function Rv(t,e){var n=t[e];if(!n)return null;if(pc(n))return Iv(t,e);if(n==="'")return Dv(t,e);for(var r=n,a=1;;){var i=t[++e];if(!i||pc(i)||i==="'")return{char:n,str:r,width:a};r+=i,a+=1}}function Fv(t){for(var e=[],n=0;;){var r=Rv(t,n);if(!r)return e;e.push(r),n+=r.width}}function ld(t,e){return t.filter(function(n){return n.type!=="content"}).length?t.map(function(n){if(n.type==="content")return e(n.value);if(n.type==="octothorpe")return"#";if(n.type==="argument")return[n.arg];if(n.type==="function"){var r,a=n==null||(r=n.param)===null||r===void 0?void 0:r[0];if(n.key==="date"&&a){var i=Mv(a.value.trim(),function(u){throw new Error("Unable to compile date expression: ".concat(u.message))});return[n.arg,n.key,i]}return a?[n.arg,n.key,a.value.trim()]:[n.arg,n.key]}var o=n.pluralOffset,s={};
39return n.cases.forEach(function(u){var c=u.key,h=u.tokens,d=c[0]==="="?c.slice(1):c;s[d]=ld(h,e)}),[n.arg,n.type,re({offset:o},s)]}):t.map(function(n){return e(n.value)})}function Mv(t,e){if(/^::/.test(t)){var n=Fv(t.substring(2));return Tv(n,void 0,e)}return t}function Bv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(n){return n};return ld(gv(t),e)}function xv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(n){return n};try{return Bv(t,e)}catch(n){return console.error("".concat(n.message,` 
40
41Message: `).concat(t)),[t]}}var vn=function(e){return typeof e=="string"},$v=function(e){return typeof e=="function"},mc=new Map,ud="en";function ls(t){var e=Array.isArray(t)?t:[t];return[].concat(zt(e),[ud])}function us(t,e,n){var r=ls(t);n||(n="default");var a;if(typeof n=="string")switch(a={day:"numeric",month:"short",year:"numeric"},n){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=n;var i=Aa(function(){return Ta("date",r,n)},function(){return new Intl.DateTimeFormat(r,a)});return i.format(vn(e)?new Date(e):e)}function jv(t,e,n){var r;if(n||(n="default"),typeof n=="string")switch(r={second:"numeric",minute:"numeric",hour:"numeric"},n){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}else r=n;return us(t,e,r)}function vo(t,e,n){var r=ls(t),a=Aa(function(){return Ta("number",r,n)},function(){return new Intl.NumberFormat(r,n)});return a.format(e)}function vc(t,e,n,r){var a,i,o=r.offset,s=o===void 0?0:o,u=jt(r,Lh),c=ls(t),h=e?Aa(function(){return Ta("plural-ordinal",c)},function(){return new Intl.PluralRules(c,{type:"ordinal"})}):Aa(function(){return Ta("plural-cardinal",c)},function(){return new Intl.PluralRules(c,{type:"cardinal"})});return(a=(i=u[n])!==null&&i!==void 0?i:u[h.select(n-s)])!==null&&a!==void 0?a:u.other}function Aa(t,e){var n=t(),r=mc.get(n);return r||(r=e(),mc.set(n,r)),r}function Ta(t,e,n){var r=e.join("-");return"".concat(t,"-").concat(r,"-").concat(JSON.stringify(n))}var cd=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,dd=function(e){return e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,function(n,r,a){if(r){var i=parseInt(r,16);return String.fromCharCode(i)}else{var o=parseInt(a,16);return String.fromCharCode(o)}})},hd="%__lingui_octothorpe__%",Nv=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n||e,i=function(u){return Ae(u)==="object"?u:r[u]},o=function(u,c){var h=Object.keys(r).length?i("number"):void 0,d=vo(a,u,h);return c.replace(new RegExp(hd,"g"),d)};return{plural:function(u,c){var h=c.offset,d=h===void 0?0:h,f=vc(a,!1,u,c);return o(u-d,f)},selectordinal:function(u,c){var h=c.offset,d=h===void 0?0:h,f=vc(a,!0,u,c);return o(u-d,f)},select:Uv,number:function(u,c){return vo(a,u,i(c)||{style:c})},date:function(u,c){return us(a,u,i(c)||c)},time:function(u,c){return jv(a,u,i(c)||c)}}},Uv=function(e,n){var r;return(r=n[e])!==null&&r!==void 0?r:n.other};function Hv(t,e,n){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,i=Nv(e,n,a),o=function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Array.isArray(c)?c.reduce(function(d,f){if(f==="#"&&h)return d+hd;if(vn(f))return d+f;var p=I(f,3),m=p[0],g=p[1],v=p[2],_={};g==="plural"||g==="selectordinal"||g==="select"?Object.entries(v).forEach(function(A){var E=I(A,2),T=E[0],O=E[1];_[T]=o(O,g==="plural"||g==="selectordinal")}):_=v;var b;if(g){var C=i[g];b=C(r[m],_)}else b=r[m];return b==null?d:d+b},""):c},s=o(t);return vn(s)&&cd.test(s)?dd(s):vn(s)?s:s?String(s):""}}var zv=Object.defineProperty,Wv=function(e,n,r){return n in e?zv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},Gv=function(e,n,r){return Wv(e,n+"",r),r},Vv=(function(){function t(){st(this,t),Gv(this,"_events",{})}return lt(t,[{key:"on",value:function(n,r){var a,i=this,o;return(a=(o=this._events)[n])!==null&&a!==void 0||(o[n]=[]),this._events[n].push(r),function(){return i.removeListener(n,r)}}},{key:"removeListener",value:function(n,r){var a=this._getListeners(n);if(a){var i=a.indexOf(r);~i&&a.splice(i,1)}}},{key:"emit",value:function(n){for(var r=this,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];var s=this._getListeners(n);s&&s.map(function(u){return u.apply(r,i)})}},{key:"_getListeners",value:function(n){var r=this._events[n];return Array.isArray(r)?r:!1}}])})(),Kv=Object.defineProperty,Zv=function(e,n,r){return n in e?Kv(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},Pn=function(e,n,r){return Zv(e,Ae(n)!=="symbol"?n+"":n,r),r},qv=(function(t){function e(n){var r;if(st(this,e),r=hn(this,e),Pn(r,"_locale",""),Pn(r,"_locales"),Pn(r,"_localeData",{}),Pn(r,"_messages",{}),Pn(r,"_missing"),Pn(r,"_messageCompiler"),Pn(r,"t",r._.bind(r)),n.missing!=null&&(r._missing=n.missing),n.messages!=null&&r.load(n.messages),n.localeData!=null&&r.loadLocaleData(n.localeData),typeof n.locale=="string"||n.locales){var a;r.activate((a=n.locale)!==null&&a!==void 0?a:ud,n.locales)}return r}return fn(e,t),lt(e,[{key:"locale",get:function(){return this._locale}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){var r;return(r=this._messages[this._locale])!==null&&r!==void 0?r:{}}},{key:"localeData",get:function(){var r;return(r=this._localeData[this._locale])!==null&&r!==void 0?r:{}}},{key:"_loadLocaleData",value:function(r,a){var i=this._localeData[r];i?Object.assign(i,a):this._localeData[r]=a}},{key:"setMessagesCompiler",value:function(r){return this._messageCompiler=r,this}},{key:"loadLocaleData",value:function(r,a){var i=this;typeof r=="string"?this._loadLocaleData(r,a):Object.keys(r).forEach(function(o){return i._loadLocaleData(o,r[o])}
41),this.emit("change")}},{key:"_load",value:function(r,a){var i=this._messages[r];i?Object.assign(i,a):this._messages[r]=a}},{key:"load",value:function(r,a){var i=this;typeof r=="string"&&Ae(a)==="object"?this._load(r,a):Object.entries(r).forEach(function(o){var s=I(o,2),u=s[0],c=s[1];return i._load(u,c)}),this.emit("change")}},{key:"loadAndActivate",value:function(r){var a=r.locale,i=r.locales,o=r.messages;this._locale=a,this._locales=i||void 0,this._messages[this._locale]=o,this.emit("change")}},{key:"activate",value:function(r,a){this._locale=r,this._locales=a,this.emit("change")}},{key:"_",value:function(r,a,i){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");var o=i?.message;r||(r=""),vn(r)||(a=r.values||a,o=r.message,r=r.id);var s=this.messages[r],u=s===void 0,c=this._missing;if(c&&u)return $v(c)?c(this._locale,r):c;u&&this.emit("missing",{id:r,locale:this._locale});var h=s||o||r;return vn(h)&&(this._messageCompiler?h=this._messageCompiler(h):console.warn(`Uncompiled message detected! Message:
42
43> `.concat(h,`
44
45That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
46ICU features such as interpolation and plurals will not work properly for that message. 
47
48Please compile your catalog first. 
49`))),vn(h)&&cd.test(h)?dd(h):vn(h)?h:Hv(h,this._locale,this._locales)(a,i?.formats)}},{key:"date",value:function(r,a){return us(this._locales||this._locale,r,a)}},{key:"number",value:function(r,a){return vo(this._locales||this._locale,r,a)}}])})(Vv);function fd(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new qv(t)}fd();var Yv=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,Jv={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function pd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Xv(0,"$lingui$"),r=t.split(Yv);if(r.length===1)return t;var a=[],i=r.shift();i&&a.push(i);var o=_n(md(r)),s;try{for(o.s();!(s=o.n()).done;){var u=I(s.value,3),c=u[0],h=u[1],d=u[2],f=typeof c<"u"?e[c]:void 0;(!f||Jv[f.type]&&h)&&(console.error(f?"".concat(f.type," is a void element tag therefore it must have no children"):"Can't use element at index '".concat(c,"' as it is not declared in the original translation")),f=l.createElement(l.Fragment)),Array.isArray(f)&&(f=l.createElement(l.Fragment,{},f)),a.push(l.cloneElement(f,{key:n()},h?pd(h,e):f.props.children)),d&&a.push(d)}}catch(p){o.e(p)}finally{o.f()}return a.length===1?a[0]:a}function md(t){if(!t.length)return[];var e=t.slice(0,4),n=I(e,4),r=n[0],a=n[1],i=n[2],o=n[3],s=[r||i,a||"",o];return[s].concat(md(t.slice(4,t.length)))}var Xv=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return function(){return"".concat(n,"_").concat(e++)}};function Qv(t){var e=t.render,n=t.component,r=t.id,a=t.message,i=t.formats,o=t.lingui,s=o.i18n,u=o.defaultComponent,c=re({},t.values),h=re({},t.components);c&&Object.keys(c).forEach(function(v){var _=Object.keys(h).length;typeof c[v]=="string"||typeof c[v]=="number"||(h[_]=l.createElement(l.Fragment,null,c[v]),c[v]="<".concat(_,"/>"))});var d=s&&typeof s._=="function"?s._(r,c,{message:a,formats:i}):r,f=d?pd(d,h):null;if(e===null||n===null)return f;var p=u||e5,m={id:r,message:a,translation:f,children:f};if(e&&n)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(e&&typeof e!="function")console.error("Invalid value supplied to prop `render`. It must be a function, provided ".concat(e));else if(n&&typeof n!="function")return console.error("Invalid value supplied to prop `component`. It must be a React component, provided ".concat(n)),l.createElement(p,m,f);if(typeof e=="function")return e(m);var g=n||p;return l.createElement(g,m,f)}var e5=function(e){var n=e.children;return l.createElement(l.Fragment,null,n)},vd=l.createContext(null),gd=function(e){var n=l.useContext(vd);return n};function pe(){return gd()}function t5(t){var e=t.i18n,n=t.defaultComponent,r=t.children,a=l.useRef(e.locale),i=l.useCallback(function(){return{i18n:e,defaultComponent:n,_:e.t.bind(e)}},[e,n]),o=l.useState(i()),s=I(o,2),u=s[0],c=s[1];return l.useEffect(function(){var h=function(){a.current=e.locale,c(i())},d=e.on("change",h);return a.current!==e.locale&&h(),d},[e,i]),a.current?l.createElement(vd.Provider,{value:u},r):null}function qt(t){var e=gd();return l.createElement(Qv,re(re({},t),{},{lingui:e}))}var ni=function(e){var n=e.children,r=e.messages,a=e.overrides,i=at(function(){return Object.assign(Object.assign({},r),a)},[r,a]),o=J(function(){var c=fd({locale:"en",messages:{en:i}});return c.setMessagesCompiler(xv),c}),s=I(o,1),u=s[0];return Te(function(){u.load({en:i})},[u,i]),l.createElement(t5,{i18n:u},n)},gc="<div data-prompt_parent_id='g_id_onload' id='google-parent-prompt' style=''></div>";function n5(t,e){var n=customElements.get(e);if(n)return n;var r=(function(a){function i(o){var s;return st(this,i),s=hn(this,i),s.props=o,s.rootRef=document.createElement("div"),s.append(s.rootRef),s}
49return fn(i,a),lt(i,[{key:"connectedCallback",value:function(){this.styleSlot=document.createElement("section"),this.rootRef.appendChild(this.styleSlot),this.mountPoint=document.createElement("span"),this.styleSlot.appendChild(this.mountPoint),this.render(this.props)}},{key:"disconnectedCallback",value:function(){this.mountPoint&&l.unmountComponentAtNode(this.mountPoint)}},{key:"render",value:function(s){if(!this.mountPoint)throw Error("Cannot render - no mount point defined");if(!this.styleSlot)throw Error("Cannot render - no style slot defined");l.render(l.createElement(Q1,{target:this.styleSlot},l.createElement(t,Object.assign({},s))),this.mountPoint)}}])})(Yn(HTMLElement));return customElements.define(e,r),r}function r5(t,e){var n=customElements.get(e);if(n)return n;var r=(function(a){function i(o){var s;return st(this,i),s=hn(this,i),s.props=o,s.rootRef=s.attachShadow({mode:"open"}),s}return fn(i,a),lt(i,[{key:"connectedCallback",value:function(){this.styleSlot=document.createElement("section"),this.rootRef.appendChild(this.styleSlot),this.mountPoint=document.createElement("span"),this.styleSlot.appendChild(this.mountPoint),this.render(this.props)}},{key:"disconnectedCallback",value:function(){this.mountPoint&&l.unmountComponentAtNode(this.mountPoint)}},{key:"renderOneTap",value:function(s){var u,c,h,d=(h=(c=(u=s?.config)===null||u===void 0?void 0:u.oauthOptions)===null||c===void 0?void 0:c.providers)===null||h===void 0?void 0:h.find(function(p){return p.type===ye.Google&&p.one_tap}),f=this.innerHTML.includes(gc);d?f||(this.innerHTML=gc):this.innerHTML=""}},{key:"render",value:function(s){if(!this.mountPoint)throw Error("Cannot render - no mount point defined");if(!this.styleSlot)throw Error("Cannot render - no style slot defined");this.renderOneTap(s),l.render(l.createElement(Q1,{target:this.styleSlot},l.createElement(t,Object.assign({},s))),this.mountPoint)}}])})(Yn(HTMLElement));return customElements.define(e,r),r}function ri(t,e){return typeof window>"u"?function(){return null}:function(n){var r,a=!!(!((r=n.config)===null||r===void 0)&&r.enableShadowDOM);if(a){var i=r5(t,e);return new i(n)}else{var o=n5(t,e);return new o(n)}}}
49var a5=typeof window<"u"?xn:Te,yd=function(e){var n=kt(e);return a5(function(){n.current=e},[e]),dt(function(){var r=n.current;return r.apply(void 0,arguments)},[])},i5=function(e,n){switch(n.type){case"transition":return Object.assign(Object.assign({},e),{screen:n.screen});case"set_magic_link_email":return Object.assign(Object.assign({},e),{formState:Object.assign(Object.assign({},e.formState),{magicLinkState:{email:n.email}})});case"update_otp_state":return Object.assign(Object.assign({},e),{formState:Object.assign(Object.assign({},e.formState),{otpState:n.otpState})});case"update_crypto_state":return Object.assign(Object.assign({},e),{formState:Object.assign(Object.assign({},e.formState),{cryptoState:n.cryptoState})});case"update_password_state":return Object.assign(Object.assign({},e),{formState:Object.assign(Object.assign({},e.formState),{passwordState:n.passwordState})});default:throw new Error}},ne;(function(t){t.Main="Main",t.PasskeyRegistrationStart="Register New Passkey",t.PasskeyRegistrationSuccess="Passkey Registration Success",t.PasskeyConfirmation="Passkey Confirmation",t.PasswordCreateOrLogin="Password",t.PasswordResetForm="Password Reset Form",t.PasswordForgot="Password Forgot",t.PasswordBreached="Password Breached",t.PasswordSetNew="Password Set New",t.PasswordDedupe="Password Dedupe",t.PasswordConfirmation="Password Confirmation",t.EmailConfirmation="Email Confirmation",t.OTPAuthenticate="OTP Authenticate",t.OTPConfirmation="OTP Confirmation",t.CryptoConnect="Crypto Connect",t.CryptoSignMessage="Crypto Sign Message",t.CryptoOtherScreen="Crypto Other Screen",t.CryptoSetupWallet="Crypto Setup Wallet",t.CryptoError="Crypto Error",t.CryptoConfirmation="Crypto Confirmation",t.IDPConsent="IDP Consent"})(ne||(ne={}));var Mn={screen:ne.Main,formState:{magicLinkState:{email:""},otpState:{type:tt.Email,methodId:"",otpDestination:""},cryptoState:{walletAddress:"",walletOption:ce.Metamask,walletChallenge:""},passwordState:{email:"",type:"new"},resetPasswordState:{token:""},errorDescriptor:void 0}},_d={products:[Be.emailMagicLinks],emailMagicLinksOptions:{loginRedirectURL:"",loginExpirationMinutes:30,signupRedirectURL:"",signupExpirationMinutes:30,createUserAsPending:!1}},o5={container:{backgroundColor:"#FFFFFF",borderColor:"#ADBCC5",borderRadius:"8px",width:"400px"},colors:{primary:"#19303D",secondary:"#5C727D",success:"#0C5A56",warning:"#FFD94A",error:"#8B1214",accent:"#ECFAFF"},buttons:{primary:{backgroundColor:"#19303D",textColor:"#FFFFFF",borderColor:"#19303D",borderRadius:"4px"},secondary:{backgroundColor:"#FFFFFF",textColor:"#19303D",borderColor:"#19303D",borderRadius:"4px"},disabled:{backgroundColor:"#F3F5F6",textColor:"#8296A1",borderColor:"#F3F5F6",borderRadius:"4px"}},fontFamily:"Arial, Helvetica, sans-serif",hideHeaderText:!1,logo:{logoImageUrl:""}},bd=l.createContext({client:{},config:_d,state:[Mn,function(){return null}]}),ai=function(e){var n=e.children,r=e.client,a=e.config,i=e.callbacks,o=e.initialState,s=l.useReducer(i5,o??Mn);return l.createElement(bd.Provider,{value:{client:r,state:s,config:a,callbacks:i}},n)},wd=function(){},$r=function(){return Wt(bd)},Fe=function(){return $r().client},ze=function(){return $r().state},qe=function(){return $r().config},ht=function(){var e,n;return yd((n=(e=$r().callbacks)===null||e===void 0?void 0:e.onError)!==null&&n!==void 0?n:wd)},ct=function(){var e,n;return yd((n=(e=$r().callbacks)===null||e===void 0?void 0:e.onEvent)!==null&&n!==void 0?n:wd)},s5=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce(function(n,r){return r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n},"")},l5=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"s",n=kt(s5());return e+n.current};function jn(t){var e=l5();return t?{error:{id:e},input:{"aria-errormessage":e,"aria-invalid":!0}}:{error:{id:e},input:{}}}var cs=ss(Gs||(Gs=Z([`
50  outline: 2px auto -webkit-focus-ring-color;
51  outline: 2px auto Highlight;
52  outline-offset: 2px;
53`]))),jr=oe.button(Vs||(Vs=Z([`
54  all: unset;
55
56  cursor: pointer;
57  font-family: `,`;
58
59  &:focus-visible {
60    `,`
61  }
62
63  &:disabled {
64    cursor: not-allowed;
65  }
66`])),function(t){return t.theme.typography.fontFamily},cs),rt=oe(jr)(Ks||(Ks=Z([`
67  width: 100%;
68  height: 45px;
69  font-size: 18px;
70  text-transform: none;
71  box-shadow: none;
72  text-align: center;
73
74  `,`
75
76  &:disabled {
77    background-color: `,`;
78    color: `,`;
79    border: `,`;
80    border-radius: `,`;
81  }
82`])),function(t){switch(t.variant){case"primary":return`
83          border: `.concat(t.theme.buttons.primary.border,`;
84          border-radius: `).concat(t.theme.buttons.primary.borderRadius,`;
85          color: `).concat(t.theme.buttons.primary.textColor,`;
86          background-color: `).concat(t.theme.buttons.primary.backgroundColor,`;
87        `);case"outlined":return`
88          border: `.concat(t.theme.buttons.secondary.border,`;
89          border-radius: `).concat(t.theme.buttons.secondary.borderRadius,`;
90          color: `).concat(t.theme.buttons.secondary.textColor,`;
91          background-color: `).concat(t.theme.buttons.secondary.backgroundColor,`;
92        `);case"text":return`
93          color: `.concat(t.theme.colors.primary,`;
94          background-color: transparent;
95          font-weight: 600;
96        `)}},function(t){return t.theme.buttons.disabled.backgroundColor},function(t){return t.theme.buttons.disabled.textColor},function(t){return t.theme.buttons.disabled.border},function(t){return t.theme.buttons.disabled.borderRadius});rt.defaultProps={variant:"primary"};var tn=function(e){return e??void 0},yt=function(e){return e?"".concat(e,"px"):void 0},K=oe.div(Zs||(Zs=Z([`
97  display: `,`;
98
99  flex-direction: `,`;
100  justify-content: `,`;
101  align-items: `,`;
102  flex-grow: `,`;
103  flex-shrink: `,`;
104  order: `,`;
105  align-self: `,`;
106  flex-flow: `,`;
107  flex-wrap: `,`;
108
109  width: `,`;
110  height: `,`;
111  max-width: `,`;
112  max-height: `,`;
113  min-width: `,`;
114  min-height: `,`;
115  padding: `,`;
116  margin: `,`;
117  margin-top: `,`;
118  margin-right: `,`;
119  margin-bottom: `,`;
120  margin-left: `,`;
121  padding-top: `,`;
122  padding-right: `,`;
123  padding-bottom: `,`;
124  padding-left: `,`;
125
126  gap: `,`;
127`])),function(t){var e=t.inline;return e?"inline-flex":"flex"},function(t){var e=t.direction;return tn(e)},function(t){var e=t.justifyContent,n=t.center;return n?"center":tn(e)},function(t){var e=t.alignItems,n=t.center;return n?"center":tn(e)},function(t){var e=t.grow;return tn(e)},function(t){var e=t.shrink;return tn(e)},function(t){var e=t.order;return tn(e)},function(t){var e=t.alignSelf;return tn(e)},function(t){var e=t.flow;return tn(e)},function(t){var e=t.wrap;return tn(e)},function(t){var e=t.width;return typeof e=="string"?e:yt(e)},function(t){var e=t.height;return typeof e=="string"?e:yt(e)},function(t){var e=t.maxWidth;return typeof e=="string"?e:yt(e)},function(t){var e=t.maxHeight;return typeof e=="string"?e:yt(e)},function(t){var e=t.minWidth;return typeof e=="string"?e:yt(e)},function(t){var e=t.minHeight;return typeof e=="string"?e:yt(e)},function(t){var e=t.padding;return yt(e)},function(t){var e=t.margin;return yt(e)},function(t){var e=t.marginTop;return yt(e)},function(t){var e=t.marginRight;return yt(e)},function(t){var e=t.marginBottom;return yt(e)},function(t){var e=t.marginLeft;return yt(e)},function(t){var e=t.paddingTop;return yt(e)},function(t){var e=t.paddingRight;return yt(e)},function(t){var e=t.paddingBottom;return yt(e)},function(t){var e=t.paddingLeft;return yt(e)},function(t){var e=t.gap;return yt(e)}),ae=oe.div(qs||(qs=Z([`
128  color: `,`;
129  text-align: `,`;
130  `,`;
131`])),function(t){return t.color&&t.theme.colors[t.color]},function(t){return t.align},function(t){return t.size&&t.theme.typography[t.size]});ae.defaultProps={size:"body",color:"primary",align:"left"};var xe=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{wrapped:!0},r=function(){var i=l.createElement(e,null);return n.wrapped?l.createElement(K,{height:24,width:24},i):i};return r},u5=function(){return l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},l.createElement("path",{fill:"#4caf50",d:"M45,16.2l-5,2.75l-5,4.75L35,40h7c1.657,0,3-1.343,3-3V16.2z"}),l.createElement("path",{fill:"#1e88e5",d:"M3,16.2l3.614,1.71L13,23.7V40H6c-1.657,0-3-1.343-3-3V16.2z"}),l.createElement("polygon",{fill:"#e53935",points:"35,11.2 24,19.45 13,11.2 12,17 13,23.7 24,31.95 35,23.7 36,17"}),l.createElement("path",{fill:"#c62828",d:"M3,12.298V16.2l10,7.5V11.2L9.876,8.859C9.132,8.301,8.228,8,7.298,8h0C4.924,8,3,9.924,3,12.298z"}),l.createElement("path",{fill:"#fbc02d",d:"M45,12.298V16.2l-10,7.5V11.2l3.124-2.341C38.868,8.301,39.772,8,40.702,8h0 C43.076,8,45,9.924,45,12.298z"}))},c5=xe(u5),d5=function(){return l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",id:"Layer_1",viewBox:"0 0 103.17322 104.31332",xmlSpace:"preserve"},l.createElement("defs",{id:"defs43"}),l.createElement("path",{d:"m 64.566509,22.116383 v 20.404273 l 7.130526,4.489881 c 0.188058,0.05485 0.595516,0.05877 0.783574,0 L 103.16929,26.320259 c 0,-2.44867 -2.28412,-4.203876 -3.573094,-4.203876 H 64.566509 z",id:"path3",style:{fill:"#0072c6"}}),l.createElement("path",{d:"m 64.566509,50.13308 6.507584,4.470291 c 0.916782,0.673874 2.021622,0 2.021622,0 -1.100922,0.673874 30.077495,-20.035993 30.077495,-20.035993 v 37.501863 c 0,4.082422 -2.61322,5.794531 -5.551621,5.794531 H 64.562591 V 50.13308 z",id:"path5",style:{fill:"#0072c6"}}),l.createElement("g",{id:"g23",transform:"matrix(3.9178712,0,0,3.9178712,-13.481403,-41.384473)"},l.createElement("path",{d:"m 11.321,20.958 c -0.566,0 -1.017,0.266 -1.35,0.797 -0.333,0.531 -0.5,1.234 -0.5,2.109 0,0.888 0.167,1.59 0.5,2.106 0.333,0.517 0.77,0.774 1.31,0.774 0.557,0 0.999,-0.251 1.325,-0.753 0.326,-0.502 0.49,-1.199 0.49,-2.09 0,-0.929 -0.
131158,-1.652 -0.475,-2.169 -0.317,-0.516 -0.75,-0.774 -1.3,-0.774 z",id:"path25",style:{fill:"#0072c6"}}),l.createElement("path",{d:"m 3.441,13.563 v 20.375 l 15.5,3.25 V 10.563 l -15.5,3 z m 10.372,13.632 c -0.655,0.862 -1.509,1.294 -2.563,1.294 -1.027,0 -1.863,-0.418 -2.51,-1.253 C 8.094,26.4 7.77,25.312 7.77,23.97 c 0,-1.417 0.328,-2.563 0.985,-3.438 0.657,-0.875 1.527,-1.313 2.61,-1.313 1.023,0 1.851,0.418 2.482,1.256 0.632,0.838 0.948,1.942 0.948,3.313 10e-4,1.409 -0.327,2.545 -0.982,3.407 z",id:"path27",style:{fill:"#0072c6"}})))},h5=xe(d5),f5=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("rect",{x:"2",y:"2",width:"20",height:"20",rx:"1",fill:"#671BDF"}),l.createElement("path",{d:"M5 8.7284H7.71407L9.29444 12.7716L10.8953 8.7284H13.5379L9.55876 18.3H6.89942L7.98865 15.7637L5 8.7284Z",fill:"white"}),l.createElement("path",{d:"M14.2 16.2028C15.108 16.2028 15.8441 15.4667 15.8441 14.5587C15.8441 13.6507 15.108 12.9146 14.2 12.9146C13.292 12.9146 12.5559 13.6507 12.5559 14.5587C12.5559 15.4667 13.292 16.2028 14.2 16.2028Z",fill:"white"}),l.createElement("path",{d:"M16.3842 12.3106H13.4243L16.0512 6H19L16.3842 12.3106Z",fill:"white"}))},p5=xe(f5),Wi={gmail:{messageDescriptor:{id:"link.openInGmail",message:"Open in Gmail"},icon:l.createElement(c5,null),getUrl:function(e){var n=encodeURIComponent(e?"from:@".concat(e," in:anywhere"):"in:anywhere");return"https://mail.google.com/mail/u/0/#search/".concat(n)}},yahoo:{messageDescriptor:{id:"link.openInYahoo",message:"Open in Yahoo"},icon:l.createElement(p5,null),getUrl:function(e){return e?"https://mail.yahoo.com/d/search/keyword=".concat(e):"https://mail.yahoo.com/d/search/referrer=unread"}},outlook:{messageDescriptor:{id:"link.openInOutlook",message:"Open in Outlook"},icon:l.createElement(h5,null),getUrl:function(){return"https://outlook.office.com/mail/0/inbox"}}},m5=oe.a(Ys||(Ys=Z([`
132  all: unset;
133
134  cursor: pointer;
135
136  &:hover,
137  &:focus-visible {
138    text-decoration: underline;
139    text-decoration-color: `,`;
140  }
141`])),function(t){return t.theme.colors.primary}),Gi=function(e){var n=e.providerInfo,r=n.icon,a=n.messageDescriptor,i=n.getUrl,o=e.emailDomain,s=pe(),u=s._,c=i(o);return l.createElement(K,{gap:4},r,l.createElement(m5,{href:c,target:"_blank",rel:"noopener noreferrer"},l.createElement(ae,null,u(a))))},v5=function(e){var n=e.emailDomain,r=e.reset,a=e.email,i=pe(),o=i._;return l.createElement(K,{direction:"column",gap:24},l.createElement(ae,{size:"header"},o({id:"emailConfirmation.title",message:"Check your email"})),l.createElement(K,{direction:"column",gap:12},l.createElement(ae,null,l.createElement(qt,{id:"emailConfirmation.content",message:"An email was sent to <bold>{email}</bold>.",components:{bold:l.createElement("b",null)},values:{email:a}})),l.createElement(K,{direction:"column",gap:8},l.createElement(Gi,{emailDomain:n,providerInfo:Wi.gmail}),l.createElement(Gi,{emailDomain:n,providerInfo:Wi.yahoo}),l.createElement(Gi,{emailDomain:n,providerInfo:Wi.outlook}))),l.createElement(rt,{type:"button",onClick:r},o({id:"button.retry",message:"Try again"})))},g5=function(){var e,n,r=Fe(),a=qe(),i=J(function(){var c=Je(r).bootstrap.getSync(),h=c.emailDomains;return h}),o=I(i,2),s=o[0],u=o[1];return Te(function(){Je(r).bootstrap.getAsync().then(function(c){var h=c.emailDomains;u(h)})},[r]),!((e=a.emailMagicLinksOptions)===null||e===void 0)&&e.domainHint?(n=a.emailMagicLinksOptions)===null||n===void 0?void 0:n.domainHint:s?.length===1?s[0]:null},Cd=function(){var e=Fe(),n=ze(),r=I(n,2),a=r[0],i=r[1],o=g5(),s=a.formState.magicLinkState.email!==""?a.formState.magicLinkState.email:a.formState.passwordState.email,u=function(){i({type:"set_magic_link_email",email:""}),i({type:"transition",screen:ne.Main}),Je(e).networkClient.logEvent({name:"email_try_again_clicked",details:{email:s,type:Cn.LoginOrCreateEML}})};return l.createElement(v5,{emailDomain:o,reset:u,email:s})},ds=function(e){var n=kt(e);Te(function(){return n.current()},[])},y5=function(){return H("svg",{width:"201",height:"200",viewBox:"0 0 201 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("g",{opacity:"0.1"},H("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.5 0C155.729 0 200.5 44.7715 200.5 99.9999C200.5 155.229 155.729 200 100.5 200C45.2715 200 0.5 155.229 0.5 99.9999C0.5 44.7715 45.2715 0 100.5 0Z",fill:"url(#paint0_linear_1356_5135)"})),H("g",{opacity:"0.3"},H("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.5 17.5728C146.023 17.5728 182.927 54.4767 182.927 99.9998C182.927 145.523 146.023 182.427 100.5 182.427C54.9768 182.427 18.0729 145.523 18.0729 99.9998C18.0729 54.4767 54.9768 17.5728 100.5 17.5728Z",fill:"url(#paint1_linear_1356_5135)"})),H("g",{opacity:"0.7"},H("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.5 32.231C137.988 32.231 168.378 62.6208 168.378 100.109C168.378 137.597 137.988 167.987 100.5 167.987C63.012 167.987 32.6222 137.597 32.6222 100.109C32.6222 62.6208 63.012 32.231 100.5 32.231Z",fill:"url(#paint2_linear_1356_5135)"})),H("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.605 48.7734C128.955 48.7734 151.937 71.7553 151.937 100.105C151.937 128.455 128.955 151.437 100.
141605 151.437C72.255 151.437 49.2731 128.455 49.2731 100.105C49.2731 71.7553 72.255 48.7734 100.605 48.7734Z",fill:"#00AC26",fillOpacity:"0.12"}),H("mask",{id:"mask0_1356_5135",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"49",y:"48",width:"103",height:"104"},H("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100.605 48.7734C128.955 48.7734 151.937 71.7553 151.937 100.105C151.937 128.455 128.955 151.437 100.605 151.437C72.255 151.437 49.2731 128.455 49.2731 100.105C49.2731 71.7553 72.255 48.7734 100.605 48.7734Z",fill:"white"})),H("g",{mask:"url(#mask0_1356_5135)"}),H("path",{d:"M88 117.5L70.5 100L64.6667 105.833L88 129.167L138 79.1666L132.167 73.3333L88 117.5Z",fill:"white"}),H("defs",null,H("linearGradient",{id:"paint0_linear_1356_5135",x1:"-86.6375",y1:"160.384",x2:"170.169",y2:"338.297",gradientUnits:"userSpaceOnUse"},H("stop",{stopColor:"white"}),H("stop",{offset:"1",stopColor:"#09F33D"})),H("linearGradient",{id:"paint1_linear_1356_5135",x1:"-86.6374",y1:"160.384",x2:"170.169",y2:"338.297",gradientUnits:"userSpaceOnUse"},H("stop",{stopColor:"#00AC26",stopOpacity:"0.4"}),H("stop",{offset:"1",stopColor:"#BDFFBC",stopOpacity:"0.58"})),H("linearGradient",{id:"paint2_linear_1356_5135",x1:"-86.6375",y1:"160.493",x2:"170.169",y2:"338.406",gradientUnits:"userSpaceOnUse"},H("stop",{stopColor:"#F8FFF5"}),H("stop",{offset:"1",stopColor:"#00AC26",stopOpacity:"0.26"}))))},sr=function(e){var n=e.header,r=e.text,a=pe(),i=a._,o=i({id:"success.title",message:"Success!"}),s=i({id:"login.success.content",message:"You have successfully logged in."});return H(K,{direction:"column",gap:24,alignItems:"center"},H(ae,{size:"header"},n??o),H(ae,null,r??s),H(y5,null))},_5=function(){var e=pe(),n=e._,r=ct();return ds(function(){r({type:fe.AuthenticateFlowComplete,data:{}})}),H(sr,{text:n({id:"otp.success.content",message:"Your passcode has been successfully verified."})})},b5=oe(K)(Js||(Js=Z([`
142  color: `,`;
143`])),function(t){return t.theme.colors.secondary}),yc=oe.div(Xs||(Xs=Z([`
144  `,`
145  `,`
146  border-bottom: 1px solid `,`;
147  flex-grow: 1;
148`])),function(t){return t.$placement==="left"&&"margin-right: 6px;"},function(t){return t.$placement==="right"&&"margin-left: 6px;"},function(t){return t.theme.colors.secondary}),w5=oe(ae)(Qs||(Qs=Z([`
149  color: `,`;
150`])),function(t){return t.theme.colors.secondary}),qn=function(){var e=pe(),n=e._;return l.createElement(b5,{alignItems:"center"},l.createElement(yc,{$placement:"left"}),l.createElement(w5,null,n({id:"methodDivider.text",message:"or"})),l.createElement(yc,{$placement:"right"}))},Ed=function(e){var n=Fe(),r=function(){return be(void 0,void 0,void 0,z().m(function i(){var o;return z().w(function(s){for(;;)switch(s.n){case 0:return s.n=1,n.oauth[e.providerType].start({login_redirect_url:e.loginRedirectUrl,signup_redirect_url:e.signupRedirectUrl,custom_scopes:e.customScopes,provider_params:e.providerParams});case 1:(o=e.onSuccess)===null||o===void 0||o.call(e);case 2:return s.a(2)}},i)}))};return l.createElement(rt,{id:"oauth-".concat(e.providerType),type:"button",onClick:r,variant:"outlined"},l.createElement(K,{justifyContent:"center",alignItems:"center",gap:4},e.icon,l.createElement("span",{style:{verticalAlign:"middle"}},e.label)))},C5=function(){return l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},l.createElement("path",{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}),l.createElement("path",{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}),l.createElement("path",{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}),l.createElement("path",{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.5
15071c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}))},kd=xe(C5),E5=function(){var e=kt(!1);return Te(function(){return function(){e.current=!0}},[]),e},Nr=function(e){var n=e.children;return l.createElement("div",{key:"oauth-error-message"},l.createElement(ae,{color:"error"},n))},k5=function(){return l.createElement(Nr,null,"One Tap cannot render because no Google OAuth client configuration could be found for this project. Please make sure a client is configured in the\xA0",l.createElement("a",{href:"https://stytch.com/dashboard/oauth"},"dashboard."))},Sd=function(e){var n=e.niceName,r=e.variableName;return l.createElement(Nr,null,"One Tap cannot render because there are no ",n," set for this project so we are unable to verify the"," ",l.createElement("code",null,r),"\xA0 provided in the configuration. To set ",n," for this project please visit\xA0",l.createElement("a",{href:"https://stytch.com/dashboard/redirect-urls"},"the Stytch dashboard."),"\xA0 For more information on why this validation is necessary please visit\xA0",l.createElement("a",{href:"https://stytch.com/docs/api/url-validation"},"https://stytch.com/docs/api/url-validation."))},S5=function(){return l.createElement(Sd,{niceName:"login redirect URLs",variableName:"oauthOptions.loginRedirectURL"})},O5=function(){return l.createElement(Sd,{niceName:"signup redirect URLs",variableName:"oauthOptions.signupRedirectURL"})},P5=function(){return l.createElement(Nr,null,"One Tap cannot render because the current host\xA0",l.createElement("code",null,'"'.concat(window.location.host,'"'))," is not allowed for this project. Make sure to put your project's host into the Google API console. When using localhost for development, you must add both\xA0",l.createElement("code",null,"http://localhost")," and\xA0",l.createElement("code",null,"http://localhost:<port_number>"),"\xA0 to the Authorized JavaScript origins box. You can learn more\xA0",l.createElement("a",{href:"https://stytch.com/docs/sdks"},"here."))},A5=function(){return l.createElement(Nr,null,"One Tap cannot render because the client ID configured for your project is not recognized by Google. \xA0 Please check that the client ID saved in ",l.createElement("a",{href:"https://stytch.com/dashboard/oauth/google"},"the Stytch Dashboard"),"\xA0 matches the client ID in your Google Cloud Console.")},T5=function(){return l.createElement(Nr,null,"One Tap cannot render because the Stytch Default OAuth Provider is not compatible with One Tap. Please configure your own Google client in the\xA0",l.createElement("a",{href:"https://stytch.com/dashboard/oauth"},"dashboard."))},L5=xr(el||(el=Z([`
151  0% {
152    transform: rotate(0deg);
153  }
154  100% {
155    transform: rotate(360deg);
156  }
157`]))),I5=xr(tl||(tl=Z([`
158  0% {
159    stroke-dasharray: 1px, 200px;
160    stroke-dashoffset: 0;
161  }
162  50% {
163    stroke-dasharray: 100px, 200px;
164    stroke-dashoffset: -15px;
165  }
166  100% {
167    stroke-dasharray: 100px, 200px;
168    stroke-dashoffset: -125px;
169  }
170`]))),D5=oe.circle(nl||(nl=Z([`
171  stroke-dasharray: 80px, 200px;
172  stroke-dashoffset: 0;
173  animation: `,` 1.4s ease-in-out infinite;
174  stroke: `,`;
175  fill: none;
176`])),I5,function(t){return t.theme.colors.primary}),R5=oe.div(rl||(rl=Z([`
177  width: `,`px;
178  height: `,`px;
179  animation: `,` 1.4s ease-in-out infinite;
180`])),function(t){return t.size},function(t){return t.size},L5),F5=oe.svg(al||(al=Z([`
181  display: block;
182`]))),Lr=function(e){var n=e.size,r=e.thickness;return l.createElement(R5,{size:n},l.createElement(F5,{viewBox:"".concat(n/2," ").concat(n/2," ").concat(n," ").concat(n)},l.createElement(D5,{cx:n,cy:n,r:(n-r)/2,fill:"none",strokeWidth:r})))},Od=function(){var e=qe(),n=at(function(){var r,a,i,o,s=(r=e.oauthOptions)===null||r===void 0?void 0:r.providers[0].position;return e.products.length===1&&e.products.includes(Be.oauth)&&((a=e.oauthOptions)===null||a===void 0?void 0:a.providers.length)===1&&((i=e.oauthOptions)===null||i===void 0?void 0:i.providers[0].type)===ye.Google&&((o=e.oauthOptions)===null||o===void 0?void 0:o.providers[0].one_tap)===!0&&_2(s)},[e]);return n};function Pd(){var t=Fe(),e=Je(t),n=e.publicToken,r=at(function(){return ao.getItem(n,"b2c_last_used_oauth")},[n]),a=function(o){ao.setItem(n,"b2c_last_used_oauth",o)};return[r,a]}var ia=47,_c=function(e){var n=e.enableShadowDOM;return n?l.createElement("slot",null):l.createElement("div",{"data-prompt_parent_id":"g_id_onload",id:"google-parent-prompt"})},bt;(function(t){t.None="none",t.OriginNotAllowedForClient="origin_not_allowed_for_client",t.InvalidOAuthClient="invalid_client",t.NoConfiguredOAuthClient="oauth_config_not_found",t.NoConfiguredLoginRedirectUrls="no_login_redirect_urls_set",t.NoConfiguredSignupRedirectUrls="no_signup_redirect_urls_set",t.DefaultProviderNotAllowed="default_provider_not_allowed"})(bt||(bt={}));var M5=V(V(V(V(V(V(V({},bt.None,l.createElement(l.Fragment,null)),bt.OriginNotAllowedForClient,l.createElement(P5,null)),bt.InvalidOAuthClient,l.createElement(A5,null)),bt.NoConfiguredOAuthClient,l.createElement(k5,null)),bt.NoConfiguredLoginRedirectUrls,l.createElement(S5,null)),bt.NoConfiguredSignupRedirectUrls,l.createElement(O5,null)),bt.DefaultProviderNotAllowed,l.createElement(T5,null)),B5=oe.div(il||(il=Z([`
183  height: `,`;
184  display: `,`;
185  transition: all 0.5s ease-out;
186  justify-content: center;
187  align-items: center;
188`])),function(t){return"".concat(t.$height,"px")},function(t){return t.pending?"flex":"block"}),Ad=function(e){var n=e.position,r=e.customScopes,a=e.providerParams,i=e.cancelOnTapOutside,o,s,u,c,h=pe(),d=h._,f=b2(n),p=f==="embedded",m=!!f,g=qe(),v=Fe(),_=Od(),b=J(p),C=I(b,2),A=C[0],E=C[1],T=J(!0),O=I(T,2),L=O[0],j=O[1],X=J(ia),w=I(X,2),P=w[0],R=w[1],M=J(bt.None),B=I(M,2),N=B[0],U=B[1],Q=kt(0),q=kt(),te=E5(),_e=Pd(),Y=I(_e,2),x=Y[0],W=Y[1],G=dt(function(ge){var ee=I(ge,1),Le=ee[0];q.current!=null&&clearTimeout(q.current),Q.current>1?R(function(we){return Le.contentRect.height===0?L?we:ia:Le.contentRect.height}):q.current=setTimeout(function(){return R(function(we){return Le.contentRect.height===0?L?we:ia:Le.contentRect.height})},100),Q.current++},[]);Te(function(){if(p){var ge=document.getElementById("google-parent-prompt");if(ge){var ee=new ResizeObserver(G);return ee.observe(ge),function(){return ee.disconnect()}}}},[G,p]);var S=dt(function(){return be(void 0,void 0,void 0,z().m(function ge(){var ee,Le,we,he,$e,Oe,We,ft;return z().w(function(Pe){for(;;)switch(Pe.n){case 0:if(m){Pe.n=1;break}return Pe.a(2);case 1:return we=Je(v),he=we.oneTap,Pe.n=2,he.createOneTapClient();case 2:if($e=Pe.v,$e.success){Pe.n=3;break}return $e.reason==="oauth_config_not_found"?U(bt.NoConfiguredOAuthClient):$e.reason==="no_signup_redirect_urls_set"?U(bt.NoConfiguredSignupRedirectUrls):$e.reason==="no_login_redirect_urls_set"?U(bt.NoConfiguredLoginRedirectUrls):Ye.error("Unable to load One Tap settings for project",$e),Pe.a(2);case 3:if(Oe=$e.client,We=function(gt){j(!1),R(ia),gt&&U(bt.OriginNotAllowedForClient)},!te.current){Pe.n=4;break}return Pe.a(2);case 4:return Pe.n=5,Oe.render({callback:he.createOnSuccessHandler({loginRedirectUrl:(ee=g.oauthOptions)===null||ee===void 0?void 0:ee.loginRedirectURL,signupRedirectUrl:(Le=g.oauthOptions)===null||Le===void 0?void 0:Le.signupRedirectURL,onSuccess:he.redirectOnSuccess}),onOneTapCancelled:We,style:{position:n},cancelOnTapOutside:i});case 5:if(ft=Pe.v,!te.current){Pe.n=6;break}return Oe.cancel(),Pe.a(2);case 6:return j(ft.success),E(!1),ft.success||(ft.reason==="unregistered_origin"&&U(bt.OriginNotAllowedForClient),ft.reason==="invalid_client"&&U(bt.InvalidOAuthClient),Ye.error("Unable to render One Tap prompt",ft)),Pe.a(2,Oe)}},ge)}
188))},[m,v,te,(o=g.oauthOptions)===null||o===void 0?void 0:o.loginRedirectURL,(s=g.oauthOptions)===null||s===void 0?void 0:s.signupRedirectURL,n,i]);Te(function(){var ge;return S().then(function(ee){return ge=ee}).catch(function(ee){Ye.error("Unable to render One Tap prompt",ee),j(!1),E(!1)}),function(){return ge?.cancel()}},[S]);var se=l.createElement(Ed,{key:"oauth-".concat(ye.Google),providerType:ye.Google,icon:l.createElement(kd,null),label:d({id:"oauth.continueWithGoogle",message:"Continue with Google"}),loginRedirectUrl:(u=g.oauthOptions)===null||u===void 0?void 0:u.loginRedirectURL,signupRedirectUrl:(c=g.oauthOptions)===null||c===void 0?void 0:c.signupRedirectURL,customScopes:r,providerParams:a,onSuccess:function(){return W(ye.Google)}}),$=x===ye.Google?l.createElement("div",null,l.createElement(ae,{size:"helper",color:"secondary",align:"right"},d({id:"provider.lastUsed",message:"Last used"})),se):se,de=Je(v),me=de.publicToken;return _?l.createElement(_c,{enableShadowDOM:!!g.enableShadowDOM}):N!==bt.None?l.createElement(l.Fragment,null,ja(me)?M5[N]:null,$):p&&r1.willGoogleOneTapShowEmbedded()?l.createElement(B5,{pending:A,$height:P},A&&l.createElement(Lr,{size:25,thickness:2}),L?l.createElement(_c,{enableShadowDOM:!!g.enableShadowDOM}):se):$},x5=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12.2227 6.25C13.0547 6.25 14.0977 5.65496 14.7188 4.86157C15.2813 4.14256 15.6914 3.13843 15.6914 2.1343C15.6914 1.99793 15.6797 1.86157 15.6563 1.75C14.7305 1.78719 13.6172 2.40702 12.9492 3.2376C12.4219 3.86983 11.9414 4.86157 11.9414 5.8781C11.9414 6.02686 11.9648 6.17562 11.9766 6.22521C12.0352 6.2376 12.1289 6.25 12.2227 6.25ZM9.29297 21.25C10.4297 21.25 10.9336 20.4442 12.3516 20.4442C13.793 20.4442 14.1094 21.2252 15.375 21.2252C16.6172 21.2252 17.4492 20.0103 18.2344 18.8202C19.1133 17.4566 19.4766 16.1178 19.5 16.0558C19.418 16.031 17.0391 15.0021 17.0391 12.1136C17.0391 9.6095 18.9141 8.4814 19.0195 8.39463C17.7773 6.51033 15.8906 6.46074 15.375 6.46074C13.9805 6.46074 12.8438 7.35331 12.1289 7.35331C11.3555 7.35331 10.3359 6.51033 9.12891 6.51033C6.83203 6.51033 4.5 8.51859 4.5 12.312C4.5 14.6674 5.36719 17.1591 6.43359 18.7707C7.34766 20.1343 8.14453 21.25 9.29297 21.25Z",fill:"black"}))},$5=xe(x5),j5=function(){return l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("rect",{width:"24",height:"24",rx:"12",fill:"white"}),l.createElement("path",{d:"M12.0001 3.875C7.39828 3.875 3.66669 7.6059 3.66669 12.2084C3.66669 15.8903 6.05446 19.014 9.36558 20.1159C9.78205 20.1931 9.93495 19.9352 9.93495 19.7151C9.93495 19.5163 9.92723 18.8599 9.92364 18.1636C7.60528 18.6677 7.11608 17.1803 7.11608 17.1803C6.737 16.2171 6.1908 15.961 6.1908 15.961C5.43471 15.4438 6.2478 15.4544 6.2478 15.4544C7.08461 15.5132 7.52524 16.3131 7.52524 16.3131C8.2685 17.5871 9.47473 17.2188 9.95027 17.0059C10.0251 16.4673 10.241 16.0997 10.4794 15.8916C8.62839 15.6808 6.68263 14.9663 6.68263 11.7732C6.68263 10.8633 7.00816 10.1199 7.54125 9.53635C7.45472 9.32646 7.16948 8.47888 7.62198 7.33101C7.62198 7.33101 8.32176 7.10704 9.91426 8.18522C10.579 8.00058 11.2919 7.90798 12.0001 7.90481C12.7083 7.90798 13.4217 8.00058 14.0877 8.18522C15.6783 7.10704 16.3771 7.33101 16.3771 7.33101C16.8307 8.47888 16.5453 9.32646 16.4588 9.53635C16.9931 10.1199 17.3165 10.8633 17.3165 11.7732C17.3165 14.9739 15.367 15.6786 13.5113 15.8849C13.8102 16.1435 14.0765 16.6507 14.0765 17.4282C14.0765 18.5432 14.0669 19.4406 14.0669 19.7151C14.0669 19.9368 14.2169 20.1967 14.6393 20.1148C17.9486 19.0117 20.3334 15.8891 20.3334 12.2084C20.3334 7.6059 16.6023 3.875 12.0001 3.875ZM6.78782 15.7461C6.76946 15.7875 6.70433 15.7999 6.64499 15.7715C6.58455 15.7443 6.5506 15.6879 6.5702 15.6463C6.58813 15.6037 6.65341 15.5918 6.71371 15.6204C6.77429 15.6476 6.80879 15.7046 6.78782 15.7461ZM7.19773 16.1119C7.15798 16.1487 7.08029 16.1316 7.02758 16.0734C6.97307 16.0153 6.96286 15.9376 7.00315 15.9002C7.04414 15.8633 7.11948 15.8806 7.17413 15.9387C7.22864 15.9975 7.23927 16.0746 7.19773 16.1119ZM7.47894 16.5798C7.42788 16.6153 7.34439 16.582 7.29278 16.5079C7.24172 16.4338 7.24172 16.345 7.29389 16.3094C7.34564 16.2738 7.42788 16.3058 7.48018 16.3793C7.53111 16.4547 7.53111 16.5435 7.47894 16.5798ZM7.95454 17.1218C7.90886 17.1722 7.81157 17.1587 7.74036 17.0899C7.6675 17.0227 7.64722 16.9274 7.69303 16.877C7.73926 16.8265 7.8371 16.8407 7.90886 16.9089C7.98117 16.976 8.00325 17.072 7.95454 17.1218ZM8.56919 17.3048C8.54905 17.3701 8.45535 17.3997 8.36096 17.372
188C8.2667 17.3434 8.20502 17.267 8.22406 17.201C8.24366 17.1353 8.33777 17.1044 8.43285 17.1341C8.52697 17.1625 8.58879 17.2384 8.56919 17.3048ZM9.2687 17.3824C9.27105 17.4511 9.19101 17.5081 9.09193 17.5094C8.99229 17.5116 8.9117 17.4559 8.9106 17.3883C8.9106 17.3189 8.98884 17.2625 9.08848 17.2608C9.18756 17.2589 9.2687 17.3141 9.2687 17.3824ZM9.95589 17.3561C9.96776 17.4231 9.8989 17.492 9.8005 17.5103C9.70377 17.528 9.61421 17.4866 9.60193 17.4201C9.58992 17.3514 9.66002 17.2825 9.75662 17.2647C9.85515 17.2476 9.94333 17.2879 9.95589 17.3561Z",fill:"#161614"}))},N5=xe(j5),U5=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M22 12C22 6.47715 17.5229 2 12 2C6.47715 2 2 6.47715 2 12C2 16.9913 5.65685 21.1283 10.4375 21.8785V14.8906H7.89844V12H10.4375V9.79688C10.4375 7.29062 11.9304 5.90626 14.2146 5.90626C15.3087 5.90626 16.4531 6.10156 16.4531 6.10156V8.5625H15.1922C13.9499 8.5625 13.5625 9.33335 13.5625 10.1242V12H16.3359L15.8926 14.8906H13.5625V21.8785C18.3431 21.1283 22 16.9913 22 12Z",fill:"#1877F2"}),l.createElement("path",{d:"M15.8926 14.8906L16.3359 12H13.5625V10.1242C13.5625 9.33334 13.9499 8.5625 15.1921 8.5625H16.4531V6.10156C16.4531 6.10156 15.3087 5.90625 14.2146 5.90625C11.9304 5.90625 10.4375 7.29062 10.4375 9.79688V12H7.89844V14.8906H10.4375V21.8785C10.9544 21.9595 11.4768 22.0001 12 22C12.5316 22 13.0534 21.9584 13.5625 21.8785V14.8906H15.8926Z",fill:"white"}))},H5=xe(U5),z5=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M9.52382 0.952381H0.952393V9.52381H9.52382V0.952381Z",fill:"#F25022"}),l.createElement("path",{d:"M9.52382 10.4762H0.952393V19.0476H9.52382V10.4762Z",fill:"#00A4EF"}),l.createElement("path",{d:"M19.0475 0.952381H10.4761V9.52381H19.0475V0.952381Z",fill:"#7FBA00"}),l.createElement("path",{d:"M19.0475 10.4762H10.4761V19.0476H19.0475V10.4762Z",fill:"#FFB900"}))},W5=xe(z5),G5=function(){return l.createElement("svg",{viewBox:"-.1 .5 960.2 923.9",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"m958.9 442.4c1.1 26.1-2 52.1-9.2 77.2-7.1 25.1-18.3 48.8-33.1 70.3a240.43 240.43 0 0 1 -53.6 56.2l-.5.4-199.9 149.8-98.3 74.5-59.9 45.2c-3.5 2.7-7.4 4.7-11.5 6.1s-8.5 2.1-12.9 2.1c-4.3 0-8.7-.7-12.8-2.1s-8-3.4-11.5-6.1l-59.9-45.2-98.3-74.5-198.7-148.9-1.2-.8-.4-.4c-20.9-15.7-39-34.7-53.8-56.2s-26-45.3-33.2-70.4c-7.2-25.1-10.3-51.2-9.2-77.3 1.2-26.1 6.5-51.8 15.8-76.2l1.3-3.5 130.7-340.5q1-2.5 2.4-4.8 1.3-2.3 3.1-4.3 1.7-2.1 3.7-3.9 2
188-1.7 4.2-3.2c3.1-1.9 6.3-3.3 9.8-4.1 3.4-.9 7-1.3 10.5-1.1 3.6.2 7.1.9 10.4 2.2 3.3 1.2 6.5 3 9.3 5.2q2 1.7 3.9 3.6 1.8 2 3.2 4.3 1.5 2.2 2.6 4.7 1.1 2.4 1.8 5l88.1 269.7h356.6l88.1-269.7q.7-2.6 1.9-5 1.1-2.4 2.6-4.7 1.4-2.2 3.2-4.2 1.8-2 3.9-3.7c2.8-2.2 5.9-3.9 9.2-5.2 3.4-1.2 6.9-1.9 10.4-2.1 3.6-.2 7.1.1 10.6 1 3.4.9 6.7 2.3 9.7 4.2q2.3 1.4 4.3 3.2 2 1.7 3.7 3.8 1.7 2.1 3.1 4.4 1.3 2.3 2.3 4.8l130.5 340.6 1.3 3.5c9.3 24.3 14.6 50 15.7 76.1z",fill:"#e24329"}),l.createElement("path",{d:"m959 442.5c1.1 26-2 52.1-9.2 77.2s-18.4 48.9-33.2 70.4-32.9 40.5-53.7 56.2l-.5.4-199.9 149.8s-84.9-64.1-182.5-138l286.5-216.8c12.9-9.7 26.4-18.6 40.3-26.8 13.9-8.3 28.3-15.7 43-22.3 14.8-6.6 29.9-12.5 45.2-17.4 15.4-5 31-9.1 46.9-12.4l1.3 3.5c9.3 24.4 14.6 50.1 15.8 76.2z",fill:"#fc6d26"}),l.createElement("path",{d:"m480 658.5c97.6 73.7 182.6 138 182.6 138l-98.3 74.5-59.9 45.2c-3.5 2.7-7.4 4.7-11.5 6.1s-8.5 2.1-12.9 2.1c-4.3 0-8.7-.7-12.8-2.1s-8-3.4-11.5-6.1l-59.9-45.2-98.3-74.5s84.9-64.3 182.5-138z",fill:"#fca326"}),l.createElement("path",{d:"m480 658.3c-97.7 73.9-182.5 138-182.5 138l-198.7-148.9-1.2-.8-.4-.4c-20.9-15.7-39-34.7-53.8-56.2s-26-45.3-33.2-70.4c-7.2-25.1-10.3-51.2-9.2-77.3 1.2-26.1 6.5-51.8 15.8-76.2l1.3-3.5c15.9 3.3 31.5 7.4 46.9 12.4 15.3 5 30.4 10.8 45.2 17.5 14.7 6.6 29.1 14.1 43 22.3s27.3 17.2 40.3 26.9z",fill:"#fc6d26"}))},V5=xe(G5),K5=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18.5843 6.16943C17.3733 5.62815 16.0747 5.22936 14.7169 5.00096C14.6922 4.99655 14.6675 5.00757 14.6548 5.0296C14.4877 5.31896 14.3027 5.69645 14.1732 5.99316C12.7128 5.78018 11.2599 5.78018 9.8295 5.99316C9.69993 5.68986 9.50822 5.31896 9.34046 5.0296C9.32772 5.0083 9.30302 4.99729 9.27829 5.00096C7.92126 5.22863 6.62265 5.62742 5.41091 6.16943C5.40042 6.17384 5.39143 6.18119 5.38546 6.19073C2.92227 9.77548 2.2475 13.2721 2.57852 16.7254C2.58002 16.7423 2.58975 16.7584 2.60323 16.7687C4.22837 17.9313 5.8026 18.6371 7.3476 19.1049C7.37232 19.1123 7.39852 19.1035 7.41426 19.0836C7.77973 18.5975 8.10551 18.0848 8.38484 17.5457C8.40132 17.5142 8.38558 17.4767 8.35189 17.4642C7.83515 17.2733 7.3431 17.0405 6.86979 16.7761C6.83235 16.7548 6.82935 16.7026 6.86379 16.6776C6.96339 16.6049 7.06302 16.5293 7.15813 16.4529C7.17534 16.439 7.19932 16.436 7.21955 16.4448C10.329 17.8278 13.6954 17.8278 16.7682 16.4448C16.7884 16.4353 16.8124 16.4382 16.8303 16.4522C16.9255 16.5286 17.0251 16.6049 17.1254 16.6776C17.1599 16.7026 17.1576 16.7548 17.1202 16.7761C16.6469 17.0456 16.1548 17.2733 15.6373 17.4635C15.6036 17.476 15.5886 17.5142 15.6051 17.5457C15.8905 18.0841 16.2162 18.5967 16.575 19.0829C16.5899 19.1035 16.6169 19.1123 16.6416 19.1049C18.1941 18.6371 19.7683 17.9313 21.3935 16.7687C21.4077 16.7584 21.4167 16.743 21.4182 16.7261C21.8144 12.7338 20.7546 9.26579 18.609 6.19146C18.6038 6.18119 18.5948 6.17384 18.5843 6.16943ZM8.84918 14.6227C7.91302 14.6227 7.14165 13.7855 7.14165 12.7573C7.14165 11.7291 7.89806 10.8918 8.84918 10.8918C9.80777 10.8918 10.5717 11.7364 10.5567 12.7573C10.5567 13.7855 9.80028 14.6227 8.84918 14.6227ZM15.1625 14.6227C14.2264 14.6227 13.455 13.7855 13.455 12.7573C13.455 11.7291 14.2114 10.8918 15.1625 10.8918C16.1211 10.8918 16.885 11.7364 16.87 12.7573C16.87 13.7855 16.1211 14.6227 15.1625 14.6227Z",fill:"#5865F2"}))},Z5=xe(K5),q5=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M6.78176 14.3746C6.78176 15.4153 5.9316 16.2655 4.89088 16.2655C3.85016 16.2655 3 15.4153 3 14.3746C3 13.3339 3.85016 12.4837 4.89088 12.4837H6.78176V14.3746Z",fill:"#E01E5A"}),l.createElement("path",{d:"M7.73462 14.3746C7.73462 13.3339 8.58478 12.4837 9.6255 12.4837C10.6662 12.4837 11.5164 13.3339 11.5164 14.3746V19.1091C11.5164 20.1498 10.6662 21 9.6255 21C8.58478 21 7.73462 20.1498 7.73462 19.1091V14.3746Z",fill:"#E01E5A"}),l.createElement("path",{d:"M9.6255 6.78176C8.58478 6.78176 7.73462 5.9316 7.73462 4.89088C7.73462 3.85016 8.58478 3 9.6255 3C10.6662 3 11.5164 3.85016 11.5164 4.89088V6.78176H9.6255Z",fill:"#36C5F0"}),l.createElement("path",{d:"M9.62541 7.73453C10.6661 7.73453 11.5163 8.58469 11.5163 9.62541C11.5163 10.6661 10.6661 11.5163 9.62541 11.5163H4.89088C3.85016 11.5163 3 10.6661 3 9.62541C3 8.58469 3.85016 7.73453 4.89088 7.73453H9.62541Z",fill:"#36C5F0"}),l.createElement("path",{d:"M17.2183 9.62541C17.2183 8.58469 18.0684 7.73453 19.1091 7.73453C20.1499 7.73453 21 8.58469 21 9.62541C21 10.6661 20.1499 11.5163 19.1091 11.5163H17.2183V9.62541Z",fill:"#2EB67D"}),l.createElement("path",{d:"M16.2654 9.62541C16.2654 10.6661 15.4152 11.5163 14.3745 11.5163C13.3338 11.5163 12.4836 10.6661 12.4836 9.62541V4.89088C12.4836 3.85016 13.3338 3 14.3745 3C15.4152 3 16.2654 3.85016 16.2654 4.89088V9.62541Z",fill:"#2EB67D"}),l.createElement("path",{d:"M14.3745 17.2182C15.4152 17.2182 16.2654 18.0684 16.2654 19.1091C16.2654 20.1498 15.4152 21 14.3745 21C13.3338 21 12.4836 20.1498 12.4836 19.1091V17.2182H14.3745Z",fill:"#ECB22E"}),l.createElement("path",{d:"M14.3745 16.2655C13.3338 16.2655 12.4836 15.4153 12.4836 14.3746C12.4836 13.3339 13.3338 12.4837 14.3745 12.4837H19.109C20.1498 12.4837 20.9999 13.3339 20.9999 14.3746C20.9999 15.4153 20.1498 16.2655 19.109 
18816.2655H14.3745Z",fill:"#ECB22E"}))},Y5=xe(q5),J5=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M7 11.9273C7 11.0909 7.20605 10.3758 7.61818 9.78182C8.03029 9.18787 8.59393 8.7394 9.30909 8.43636C9.96364 8.15758 10.7697 7.95758 11.7273 7.83636C12.0545 7.8 12.5879 7.75151 13.3273 7.69091V7.38182C13.3273 6.60605 13.2424 6.08485 13.0727 5.81818C12.8182 5.45455 12.4182 5.27273 11.8727 5.27273H11.7273C11.3273 5.30909 10.9818 5.43636 10.6909 5.65455C10.4 5.87273 10.2121 6.17576 10.1273 6.56364C10.0788 6.80605 9.95756 6.94545 9.76364 6.98182L7.67273 6.72727C7.46665 6.67878 7.36364 6.56969 7.36364 6.4C7.36364 6.36364 7.36969 6.32122 7.38182 6.27273C7.58787 5.19395 8.09393 4.39395 8.9 3.87273C9.70605 3.35151 10.6485 3.0606 11.7273 3H12.1818C13.5636 3 14.6424 3.35758 15.4182 4.07273C15.5399 4.19449 15.6523 4.32516 15.7545 4.46364C15.8576 4.60304 15.9394 4.72727 16 4.83636C16.0606 4.94545 16.1151 5.10304 16.1636 5.30909C16.2121 5.51515 16.2485 5.65758 16.2727 5.73636C16.297 5.81515 16.3151 5.98485 16.3273 6.24545C16.3394 6.50605 16.3455 6.6606 16.3455 6.70909V11.1091C16.3455 11.4242 16.3909 11.7121 16.4818 11.9727C16.5727 12.2333 16.6606 12.4212 16.7455 12.5364C16.8303 12.6515 16.9697 12.8364 17.1636 13.0909C17.2364 13.2 17.2727 13.297 17.2727 13.3818C17.2727 13.4788 17.2242 13.5636 17.1273 13.6364C16.1212 14.5091 15.5757 14.9818 15.4909 15.0545C15.3455 15.1636 15.1697 15.1758 14.9636 15.0909C14.7939 14.9455 14.6455 14.8061 14.5182 14.6727C14.3909 14.5394 14.3 14.4424 14.2455 14.3818C14.1909 14.3212 14.103 14.203 13.9818 14.0273C13.8606 13.8515 13.7757 13.7333 13.7273 13.6727C13.0485 14.4121 12.3818 14.8727 11.7273 15.0545C11.3151 15.1758 10.8061 15.2364 10.2 15.2364C9.26665 15.2364 8.5 14.9485 7.9 14.3727C7.3 13.797 7 12.9818 7 11.9273ZM10.1273 11.5636C10.1273 12.0364 10.2455 12.4151 10.4818 12.7C10.7182 12.9849 11.0364 13.1273 11.4364 13.1273C11.4727 13.1273 11.5242 13.1212 11.5909 13.1091C11.6576 13.097 11.703 13.0909 11.7273 13.0909C12.2364 12.9576 12.6303 12.6303 12.9091 12.1091C13.0424 11.8788 13.1424 11.6273 13.2091 11.3545C13.2757 11.0818 13.3121 10.8606 13.3182 10.6909C13.3242 10.5212 13.3273 10.2424 13.3273 9.85455V9.4C12.6242 9.4 12.0909 9.44849 11.7273 9.54545C10.6606 9.84849 10.1273 10.5212 10.1273 11.5636Z",fill:"black"}),l.createElement("path",{d:"M2.32727 16.4424C2.19393 16.3576 2.09696 16.3636 2.03636 16.4606C2.01211 16.497 2 16.5333 2 16.5697C2 16.6303 2.03636 16.6909 2.10909 16.7515C3.44242 17.9515 4.95151 18.8818 6.63636 19.5424C8.3212 20.203 10.1091 20.5333 12 20.5333C13.2242 20.5333 14.4788 20.3636 15.7636 20.0242C17.0485 19.6848 18.2121 19.2061 19.2545 18.5879C19.5939 18.3818 19.8727 18.2 20.0909 18.0424C20.2606 17.9212 20.2939 17.7879 20.1909 17.6424C20.0879 17.497 19.9455 17.4606 19.7636 17.5333C19.7151 17.5576 19.6333 17.5939 19.5182 17.6424C19.403 17.6909 19.3151 17.7273 19.2545 17.7515C16.9394 18.6364 14.5939 19.0788 12.2182 19.0788C8.65455 19.0788 5.35756 18.2 2.32727 16.4424Z",fill:"#FF9900"}),l.createElement("path",{d:"M18.3818 16.6242C18.3333 16.6727 18.297 16.7212 18.2727 16.7697C18.2606 16.7939 18.2545 16.8121 18.2545 16.8242C18.2424 16.8485 18.2485 16.8727 18.2727 16.897C18.297 16.9212 18.3455 16.9333 18.4182 16.9333C18.6727 16.897 18.9515 16.8606 19.2545 16.8242C19.5333 16.8 19.7757 16.7879 19.9818 16.7879C20.5394 16.7879 20.8788 16.8606 21 17.0061C21.0485 17.0667 21.0727 17.1636 21.0727 17.297C21.0727 17.7091 20.8485 18.4424 20.4 19.497C20.3636 19.5939 20.3818 19.6606 20.4545 19.697C20.4788 19.7091 20.503 19.7152 20.5273 19.7152C20.5757 19.7152 20.6303 19.6909 20.6909 19.6424C21.103 19.2909 21.4242 18.8273 21.6545 18.2515C21.8848 17.6758 22 17.1758 22 16.7515V16.6242C22 16.4788 21.9757 16.3697 21.9273 16.297C21.8182 16.1636 21.4909 16.0727 20.9455 16.0242C20.8364 16 20.7212 15.9939 20.6 16.0061C20.1636 16.0182 19.7151 16.0848 19.2545 16.2061C18.9757 16.2788 18.6848 16.4182 18.3818 16.6242Z",fill:"#FF9900"}))},X5=xe(J5),Q5=function(){return l.createElement("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M6.98153 7.125C6.68181 7.125 6.45702 7.39974 6.50697 7.67449L8.53009 20.0629C8.58004 20.3877 8.85479 20.6124 9.17948 20.6124H18.9704C19.1952 20.6124 19.395 20.4376 19.4449 20.2128L21.493 7.69947C21.543 7.39974 21.3182 7.14998 21.0185 7.14998L6.98153 7.125ZM15.5736 16.0667H12.4514L11.6272 11.6458H16.3478L15.5736 16.0667Z",fill:"#2684FF"}),l.createElement("path",{d:"M20.8186 11.6458H16.3228L15.5735 16.0667H12.4513L8.77979 20.4376C8.77979 20.4376 8.95462 20.5875 9.20439 20.5875H18.9953C19.2201 20.5875 19.4199 20.4126 19.4698 20.1878L20.8186 11.6458Z",fill:"url(#paint0_linear_414_2186)"}),l.createElement("path",{d:"M2 2V0.875H0.875V2H2ZM26 2H27.125V0.875H26V2ZM26 26V27.125H27.125V26H26ZM2 26H0.875V27.125H2V26ZM2 3.125H26V0.875H2V3.125ZM24.875 2V26H27.125V2H24.875ZM26 24.875H2V27.125H26V24.875ZM3.125 26V2H0.875V26H3.125Z",fill:"#E5E8EB"}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_414_2186",x1:"21.8703",y1:"12.8916",x2:"14.42",y2:"18.7072",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:"0.176",stopColor:"#0052CC"}),l.createElement("stop",{offset:"1",stopColor:"#2684FF"}))))},e6=xe(Q5),t6=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:"#0A66C2"}),l.createElement("path",{d:"M18.5 18.5H15.8289V13.9505C15.8289 12.7032 15.3549 12.0061 14.3677 12.0061C13.2937 12.0061 12.7325 12.7315 12.7325 13.9505V18.5H10.1583V9.83333H12.7325V11.0007C12.7325 11.0007 13.5065 9.56855 15.3456 9.56855C17.1839 9.56855 18.5 10.6911 18.5 13.0128V18.5ZM7.08734 8.6985C6.21051 8.6985 5.5 7.98241 5.5 7.09925C5.5 6.21609 6.21051 5.5 7.08734 5.5C7.96416 5.5 8.67425 6.21609 8.67425 7.09925C8.67425 7.98241 7.96416 8.6985 7.08734 8.6985ZM5.75814 18.5H8.44235V9.83333H5.75814V18.5Z",fill:"white"}))},n6=xe(t6),r6=function(){return l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.2",baseProfile:"tiny",x:"0px",y:"0px",viewBox:"0 0 1024 1024",overflow:"visible",xmlSpace:"preserve"},l.createElement("path",{fill:"#0052FF",d:"M512,0L512,0c282.8,0,512,229.2,512,512l0,0c0,282.8-229.2,512-512,512l0,0C229.2,1024,0,794.8,0,512l0,0  C0,229.2,229.2,0,512,0z"}),l.createElement("path",{fill:"#FFFFFF",d:"M512.1,692c-99.4,0-180-80.5-180-180s80.6-180,180-180c89.1,0,163.1,65,177.3,150h181.3  c-15.3-184.8-170-330-358.7-330c-198.8,0-360,161.2-360,360s161.2,360,360,360c188.7,0,343.4-145.2,358.7-330H689.3  C675,627,601.2,692,512.1,692z"}))},Td=xe(r6),a6=function(){return l.createElement("svg",{viewBox:"0 0 18 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M16.1141 9.78571L13.257 12.6429H10.3998L7.89983 15.1429V12.6429H4.68555V1.92857H16.1141V9.78571Z",fill:"white"}),l.createElement("path",{d:"M3.97133 0.5L0.399902 4.07143V16.9286H4.68562V20.5L8.25704 16.9286H11.1142L17.5428 10.5V0.5H3.97133ZM16.1142 9.78571L13.257 12.6429H10.3999L7.8999 15.1429V12.6429H4.68562V1.92857H16.1142V9.78571Z",fill:"#9146FF"}),l.createElement("path",{d:"M13.9713 4.42857H12.5427V8.71428H13.9713V4.42857Z",fill:"#9146FF"}),l.createElement("path",{d:"M10.0428 4.42857H8.61426V8.71428H10.0428V4.42857Z",fill:"#9146FF"}))},i6=xe(a6),o6=function(){return l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M19.8991 8.13629C19.9112 8.31129 19.9112 8.48629 19.9112 8.66291C19.9112 14.0444 15.8144 20.2508 8.32331 20.2508V20.2476C6.1104 20.2508 3.94347 19.6169 2.08057 18.4218C2.40234 18.4605 2.72573 18.4798 3.04992 18.4806C4.88379 18.4823 6.66524 17.8669 8.10799 16.7339C6.36524 16.7008 4.83702 15.5645 4.30315 13.9056C4.91363 14.0234 5.54266 13.9992 6.14186 13.8355C4.24186 13.4516 2.87492 11.7823 2.87492 9.84355C2.87492 9.82581 2.87492 9.80887 2.87492 9.79194C3.44105 10.
1881073 4.07492 10.2823 4.72331 10.3016C2.93379 9.10565 2.38218 6.725 3.46282 4.86371C5.53057 7.40807 8.58137 8.95484 11.8564 9.11855C11.5281 7.70403 11.9765 6.22178 13.0346 5.22742C14.6749 3.68549 17.2548 3.76452 18.7967 5.40403C19.7088 5.2242 20.583 4.88952 21.383 4.41532C21.079 5.35807 20.4427 6.15887 19.5927 6.66774C20.3999 6.57258 21.1886 6.35645 21.9314 6.02661C21.3846 6.84597 20.6959 7.55968 19.8991 8.13629Z",fill:"#1D9BF0"}))},s6=xe(o6),l6=function(){return l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("circle",{cx:"12",cy:"12",r:"10",fill:"black"}),l.createElement("path",{d:"M14.9767 10.0746C15.8641 10.7087 16.9513 11.0817 18.1255 11.0817V8.8234C17.9033 8.82344 17.6816 8.80028 17.4642 8.75425V10.5319C16.2901 10.5319 15.2031 10.1588 14.3154 9.52481V14.1334C14.3154 16.4389 12.4455 18.3077 10.139 18.3077C9.27835 18.3077 8.47845 18.0477 7.81396 17.6017C8.57236 18.3767 9.63 18.8575 10.8001 18.8575C13.1067 18.8575 14.9767 16.9887 14.9767 14.6832V10.0746H14.9767ZM15.7924 7.79623C15.3389 7.30099 15.0411 6.66099 14.9767 5.95344V5.66297H14.35C14.5077 6.56226 15.0458 7.33057 15.7924 7.79623ZM9.27283 15.8325C9.01944 15.5005 8.8825 15.0942 8.88312 14.6766C8.88312 13.6221 9.7384 12.7672 10.7936 12.7672C10.9902 12.7671 11.1857 12.7972 11.3731 12.8567V10.5478C11.1541 10.5178 10.9331 10.5051 10.7121 10.5098V12.3068C10.5246 12.2474 10.329 12.2172 10.1323 12.2174C9.07713 12.2174 8.22189 13.0723 8.22189 14.1268C8.22189 14.8725 8.64939 15.5181 9.27283 15.8325Z",fill:"#FF004F"}),l.createElement("path",{d:"M14.3153 9.52476C15.203 10.1588 16.29 10.5318 17.4641 10.5318V8.7542C16.8087 8.61467 16.2285 8.27236 15.7923 7.79623C15.0456 7.33052 14.5076 6.56222 14.3499 5.66297H12.7039V14.6831C12.7001 15.7346 11.8463 16.5861 10.7934 16.5861C10.1729 16.5861 9.6217 16.2905 9.27259 15.8325C8.6492 15.5181 8.2217 14.8725 8.2217 14.1269C8.2217 13.0724 9.07693 12.2175 10.1321 12.2175C10.3343 12.2175 10.5291 12.2489 10.7119 12.3069V10.5098C8.44594 10.5566 6.62354 12.4072 6.62354 14.6831C6.62354 15.8192 7.07736 16.8492 7.81391 17.6017C8.47839 18.0477 9.2783 18.3078 10.1389 18.3078C12.4455 18.3078 14.3153 16.4389 14.3153 14.1334V9.52476H14.3153Z",fill:"white"}),l.createElement("path",{d:"M17.464 8.7542V8.27354C16.873 8.27443 16.2936 8.10901 15.7922 7.79618C16.236 8.28188 16.8205 8.61679 17.464 8.7542ZM14.3498 5.66297C14.3347 5.57703 14.3231 5.49052 14.3151 5.40368V5.1132H12.0424V14.1334C12.0388 15.1848 11.185 16.0363 10.132 16.0363C9.82282 16.0363 9.53093 15.9629 9.27244 15.8326C9.62154 16.2905 10.1728 16.586 10.7932 16.586C11.8461 16.586 12.7 15.7347 12.7037 14.6831V5.66297H14.3498ZM10.7119 10.5098V9.99811C10.522 9.97217 10.3305 9.95915 10.1388 9.95924C7.83206 9.9592 5.96216 11.8281 5.96216 14.1334C5.96216 15.5787 6.69706 16.8524 7.81381 17.6016C7.07725 16.8491 6.62343 15.8191 6.62343 14.6831C6.62343 12.4072 8.44579 10.5566 10.7119 10.5098Z",fill:"#00F2EA"}))},u6=xe(l6),c6=function(){return l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18.549 15.4187C16.124 14.2448 15.7375 12.4323 15.7203 12.2978C15.6995 12.135 15.6759 12.007 15.8555 11.8413C16.0288 11.6813 16.7974 11.2055 17.0106 11.0567C17.3631 10.8102 17.5184 10.5642 17.4039 10.2617C17.3239 10.0524 17.1291 9.9736 16.9238 9.9736C16.8591 9.9738 16.7945 9.98105 16.7313 9.99521C16.344 10.0792 15.9679 10.2733 15.7503 10.3257C15.7241 10.3324 15.6973 10.3361 15.6703 10.3365C15.5542 10.3365 15.5102 10.2849 15.5214 10.1453C15.5486 9.72194 15.6062 8.89571 15.5394 8.12391C15.4478 7.06202 15.1053 6.53588 14.6992 6.07055C14.5027 5.84489 13.5905 4.87543 11.83 4.87543C10.0696 4.87543 9.15851 5.84489 8.96326 6.06775C8.55595 6.53308 8.21385 7.05922 8.12303 8.12111C8.05621 8.89291 8.11623 9.71874 8.14104 10.1425C8.14904 10.2753 8.10823 10.3337 7.9922 10.3337C7.96519 10.3332 7.93833 10.3296 7.91217 10.3229C7.69492 10.2705 7.31881 10.0764 6.93151 9.99241C6.86833 9.97825 6.8038 9.971 6.73906 9.9708C6.533 9.9708 6.33895 10.0508 6.25893 10.2589C6.1445 10.5614 6.29894 10.8074 6.652
18863 11.0539C6.86589 11.2027 7.6345 11.6781 7.80775 11.8385C7.98699 12.0042 7.96379 12.1322 7.94298 12.295C7.92578 12.4315 7.53887 14.244 5.11422 15.4159C4.97218 15.4847 4.73052 15.6303 5.15663 15.8656C5.82561 16.2353 6.27093 16.1957 6.61702 16.4185C6.9107 16.6078 6.73706 17.0159 6.95071 17.1631C7.21319 17.3444 7.98899 17.1503 8.99126 17.4812C9.83149 17.7581 10.342 18.5403 11.832 18.5403C13.322 18.5403 13.8474 17.7545 14.6728 17.4812C15.6731 17.1503 16.4505 17.3444 16.7133 17.1631C16.9266 17.0159 16.7534 16.6078 17.047 16.4185C17.3931 16.1957 17.838 16.2353 18.5074 15.8656C18.9327 15.6331 18.6911 15.4875 18.549 15.4187Z",fill:"white"}),l.createElement("path",{d:"M19.604 15.2806C19.4952 14.9846 19.2879 14.8261 19.0519 14.6949C19.0075 14.6689 18.9666 14.6481 18.9318 14.6321C18.8614 14.5957 18.7894 14.5604 18.7178 14.5232C17.982 14.1331 17.4074 13.641 17.0089 13.0576C16.8957 12.8934 16.7976 12.7193 16.7156 12.5375C16.6816 12.4403 16.6832 12.3851 16.7076 12.3346C16.7318 12.2958 16.7639 12.2624 16.8017 12.2366C16.9281 12.153 17.0585 12.0682 17.147 12.011C17.3046 11.9089 17.4294 11.8281 17.5099 11.7709C17.8119 11.5596 18.0232 11.3352 18.1552 11.0843C18.2473 10.911 18.3011 10.7199 18.3127 10.5239C18.3244 10.328 18.2937 10.1318 18.2228 9.9488C18.0228 9.42226 17.5255 9.09537 16.9229 9.09537C16.7958 9.09525 16.669 9.10866 16.5448 9.13538C16.5116 9.14258 16.4784 9.15019 16.446 9.15859C16.4516 8.79849 16.4436 8.41839 16.4116 8.04429C16.2979 6.72913 15.8374 6.03975 15.3573 5.49C15.0498 5.14551 14.6877 4.85405 14.2854 4.62737C13.5568 4.21126 12.7306 4 11.8299 4C10.9293 4 10.1071 4.21126 9.37766 4.62737C8.9744 4.85412 8.61152 5.14616 8.30377 5.4916C7.82364 6.04135 7.36312 6.73194 7.24949 8.04589C7.21748 8.41999 7.20948 8.80209 7.21468 9.16019C7.18227 9.15179 7.14946 9.14419 7.11625 9.13698C6.992 9.11026 6.86525 9.09685 6.73815 9.09697C6.13519 9.09697 5.63705 9.42386 5.4378 9.9504C5.36658 10.1335 5.33561 10.3298 5.347 10.5259C5.35839 10.7221 5.41188 10.9135 5.50382 11.0871C5.63625 11.338 5.84751 11.5624 6.14959 11.7737C6.22961 11.8297 6.35485 11.9105 6.51249 12.0138C6.59771 12.069 6.72215 12.1498 6.84418 12.2306C6.88687 12.2582 6.92316 12.2946 6.95061 12.3374C6.97621 12.3899 6.97702 12.4463 6.939 12.5503C6.85816 12.7283 6.76162 12.8988 6.65053 13.0596C6.26082 13.6298 5.70307 14.1131 4.99088 14.5C4.61358 14.7001 4.22147 14.8337 4.05583 15.2838C3.93099 15.6235 4.01262 16.01 4.3299 16.3357C4.44635 16.4573 4.58141 16.5595 4.73001 16.6386C5.03921 16.8085 5.368 16.9401 5.70907 17.0303C5.77946 17.0485 5.84628 17.0784 5.90673 17.1187C6.02236 17.22 6.00595 17.3724 6.15999 17.5957C6.23732 17.711 6.33557 17.8109 6.44967 17.8901C6.77296 18.1134 7.13626 18.1274 7.52116 18.1422C7.86885 18.1554 8.26296 18.1706 8.71308 18.3191C8.89953 18.3807 9.09318 18.4999 9.31765 18.6391C9.85659 18.9704 10.5944 19.4238 11.8291 19.4238C13.0639 19.4238 13.8069 18.968 14.3498 18.6355C14.5727 18.4987 14.7651 18.3807 14.9464 18.3207C15.3965 18.1718 15.7906 18.157 16.1383 18.1438C16.5232 18.129 16.8865 18.115 17.2098 17.8917C17.3449 17.7975 17.4575 17.6745 17.5395 17.5316C17.6503 17.3432 17.6475 17.2116 17.7515 17.1195C17.8082 17.0811 17.871 17.0524 17.9372 17.0347C18.2829 16.9442 18.6162 16.8114 18.9294 16.6394C19.0873 16.5547 19.2294 16.4434 19.3495 16.3105L19.3535 16.3057C19.6512 15.9872 19.726 15.6119 19.604 15.2806ZM18.5065 15.8704C17.8371 16.2401 17.3922 16.2005 17.0461 16.4233C16.752 16.6126 16.9261 17.0207 16.7124 17.1679C16.45 17.3492 15.6742 17.1551 14.6719 17.486C13.8453 17.7593 13.3179 18.5451 11.8311 18.5451C10.3443 18.5451 9.82938 17.7609 8.98916 17.484C7.98889 17.1531 7.21148 17.3472 6.94861 17.1659C6.73535 17.0187 6.9086 16.6106 6.61492 16.4213C6.26842 16.1985 5.8235 16.2381 5.15452 15.8704C4.72841 15.6351 4.97007 15.4895 5.11211 15.4207C7.53677 14.2468 7.92367 12.4343 7.94087 12.2998C7.96168 12.137 7.98489 12.009 7.80564 11.8433C7.63239 11.6833 6.86378 11.2075 6.65053 11.0587C6.29763 10.8122 6.14239 10.5662 6.25682 10.2637C6.33684 10.0544 6.5321 9.97561 6.73695 9.97561C6.80169 9.97581 6.86623 9.98305 6.9294 9.99722C7.31671 10.0812 7.69281 10.2753 7.91007 10.3277C7.93623 10.3344 7.96308 10.338 7.99009 10.3385C8.10612 10.3385 8.14693 10.2801 8.13893 10.1473C8.11412 9.72354 8.05411 8.89772 8.12092 8.12591C8.21255 7.06402 8.55464 6.53788 8.96115 6.07256C9.1564 5.8489 10.0738 4.87944 11.8283 4.87944C13.5828 4.87944 14.5026 5.8449 14.6979 6.06776C15.1048 6.53308 15.4473 7.05922 15.5381 8.12111C15.6049 8.89292 15.5473 9.71914 15.5201 10.1425C15.5109 10.2821 15.5529 10.3337 15.669 10.3337C15.696 10.3333 15.7228 10.3296 15.749 10.3229C15.9666 10.2705 16.3427 10.0764 16.73 9.99241C16.7932 9.97825 16.8577 9.97101 16.9225 9.97081C17.1285 9.97081 17.3226 10.0508 17.4026 10.2589C17.5171 10.5614 17.3626 10.8074 17.0093 11.0539C16.7961 11.2027 16.0275 11.6781 15.8542 11.8385C15.6746 12.0042 15.6982 12.1322 15.719 12.295C15.7362 12.4315 16.1227 14.244 18.5477 15.4159C18.691 15.4875 18.9326 15.6331 18.5065 15.8704Z",fill:"black"}))},d6=xe(c6),h6=function(){return l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12.3157 12C12.3157 10.1591 13.7295 8.66665 15.4736 8.66665C17.2176 8.66665 18.6315 10.1591 18.6315 12C18.6315 13.8409 17.2176 15.3333 15.4736 15.3333C13.7295 15.3333 12.3157 13.8409 12.3157 12Z",fill:"#1ABCFE"}),l.createElement("path",{d:"M6 18.6666C6 16.8257 7.41384 15.3333 9.15789 15.3333H12.3158V18.6666C12.3158 20.5076 10.902 22 9.15789 22C7.41384 22 6 20.5076 6 18.6666Z",fill:"#0ACF83"}),l.createElement("path",{d:"M12.3157 2V8.66665H15.4736C17.2176 8.66665 18.6315 7.17428 18.6315 5.33333C18.6315 3.49238 17.2176 2 15.4736 2H12.3157Z",fill:"#FF7262"}),l.createElement("path",{d:"M6 5.33333C6 7.17428 7.41384 8.66665 9.15789 8.66665H12.3158V2H9.15789C7.41384 2 6 3.49238 6 5.33333Z",fill:"#F24E1E"}),l.createElement("path",{d:"M6 12C6 13.8409 7.41384 15.3333 9.15789 15.3333H12.3158V8.66665H9.15789C7.41384 8.66665 6 10.1591 6 12Z",fill:"#A259FF"}))},f6=xe(h6),p6=function(){return l.createElement("svg",{viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{clipPath:"url(#clip0_1550_2151)"},l.createElement("path",{d:"M8.3228 1.52737C8.96783 0.855295 9.86583 0.438458 10.859 0.438458C12.1792 0.438458 13.3311 1.17463 13.9445 2.26751C14.4775 2.02935 15.0675 1.89
188686 15.6883 1.89686C18.0695 1.89686 20 3.84416 20 6.24615C20 8.64841 18.0695 10.5957 15.6883 10.5957C15.4031 10.5959 15.1186 10.5675 14.839 10.5111C14.2989 11.4746 13.2695 12.1256 12.088 12.1256C11.5935 12.1256 11.1256 12.0114 10.7091 11.8082C10.1615 13.0963 8.88577 13.9994 7.39886 13.9994C5.85043 13.9994 4.53077 13.0196 4.02422 11.6456C3.80286 11.6926 3.57351 11.7171 3.33818 11.7171C1.49459 11.7171 0 10.2071 0 8.34416C0 7.09573 0.671511 6.00568 1.66923 5.4225C1.46382 4.94987 1.34957 4.42821 1.34957 3.87976C1.34957 1.73732 3.08889 0.000579834 5.23419 0.000579834C6.49373 0.000579834 7.61311 0.599439 8.3228 1.52737Z",fill:"#00A1E0"}),l.createElement("path",{d:"M2.89685 7.26004C2.88432 7.29281 2.90142 7.29966 2.9054 7.30535C2.943 7.33269 2.9812 7.35237 3.01965 7.37429C3.22364 7.48254 3.41625 7.51416 3.61767 7.51416C4.02792 7.51416 4.28262 7.29594 4.28262 6.94465V6.93782C4.28262 6.61301 3.99517 6.49508 3.72536 6.40989L3.69033 6.3985C3.4869 6.33239 3.31141 6.27544 3.31141 6.14152V6.13442C3.31141 6.01988 3.41397 5.93554 3.57295 5.93554C3.74958 5.93554 3.95927 5.99424 4.09431 6.06887C4.09431 6.06887 4.13391 6.09452 4.14844 6.05606C4.15641 6.03554 4.2248 5.85149 4.23193 5.83155C4.23961 5.80989 4.22594 5.79393 4.21199 5.78539C4.05785 5.69165 3.84474 5.62755 3.62424 5.62755L3.58322 5.62783C3.20772 5.62783 2.94562 5.85462 2.94562 6.17968V6.18653C2.94562 6.52925 3.23479 6.64036 3.50574 6.71786L3.54932 6.73125C3.74676 6.79193 3.91685 6.84407 3.91685 6.9831V6.98995C3.91685 7.11702 3.80632 7.21159 3.62796 7.21159C3.55873 7.21159 3.33793 7.21017 3.09947 7.05944C3.07069 7.04262 3.05389 7.03039 3.03167 7.017C3.01999 7.00959 2.99065 6.99676 2.97783 7.03552L2.89685 7.26004ZM8.90282 7.26004C8.89029 7.29281 8.90738 7.29966 8.91137 7.30535C8.94896 7.33269 8.98716 7.35237 9.0256 7.37429C9.22958 7.48254 9.42222 7.51416 9.62362 7.51416C10.0339 7.51416 10.2886 7.29594 10.2886 6.94465V6.93782C10.2886 6.61301 10.0011 6.49508 9.73131 6.40989L9.69627 6.3985C9.49285 6.33239 9.31733 6.27544 9.31733 6.14152V6.13442C9.31733 6.01988 9.41989 5.93554 9.57887 5.93554C9.75551 5.93554 9.9652 5.99424 10.1003 6.06887C10.1003 6.06887 10.1399 6.09452 10.1544 6.05606C10.1623 6.03554 10.2307 5.85149 10.2379 5.83155C10.2456 5.80989 10.2319 5.79393 10.2179 5.78539C10.0638 5.69165 9.85067 5.62755 9.63016 5.62755L9.58912 5.62783C9.21363 5.62783 8.95153 5.85462 8.95153 6.17968V6.18653C8.95153 6.52925 9.2407 6.64036 9.51165 6.71786L9.55523 6.73125C9.75267 6.79193 9.92306 6.84407 9.92306 6.9831V6.98995C9.92306 7.11702 9.81223 7.21159 9.63387 7.21159C9.56466 7.21159 9.34386 7.21017 9.1054 7.05944C9.07661 7.04262 9.05953 7.03095 9.03789 7.017C9.03047 7.01215 8.99571 6.99876 8.98374 7.03552L8.90282 7.26004ZM13.0029 6.57195C13.0029 6.77053 12.9659 6.92693 12.893 7.03748C12.8209 7.14689 12.7118 7.20016 12.5597 7.20016C12.4072 7.20016 12.2987 7.14717 12.2277 7.03748C12.1559 6.92723 12.1195 6.77053 12.1195 6.57195C12.1195 6.37367 12.1559 6.21754 12.2277 6.10813C12.2987 5.99988 12.4072 5.94717 12.5597 5.94717C12.7118 5.94717 12.8209 5.99988 12.8933 6.10813C12.9659 6.21752 13.0029 6.37365 13.0029 6.57195ZM13.3454 6.20386C13.3118 6.09017 13.2594 5.98989 13.1896 5.90643C13.1198 5.82266 13.0314 5.75544 12.9266 5.70643C12.822 5.65772 12.6984 5.63293 12.5597 5.63293C12.4206 5.63293 12.297 5.65772 12.1924 5.70643C12.0876 5.75544 11.9993 5.82268 11.9292 5.90643C11.8597 5.99019 11.8072 6.09047 11.7733 6.20386C11.74 6.31696 11.7232 6.4406 11.7232 6.57195C11.7232 6.7033 11.74 6.82723 11.7733 6.94004C11.8072 7.05343 11.8594 7.15373 11.9295 7.23748C11.9993 7.32124 12.0879 7.38819 12.1924 7.43576C12.2973 7.48334 12.4206 7.50755 12.5597 7.50755C12.6984 7.50755 12.8218 7.48334 12.9266 7.43576C13.0312 7.38819 13.1198 7.32122 13.1896 7.23748C13.2594 7.15399 13.3118 7.05371 13.3454 6.94004C13.3791 6.82695 13.3959 6.703 13.3959 6.57195C13.3959 6.4409 13.379 6.31696 13.3454 6.20386ZM16.1576 7.14713C16.1462 7.11379 16.114 7.12633 16.114 7.12633C16.0641 7.14543 16.0111 7.16308 15.9547 7.17191C15.8974 7.18072 15.8345 7.18531 15.7669 7.18531C15.6012 7.18531 15.4695 7.13602 15.3752 7.03858C15.2806 6.94114 15.2276 6.7836 15.2282 6.57049C15.2288 6.37648 15.2755 6.23059 15.3596 6.1195C15.443 6.00897 15.5701 5.95225 15.7396 5.95225C15.8809 5.95225 15.9886 5.96849 16.1014 6.00411C16.1014 6.00411 16.1285 6.01578 16.1413 5.98046C16.1712 5.89726 16.1934 5.83772 16.2253 5.74627C16.2345 5.72034 16.2122 5.70923 16.2043 5.70609C16.1598 5.68871 16.055 5.66052 15.9758 5.64855C15.9017 5.63716 15.8151 5.63117 15.7188 5.63117C15.5749 5.63117 15.4467 5.65568 15.337 5.70469C15.2276 5.75339 15.1347 5.82062 15.0613 5.90441C14.9877 5.98817 14.9319 6.08843 14.8946 6.20182C14.8576 6.31492 14.8388 6.43914 14.8388 6.57049C14.8388 6.85454 14.9154 7.08415 15.0667 7.25225C15.2182 7.42092 15.4459 7.50667 15.7428 7.50667C15.9183 7.50667 16.0983 7.47107 16.2277 7.42006C16.2277 7.42006 16.2524 7.40809 16.2416 7.37934L16.1576 7.14713ZM16.7567 6.38172C16.773 6.27147 16.8035 6.17972 16.8505 6.10823C16.9214 5.99968 17.0297 5.94014 17.1818 5.94014C17.334 5.94014 17.4345 5.99996 17.5066 6.10823C17.5545 6.17972 17.5753 6.27548 17.5835 6.38172H16.7567ZM17.9097 6.13926C17.8807 6.02957 17.8086 5.91874 17.7613 5.86803C17.6866 5.78769 17.6137 5.73157 17.5414 5.70022C17.4468 5.65976 17.3334 5.63299 17.2092 5.63299C17.0644 5.63299 16.9331 5.65722 16.8265 5.70735C16.7197 5.7575 16.63 5.82589 16.5596 5.91107C16.4892 5.99596 16.4362 6.0971 16.4026 6.21191C16.3687 6.32617 16.3516 6.45067 16.3516 6.58198C16.3516 6.71562 16.3693 6.84012 16.4043 6.95207C16.4397 7.06491 16.496 7.16433 16.5724 7.24665C16.6485 7.32957 16.7465 7.39454 16.8639 7.4398C16.9804 7.48483 17.122 7.50819 17.2847 7.50789C17.6194 7.50675 17.7958 7.43211 17.8684 7.39193C17.8813 7.38483 17.8935 7.37229 17.8781 7.3364L17.8023 7.12413C17.7909 7.09251 17.7587 7.10419 17.7587 7.10419C17.6758 7.13496 17.5579 7.19023 17.2829 7.18967C17.1032 7.18939 16.9698 7.1364 16.8863 7.05347C16.8006 6.96859 16.7587 6.84378 16.7513 6.66773L17.9106 6.66887C17.9106 6.66887 17.941 6.66831 17.9442 6.63866C17.9453 6.62617 17.9841 6.40052 17.9097 6.13926ZM7.47275 6.38172C7.48926 6.27147 7.51947 6.17972 7.56648 6.10823C7.63741 5.99968 7.74568 5.94014 7.89781 5.94014C8.04994 5.94014 8.15053 5.99996 8.22288 6.10823C8.27044 6.17972 8.29125 6.27548 8.29951 6.38172H7.47275ZM8.62544 6.13926C8.59639 6.02957 8.5246 5.91874 8.47731 5.86803C8.40266 5.78769 8.32972 5.73157 8.25737 5.70022C8.16278 5.65976 8.0494 5.63299 7.92518 5.63299C7.78074 5.63299 7.6491 5.65722 7.54256 5.70735C7.43573 5.7575 7.34598 5.82589 7.27561 5.91107C7.20524 5.99596 7.15225 6.0971 7.11863 6.21191C7.08502 6.32617 7.06
188764 6.45067 7.06764 6.58198C7.06764 6.71562 7.0853 6.84012 7.12036 6.95207C7.15569 7.06491 7.21211 7.16433 7.28844 7.24665C7.36452 7.32957 7.46252 7.39454 7.5799 7.4398C7.69643 7.48483 7.83801 7.50819 8.0007 7.50789C8.33545 7.50675 8.51181 7.43211 8.58446 7.39193C8.59729 7.38483 8.60952 7.37229 8.59415 7.3364L8.51865 7.12413C8.50696 7.09251 8.47479 7.10419 8.47479 7.10419C8.39189 7.13496 8.27421 7.19023 7.99871 7.18967C7.81923 7.18939 7.6859 7.1364 7.60242 7.05347C7.51665 6.96859 7.47479 6.84378 7.46736 6.66773L8.62662 6.66887C8.62662 6.66887 8.65709 6.66831 8.66023 6.63866C8.66134 6.62617 8.70007 6.40052 8.62544 6.13926ZM4.96702 7.14078C4.92172 7.10459 4.91545 7.09548 4.90007 7.07211C4.87727 7.0365 4.8656 6.98579 4.8656 6.9214C4.8656 6.8194 4.89921 6.74619 4.96902 6.6969C4.96818 6.6972 5.06874 6.61001 5.3052 6.61313C5.47129 6.61542 5.61971 6.63992 5.61971 6.63992V7.16699H5.62C5.62 7.16699 5.47271 7.1986 5.3069 7.20857C5.07101 7.22282 4.96616 7.1405 4.96702 7.14078ZM5.42826 6.32625C5.38126 6.32282 5.32028 6.32082 5.24734 6.32082C5.14792 6.32082 5.05191 6.33335 4.96188 6.35758C4.87129 6.38178 4.7898 6.4197 4.71971 6.46981C4.64973 6.51976 4.59221 6.58518 4.55163 6.66098C4.51061 6.73734 4.4898 6.82737 4.4898 6.92823C4.4898 7.03079 4.50746 7.11996 4.5428 7.19291C4.57813 7.26613 4.62912 7.32709 4.69407 7.37412C4.75845 7.42112 4.83795 7.45558 4.93025 7.47638C5.02114 7.49718 5.12426 7.50771 5.23709 7.50771C5.35589 7.50771 5.47441 7.49804 5.58922 7.47836C5.7029 7.45898 5.8425 7.43077 5.88124 7.42196C5.9084 7.41542 5.93547 7.40848 5.96244 7.40116C5.99123 7.39405 5.98894 7.36326 5.98894 7.36326L5.98836 6.30316C5.98836 6.07067 5.92626 5.8983 5.80404 5.79147C5.68238 5.68493 5.50318 5.63105 5.27157 5.63105C5.18466 5.63105 5.04478 5.64304 4.96102 5.65984C4.96102 5.65984 4.70774 5.70885 4.60346 5.79033C4.60346 5.79033 4.58068 5.80459 4.59321 5.8365L4.67527 6.05702C4.68552 6.08551 4.71317 6.07582 4.71317 6.07582C4.71317 6.07582 4.722 6.07239 4.73227 6.06641C4.95535 5.94505 5.23739 5.94875 5.23739 5.94875C5.36276 5.94875 5.45905 5.97381 5.524 6.02366C5.58724 6.07209 5.61943 6.14531 5.61943 6.29972V6.34873C5.51971 6.3345 5.42826 6.32625 5.42826 6.32625ZM14.7782 5.72893C14.787 5.7027 14.7685 5.69017 14.7608 5.68733C14.7412 5.67964 14.6426 5.65884 14.5665 5.65399C14.4209 5.64517 14.34 5.66967 14.2676 5.70214C14.1959 5.73462 14.1161 5.78703 14.0716 5.84659V5.70557C14.0716 5.68591 14.0577 5.67023 14.0383 5.67023H13.7411C13.7218 5.67023 13.7078 5.68589 13.7078 5.70557V7.43462C13.7078 7.45399 13.7238 7.46995 13.7431 7.46995H14.0477C14.057 7.4699 14.066 7.46615 14.0725 7.45952C14.0791 7.4529 14.0828 7.44394 14.0827 7.43462V6.57081C14.0827 6.45486 14.0956 6.3392 14.1212 6.26655C14.1463 6.19474 14.1805 6.1372 14.2226 6.09588C14.2651 6.05486 14.3132 6.02609 14.3659 6.00985C14.4198 5.99331 14.4793 5.98791 14.5215 5.98791C14.5822 5.98791 14.6488 6.00356 14.6488 6.00356C14.671 6.00613 14.6836 5.99245 14.691 5.97223C14.7109 5.91924 14.7674 5.76054 14.7782 5.72893Z",fill:"white"}),l.createElement("path",{d:"M11.9195 4.92756C11.8825 4.91617 11.8489 4.90846 11.805 4.90022C11.7605 4.89225 11.7075 4.88824 11.6474 4.88824C11.4377 4.88824 11.2725 4.9475 11.1566 5.0643C11.0412 5.18056 10.9628 5.35747 10.9235 5.59025L10.9092 5.66858H10.646C10.646 5.66858 10.6141 5.66744 10.6072 5.70222L10.5642 5.94352C10.5611 5.96632 10.5711 5.98084 10.6018 5.98084H10.858L10.5981 7.43155C10.5779 7.54836 10.5545 7.64438 10.5286 7.71729C10.5032 7.78911 10.4785 7.84294 10.4477 7.88226C10.4181 7.91988 10.3901 7.94778 10.3417 7.96402C10.3018 7.97741 10.2557 7.98368 10.2052 7.98368C10.1773 7.98368 10.14 7.9791 10.1124 7.97341C10.085 7.96798 10.0705 7.96202 10.0497 7.95317C10.0497 7.95317 10.0198 7.9418 10.0078 7.97171C9.99839 7.99649 9.93003 8.18422 9.92176 8.20732C9.91379 8.23039 9.92518 8.24834 9.9397 8.25375C9.97389 8.26572 9.99924 8.27369 10.0457 8.2848C10.1101 8.29992 10.1645 8.30076 10.2155 8.30076C10.322 8.30076 10.4195 8.28566 10.5001 8.25661C10.581 8.22726 10.6516 8.17625 10.7143 8.10732C10.7819 8.03267 10.8243 7.95461 10.8648 7.84778C10.9049 7.74236 10.9394 7.61131 10.9668 7.45861L11.228 5.98084H11.6098C11.6098 5.98084 11.642 5.98198 11.6485 5.94694L11.6918 5.70592C11.6947 5.68286 11.685 5.66861 11.6539 5.66861H11.2833C11.2853 5.66036 11.3021 5.52985 11.3445 5.40708C11.3628 5.35495 11.397 5.31249 11.4257 5.28342C11.4543 5.25493 11.487 5.23471 11.5229 5.22302C11.5597 5.21105 11.6016 5.20536 11.6474 5.20536C11.6822 5.20536 11.7166 5.20935 11.7426 5.21475C11.7785 5.22246 11.7924 5.22644 11.8018 5.22931C11.8397 5.2407 11.8448 5.22959 11.8523 5.21137L11.9409 4.96806C11.95 4.9418 11.9275 4.93069 11.9195 4.92756ZM6.74074 7.43469C6.74074 7.45407 6.72678 7.46975 6.7074 7.46975H6.4C6.38062 7.46975 6.36694 7.45407 6.36694 7.43469V4.96062C6.36694 4.94126 6.38062 4.92558 6.4 4.92558H6.7074C6.72678 4.92558 6.74074 4.94126 6.74074 4.96062V7.43469Z",fill:"white"})))},m6=xe(p6),v6=function(){return l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","aria-label":"Yahoo!",role:"img",viewBox:"0 0 512 512",fill:"#ffffff"},l.createElement("rect",{width:"512",height:"512",rx:"15%",fill:"#5f01d1"}),l.createElement("g",{fill:"#ffffff"},l.createElement("path",{d:"M203 404h-62l25-59-69-165h63l37 95 37-95h62m58 76h-69l62-148h69"}),l.createElement("circle",{cx:"303",cy:"308",r:"38"})))},g6=xe(v6),y6=(Ti={},V(V(V(V(V(V(V(V(V(V(Ti,ye.Google,{messageDescriptor:{id:"oauth.continueWithGoogle",message:"Continue with Google"},icon:l.createElement(kd,null)}),ye.Microsoft,{messageDescriptor:{id:"oauth.continueWithMicrosoft",message:"Continue with Microsoft"},icon:l.createElement(W5,null)}),ye.Apple,{messageDescriptor:{id:"oauth.continueWithApple",message:"Continue with Apple"},icon:l.createElement($5,null)}),ye.Github,{messageDescriptor:{id:"oauth.continueWithGitHub",message:"Continue with GitHub"},icon:l.createElement(N5,null)}),ye.GitLab,{messageDescriptor:{id:"oauth.continueWithGitLab",message:"Continue with GitLab"},icon:l.createElement(V5,null)}
188),ye.Facebook,{messageDescriptor:{id:"oauth.continueWithFacebook",message:"Continue with Facebook"},icon:l.createElement(H5,null)}),ye.Discord,{messageDescriptor:{id:"oauth.continueWithDiscord",message:"Continue with Discord"},icon:l.createElement(Z5,null)}),ye.Salesforce,{messageDescriptor:{id:"oauth.continueWithSalesforce",message:"Continue with Salesforce"},icon:l.createElement(m6,null)}),ye.Slack,{messageDescriptor:{id:"oauth.continueWithSlack",message:"Continue with Slack"},icon:l.createElement(Y5,null)}),ye.Amazon,{messageDescriptor:{id:"oauth.continueWithAmazon",message:"Continue with Amazon"},icon:l.createElement(X5,null)}),V(V(V(V(V(V(V(V(V(Ti,ye.Bitbucket,{messageDescriptor:{id:"oauth.continueWithBitbucket",message:"Continue with Bitbucket"},icon:l.createElement(e6,null)}),ye.LinkedIn,{messageDescriptor:{id:"oauth.continueWithLinkedIn",message:"Continue with LinkedIn"},icon:l.createElement(n6,null)}),ye.Coinbase,{messageDescriptor:{id:"oauth.continueWithCoinbase",message:"Continue with Coinbase"},icon:l.createElement(Td,null)}),ye.Twitch,{messageDescriptor:{id:"oauth.continueWithTwitch",message:"Continue with Twitch"},icon:l.createElement(i6,null)}),ye.Twitter,{messageDescriptor:{id:"oauth.continueWithTwitter",message:"Continue with Twitter"},icon:l.createElement(s6,null)}),ye.TikTok,{messageDescriptor:{id:"oauth.continueWithTikTok",message:"Continue with TikTok"},icon:l.createElement(u6,null)}),ye.Snapchat,{messageDescriptor:{id:"oauth.continueWithSnapchat",message:"Continue with Snapchat"},icon:l.createElement(d6,null)}),ye.Figma,{messageDescriptor:{id:"oauth.continueWithFigma",message:"Continue with Figma"},icon:l.createElement(f6,null)}),ye.Yahoo,{messageDescriptor:{id:"oauth.continueWithYahoo",message:"Continue with Yahoo"},icon:l.createElement(g6,null)})),_6={messageDescriptor:null,icon:l.createElement(l.Fragment,null)},b6=function(){var e=pe(),n=e._,r=qe(),a=Pd(),i=I(a,2),o=i[0],s=i[1];if(!r.oauthOptions)return l.createElement(l.Fragment,null);var u=r.oauthOptions,c=u.providers,h=u.loginRedirectURL,d=u.signupRedirectURL,f=kp.moveToFront(c,function(v){return v.type===o}),p=I(f,2),m=p[0],g=p[1];return l.createElement(K,{direction:"column",gap:8,className:"oauth-buttons"},m.map(function(v,_){var b,C=(b=y6[v.type])!==null&&b!==void 0?b:_6,A=C.icon,E=C.messageDescriptor,T={customScopes:v.custom_scopes,providerParams:v.provider_params};if(v.one_tap)return l.createElement(Ad,Object.assign({position:v.position,key:"oauth-".concat(v.type)},T,{cancelOnTapOutside:v.cancel_on_tap_outside}));var O=l.createElement(Ed,Object.assign({key:"oauth-".concat(v.type),providerType:v.type,icon:A,label:E?n(E):"",loginRedirectUrl:h,signupRedirectUrl:d,onSuccess:function(){return s(v.type)}},T));return g&&_===0?l.createElement("div",{key:"oauth-".concat(v.type)},l.createElement(ae,{size:"helper",color:"secondary",align:"right"},n({id:"provider.lastUsed",message:"Last used"})),O):O}))},w6=globalThis?.document?xn:function(){},C6=z1.useId||function(){},E6=0;function Ld(t){var e=J(C6()),n=I(e,2),r=n[0],a=n[1];return w6(function(){a(function(i){return i??String(E6++)})},[t]),r?"radix-".concat(r):""}function go(t){var e=kt(t);return Te(function(){e.current=t}),at(function(){return function(){for(var n,r,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(r=e.current)===null||r===void 0?void 0:(n=r).call.apply(n,[e].concat(i))}},[])}function Id(t){var e=t.prop,n=t.defaultProp,r=t.onChange,a=r===void 0?function(){}:r,i=(function(f){var p=f.defaultProp,m=f.onChange,g=J(p),v=I(g,1),_=v[0],b=kt(_),C=go(m);return Te(function(){b.current!==_&&(C(_),b.current=_)},[_,b,C]),g})({defaultProp:n,onChange:a}),o=I(i,2),s=o[0],u=o[1],c=e!==void 0,h=c?e:s,d=go(a);return[h,dt(function(f){if(c){var p=f,m=typeof f=="function"?p(e):f;m!==e&&d(m)}else u(f)},[c,e,u,d])]}function Dd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){return e.forEach(function(a){return(function(i,o){typeof i=="function"?i(o):i!=null&&(i.current=o)})(a,r)})}}function yo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return dt(Dd.apply(void 0,e),e)}function Ot(){return Ot=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ot.apply(null,arguments)}var La=Nt(function(t,e){var n=t.children,r=jt(t,Ih);return tr.toArray(n).some(bc)?H(Rt,null,tr.map(n,function(a){return bc(a)?H(_o,Ot({},r,{ref:e}),a.props.children):a})):H(_o,Ot({},r,{ref:e}),n)});La.displayName="Slot";var _o=Nt(function(t,e){var n=t.children,r=jt(t,Dh);return $n(n)?Ko(n,re(re({},S6(r,n.props)),{},{ref:Dd(e,n.ref)})):tr.count(n)>1?tr.only(null):null});_o.displayName="SlotClone";var k6=function(e){var n=e.children;return H(Rt,null,n)};function bc(t){return $n(t)&&t.type===k6}function S6(t,e){var n=re({},e),r=function(){var o=t[a],s=e[a];/^on[A-Z]/.test(a)?n[a]=function(){s?.apply(void 0,arguments),o?.apply(void 0,arguments)}:a==="style"?n[a]=re(re({}
188,o),s):a==="className"&&(n[a]=[o,s].filter(Boolean).join(" "))};for(var a in e)r();return re(re({},t),n)}var lr=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(function(t,e){return re(re({},t),{},V({},e,Nt(function(n,r){var a=n.asChild,i=jt(n,Rh),o=a?La:e;return Te(function(){window[Symbol.for("radix-ui")]=!0},[]),H(o,Ot({},i,{ref:r}))})))},{});function hs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=function(){var i=n.map(function(o){return Rn(o)});return function(o){var s=o?.[t]||i;return at(function(){return V({},"__scope".concat(t),re(re({},o),{},V({},t,s)))},[o,s])}};return r.scopeName=t,[function(a,i){var o=Rn(i),s=n.length;function u(c){var h=c.scope,d=c.children,f=jt(c,Fh),p=h?.[t][s]||o,m=at(function(){return f},Object.values(f));return H(p.Provider,{value:m},d)}return n=[].concat(zt(n),[i]),u.displayName=a+"Provider",[u,function(c,h){var d=h?.[t][s]||o,f=Wt(d);if(f)return f;if(i!==void 0)return i;throw new Error("`".concat(c,"` must be used within `").concat(a,"`"))}]},O6.apply(void 0,[r].concat(zt(e)))]}function O6(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if(e.length===1)return r;var a=function(){var o=e.map(function(s){return{useScope:s(),scopeName:s.scopeName}});return function(s){var u=o.reduce(function(c,h){var d=h.useScope,f=h.scopeName;return re(re({},c),d(s)["__scope".concat(f)])},{});return at(function(){return V({},"__scope".concat(r.scopeName),u)},[u])}};return a.scopeName=r.scopeName,a}function P6(t){var e=t+"CollectionProvider",n=hs(e),r=I(n,2),a=r[0],i=r[1],o=a(e,{collectionRef:{current:null},itemMap:new Map}),s=I(o,2),u=s[0],c=s[1],h=function(_){var b=_.scope,C=_.children,A=l.useRef(null),E=l.useRef(new Map).current;return l.createElement(u,{scope:b,itemMap:E,collectionRef:A},C)},d=t+"CollectionSlot",f=l.forwardRef(function(v,_){var b=v.scope,C=v.children,A=c(d,b),E=yo(_,A.collectionRef);return l.createElement(La,{ref:E},C)}),p=t+"CollectionItemSlot",m="data-radix-collection-item",g=l.forwardRef(function(v,_){var b=v.scope,C=v.children,A=jt(v,Mh),E=l.useRef(null),T=yo(_,E),O=c(p,b);return l.useEffect(function(){return O.itemMap.set(E,re({ref:E},A)),function(){O.itemMap.delete(E)}}),l.createElement(La,V(V({},m,""),"ref",T),C)});return[{Provider:h,Slot:f,ItemSlot:g},function(v){var _=c(t+"CollectionConsumer",v);return l.useCallback(function(){var b=_.collectionRef.current;if(!b)return[];var C=Array.from(b.querySelectorAll("[".concat(m,"]")));return Array.from(_.itemMap.values()).sort(function(A,E){return C.indexOf(A.ref.current)-C.indexOf(E.ref.current)})},[_.collectionRef,_.itemMap])},i]}function ln(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.checkForDefaultPrevented,a=r===void 0?!0:r;return function(i){if(t?.(i),a===!1||!i.defaultPrevented)return e?.(i)}}var A6={bubbles:!1,cancelable:!0},T6=P6("RovingFocusGroup"),fs=I(T6,3),bo=fs[0],Rd=fs[1],L6=fs[2],I6=hs("RovingFocusGroup",[L6]),Fd=I(I6,2),D6=Fd[0],Md=Fd[1],R6=D6("RovingFocusGroup"),Bd=I(R6,2),F6=Bd[0],M6=Bd[1],B6=Nt(function(t,e){return H(bo.Provider,{scope:t.__scopeRovingFocusGroup},H(bo.Slot,{scope:t.__scopeRovingFocusGroup},H(x6,Ot({},t,{ref:e}))))}),x6=Nt(function(t,e){var n=t.__scopeRovingFocusGroup,r=t.orientation,a=t.dir,i=a===void 0?"ltr":a,o=t.loop,s=o===void 0?!1:o,u=t.currentTabStopId,c=t.defaultCurrentTabStopId,h=t.onCurrentTabStopIdChange,d=t.onEntryFocus,f=jt(t,Bh),p=kt(null),m=yo(e,p),g=Id({prop:u,defaultProp:c,onChange:h}),v=I(g,2),_=v[0],b=_===void 0?null:_,C=v[1],A=J(!1),E=I(A,2),T=E[0],O=E[1],L=go(d),j=Rd(n),X=kt(!1);return Te(function(){var w=p.current;if(w)return w.addEventListener("rovingFocusGroup.onEntryFocus",L),function(){return w.removeEventListener("rovingFocusGroup.onEntryFocus",L)}},[L]),H(F6,{scope:n,orientation:r,dir:i,loop:s,currentTabStopId:b,onItemFocus:dt(function(w){return C(w)},[C]),onItemShiftTab:dt(function(){return O(!0)},[])},H(lr.div,Ot({tabIndex:T?-1:0,"data-orientation":r},f,{ref:m,style:re({outline:"none"},t.style),onMouseDown:ln(t.onMouseDown,function(){X.current=!0}),onFocus:ln(t.onFocus,function(w){var P=!X.current;if(w.target===w.currentTarget&&P&&!T){var R=new Event("rovingFocusGroup.onEntryFocus",A6);if(w.currentTarget.dispatchEvent(R),!R.defaultPrevented){var M=j().filter(function(B){return B.focusable});xd([M.find(function(B){return B.active}),M.find(function(B){return B.id===b}
188)].concat(zt(M)).filter(Boolean).map(function(B){return B.ref.current}))}}X.current=!1}),onBlur:ln(t.onBlur,function(){return O(!1)})})))}),$6=Nt(function(t,e){var n=t.__scopeRovingFocusGroup,r=t.focusable,a=r===void 0?!0:r,i=t.active,o=i===void 0?!1:i,s=jt(t,xh),u=Ld(),c=M6("RovingFocusGroupItem",n),h=c.currentTabStopId===u,d=Rd(n);return H(bo.ItemSlot,{scope:n,id:u,focusable:a,active:o},H(lr.span,Ot({tabIndex:h?0:-1,"data-orientation":c.orientation},s,{ref:e,onMouseDown:ln(t.onMouseDown,function(f){a?c.onItemFocus(u):f.preventDefault()}),onFocus:ln(t.onFocus,function(){return c.onItemFocus(u)}),onKeyDown:ln(t.onKeyDown,function(f){if(f.key==="Tab"&&f.shiftKey)return void c.onItemShiftTab();if(f.target===f.currentTarget){var p=(function(b,C,A){var E=(function(T,O){return O!=="rtl"?T:T==="ArrowLeft"?"ArrowRight":T==="ArrowRight"?"ArrowLeft":T})(b.key,A);return C==="vertical"&&["ArrowLeft","ArrowRight"].includes(E)||C==="horizontal"&&["ArrowUp","ArrowDown"].includes(E)?void 0:j6[E]})(f,c.orientation,c.dir);if(p!==void 0){f.preventDefault();var m=d().filter(function(b){return b.focusable}).map(function(b){return b.ref.current});if(p==="last")m.reverse();else if(p==="prev"||p==="next"){p==="prev"&&m.reverse();var g=m.indexOf(f.currentTarget);m=c.loop?(_=g+1,(v=m).map(function(b,C){return v[(_+C)%v.length]})):m.slice(g+1)}setTimeout(function(){return xd(m)})}var v,_}})})))}),j6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xd(t){var e=document.activeElement,n=_n(t),r;try{for(n.s();!(r=n.n()).done;){var a=r.value;if(a===e||(a.focus(),document.activeElement!==e))return}}catch(i){n.e(i)}finally{n.f()}}var N6=B6,U6=$6,H6=hs("Tabs",[Md]),$d=I(H6,2),z6=$d[0],_9=$d[1],jd=Md(),W6=z6("Tabs"),Nd=I(W6,2),G6=Nd[0],ps=Nd[1],V6=Nt(function(t,e){var n=t.__scopeTabs,r=t.value,a=t.onValueChange,i=t.defaultValue,o=t.orientation,s=o===void 0?"horizontal":o,u=t.dir,c=u===void 0?"ltr":u,h=t.activationMode,d=h===void 0?"automatic":h,f=jt(t,$h),p=Id({prop:r,onChange:a,defaultProp:i}),m=I(p,2),g=m[0],v=m[1];return H(G6,{scope:n,baseId:Ld(),value:g,onValueChange:v,orientation:s,dir:c,activationMode:d},H(lr.div,Ot({"data-orientation":s},f,{ref:e})))}),K6=Nt(function(t,e){var n=t.__scopeTabs,r=t.loop,a=r===void 0?!0:r,i=jt(t,jh),o=ps("TabsList",n),s=jd(n);return H(N6,Ot({asChild:!0},s,{orientation:o.orientation,dir:o.dir,loop:a}),H(lr.div,Ot({role:"tablist","aria-orientation":o.orientation,dir:o.dir},i,{ref:e})))}),Z6=Nt(function(t,e){var n=t.__scopeTabs,r=t.value,a=t.disabled,i=a===void 0?!1:a,o=jt(t,Nh),s=ps("TabsTrigger",n),u=jd(n),c=Ud(s.baseId,r),h=Hd(s.baseId,r),d=r===s.value;return H(U6,Ot({asChild:!0},u,{focusable:!i,active:d}),H(lr.button,Ot({type:"button",role:"tab","aria-selected":d,"aria-controls":h,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c},o,{ref:e,onMouseDown:ln(t.onMouseDown,function(f){i||f.button!==0||f.ctrlKey!==!1?f.preventDefault():s.onValueChange(r)}),onKeyDown:ln(t.onKeyDown,function(f){[" ","Enter"].includes(f.key)&&s.onValueChange(r)}),onFocus:ln(t.onFocus,function(){var f=s.activationMode!=="manual";d||i||!f||s.onValueChange(r)})})))}),q6=Nt(function(t,e){var n=t.__scopeTabs,r=t.value,a=t.children,i=jt(t,Uh),o=ps("TabsContent",n),s=Ud(o.baseId,r),u=Hd(o.baseId,r),c=r===o.value;return H(lr.div,Ot({"data-state":c?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":s,hidden:!c,id:u,tabIndex:0},i,{ref:e}),c&&a)});function Ud(t,e){return"".concat(t,"-trigger-").concat(e)}function Hd(t,e){return"".concat(t,"-content-").concat(e)}var Y6=V6,J6=K6,X6=Z6,Q6=q6,ms={"data-1p-ignore":!0},e3=oe.select(ol||(ol=Z([`
189  background-color: `,`;
190  border: 1px solid `,`;
191  border-radius: `,`;
192  height: 47px;
193  box-sizing: border-box;
194  padding: 0 8px;
195  color: `,`;
196  font-family: `,`;
197  width: 80px;
198  font-size: 18px;
199`])),function(t){return t.theme.inputs.backgroundColor},function(t){return t.theme.inputs.borderColor},function(t){return t.theme.inputs.borderRadius},function(t){return t.theme.inputs.textColor},function(t){return t.theme.typography.fontFamily}
199),t3=function(e){var n=e.country,r=e.setCountry,a=pe(),i=a._,o=new Intl.DisplayNames(["en"],{type:"region"});return l.createElement(e3,{"data-testid":"select-test-id",name:"country-select","aria-label":i({id:"formField.countryCode.label",message:"Country code"}),value:n,onChange:function(u){r(u.target.value)}},Object.entries(qc).map(function(s){var u=I(s,2),c=u[0],h=u[1];return l.createElement("option",{key:c,value:c},c!==n?"+".concat(h," ").concat(o.of(c)):"+".concat(h))}))},vs=oe.input(sl||(sl=Z([`
200  background-color: `,`;
201  height: 47px;
202  padding: 0 8px;
203  box-sizing: border-box;
204  border: 1px solid `,`;
205  border-radius: `,`;
206  color: `,`;
207  font-family: `,`;
208  font-size: 18px;
209
210  &::placeholder {
211    color: `,`;
212  }
213
214  &:disabled {
215    border: 1px solid `,`;
216    color: `,`;
217    background-color: `,`;
218  }
219`])),function(t){return t.theme.inputs.backgroundColor},function(t){return t.theme.inputs.borderColor},function(t){return t.theme.inputs.borderRadius},function(t){return t.theme.inputs.textColor},function(t){return t.theme.typography.fontFamily},function(t){return t.theme.inputs.placeholderColor},function(t){return t.theme.colors.disabledText},function(t){return t.theme.colors.disabledText},function(t){return t.theme.colors.disabled}),zd=function(e){var n=e.parsePhoneNumber,r=e.phoneNumber,a=e.country;return be(void 0,void 0,void 0,z().m(function i(){var o,s;return z().w(function(u){for(;;)switch(u.p=u.n){case 0:return u.p=0,u.n=1,Promise.race([n(r,a),new Promise(function(c){return setTimeout(function(){return c(void 0)},1e4)})]);case 1:if(o=u.v,o){u.n=2;break}return u.a(2,r);case 2:return u.a(2,o.national);case 3:return u.p=3,s=u.v,u.a(2,r)}},i,null,[[0,3]])}))},n3=function(e){var n=e.parsePhoneNumber,r=e.phoneNumber,a=e.country;return be(void 0,void 0,void 0,z().m(function i(){var o,s,u,c,h;return z().w(function(d){for(;;)switch(d.p=d.n){case 0:return o=qc[a],s="+".concat(o).concat(r),u={isValid:!0,number:s},d.p=1,d.n=2,Promise.race([n(r,a),new Promise(function(f){return setTimeout(function(){return f(void 0)},2e3)})]);case 2:if(c=d.v,c){d.n=3;break}return d.a(2,u);case 3:return d.a(2,c);case 4:return d.p=4,h=d.v,d.a(2,u)}},i,null,[[1,4]])}))},r3=oe(vs)(ll||(ll=Z([`
220  flex-grow: 1;
221  min-width: 100px;
222`]))),a3=function(e){var n=e.phone,r=e.setPhone,a=e.country,i=e.setCountry,o=e.parsePhoneNumber,s=e.hasPasskeys,u=or(e,["phone","setPhone","country","setCountry","parsePhoneNumber","hasPasskeys"]);return l.createElement(K,{direction:"row",wrap:"nowrap",justifyContent:"flex-start",alignContent:"stretch",alignItems:"center",gap:8},l.createElement(t3,{country:a,setCountry:i}),l.createElement(r3,Object.assign({name:"phoneNumber",placeholder:"(123) 456-7890",id:"phone-input",autoComplete:s?"username webauthn":void 0,value:n,type:"text",onChange:function(h){return be(void 0,void 0,void 0,z().m(function d(){var f,p;return z().w(function(m){for(;;)switch(m.n){case 0:return f=h.target.value,m.n=1,zd({parsePhoneNumber:o,phoneNumber:f,country:a});case 1:if(p=m.v,f===h.target.value){m.n=2;break}return m.a(2);case 2:r(p);case 3:return m.a(2)}},d)}))},required:!0},s?ms:{},u)))},Ur=function(e){var n=e.email,r=e.setEmail,a=e.disableInput,i=a===void 0?!1:a,o=e.hasPasskeys,s=o===void 0?!1:o,u=or(e,["email","setEmail","disableInput","hasPasskeys"]),c=pe(),h=c._;return l.createElement(vs,Object.assign({placeholder:h({id:"formField.email.placeholder",message:"[email protected]"}),name:"email",type:"email",autoComplete:s?"username webauthn":"email",disabled:i,id:"email-input",value:n,onChange:function(f){return r(f.target.value)},required:!0},s?ms:{},u))},i3=function(e){var n=e.children,r=e.isLoading,a=or(e,["children","isLoading"]);return l.createElement(rt,Object.assign({},a),r?l.createElement(K,{justifyContent:"center"},l.createElement(Lr,{size:18,thickness:1,"data-testid":"loading-icon"})):n)},Nn=function(e){var n=e.isSubmitting,r=e.disabled,a=e.text,i=e.variant,o=n||r;return l.createElement(i3,{isLoading:n,type:"submit",disabled:o,variant:i},a)},wc=/https:\/\/stytch\.com\/[#a-zA-Z0-9/-]+/g,o3=function(e){for(var n=e.split(wc),r=Array.from(e.matchAll(wc)).map(function(o){return o[0]}),a=[];n.length||r.length;)if(n.length&&a.push(n.shift()),r.length){var i=r.shift();a.push(l.createElement("a",{key:i+"__"+String(r.length),href:i,target:"_blank",rel:"noreferrer"},i))}return a},Yt=function(e){var n=e.errorMessage,r=e.id,a=at(function(){return o3(n)},[n]);return l.createElement(ae,{size:"helper",color:"error",id:r},a)},Wd=function(e){if(e&&Ae(e)==="object"&&"error_type"in e&&typeof e.error_type=="string")return e.error_type}
222,s3={invalid_email:{id:"error.invalidEmail",message:"Email format is invalid."},invalid_phone_number:{id:"error.invalidPhoneNumber",message:"Phone number format is invalid. Ensure the phone number is in the E.164 format."},unsubscribed_phone_number:{id:"error.unsubscribedPhoneNumber",message:"Phone number is unsubscribed. User has unsubscribed. Resubscribe by texting 'START' before messages can be sent."},inactive_email:{id:"error.inactiveEmail",message:"The email address is marked as inactive. Please try another email address, or contact your admin if you think this is a mistake."},unauthorized_credentials:{id:"error.unauthorizedCredentials",message:"Unauthorized credentials."},user_unauthenticated:{id:"error.userUnauthenticated",message:"Must have an active session to call this method. Have you logged in yet?"},email_not_found:{id:"error.emailNotFound",message:"Email not found."},unable_to_auth_magic_link:{id:"error.unableToAuthMagicLink",message:"The magic link could not be authenticated because it was either already used or expired. Please try again."},no_user_password:{id:"error.noUserPassword",message:"Password not found for this user. Please try again."},breached_password:{id:"error.breachedPassword",message:"Password appears in the list of breached passwords and must be reset."},reset_password:{id:"error.resetPassword",message:"Password must be reset."},oauth_token_not_found:{id:"error.oauthTokenNotFound",message:"OAuth Token could not be found."},invalid_code:{id:"error.invalidCode",message:"Code format is invalid, please try again."},member_password_not_found:{id:"error.memberPasswordNotFound",message:"Member password not found."},oauth_flow_callback_error:{id:"error.oauthFlowCallbackError",message:"An error was encountered in the callback of the OAuth flow. Please try again."},unauthorized_action:{id:"error.unauthorizedAction",message:"Unauthorized action."},user_lock_limit_reached:{id:"error.userLockLimitReached",message:"Too many failed authentication attempts. Please try again later."},invalid_session_token:{id:"error.invalidSessionToken",message:"Invalid session token."},session_not_found:{id:"error.sessionNotFound",message:"Session not found."},invalid_phone_number_country_code:{id:"error.invalidPhoneNumberCountryCode",message:"The phone number's country code is invalid, unsupported, or disabled."},otp_code_not_found:{id:"error.otpCodeNotFound",message:"Invalid passcode, please try again."},duplicate_member_phone_number:{id:"error.duplicatePhoneNumber",message:"A member with the specified phone number already exists for this organization."}},$t=function(e,n){var r=Wd(e),a=s3[r];return a?n(a):e.error_message},Gd=V(V(V({},tt.SMS,{id:"button.sms",message:"Continue with text message"}),tt.WhatsApp,{id:"button.whatsapp",message:"Continue with WhatsApp"}),tt.Email,{id:"button.emailLogin",message:"Continue with email"}),l3=function(){var e=pe(),n=e._,r=ct(),a=ht(),i=Fe(),o=qe(),s=ze(),u=I(s,2),c=u[1],h=J(""),d=I(h,2),f=d[0],p=d[1],m=J(""),g=I(m,2),v=g[0],_=g[1],b=J(!1),C=I(b,2),A=C[0],E=C[1],T=o.products.includes(Be.passkeys),O=jn(v),L=n({id:"formField.email.label",message:"Email"}),j=function(P){return a({message:P}),E(!1),_(P)},X=function(P){return be(void 0,void 0,void 0,z().m(function R(){var M,B,N,U,Q;return z().w(function(q){for(;;)switch(q.n){case 0:if(P.preventDefault(),E(!0),f.match(Uo)){q.n=1;break}return q.a(2,j(n({id:"errors.invalidEmail",message:"Invalid email address."})));case 1:_(""),E(!0),i.otps.email.loginOrCreate(f,{expiration_minutes:(B=(M=o.otpOptions)===null||M===void 0?void 0:M.expirationMinutes)!==null&&B!==void 0?B:Jn,login_template_id:(N=o.otpOptions)===null||N===void 0?void 0:N.loginTemplateId,signup_template_id:(U=o.otpOptions)===null||U===void 0?void 0:U.signupTemplateId,locale:(Q=o.otpOptions)===null||Q===void 0?void 0:Q.locale}).then(function(te){E(!1),r({type:fe.OTPsLoginOrCreateEvent,data:te}),c({type:"update_otp_state",otpState:{type:tt.Email,methodId:te.method_id,otpDestination:f}}),c({type:"transition",screen:ne.OTPAuthenticate}),Je(i).networkClient.logEvent({name:"email_sent",details:{email:f,type:Cn.LoginOrCreateOTP}})}).catch(function(te){a(te),E(!1),_($t(te,n))});case 2:return q.a(2)}},R)}))};return l.createElement("form",{onSubmit:X},l.createElement(K,{direction:"column",gap:8},l.createElement(K,{direction:"column",minHeight:52},l.createElement(Ur,Object.assign({email:f,setEmail:p,hasPasskeys:T,"aria-label":L},O.input)),l.createElement(Yt,Object.assign({errorMessage:v},O.error))),l.createElement(Nn,{isSubmitting:A,text:n(Gd[tt.Email])})))},Cc=function(e){var n=e.method,r=pe(),a=r._,i=ct(),o=ht(),s=Fe(),u=qe(),c=ze(),h=I(c,2),d=h[1],f=J(""),p=I(f,2),m=p[0],g=p[1],v=J("US"),_=I(v,2),b=_[0],C=_[1],A=J(""),E=I(A,2),T=E[0],O=E[1],L=J(!1),j=I(L,2),X=j[0],w=j[1],P=u.products.includes(Be.passkeys),R=jn(T),M=a({id:"formField.phone.label",message:"Phone number"}),B=function(q){return o({message:q}),w(!1),O(q)},N=function(q,te){return be(void 0,void 0,void 0,z().m(function _e(){return z().w(function(Y){for(;;)if(Y.n===0)return Y.a(2,Je(s).clientsideServices.parsedPhoneNumber({phoneNumber:q,regionCode:te}))},_e)}))},U=function(q){return be(void 0,void 0,void 0,z().m(function te(){var _e,Y,x;return z().w(function(W){for(;;)switch(W.n){case 0:return q.preventDefault(),W.n=1,n3({parsePhoneNumber:N,phoneNumber:m,country:b});case 1:if(x=W.v,x.isValid){W.n=2;break}
222return W.a(2,B(a({id:"error.invalidPhoneNumber",message:"Phone number format is invalid. Ensure the phone number is in the E.164 format."})));case 2:w(!0),O(""),s.otps[n].loginOrCreate(x.number,{expiration_minutes:(Y=(_e=u.otpOptions)===null||_e===void 0?void 0:_e.expirationMinutes)!==null&&Y!==void 0?Y:Jn}).then(function(G){w(!1),i({type:fe.OTPsLoginOrCreateEvent,data:G}),d({type:"update_otp_state",otpState:{type:n,methodId:G.method_id,otpDestination:x.number}}),d({type:"transition",screen:ne.OTPAuthenticate})}).catch(function(G){o(G),w(!1),O($t(G,a))});case 3:return W.a(2)}},te)}))};return l.createElement("form",{onSubmit:U},l.createElement(K,{direction:"column",gap:8},l.createElement(K,{direction:"column",minHeight:52},l.createElement(a3,Object.assign({phone:m,setPhone:g,country:b,setCountry:C,parsePhoneNumber:N,hasPasskeys:P,"aria-label":M},R.input)),l.createElement(Yt,Object.assign({errorMessage:T},R.error))),l.createElement(Nn,{isSubmitting:X,text:a(Gd[n])})))},u3=function(){var e=pe(),n=e._,r=ct(),a=ht(),i=ze(),o=I(i,2),s=o[1],u=Fe(),c=qe(),h=c.emailMagicLinksOptions,d=c.products.includes(Be.passkeys),f=J(""),p=I(f,2),m=p[0],g=p[1],v=J(""),_=I(v,2),b=_[0],C=_[1],A=J(!1),E=I(A,2),T=E[0],O=E[1],L=jn(b),j=n({id:"formField.email.label",message:"Email"}),X=function(P){return be(void 0,void 0,void 0,z().m(function R(){var M;return z().w(function(B){for(;;)switch(B.n){case 0:P.preventDefault(),M=m,M.match(Uo)?(C(""),O(!0),u.magicLinks.email.loginOrCreate(M,Na(h)).then(function(N){r({type:fe.MagicLinkLoginOrCreateEvent,data:Object.assign(Object.assign({},N),{email:M})}),O(!1),s({type:"set_magic_link_email",email:M}),s({type:"transition",screen:ne.EmailConfirmation}),Je(u).networkClient.logEvent({name:"email_try_again_clicked",details:{email:M,type:Cn.LoginOrCreateEML}})}).catch(function(N){a(N),O(!1),C($t(N,n))})):C(n({id:"error.invalidEmail",message:"Email format is invalid."}));case 1:return B.a(2)}},R)}))};return l.createElement("form",{onSubmit:X},l.createElement(K,{direction:"column",gap:8},l.createElement(K,{direction:"column",minHeight:52},l.createElement(Ur,Object.assign({email:m,setEmail:g,hasPasskeys:d,"aria-label":j},L.input)),l.createElement(Yt,Object.assign({errorMessage:b},L.error))),l.createElement(Nn,{isSubmitting:T,text:n({id:"button.emailLogin",message:"Continue with email"})})))},c3=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[1],o=qe(),s=Fe(),u=ht(),c=o.products.includes(Be.passkeys),h=J(""),d=I(h,2),f=d[0],p=d[1],m=J(""),g=I(m,2),v=g[0],_=g[1],b=J(!1),C=I(b,2),A=C[0],E=C[1],T=jn(v),O=n({id:"formField.email.label",message:"Email"}),L=function(X){return be(void 0,void 0,void 0,z().m(function w(){return z().w(function(P){for(;;)switch(P.n){case 0:X.preventDefault(),f.match(Uo)?(_(""),E(!0),Je(s).searchManager.searchUser(f).then(function(R){var M=R.userType;i({type:"update_password_state",passwordState:{email:f,type:M}}),i({type:"transition",screen:ne.PasswordCreateOrLogin}),Je(s).networkClient.logEvent({name:"email_sent",details:{email:f,type:Cn.ResetPassword}})}).catch(function(R){u(R),E(!1),_($t(R,n))})):_(n({id:"error.invalidEmail",message:"Email format is invalid."}));case 1:return P.a(2)}},w)}))};return l.createElement("form",{onSubmit:L},l.createElement(K,{direction:"column",gap:8},l.createElement(K,{direction:"column",minHeight:52},l.createElement(Ur,Object.assign({email:f,setEmail:p,hasPasskeys:c,"aria-label":O},T.input)),l.createElement(Yt,Object.assign({errorMessage:v},T.error))),l.createElement(Nn,{isSubmitting:A,text:n({id:"button.emailLogin",message:"Continue with email"})})))},d3=oe(J6)(ul||(ul=Z([`
223  display: flex;
224  flex-direction: row;
225  width: 100%;
226  justify-content: space-between;
227  border-bottom: 1px solid `,`;
228  margin-bottom: 24px;
229`])),function(t){return t.theme.colors.secondary}),h3=oe(X6)(cl||(cl=Z([`
230  all: unset;
231  width: 100%;
232  text-align: center;
233  color: `,`;
234  border-bottom: 3px solid `,`;
235  font-weight: `,`;
236  height: 28px;
237
238  cursor: pointer;
239  font-family: `,`;
240  line-height: 1;
241
242  &:focus-visible {
243    `,`
244  }
245`])),function(t){return t.$active?t.theme.colors.primary:t.theme.colors.secondary},function(t){return t.$active?t.theme.colors.primary:"transparent"},function(t){return t.$active?"500":"400"},function(t){return t.theme.typography.fontFamily},cs),Ir;(function(t){t.Email="emailMagicLink"})(Ir||(Ir={}));var In;(function(t){t.Email="passwords"})(In||(In={}));var f3=V(V(V(V(V({},tt.SMS,{id:"tab.text",message:"Text"}),tt.WhatsApp,{id:"tab.whatsapp",message:"WhatsApp"}),tt.Email,{id:"tab.email",message:"Email"}),Ir.Email,{id:"tab.email",message:"Email"}),In.Email,{id:"tab.email",message:"Email"}),p3=function(e,n){var r=e.includes(Be.passwords),a=e.reduce(function(i,o){switch(o){case Be.emailMagicLinks:i.add(r?In.Email:Ir.Email);break;case Be.passwords:i.add(In.Email);break;case Be.otp:n.forEach(function(s){i.add(s===tt.Email&&r?In.Email:s)});break}return i},new Set);return Array.from(a)},m3=V(V(V(V(V({},tt.Email,l3),tt.WhatsApp,function(){return l.createElement(Cc,{method:tt.WhatsApp})}),tt.SMS,function(){return l.createElement(Cc,{method:tt.SMS})}),Ir.Email,u3),In.Email,c3),v3=function(){var e,n,r=pe(),a=r._,i=qe(),o=i.products.includes(Be.otp),s=o?(n=(e=i?.otpOptions)===null||e===void 0?void 0:e.methods)!==null&&n!==void 0?n:[]:[],u=i.products.includes(Be.emailMagicLinks),c=o&&s.includes(tt.Email),h=p3(i.products,s),d=J(h[0]),f=I(d,2),p=f[0],m=f[1];return u&&c?l.createElement(ae,{size:"helper"},"Error: Cannot use both EML and Email OTP"):l.createElement(Y6,{value:p,onValueChange:function(v){return m(v)}},h.length>1&&l.createElement(d3,{"aria-label":"otp-tabs"},h.map(function(g){return l.createElement(h3,{value:g,key:g,$active:g===p},a(f3[g]))})),h.map(function(g){var v=m3[g];return h.length>1?l.createElement(Q6,{value:g,key:g},l.createElement(v,null)):l.createElement(v,{key:g})}))},Ec=function(e){return l.createElement(rt,{id:"wallet-".concat(e.walletTypeTitle),type:"button",onClick:e.onClick,variant:"outlined"},l.createElement(K,{justifyContent:"center",alignItems:"center",gap:4},e.icon,l.createElement("span",{style:{verticalAlign:"middle"}},e.walletTypeTitle)))};function g3(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var r=0;r<t.length;
245r++){var a=t.charAt(r),i=a.charCodeAt(0);if(e[i]!==255)throw new TypeError(a+" is ambiguous");e[i]=r}var o=t.length,s=t.charAt(0),u=Math.log(o)/Math.log(256),c=Math.log(256)/Math.log(o);function h(p){if(p instanceof Uint8Array||(ArrayBuffer.isView(p)?p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength):Array.isArray(p)&&(p=Uint8Array.from(p))),!(p instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(p.length===0)return"";for(var m=0,g=0,v=0,_=p.length;v!==_&&p[v]===0;)v++,m++;for(var b=(_-v)*c+1>>>0,C=new Uint8Array(b);v!==_;){for(var A=p[v],E=0,T=b-1;(A!==0||E<g)&&T!==-1;T--,E++)A+=256*C[T]>>>0,C[T]=A%o>>>0,A=A/o>>>0;if(A!==0)throw new Error("Non-zero carry");g=E,v++}for(var O=b-g;O!==b&&C[O]===0;)O++;for(var L=s.repeat(m);O<b;++O)L+=t.charAt(C[O]);return L}function d(p){if(typeof p!="string")throw new TypeError("Expected String");if(p.length===0)return new Uint8Array;for(var m=0,g=0,v=0;p[m]===s;)g++,m++;for(var _=(p.length-m)*u+1>>>0,b=new Uint8Array(_);p[m];){var C=p.charCodeAt(m);if(C>255)return;var A=e[C];if(A===255)return;for(var E=0,T=_-1;(A!==0||E<v)&&T!==-1;T--,E++)A+=o*b[T]>>>0,b[T]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");v=E,m++}for(var O=_-v;O!==_&&b[O]===0;)O++;for(var L=new Uint8Array(g+(_-O)),j=g;O!==_;)L[j++]=b[O++];return L}function f(p){var m=d(p);if(m)return m;throw new Error("Non-base"+o+" character")}return{encode:h,decodeUnsafe:d,decode:f}}var y3=g3,_3=y3,b3="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",w3=_3(b3),C3=function(){return l.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",fill:"url(#paint0_linear_2_2)"}),l.createElement("path",{d:"M17.2787 10.1428H15.4909C15.4909 6.5258 12.527 3.59375 8.87068 3.59375C5.25956 3.59375 2.32368 6.45402 2.25184 10.0091C2.1775 13.6839 5.66265 16.875 9.3779 16.875H9.84521C13.1207 16.875 17.5108 14.3385 18.1967 11.248C18.3234 10.6783 17.8684 10.1428 17.2787 10.1428ZM6.21389 10.304C6.21389 10.7877 5.81398 11.1833 5.32503 11.1833C4.83607 11.1833 4.43618 10.7875 4.43618 10.304V8.88147C4.43618 8.39777 4.83607 8.00217 5.32503 8.00217C5.81398 8.00217 6.21389 8.39777 6.21389 8.88147V10.304ZM9.30037 10.304C9.30037 10.7877 8.90048 11.1833 8.41153 11.1833C7.92257 11.1833 7.52267 10.7875 7.52267 10.304V8.88147C7.52267 8.39777 7.92275 8.00217 8.41153 8.00217C8.90048 8.00217 9.30037 8.39777 9.30037 8.88147V10.304Z",fill:"url(#paint1_linear_2_2)"}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_2_2",x1:"10",y1:"0",x2:"10",y2:"20",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#534BB1"}),l.createElement("stop",{offset:"1",stopColor:"#551BF9"})),l.createElement("linearGradient",{id:"paint1_linear_2_2",x1:"10.2343",y1:"3.59375",x2:"10.2343",y2:"16.875",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0.82"}))))},E3=xe(C3),k3=function(){return l.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M17.2065 2.22849L10.9604 6.86753L12.1155 4.13056L17.2065 2.22849Z",fill:"#E2761B",stroke:"#E2761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M2.78717 2.22849L8.98303 6.91147L7.88447 4.13056L2.78717 2.22849Z",fill:"#E4761B",stroke:"#E4761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M14.9592 12.9818L13.2957 15.5304L16.855 16.5097L17.8782 13.0383L14.9592 12.9818Z",fill:"#E4761B",stroke:"#E4761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M2.12805 13.0383L3.145 16.5097L6.70432 15.5304L5.04079 12.9818L2.12805 13.0383Z",fill:"#E4761B",stroke:"#E4761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6.50344 8.67544L5.5116 10.1757L9.04581 10.3327L8.92026 6.53482L6.50344 8.67544Z",fill:"#E4761B",stroke:"#E4761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M13.4903 8.67543L11.0421 6.49088L10.9604 10.3327L14.4884 10.1757L13.4903 8.67543Z",fill:"#E4761B",stroke:"#E4761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6.70432 15.5304L8.8261 14.4946L6.99308 13.0634L6.70432 15.5304Z",fill:"#E4761B",stroke:"#E4761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M11.1676 14.4946L13.2957 15.5304L13.0006 13.0634L11.1676 14.4946Z",fill:"#E4761B",stroke:"#E4761B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M13.2957 15.5304L11.1676 14.4947L11.3371 15.882L11.3183 16.4658L13.2957 15.5304Z",fill:"#D7C1B3",stroke:"#D7C1B3",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6.70435 15.5304L8.68175 16.4658L8.66919 15.882L8.82613 14.4947L6.70435 15.5304Z",fill:"#D7C1B3",stroke:"#D7C1B3",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M8.71312 12.1469L6.94287 11.6259L8.19209 11.0546L8.71312 12.1469Z",fill:"#233447",stroke:"#233447",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M11.2806 12.1469L11.8016 11.0546L13.0571 11.6259L11.2806 12.1469Z",fill:"#233447",stroke:"#233447",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6.70433 15.5305L7.00565 12.9818L5.0408 13.0383L6.70433 15.5305Z",fill:"#CD6116",stroke:"#CD6116",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M12.9944 12.9818L13.2957 15.5305L14.9592 13.0383L12.9944 12.9818Z",fill:"#CD6116",stroke:"#CD6116",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M14.4884 10.1758L10.9604 10.3327L11.2869 12.1469L11.8079 11.0546L13.0634 11.6259L14.4884 10.1758Z",fill:"#CD6116",stroke:"#CD6116",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6.94289 11.6259L8.19838 11.0546L8.71313 12.1469L9.04584 10.3327L5.51163 10.1758L6.94289 11.6259Z",fill:"#CD6116",stroke:"#CD6116",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M5.51163 10.1758L6.99311 13.0634L6.94289 11.6259L5.51163 10.1758Z",fill:"#E4751F",stroke:"#E4751F",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M13.0634 11.6259L13.0006 13.0634L14.4884 10.1758L13.0634 11.6259Z",fill:"#E4751F",stroke:"#E4751F",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M9.04584 10.3327L8.71313 12.1469L9.12745 14.2875L9.22161 11.469L9.04584 10.3327Z",fill:"#E4751F",stroke:"#E4751F",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M10.9605 10.3327L10.791 11.4627L10.8663 14.2875L11.2869 12.1469L10.9605 10.3327Z",fill:"#E4751F",stroke:"#E4751F",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M11.2869 12.1469L10.8663 14.2875L11.1676 14.4947L13.0006 13.0634L13.0634 11.6259L11.2869 12.1469Z",fill:"#F6851B",stroke:"#F6851B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6.94287 11.6259L6.99309 13.0634L8.82611 14.4947L9.12743 14.2875L8.71312 12.1469L6.94287 11.6259Z",fill:"#F6851B",stroke:"#F6851B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M11.3183 16.4658L11.3371 15.882L11.1802 15.7439H8.81357L8.66919 15.882L8.68175 16.4658L6.70435 15.5305L7.39487 16.0954L8.79474 17.0684H11.199L12.6052 16.0954L13.2957 15.5305L11.3183 16.4658Z",fill:"#C0AD9E",stroke:"#C0AD9E",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M11.1676 14.4947L10.8663 14.2875H9.12744L8.82613 14.4947L8.66919 15.882L8.81357 15.7439H11.1802L11.3371 15.882L11.1676 14.4947Z",fill:"#161616",stroke:"#161616",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M17.4702 7.16885L18.0038 4.60764L17.2066 2.22849L11.1676 6.71059L13.4903 8.67544L16.7734 9.63589L17.5016 8.78843L17.1877 8.56245L17.6899 8.10419L17.3007 7.80287L17.8029 7.41995L17.4702 7.16885Z",fill:"#763D16",stroke:"#763D16",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M1.99625 4.60764L2.52983 7.16885L2.19085 7.41995L2.69304 7.80287L2.31012 8.10419L2.81232 8.56245L2.49844 8.78843L3.22035 9.63589L6.50347 8.67544L8.82613 6.71059L2.78721 2.22849L1.99625 4.60764Z",fill:"#763D16",stroke:"#763D16",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M16.7734 9.6359L13.4903 8.67545L14.4884 10.1758L13.0006 13.0634L14.9592 13.0383H17.8782L16.7734 9.6359Z",fill:"#F6851B",stroke:"#F6851B",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M6.50344 8.67545L3.22033 9.6359L2.12805 13.0383H5.0408L6.99309 13.0634L5.51161 10.1758L6.50344 8.67545Z",fill:"#F6851B",stroke:"#F6851B",strokeLinecap:"round",strokeLinejoin:"round"}
245),l.createElement("path",{d:"M10.9604 10.3327L11.1676 6.71062L12.1218 4.13058H7.88449L8.82611 6.71062L9.04582 10.3327L9.12115 11.4752L9.12743 14.2875H10.8663L10.8788 11.4752L10.9604 10.3327Z",fill:"#F6851B",stroke:"#F6851B",strokeLinecap:"round",strokeLinejoin:"round"}))},S3=xe(k3),O3=function(){return l.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{clipPath:"url(#clip0_517_6831)"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.602 3.2325C7.99856 3.2325 4.36714 6.58551 5.54083 11.2565L4.91376 11.414C3.6226 6.27561 7.64076 2.58594 11.602 2.58594C15.8216 2.58594 19.7562 6.44977 18.3304 11.5481L17.7077 11.374C19.0018 6.74671 15.4567 3.2325 11.602 3.2325Z",fill:"#2A384A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5988 1.29891C6.41566 1.29891 2.05244 6.14046 3.88531 12.8124L3.26184 12.9836C1.32182 5.92165 5.96682 0.652344 11.5988 0.652344C17.5841 0.652344 22.5861 6.77296 19.5889 13.4516L18.9991 13.1869C21.7871 6.97427 17.1579 1.29891 11.5988 1.29891Z",fill:"#2A384A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.17894 6.94622C7.48133 7.91408 7.24057 9.10031 7.36887 9.96188C7.39522 10.1385 7.27334 10.303 7.09673 10.3292C6.92019 10.3555 6.75568 10.2337 6.72938 10.0571C6.57532 9.0227 6.86195 7.6676 7.65447 6.56814C8.4568 5.45497 9.77856 4.60352 11.6727 4.60352C13.3065 4.60352 14.641 5.40696 15.4926 6.51476C16.3399 7.61698 16.7272 9.0444 16.4408 10.3222C16.4018 10.4965 16.2289 10.606 16.0547 10.567C15.8804 10.5279 15.7709 10.355 15.8099 10.1808C16.0479 9.11899 15.7297 7.88408 14.98 6.9088C14.2346 5.93917 13.0806 5.25008 11.6727 5.25008C9.99793 5.25008 8.86673 5.99201 8.17894 6.94622Z",fill:"#2A384A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.521 14.6751C19.5048 11.7314 16.1357 10.3576 16.1357 10.3576H13.8259L12.9183 8.46875H11.5936H10.2689L9.36128 10.3576H6.91197L4.36073 12.1829L2.74168 10.3576H0.877319L2.15294 13.7625L0.877319 14.6751L2.15294 15.5981L0.877319 19.0416H2.74168L4.36073 17.1956L6.91197 19.0416H16.1357C16.1357 19.0416 19.5371 17.6188 19.521 14.6751ZM7.69518 15.9039C8.38612 15.9039 8.94625 15.3438 8.94625 14.6528C8.94625 13.9618 8.38612 13.4017 7.69518 13.4017C7.00423 13.4017 6.4441 13.9618 6.4441 14.6528C6.4441 15.3438 7.00423 15.9039 7.69518 15.9039ZM12.8871 14.6528C12.8871 15.3438 12.327 15.9039 11.6361 15.9039C10.9451 15.9039 10.385 15.3438 10.385 14.6528C10.385 13.9618 10.9451 13.4017 11.6361 13.4017C12.327 13.4017 12.8871 13.9618 12.8871 14.6528ZM15.5893 15.9039C16.2803 15.9039 16.8405 15.3438 16.8405 14.6528C16.8405 13.9618 16.2803 13.4017 15.5893 13.4017C14.8984 13.4017 14.3383 13.9618 14.3383 14.6528C14.3383 15.3438 14.8984 15.9039 15.5893 15.9039Z",fill:"url(#paint0_linear_517_6831)"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2704 6.78422C11.2704 6.60567 11.4151 6.46094 11.5936 6.46094H12.858C13.0365 6.46094 13.1813 6.60567 13.1813 6.78422C13.1813 6.96273 13.0365 7.10751 12.858 7.10751H11.9169V8.14474H12.9183C13.0426 8.14474 13.1558 8.216 13.2097 8.32801L14.0293 10.0337H16.1357C16.1775 10.0337 16.219 10.0418 16.2577 10.0576L16.1357 10.3569C16.2577 10.0576 16.2579 10.0576 16.258 10.0577L16.2584 10.0578L16.2592 10.0582L16.2619 10.0593C16.2641 10.0602 16.2672 10.0615 16.271 10.0631C16.2786 10.0663 16.2893 10.0709 16.303 10.0768C16.3302 10.0887 16.3691 10.1061 16.418 10.1291C16.5158 10.1751 16.6538 10.2434 16.8188 10.3347C17.148 10.5167 17.5883 10.7919 18.0306 11.1646C18.9106 11.906 19.8355 13.0668 19.8443 14.6727C19.8531 16.2802 18.9272 17.4542 18.0442 18.2075C17.6001 18.5863 17.157 18.8677 16.8255 19.0544C16.6594 19.1479 16.5203 19.2181 16.4218 19.2655C16.3725 19.2891 16.3333 19.3071 16.3058 19.3193C16.2921 19.3255 16.2814 19.3302 16.2737 19.3335C16.2699 19.3352 16.2669 19.3364 16.2647 19.3374L16.2619 19.3386L16.261 19.339L16.2607 19.3391C16.2606 19.3391 16.2604 19.3392 16.1357 19.041L16.2604 19.3392C16.2209 19.3557 16.1786 19.3642 16.1357 19.3642H6.91201C6.84396 19.3642 6.77763 19.3427 6.72249 19.3029L4.40973 17.6294L2.98477 19.2541C2.92339 19.3241 2.83482 19.3642 2.74172 19.3642H0.877361C0.77156 19.3642 0.672454 19.3125 0.612017 19.2256C0.551579 19.1388 0.537458 19.0278 0.57421 18.9286L1.76453 15.7154L0.687849 14.9363C0.603584 14.8754 0.553802 14.7776 0.55408 14.6735C0.554359 14.5695 0.604664 14.472 0.689255 14.4115L1.76328 13.6431L0.574628 10.4703C0.537435 10.3711 0.551278 10.2599 0.611676 10.1727C0.672073 10.0856 0.771349 10.0337 0.877361 10.0337H2.74172C2.83418 10.0337 2.92222 10.0732 2.98357 10.1424L4.40944 11.7499L6.7239 10.094C6.77877 10.0547 6.84453 10.0337 6.91201 10.0337H9.15798L9.97754 8.32801C10.0314 8.216 10.1447 8.14474 10.2689 8.14474H11.2704V6.78422ZM10.4723 8.79135L9.87534 10.0337H13.3119L12.715 8.79135H10.4723ZM7.01572 10.6802L2.34109 14.0247C2.34102 14.0247 2.34097 14.0248 2.34091 14.0248L1.43088 14.6759L2.34249 15.3355C2.34254 15.3356 2.3426 15.3356 2.34266 15.3356L4.54971 16.9326C4.5499 16.9327 4.55009 16.9329 4.55029 16.933L7.01673 18.7176H16.0672C16.0873 18.7085 16.1123 18.6968 16.1419 18.6827C16.2293 18.6407 16.3558 18.5768 16.5083 18.4909C16.814 18.3188 17.2203 18.0605 17.6246 17.7156C18.4382 17.0215 19.205 16.0124 19.1977 14.6762C19.1904 13.3383 18.4226 12.3403 17.614 11.659C17.2119 
24511.3203 16.8089 11.068 16.506 10.9005C16.3548 10.8169 16.2295 10.755 16.143 10.7143C16.1135 10.7005 16.0886 10.6891 16.0687 10.6802H7.01572ZM3.88361 17.2487L2.30828 16.1088L1.34187 18.7176H2.59526L3.88361 17.2487ZM2.30778 13.2535L3.88071 12.1282L2.59634 10.6802H1.3437L2.30778 13.2535ZM7.69522 13.7243C7.18283 13.7243 6.76743 14.1397 6.76743 14.6521C6.76743 15.1645 7.18283 15.5799 7.69522 15.5799C8.20761 15.5799 8.62302 15.1645 8.62302 14.6521C8.62302 14.1397 8.20761 13.7243 7.69522 13.7243ZM6.12086 14.6521C6.12086 13.7826 6.82572 13.0778 7.69522 13.0778C8.56471 13.0778 9.26962 13.7826 9.26962 14.6521C9.26962 15.5216 8.56471 16.2264 7.69522 16.2264C6.82572 16.2264 6.12086 15.5216 6.12086 14.6521ZM10.0617 14.6521C10.0617 13.7826 10.7666 13.0778 11.6361 13.0778C12.5056 13.0778 13.2104 13.7826 13.2104 14.6521C13.2104 15.5216 12.5056 16.2264 11.6361 16.2264C10.7666 16.2264 10.0617 15.5216 10.0617 14.6521ZM11.6361 13.7243C11.1236 13.7243 10.7083 14.1397 10.7083 14.6521C10.7083 15.1645 11.1236 15.5799 11.6361 15.5799C12.1485 15.5799 12.5639 15.1645 12.5639 14.6521C12.5639 14.1397 12.1485 13.7243 11.6361 13.7243ZM15.5894 13.7243C15.077 13.7243 14.6616 14.1397 14.6616 14.6521C14.6616 15.1645 15.077 15.5799 15.5894 15.5799C16.1018 15.5799 16.5172 15.1645 16.5172 14.6521C16.5172 14.1397 16.1018 13.7243 15.5894 13.7243ZM14.015 14.6521C14.015 13.7826 14.7199 13.0778 15.5894 13.0778C16.4589 13.0778 17.1638 13.7826 17.1638 14.6521C17.1638 15.5216 16.4589 16.2264 15.5894 16.2264C14.7199 16.2264 14.015 15.5216 14.015 14.6521Z",fill:"#2A384A"})),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_517_6831",x1:"10.2255",y1:"6.04818",x2:"8.95738",y2:"20.334",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#FFFF82"}),l.createElement("stop",{offset:"1",stopColor:"#FF99B4"})),l.createElement("clipPath",{id:"clip0_517_6831"},l.createElement("rect",{width:"20",height:"18.805",fill:"white",transform:"translate(0.5 0.597656)"}))))},P3=xe(O3),A3=function(){return l.createElement("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M20 0H0V20H20V0Z",fill:"#14151A"}),l.createElement("path",{d:"M7.26562 10L6.13281 11.1328L5 10L6.13281 8.86719L7.26562 10ZM10 7.25781L11.9375 9.19531L13.0703 8.0625L11.1328 6.13281L10 5L8.875 6.13281L6.9375 8.0625L8.07031 9.19531L10 7.25781Z
245M13.8672 8.875L12.7422 10L13.875 11.1328L15 10L13.8672 8.875ZM10 12.7422L8.0625 10.8047L6.9375 11.9375L8.875 13.875L10 15L11.1328 13.8672L13.0703 11.9297L11.9375 10.8047L10 12.7422ZM10 11.125L11.1328 10L10 8.86719L8.875 10L10 11.125Z",fill:"#F0B90B"}))},T3=xe(A3),L3=function(){return l.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M18.5 4.28V2C18.5 0.9 17.6 0 16.5 0H2.5C1.39 0 0.5 0.9 0.5 2V16C0.5 17.1 1.39 18 2.5 18H16.5C17.6 18 18.5 17.1 18.5 16V13.72C19.09 13.37 19.5 12.74 19.5 12V6C19.5 5.26 19.09 4.63 18.5 4.28ZM17.5 6V12H10.5V6H17.5ZM2.5 16V2H16.5V4H10.5C9.4 4 8.5 4.9 8.5 6V12C8.5 13.1 9.4 14 10.5 14H16.5V16H2.5Z",fill:"black"}),l.createElement("path",{d:"M13.5 10.5C14.3284 10.5 15 9.82843 15 9C15 8.17157 14.3284 7.5 13.5 7.5C12.6716 7.5 12 8.17157 12 9C12 9.82843 12.6716 10.5 13.5 10.5Z",fill:"black"}))},kc=xe(L3),ii=function(){var e;return!!(!((e=window.ethereum)===null||e===void 0)&&e.providers)},Vd=function(){var e;return!!(ii()?!((e=window.ethereum.providers)===null||e===void 0)&&e.find(function(n){return n.isMetaMask}):window.ethereum.isMetaMask)},Kd=function(){var e,n;return!!(ii()?!((e=window.ethereum.providers)===null||e===void 0)&&e.find(function(r){return r.isCoinbaseWallet}):!((n=window.ethereum)===null||n===void 0)&&n.isCoinbaseWallet)},I3=function(){return!Vd()&&!Kd()&&!!window.ethereum},Zd=function(){var e;return ii()?(e=window.ethereum.providers)===null||e===void 0?void 0:e.find(function(n){return n.isMetaMask}):window.ethereum},qd=function(){var e;return ii()?(e=window.ethereum.providers)===null||e===void 0?void 0:e.find(function(n){return n.isCoinbaseWallet}):window.ethereum},Yd=function(){var e;return(e=window.ethereum.providers)===null||e===void 0?void 0:e.find(function(n){return!n.isCoinbaseWallet&&!n.isMetaMask})},oi=V(V(V(V(V(V(V({},ce.Phantom,E3),ce.Vessel,P3),ce.Binance,T3),ce.Coinbase,Td),ce.Metamask,S3),ce.GenericEthereumWallet,kc),ce.GenericSolanaWallet,kc),D3=V(V(V(V(V(V(V({},ce.Phantom,{id:"crypto.wallet.phantom",message:"Phantom"}),ce.Vessel,{id:"crypto.wallet.vessel",message:"Vessel"}),ce.Binance,{id:"crypto.wallet.binance",message:"Binance"}),ce.Coinbase,{id:"crypto.wallet.coinbase",message:"Coinbase"}),ce.Metamask,{id:"crypto.wallet.metamask",message:"Metamask"}),ce.GenericEthereumWallet,{id:"crypto.wallet.otherEthereum",message:"Other Ethereum Wallet"}),ce.GenericSolanaWallet,{id:"crypto.wallet.otherSolana",message:"Other Solana Wallet"}),R3=function(e){var n,r;switch(e){case ce.Metamask:return!!window.ethereum&&Vd();case ce.Phantom:return(r=!!window.solana&&((n=window.solana)===null||n===void 0?void 0:n.isPhantom))!==null&&r!==void 0?r:!1;case ce.Vessel:return!!window.vessel;case ce.Binance:return!!window.BinanceChain;case ce.Coinbase:return!!window.ethereum&&Kd();case ce.GenericEthereumWallet:return!!window.ethereum&&I3();case ce.GenericSolanaWallet:return!!window.solana&&!window.solana.isPhantom;default:return!1}},oa=function(e){return be(void 0,void 0,void 0,z().m(function n(){var r,a,i;return z().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,e({method:"eth_requestAccounts"});case 1:return r=o.v,a=I(r,1),i=a[0],o.a(2,i)}},n)}))},F3=function(e){var n=e.wallet;return be(void 0,void 0,void 0,z().m(function r(){var a,i,o,s,u,c,h,d,f,p;return z().w(function(m){for(;;)switch(m.n){case 0:p=n,m.n=p===ce.Metamask?1:p===ce.Phantom?2:p===ce.Binance?4:p===ce.Vessel?5:p===ce.Coinbase?7:p===ce.GenericEthereumWallet?8:p===ce.GenericSolanaWallet?9:11;break;case 1:return a=Zd(),m.a(2,a?.request?oa(a?.request):"");case 2:return m.n=3,window.solana.connect();case 3:return i=m.v,m.a(2,i.publicKey.toString());case 4:return o=window.BinanceChain,m.a(2,o?.request?oa(o?.request):"");case 5:return m.n=6,window.vessel.ethereum.request({method:"eth_requestAccounts"});case 6:return s=m.v,u=I(s,1),c=u[0],m.a(2,c);case 7:return h=qd(),m.a(2,h?.request?oa(h?.request):"");case 8:return d=Yd(),m.a(2,d?.request?oa(d?.request):"");case 9:return m.n=10,window.solana.connect();case 10:return f=m.v,m.a(2,f.publicKey.toString());case 11:return m.a(2,"");case 12:return m.a(2)}},r)}))},M3=function(e){return be(void 0,void 0,void 0,z().m(function n(){var r,a;return z().w(function(i){for(;;)switch(i.n){case 0:return r=new TextEncoder().encode(e),i.n=1,window.solana.request({method:"signMessage",params:{message:r,display:"utf8"}});case 1:return a=i.v,i.a(2,w3.encode(a.signature))}},n)}))},mr=function(e,n,r){return be(void 0,void 0,void 0,z().m(function a(){var i;return z().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,e({method:"personal_sign",params:[n,r]});case 1:return i=o.v,o.a(2,i)}},a)}))},B3=function(e){var n=e.wallet,r=e.message,a=e.address;return be(void 0,void 0,void 0,z().m(function i(){var o,s,u,c,h;return z().w(function(d){for(;;)switch(d.n){case 0:h=n,d.n=h===ce.Phantom||h===ce.GenericSolanaWallet?1:h===ce.Metamask?2:h===ce.Vessel?3:h===ce.Binance?4:h===ce.Coinbase?5:h===ce.GenericEthereumWallet?6:7;break;case 1:return d.a(2,M3(r));case 2:return o=Zd(),d.a(2,o?.request?mr(o?.request,r,a):"");case 3:return d.a(2,mr(window.vessel.ethereum.request,r,a));case 4:return s=window.BinanceChain,d.a(2,s?.request?mr(s?.request,r,a):"");case 5:return u=qd(),d.a(2,u?.request?mr(u?.request,r,a):"");case 6:return c=Yd(),d.a(2,c?.request?mr(c?.request,r,a):"");case 7:return d.a(2,"");case 8:return d.a(2)}},i)}))},Jd=function(e){return[ce.Phantom,ce.GenericSolanaWallet].includes(e)},x3=6,$3=oe(jr)(dl||(dl=Z([`
246  width: 100%;
247  text-align: center;
248  font-weight: 600;
249`]))),j3=V(V(V(V(V(V(V({},ce.Phantom,{id:"crypto.wallet.continueWithPhantom",message:"Continue with Phantom"}),ce.Vessel,{id:"crypto.wallet.continueWithVessel",message:"Continue with Vessel"}),ce.Binance,{id:"crypto.wallet.continueWithBinance",message:"Continue with Binance"}),ce.Coinbase,{id:"crypto.wallet.continueWithCoinbase",message:"Continue with Coinbase"}),ce.Metamask,{id:"crypto.wallet.continueWithMetamask",message:"Continue with Metamask"}),ce.GenericEthereumWallet,{id:"crypto.wallet.continueWithEthereum",message:"Continue with Other Ethereum Wallet"}),ce.GenericSolanaWallet,{id:"crypto.wallet.continueWithSolana",message:"Continue with Other Solana Wallet"}),Xd=function(e){var n=e.type,r,a,i=pe(),o=i._,s=ze(),u=I(s,2),c=u[0],h=u[1],d=qe(),f=(a=(r=d.oauthOptions)===null||r===void 0?void 0:r.providers.length)!==null&&a!==void 0?a:0,p=x3-f-1,m=function(T){h({type:"update_crypto_state",cryptoState:Object.assign(Object.assign({},c.formState.cryptoState),{walletOption:T})}),h({type:"transition",screen:ne.CryptoConnect})},g=Object.keys(ce).filter(function(E){return R3(ce[E])}),v=g.length>
249p,_=g.slice(0,p),b=g.slice(p),C=n==="main"?_:b,A=function(T){var O=T.wallet,L=oi[O];return H(L,null)};return H(K,{direction:"column",gap:8,className:"wallet-buttons"},C.map(function(E){return H(Ec,{key:E,icon:H(A,{wallet:ce[E]}),walletTypeTitle:o(n==="main"?j3[ce[E]]:D3[ce[E]]),onClick:function(){return m(ce[E])}})}),v&&n==="main"?H(Ec,{walletTypeTitle:o({id:"crypto.wallet.continueWithOtherWallet",message:"Continue with other Crypto Wallet"}),icon:H(A,{wallet:ce.GenericEthereumWallet}),onClick:function(){return h({type:"transition",screen:ne.CryptoOtherScreen})}}):H($3,{type:"button",onClick:function(){return h({type:"transition",screen:ne.CryptoSetupWallet})}},o({id:"crypto.wallet.setupNewWallet",message:"Set up a new crypto wallet"})))},N3=function(){return l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M8.75 10C10.8211 10 12.5 8.32107 12.5 6.25C12.5 4.17893 10.8211 2.5 8.75 2.5C6.67893 2.5 5 4.17893 5 6.25C5 8.32107 6.67893 10 8.75 10Z",fill:"#19303D"}),l.createElement("path",{d:"M18.7501 10.0001C18.7519 9.47774 18.6134 8.96445 18.349 8.51388C18.0847 8.06332 17.7041 7.69203 17.2472 7.43881C16.7903 7.18559 16.2738 7.05973 15.7516 7.07439C15.2294 7.08905 14.7207 7.24369 14.2787 7.52214
249C13.8367 7.8006 13.4776 8.19265 13.239 8.65733C13.0003 9.12202 12.8908 9.64227 12.9219 10.1637C12.9531 10.6852 13.1237 11.1887 13.416 11.6217C13.7082 12.0547 14.1114 12.4012 14.5834 12.6251V17.0835L15.8334 18.3335L17.9167 16.2501L16.6667 15.0001L17.9167 13.7501L16.8834 12.7168C17.4322 12.505 17.9042 12.1323 18.2373 11.6474C18.5704 11.1626 18.7492 10.5884 18.7501 10.0001ZM15.8334 10.0001C15.6686 10.0001 15.5075 9.95126 15.3704 9.85969C15.2334 9.76812 15.1266 9.63797 15.0635 9.4857C15.0004 9.33343 14.9839 9.16587 15.0161 9.00422C15.0482 8.84257 15.1276 8.69409 15.2441 8.57754C15.3607 8.461 15.5092 8.38163 15.6708 8.34948C15.8325 8.31732 16 8.33383 16.1523 8.3969C16.3046 8.45997 16.4347 8.56678 16.5263 8.70382C16.6179 8.84086 16.6667 9.00198 16.6667 9.1668C16.6667 9.38781 16.5789 9.59977 16.4227 9.75605C16.2664 9.91233 16.0544 10.0001 15.8334 10.0001Z",fill:"#19303D"}),l.createElement("path",{d:"M12.0333 11.6833C11.3934 11.398 10.7007 11.2504 10 11.25H7.5C6.17392 11.25 4.90215 11.7768 3.96447 12.7145C3.02678 13.6521 2.5 14.9239 2.5 16.25V17.9167H13.3333V13.325C12.7713 12.8933 12.3248 12.3293 12.0333 11.6833Z",fill:"#19303D"}))},U3=xe(N3),H3=function(e){var n=e.startPasskeyAuth,r=pe(),a=r._;return l.createElement(K,{direction:"column",gap:8},l.createElement(rt,{type:"button",variant:"outlined",onClick:n},l.createElement(K,{justifyContent:"center",alignItems:"center",gap:4},l.createElement(U3,null),l.createElement("span",{style:{verticalAlign:"middle"}},a({id:"button.loginWithPasskey",message:"Login with a Passkey"})))))},z3=function(e){return!!e},W3=function(e,n){if(e&&Ae(e)==="object"){if("error_message"in e&&typeof e.error_message=="string")return e.error_message;if("message"in e&&typeof e.message=="string")return e.message}},G3=5,V3=function(e){var n=e.canAutofill,r,a,i=pe(),o=i._,s=Fe(),u=qe(),c=u.products.includes(Be.passkeys),h=ct(),d=ht(),f=ze(),p=I(f,2),m=p[1],g=J(),v=I(g,2),_=v[0],b=v[1],C=dt(function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=A.conditionalMediation,T=E===void 0?!1:E,O=A.abortController;return be(void 0,void 0,void 0,z().m(function L(){var j,X,w,P,R,M;return z().w(function(B){for(;;)switch(B.p=B.n){case 0:return B.p=0,B.n=1,s.webauthn.authenticate({domain:(j=u.passkeyOptions)===null||j===void 0?void 0:j.domain,session_duration_minutes:(w=(X=u.sessionOptions)===null||X===void 0?void 0:X.sessionDurationMinutes)!==null&&w!==void 0?w:on,conditional_mediation:T,is_passkey:!0,signal:O?.signal});case 1:if(P=B.v,P){B.n=2;break}throw new Error("Empty response");case 2:return h({type:fe.PasskeyAuthenticate,data:P}),m({type:"transition",screen:ne.PasskeyConfirmation}),B.a(2,P);case 3:throw B.p=3,M=B.v,Wd(M)==="webauthn_registration_not_found"?b(o({id:"error.passkeyRegistrationNotFound",message:"Passkey registration not found. You may have deleted the passkey from your account but not password manager. Please try again."})):M instanceof Error&&M.name==="StytchAPIError"&&b(o({id:"error.passkeyUnknown",message:"Unknown error occurred during passkey authentication. Please try again."})),R=W3(M),R&&d({message:R}),M;case 4:return B.a(2)}},L,null,[[0,3]])}))},[(r=u.passkeyOptions)===null||r===void 0?void 0:r.domain,(a=u.sessionOptions)===null||a===void 0?void 0:a.sessionDurationMinutes,m,d,h,s.webauthn,o]);return Te(function(){if(!(!c||!n)){var A=new AbortController;return(function(){return be(void 0,void 0,void 0,z().m(function E(){var T,O;return z().w(function(L){for(;;)switch(L.p=L.n){case 0:return L.n=1,s.webauthn.browserSupportsAutofill();case 1:if(L.v){L.n=2;break}return L.a(2);case 2:T=0;case 3:if(!(T<G3)){L.n=8;break}if(!A.signal.aborted){L.n=4;break}return L.a(2);case 4:return L.p=4,L.n=5,C({abortController:A,conditionalMediation:!0});case 5:return L.a(2);case 6:if(L.p=6,O=L.v,!(O instanceof DOMException&&O.name==="NotAllowedError")){L.n=7;break}return L.a(2);case 7:++T,L.n=3;break;case 8:return L.a(2)}},E,null,[[4,6]])}))})(),function(){A.abort()}}},[n,c,C,s.webauthn]),[C,_]},Qd=oe.div(hl||(hl=Z([`
250  display: contents; // Try to be as transparent as possible as a wrapper div
251
252  path {
253    fill: `,`;
254  }
255`])),function(t){if("color"in t)return t.color;if("themeColor"in t)return t.theme.colors[t.themeColor]}),K3=function(){return l.createElement("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12.5 6.49L20.03 19.5H4.97L12.5 6.49ZM12.5 2.5L1.5 21.5H23.5L12.5 2.5ZM13.5 16.5H11.5V18.5H13.5V16.5ZM13.5 10.5H11.5V14.5H13.5V10.5Z",fill:"#C28E1F"}))},Z3=xe(K3),q3=function(){return l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"#0C5A56"}))},Y3=xe(q3),J3=function(){return l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M9 13H11V15H9V13ZM9 5H11V11H9V5ZM9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM10 18C5.58 18 2 14.42 2 10C2 5.58 5.58 2 10 2C14.42 2 18 5.58 18 10C18 14.42 14.42 18 10 18Z",fill:"#AD2E30"}))},X3=xe(J3),Q3=oe(K)(fl||(fl=Z([`
256  border: 1px solid `,`;
257  border-left-width: 6px;
258  border-radius: 4px;
259  padding: 24px;
260`])),function(t){return t.theme.colors[t.variant]}),Ia=function(e){var n=e.variant,r=e.text;return l.createElement(Q3,{variant:n,gap:8,alignItems:"center"},l.createElement(Qd,{themeColor:n},n==="error"&&l.createElement(X3,null),n==="warning"&&l.createElement(Z3,null),n==="success"&&l.createElement(Y3,null)),l.createElement(ae,{size:"helper",color:"primary"},r))},eg=oe(K)(pl||(pl=Z([`
261  .oauth-buttons + .wallet-buttons {
262    margin-top: 8px;
263  }
264  .wallet-buttons + .oauth-buttons {
265    margin-top: 8px;
266  }
267  > * + * {
268    margin-top: 24px;
269  }
270`]))),tg=oe.img(ml||(ml=Z([`
271  max-height: 50px;
272  max-width: 100px;
273`]))),ng=function(){var e=Fe(),n=qe(),r=Qa(),a=r.displayHeader,i=r.logo,o=pe(),s=o._,u=J([]),c=I(u,2),h=c[0],d=c[1],f=n.products,p=n.oauthOptions,m=f.includes(Be.oauth)&&p||f.includes(Be.crypto),g=f.includes(Be.passkeys),v=f.includes(Be.emailMagicLinks)||f.includes(Be.otp)||f.includes(Be.passwords),_=V3({canAutofill:v}),b=I(_,2),C=b[0],A=b[1];return Te(function(){var E=function(){return be(void 0,void 0,void 0,z().m(function O(){var L,j,X,w;return z().w(function(P){for(;;)switch(P.n){case 0:if(L=Array.from(new Set(f.map(function(R){switch(R){case Be.oauth:case Be.crypto:return R;case Be.emailMagicLinks:case Be.otp:case Be.passwords:return"login-form"}}).filter(z3))),j=m&&v,L.length>1&&j&&L.splice(-1,0,"divider"),X=g,!X){P.n=3;break}if(w=!v,w){P.n=2;break}return P.n=1,e.webauthn.browserSupportsAutofill();case 1:w=!P.v;case 2:X=w;case 3:if(!X){P.n=4;break}L.unshift("passkey-button");case 4:d(L);case 5:return P.a(2)}},O)}))};E()},[]),g&&f.length===1?l.createElement(ae,{size:"helper"},"Error: Cannot use Passkeys by itself, please add another product to the config."):l.createElement(eg,{direction:"column"},i.logoImageUrl!==""&&l.createElement(K,{justifyContent:"center"},l.createElement(tg,{src:i.logoImageUrl})),a&&l.createElement(K,{justifyContent:"center"},l.createElement(ae,{size:"header"},s({id:"login.title",message:"Sign up or log in"}))),A&&l.createElement(Ia,{variant:"warning",text:A}),h.map(function(E){switch(E){case"oauth":return l.createElement(b6,{key:E});case"crypto":return l.createElement(Xd,{type:"main",key:E});case"login-form":return l.createElement(v3,{key:E});case"passkey-button":return l.createElement(H3,{startPasskeyAuth:C,key:E});case"divider":return l.createElement(qn,{key:E})}}))},rg=oe(jr)(vl||(vl=Z([`
274  &:focus-visible {
275    // Move the focus ring to the inner SVG
276    outline: none;
277
278    svg {
279      `,`
280    }
281  }
282`])),cs),ag=function(e){var n=e.color;return l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z",fill:n}))},Mt=function(e){var n=e.onClick,r=Qa(),a=pe(),i=a._;return l.createElement(rg,{type:"button",onClick:n,"aria-label":i({id:"button.back.ariaLabel",message:"Back"})},l.createElement(ag,{color:r.colors.primary}))},ig=oe(jr)(gl||(gl=Z([`
283  font-weight: bold;
284
285  &:focus-visible,
286  &:hover {
287    outline: none;
288    text-decoration: underline;
289    text-decoration-color: `,`;
290  }
291
292  &:disabled {
293    pointer-events: none;
294  }
295`])),function(t){return t.theme.colors.primary}),og=function(e){var n=e.onClick,r=e.children,a=e.disabled,i=e.className;return l.createElement(ig,{onClick:n,disabled:a,className:i},r)},sg=oe.div(yl||(yl=Z([`
296  display: grid;
297  grid-template-rows: `,`;
298  transition: grid-template-rows 0.15s ease-out;
299`])),function(t){var e=t.isOpen;return e?"1fr":"0fr"}),lg=oe.div(_l||(_l=Z([`
300  overflow: hidden;
301`]))),ug=function(e){var n=e.isOpen,r=e.children;return l.createElement(sg,{isOpen:n},l.createElement(lg,null,r))},cg=oe.div(bl||(bl=Z([`
302  height: 4px;
303  background-color: `,`;
304  border-radius: 3px;
305  overflow: hidden;
306`])),function(t){var e=t.theme;return e.colors.disabled}),dg=xr(wl||(wl=Z([`
307  0% {
308    transform: translateX(-100%);
309  }
310  100% {
311    transform: translateX(-1%);
312  }
313`]))),hg=oe.div(Cl||(Cl=Z([`
314  height: 100%;
315  width: 100%;
316  background-color: `,`;
317  animation: `,` 10s cubic-bezier(0.22, 1, 0.36, 1);
318`])),function(t){var e=t.theme;return e.colors.primary},dg),fg=function(e){var n=e.isLoading;return l.createElement(cg,null,n&&l.createElement(hg,null))},Sc=6,e0="8px",ga="46px",t0="46px",pg=oe.div(El||(El=Z([`
319  border: 1px solid `,`;
320  border-radius: 4px;
321  align-items: center;
322  display: flex;
323  font-size: 18px;
324  justify-content: center;
325  height: `,`;
326  width: `,`;
327  background: `,`;
328  color: `,`;
329`])),function(t){var e=t.disabled,n=t.theme;return e?n.colors.disabled:"#ADBCC5"},t0,ga,function(t){var e=t.disabled,n=t.theme;return e?n.colors.disabled:n.inputs.backgroundColor},function(t){var e=t.disabled,n=t.theme;return e?n.colors.disabledText:n.inputs.textColor}),mg={display:"flex",justifyContent:"space-between",gap:e0,position:"relative",zIndex:-1},vg={overflow:"hidden",position:"relative",textAlign:"initial",zIndex:1},gg={background:"transparent",border:"none",color:"transparent",height:t0,margin:0,outline:"none",position:"absolute",width:"calc(100% - (0.5 * ".concat(ga,"))"),caretColor:"#ADBCC5",letterSpacing:"calc(".concat(ga," - 1ch + ").concat(e0,")"),paddingLeft:"calc(0.5 * ".concat(ga,")"),zIndex:10},yg=function(e){var n=e.index,r=e.disabled,a=e.otp,i=a?a[n]:"";return l.createElement(pg,{disabled:r,"data-testid":"otp-".concat(n)},i)},_g=function(e){var n=e.otp,r=e.setOtp,a=e.disabled,i=pe(),o=i._,s=kt(null);Te(function(){var c;a||(c=s.current)===null||c===void 0||c.focus()},[a,s]);var u=function(h){var d=h.target,f=d.value.replace(/\D/g,"").slice(0,Sc);d.value=f,f!==n&&r(f)};return l.createElement("div",{style:vg},l.createElement("input",Object.assign({ref:s,"aria-label":o({id:"formField.otp.ariaLabel",message:"One-time passcode"}),autoComplete:"one-time-code",autoFocus:!0,disabled:a,style:gg,onInput:u,type:"text",inputMode:"numeric",value:n},ms)),l.createElement("div",{style:mg},zt(Array(Sc).keys()).map(function(c){return l.createElement(yg,{key:"digit-".concat(c),index:c,otp:n,disabled:!!a})})))},bg=6,wg=function(e){var n=e.isSubmitting,r=e.onSubmit,a=e.errorMessage,i=pe(),o=i._,s=J(""),u=I(s,2),c=u[0],h=u[1],d=function(p){h(p),p.length===bg&&r(p)};return l.createElement(K,{direction:"column",maxWidth:316},l.createElement(_g,{otp:c,setOtp:d,disabled:n}),l.createElement(ug,{isOpen:n},l.createElement(K,{direction:"column",gap:8,marginTop:8},l.createElement(ae,{color:"secondary",size:"helper"},o({id:"formField.passcode.status.verifying",message:"Verifying passcode..."})),l.createElement(fg,{isLoading:n}))),!n&&l.createElement(Yt,{errorMessage:a??""}))},Cg=function(e){var n=e.header,r=e.helperContent,a=e.instruction,i=e.isSubmitting,o=e.onSubmit,s=e.errorMessage;return l.createElement(K,{direction:"column",gap:24},l.createElement(ae,{size:"header"},n),l.createElement(ae,null,a),l.createElement(wg,{isSubmitting:i,onSubmit:o,errorMessage:s}),l.createElement(ae,{size:"helper",color:"secondary"},r))},Oc=function(e){var n=new Date;return Math.ceil((e.getTime()-n.getTime())/1e3)},Eg=xr(kl||(kl=Z([`
330  from {
331    transform: translateY(0%);
332  }
333  to {
334    transform: translateY(-50%);
335  }
336`]))),kg=xr(Sl||(Sl=Z([`
337  from {
338    transform: translateY(-50%);
339  }
340  to {
341    transform: translateY(0%);
342  }
343`]))),Sg=oe.div(Ol||(Ol=Z([`
344  position: relative;
345  overflow: hidden;
346  /* Set an explicit height to create the "window" the animation will be displayed in.  We match to the line height to ensure it looks inline with the text */
347  height: `,`;
348`])),function(t){var e=t.theme;return e.typography.helper.lineHeight}),Og=oe.div(Pl||(Pl=Z([`
349  display: flex;
350  flex-direction: column;
351  animation: `,`
352    0.3s ease-out;
353  transform: `,`;
354`])),function(t){var e=t.displayCodeSent,n=t.shouldAnimate;return n?e?Eg:kg:"none"},function(t){var e=t.displayCodeSent;return e?"translateY(-50%)":"translateY(0%)"}),Pc=oe(og)(Al||(Al=Z([`
355  color: `,`;
356`])),function(t){var e=t.theme,n=t.isCodeSending;return n?e.colors.success:"inherit"}),Pg=function(e){var n=e.expiration,r=e.resendOTP,a=e.errorMessage,i=pe(),o=i._,s=J(function(){return Oc(n)}
356),u=I(s,2),c=u[0],h=u[1],d=J("initial"),f=I(d,2),p=f[0],m=f[1],g=c<=0;Te(function(){if(!g){var E=function(){return h(Oc(n))},T=setInterval(E,1e3);return E(),function(){return clearInterval(T)}}},[g,n]);var v=function(){return be(void 0,void 0,void 0,z().m(function T(){var O;return z().w(function(L){for(;;)switch(L.p=L.n){case 0:return L.p=0,m("sending"),L.n=1,r();case 1:m("sent"),setTimeout(function(){m("waiting")},2e3),L.n=3;break;case 2:L.p=2,O=L.v,m("initial");case 3:return L.a(2)}},T,null,[[0,2]])}))},_=Math.floor(Number(c/60)),b=c-_*60,C="".concat(_,":").concat(b<10?"0".concat(b):b),A=c>0?o({id:"passcode.expirationCountdown",message:"Your code expires in {timeRemaining}.",values:{timeRemaining:C}}):o({id:"passcode.expired",message:"Your code has expired."});return l.createElement(l.Fragment,null,A,l.createElement(K,{direction:"row",gap:8,alignItems:"center"},o({id:"passcode.didntGetIt",message:"Didn't get it?"}),l.createElement(Sg,null,l.createElement(Og,{displayCodeSent:p==="sent",shouldAnimate:p==="sent"||p==="waiting"},l.createElement(Pc,{onClick:v,isCodeSending:!1,disabled:p==="sending"||p==="sent"},o({id:"passcode.resendCode",message:"Resend code"})),l.createElement(Pc,{onClick:v,isCodeSending:!0,disabled:!0},o({id:"passcode.codeSent",message:"Code sent"}))))),l.createElement(Yt,{errorMessage:a??""}))},Ag=function(e){var n=e.expiration,r=e.formattedDestination,a=e.isSubmitting,i=e.onSubmit,o=e.errorMessage,s=e.resendOTP,u=e.resendErrorMessage,c=pe(),h=c._,d=l.createElement(Pg,{expiration:n,resendOTP:s,errorMessage:u});return l.createElement(Cg,{header:h({id:"passcode.title",message:"Enter passcode"}),helperContent:d,instruction:l.createElement(qt,{id:"passcode.sentConfirmation",message:"A 6-digit passcode was sent to you at <bold>{destination}</bold>.",components:{bold:l.createElement("b",null)},values:{destination:r}}),isSubmitting:a,onSubmit:i,errorMessage:o})},n0=function(e){var n=e.hideBackArrow,r=n===void 0?!1:n,a=pe(),i=a._,o=ct(),s=ht(),u=Fe(),c=qe(),h=ze(),d=I(h,2),f=d[0],p=d[1],m=J(!1),g=I(m,2),v=g[0],_=g[1],b=f.formState.otpState.otpDestination,C=f.formState.otpState.type,A=J(""),E=I(A,2),T=E[0],O=E[1],L=J(""),j=I(L,2),X=j[0],w=j[1],P=J(b),R=I(P,2),M=R[0],B=R[1],N=function(){var W,G;return new Date(Date.now()+1e3*60*((G=(W=c.otpOptions)===null||W===void 0?void 0:W.expirationMinutes)!==null&&G!==void 0?G:Jn))};Te(function(){var x=function(){return be(void 0,void 0,void 0,z().m(function G(){var S,se;return z().w(function($){for(;;)switch($.n){case 0:return S=function(me){return Je(u).clientsideServices.parsedPhoneNumber({phoneNumber:me})},$.n=1,zd({parsePhoneNumber:S,phoneNumber:b});case 1:se=$.v,B(C===tt.Email?b:se);case 2:return $.a(2)}},G)}))};x()},[C,b,u]);var U=J(N),Q=I(U,2),q=Q[0],te=Q[1],_e=function(){return be(void 0,void 0,void 0,z().m(function W(){var G,S,se,$;return z().w(function(de){for(;;)switch(de.p=de.n){case 0:return C===tt.Email&&Je(u).networkClient.logEvent({name:"email_try_again_clicked",details:{email:b,type:Cn.LoginOrCreateOTP}}),de.p=1,de.n=2,u.otps[C].loginOrCreate(b,{expiration_minutes:(S=(G=c.otpOptions)===null||G===void 0?void 0:G.expirationMinutes)!==null&&S!==void 0?S:Jn});case 2:se=de.v,o({type:fe.OTPsLoginOrCreateEvent,data:se}),te(N()),p({type:"update_otp_state",otpState:{type:C,methodId:se.method_id,otpDestination:b}}),de.n=4;break;case 3:throw de.p=3,$=de.v,s($),w($t($,i)),$;case 4:return de.a(2)}},W,null,[[1,3]])}))},Y=function(W){return be(void 0,void 0,void 0,z().m(function G(){var S,se;return z().w(function($){for(;;)switch($.n){case 0:_(!0),u.otps.authenticate(W,f.formState.otpState.methodId,{session_duration_minutes:(se=(S=c.sessionOptions)===null||S===void 0?void 0:S.sessionDurationMinutes)!==null&&se!==void 0?se:on}).then(function(de){o({type:fe.OTPsAuthenticate,data:de}),_(!1),p({type:"transition",screen:ne.OTPConfirmation})}).catch(function(de){s(de),_(!1),O($t(de,i))});case 1:return $.a(2)}},G)}))};return l.createElement(K,{direction:"column",gap:24},!r&&l.createElement(Mt,{onClick:function(){return p({type:"transition",screen:ne.Main})}}),l.createElement(Ag,{expiration:q,formattedDestination:M,isSubmitting:v,onSubmit:Y,resendOTP:_e,errorMessage:T,resendErrorMessage:X}))},Tg=function(){return l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12 6.5c3.79 0 7.17 2.13 8.82 5.5-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5m0 5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5-2.5-1.12-2.5-2.5 1.12-2.5 2.5-2.5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5",fill:"currentColor"}))},Lg=function(){return l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.7
3567-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53",fill:"currentColor"}))},Ig=oe.input(Tl||(Tl=Z([`
357  border: 0;
358  padding: 0;
359  width: 100%;
360
361  background-color: transparent;
362  height: 45px;
363  color: `,`;
364  font-family: `,`;
365  font-size: 18px;
366
367  &::placeholder {
368    color: `,`;
369  }
370
371  &:disabled {
372    color: `,`;
373    background-color: `,`;
374  }
375
376  &:focus {
377    outline: none;
378  }
379`])),function(t){return t.theme.inputs.textColor},function(t){return t.theme.typography.fontFamily},function(t){return t.theme.inputs.placeholderColor},function(t){return t.theme.colors.disabledText},function(t){return t.theme.colors.disabled}),Dg=oe(K)(Ll||(Ll=Z([`
380  background-color: `,`;
381  height: 45px;
382  padding-left: 8px;
383  padding-right: 8px;
384  border: 1px solid `,`;
385  border-radius: `,`;
386  color: `,`;
387  font-family: `,`;
388  font-size: 18px;
389  width: calc(100% - 18px);
390
391  &:focus-within {
392    outline: 1px auto;
393  }
394`])),function(t){return t.theme.inputs.backgroundColor},function(t){return t.theme.inputs.borderColor},function(t){return t.theme.inputs.borderRadius},function(t){return t.theme.inputs.textColor},function(t){return t.theme.typography.fontFamily}),Rg=oe(jr)(Il||(Il=Z([`
395  height: 20px;
396  color: `,`;
397
398  &:disabled {
399    cursor: default;
400  }
401`])),function(t){return t.passwordEntered?t.theme.inputs.textColor:t.theme.colors.disabledText}),Fg=function(e){var n=e.onClick,r=e.passwordEntered,a=e.visible,i=pe(),o=i._;return l.createElement(Rg,{onClick:n,type:"button",passwordEntered:r,"aria-label":o(a?{id:"button.hidePassword",message:"Hide password"}:{id:"button.showPassword",message:"Show password"})},a?l.createElement(Lg,null):l.createElement(Tg,null))},gs=function(e){var n=e.password,r=e.setPassword,a=e.type,i=or(e,["password","setPassword","type"]),o=J(!1),s=I(o,2),u=s[0],c=s[1];return l.createElement(Dg,{gap:2,alignItems:"center"},l.createElement(Ig,Object.assign({name:"password",id:"".concat(a,"-password"),autoComplete:"".concat(a,"-password"),type:u?"text":"password",value:n,onChange:function(d){return r(d.target.value)},required:!0},i)),l.createElement(Fg,{onClick:function(){return c(function(d){return!d})},passwordEntered:!!n,visible:u}))},Mg=oe.div(Dl||(Dl=Z([`
402  height: 4px;
403  width: 25%;
404  background-color: `,`;
405`])),function(t){return t.$bgColor}),Bg=function(e){var n=e.score,r=[];switch(n){case 0:case 1:r=["#8B1214","#ADBCC5","#ADBCC5","#ADBCC5"];break;case 2:r=["#8B1214","#8B1214","#ADBCC5","#ADBCC5"];break;case 3:r=["#0C5A56","#0C5A56","#0C5A56","#ADBCC5"];break;case 4:r=["#0C5A56","#0C5A56","#0C5A56","#0C5A56"];break;default:r=["#ADBCC5","#ADBCC5","#ADBCC5","#ADBCC5"];break}return l.createElement(K,{gap:2},r.map(function(a,i){return l.createElement(Mg,{key:"".concat(a,"-").concat(i),$bgColor:a})}))},Ac=function(){return H(K,{height:16,width:16},H("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("path",{d:"M5.86332 10.5833L3.08332 7.80333L2.13666 8.74333L5.86332 12.47L13.8633 4.47L12.9233 3.53L5.86332 10.5833Z",fill:"#0C5A56"})))},sa=function(){return H(K,{height:16,width:16},H("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("path",{d:"M12.6667 4.27334L11.7267 3.33334L8.00001 7.06001L4.27334 3.33334L3.33334 4.27334L7.06001 8.00001L3.33334 11.7267L4.27334 12.6667L8.00001 8.94001L11.7267 12.6667L12.6667 11.7267L8.94001 8.00001L12.6667 4.27334Z",fill:"#8B1214"})))},ys=function(){var e=Fe(),n=J({bootstrap:Je(e).bootstrap.getSync(),fromCache:!0}),r=I(n,2),a=r[0],i=r[1];return Te(function(){Je(e).bootstrap.getAsync().then(function(o){return i({bootstrap:o,fromCache:!1})})},[e]),a},xg={},$g=ym(z1),ir=$g;function jg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ng=typeof Object.is=="function"?Object.is:jg,Ug=ir.useState,Hg=ir.useEffect,zg=ir.useLayoutEffect,Wg=ir.useDebugValue;function Gg(t,e){var n=e(),r=Ug({inst:{value:n,getSnapshot:e}}),a=r[0].inst,i=r[1];return zg(function(){a.value=n,a.getSnapshot=e,Vi(a)&&i({inst:a})},[t,n,e]),Hg(function(){return Vi(a)&&i({inst:a}),t(function(){Vi(a)&&i({inst:a})})},[t]),Wg(n),n}function Vi(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ng(t,n)}catch{return!0}}function Vg(t,e){return e()}var Kg=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Vg:Gg;xg.useSyncExternalStore=ir.useSyncExternalStore!==void 0?ir.useSyncExternalStore:Kg;var pn=new WeakMap,Ki={},la={},gn=function(){},rn=gn(),Zi=Object,En=function(e){return e===rn},Vn=function(e){return typeof e=="function"},si=function(e,n){return re(re({},e),n)},r0="undefined",_s=(typeof window>"u"?"undefined":Ae(window))!=r0,wo=(typeof document>"u"?"undefined":Ae(document))!=r0,Zg=function(e,n){var r=pn.get(e);return[function(){return e.get(n)||Ki}
405,function(a){if(!En(n)){var i=e.get(n);n in la||(la[n]=i),r[5](n,si(i,a),i||Ki)}},r[6],function(){return!En(n)&&n in la?la[n]:e.get(n)||Ki}]},ua=new WeakMap,qg=0,Dr=function(e){var n=Ae(e),r=e&&e.constructor,a=r==Date,i,o;if(Zi(e)===e&&!a&&r!=RegExp){if(i=ua.get(e),i)return i;if(i=++qg+"~",ua.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Dr(e[o])+",";ua.set(e,i)}if(r==Zi){i="#";for(var s=Zi.keys(e).sort();!En(o=s.pop());)En(e[o])||(i+=o+":"+Dr(e[o])+",");ua.set(e,i)}}else i=a?e.toJSON():n=="symbol"?e.toString():n=="string"?JSON.stringify(e):""+e;return i},Co=!0,Yg=function(){return Co},Jg=_s&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[gn,gn],a0=I(Jg,2),Eo=a0[0],ko=a0[1],Xg=function(){var e=wo&&document.visibilityState;return En(e)||e!=="hidden"},Qg=function(e){return wo&&document.addEventListener("visibilitychange",e),Eo("focus",e),function(){wo&&document.removeEventListener("visibilitychange",e),ko("focus",e)}},e7=function(e){var n=function(){Co=!0,e()},r=function(){Co=!1};return Eo("online",n),Eo("offline",r),function(){ko("online",n),ko("offline",r)}},t7={isOnline:Yg,isVisible:Xg},n7={initFocus:Qg,initReconnect:e7};l.useId;var i0=!_s||"Deno"in window,qi=typeof navigator<"u"&&navigator.connection,Tc=!i0&&qi&&(["slow-2g","2g"].includes(qi.effectiveType)||qi.saveData),o0=function(e){if(Vn(e))try{e=e()}catch{e=""}var n=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Dr(e):"",[e,n]},r7=0,Lc=function(){return++r7},a7=0,i7=1,o7=2;function s7(){return So.apply(this,arguments)}function So(){return So=Eu(z().m(function t(){var e,n,r,a,i,o,s,u,c,h,d,f,p,m,g,v,_,b,C,A,E,T=arguments;return z().w(function(O){for(;;)switch(O.n){case 0:for(E=function(){return E=Eu(z().m(function j(X){var w,P,R,M,B,N,U,Q,q,te,_e,Y,x,W,G,S,se,$,de,me,ge,ee,Le;return z().w(function(we){for(;;)switch(we.n){case 0:if(w=o0(X),P=I(w,1),R=P[0],R){we.n=1;break}return we.a(2);case 1:if(M=Zg(a,R),B=I(M,2),N=B[0],U=B[1],Q=pn.get(a),q=I(Q,3),te=q[0],_e=q[1],Y=q[2],x=te[R],W=function(){return f&&(delete Y[R],x&&x[0])?x[0](o7).then(function(){return N().data}):N().data},!(n.length<3)){we.n=2;break}return we.a(2,W());case 2:if(G=o,se=Lc(),_e[R]=[se,0],$=!En(d),de=N(),me=de.data,ge=de._c,ee=En(ge)?me:ge,$&&(d=Vn(d)?d(ee):d,U({data:d,_c:ee})),Vn(G))try{G=G(ee)}catch(he){S=he}if(!(G&&Vn(G.then))){we.n=6;break}return we.n=3,G.catch(function(he){S=he});case 3:if(G=we.v,se===_e[R][0]){we.n=5;break}if(!S){we.n=4;break}throw S;case 4:return we.a(2,G);case 5:S&&$&&p(S)&&(c=!0,G=ee,U({data:G,_c:rn}));case 6:return c&&(S||(Vn(c)&&(G=c(G,ee)),U({data:G,_c:rn}))),_e[R][1]=Lc(),we.n=7,W();case 7:if(Le=we.v,U({_c:rn}),!S){we.n=9;break}if(!m){we.n=8;break}throw S;case 8:return we.a(2);case 9:return we.a(2,c?Le:G)}},j)})),E.apply(this,arguments)},A=function(j){return E.apply(this,arguments)},e=T.length,n=new Array(e),r=0;r<e;r++)n[r]=T[r];if(a=n[0],i=n[1],o=n[2],s=n[3],u=si({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{}),c=u.populateCache,h=u.rollbackOnError,d=u.optimisticData,f=u.revalidate!==!1,p=function(j){return typeof h=="function"?h(j):h!==!1},m=u.throwOnError,!Vn(i)){O.n=1;break}for(g=i,v=[],_=a.keys(),b=_.next();!b.done;b=_.next())C=b.value,!/^\$(inf|sub)\$/.test(C)&&g(a.get(C)._k)&&v.push(C);return O.a(2,Promise.all(v.map(A)));case 1:return O.a(2,A(i))}},t)})),So.apply(this,arguments)}var Ic=function(e,n){for(var r in e)e[r][0]&&e[r][0](n)},l7=function(e,n){if(!pn.has(e)){var r=si(n7,n),a={},i=s7.bind(rn,e),o=gn,s={},u=function(f,p){var m=s[f]||[];return s[f]=m,m.push(p),function(){return m.splice(m.indexOf(p),1)}},c=function(f,p,m){e.set(f,p);var g=s[f];if(g){var v=_n(g),_;try{for(v.s();!(_=v.n()).done;){var b=_.value;b(p,m)}}catch(C){v.e(C)}finally{v.f()}}},h=function(){if(!pn.has(e)&&(pn.set(e,[a,{},{},{},i,c,u]),!i0)){var f=r.initFocus(setTimeout.bind(rn,Ic.bind(rn,a,a7))),p=r.initReconnect(setTimeout.bind(rn,Ic.bind(rn,a,i7)));o=function(){f&&f(),p&&p(),pn.delete(e)}}};return h(),[e,i,h,o]}return[e,pn.get(e)[4]]},u7=function(e,n,r,a,i){var o=r.errorRetryCount,s=i.retryCount,u=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!En(o)&&s>o||setTimeout(a,u,i)},c7=function(e,n){return Dr(e)==Dr(n)},d7=l7(new Map),s0=I(d7,2),l0=s0[0],h7=s0[1];si({onLoadingSlow:gn,onSuccess:gn,onError:gn,onErrorRetry:u7,onDiscarded:gn,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Tc?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Tc?5e3:3e3,compare:c7,isPaused:function(){return!1},cache:l0,mutate:h7,fallback:{}},t7);Rn({});var u0=_s&&window.__SWR_DEVTOOLS_USE__,f7=u0?window.__SWR_DEVTOOLS_USE__:[],p7=function(){u0&&(window.__SWR_DEVTOOLS_REACT__=l)},m7=function(e){return function(n,r,a){var i=r&&function(){var o=o0(n)[0],s=pn.get(l0),u=I(s,4),c=u[3],h=c[o];return h?(delete c[o],h):r.apply(void 0,arguments)};return e(n,i,a)}};f7.concat(m7);p7();var v7={primaryInfo:null,isEnrolling:!1,smsOtp:{isSending:!1,sendError:null,codeExpiration:null,formattedDestination:null,enrolledNumber:null},totp:{isCreating:!1,createError:null,enrollment:null}},Oo;(function(t){t[t.Default=0]="Default",t[t.EmailMagicLink=1]="EmailMagicLink",t[t.Organization=2]="Organization",t[t.CannotJoinOrgDueToAuthPolicy=3]="CannotJoinOrgDueToAuthPolicy",t[t.AdBlockerDetected=4]="AdBlockerDetected",t[t.OrganizationDiscoveryClaimedDomain=5]="OrganizationDiscoveryClaimedDomain"})(Oo||(Oo={}));var Po;(function(t){t.Main="Main",t.EmailConfirmation="Email Confirmation",t.LoggedIn="Logged In",t.Discovery="Discovery",t.Error="Error",t.PasswordEmailForm="Password Email",t.PasswordAuthenticate="Password Authenticate",t.PasswordResetForm="Password Reset Form",t.PasswordResetVerifyConfirmation="Password Reset Verify Confirmation",t.PasswordForgotForm="Password Forgot Form",t.PasswordSetNewConfirmation="Password Set New Confirmation",t.MFAEnrollmentSelection="MFA Enrollment Selection",t.RecoveryCodeEntry="Recovery Code Entry",t.RecoveryCodeSave="Recovery Code Save",t.SMSOTPEnrollment="SMS OTP Enrollment",t.SMSOTPEntry="SMS OTP Entry",t.TOTPEnrollmentManual="TOTP Enrollment Manual",t.TOTPEnrollmentQRCode="TOTP Enrollment QR Code",t.TOTPEntry="TOTP Entry",t.EmailMethodSelection="Email Method Selection",t.EmailOTPEntry="Email OTP Entry",t.SSODiscoveryEmail
405="SSO Discovery Email",t.SSODiscoveryFallback="SSO Discovery Fallback",t.SSODiscoveryMenu="SSO Discovery Menu",t.IDPConsent="IDP Consent"})(Po||(Po={}));Ca.totp,Ca.smsOtp;Po.Main,wa.Organization,Oo.Default;Xi.emailMagicLinks,wa.Organization;fe.B2BMagicLinkAuthenticate,fe.B2BSSOAuthenticate,fe.B2BSSODiscoverConnections,fe.B2BMagicLinkDiscoveryAuthenticate,fe.B2BDiscoveryOrganizationsCreate,fe.B2BDiscoveryIntermediateSessionExchange,fe.B2BMagicLinkEmailLoginOrSignup,fe.B2BMagicLinkEmailDiscoverySend,fe.B2BOAuthAuthenticate,fe.B2BOAuthDiscoveryAuthenticate,fe.B2BSMSOTPSend,fe.B2BSMSOTPAuthenticate,fe.B2BTOTPCreate,fe.B2BTOTPAuthenticate,fe.B2BRecoveryCodesRecover,fe.B2BImpersonationAuthenticate,fe.B2BOTPsEmailAuthenticate,fe.B2BOTPsEmailDiscoveryAuthenticate,fe.B2BOTPsEmailDiscoverySend,fe.B2BOTPsEmailLoginOrSignup,fe.B2BOrganizationsGetBySlug;var g7={"Short keyboard patterns are easy to guess.":{id:"password.zxcvbn.warning.shortKeyboardPatterns",message:"Short keyboard patterns are easy to guess."},"Straight rows of keys are easy to guess.":{id:"password.zxcvbn.warning.straightRows",message:"Straight rows of keys are easy to guess."},'Repeats like "aaa" are easy to guess.':{id:"password.zxcvbn.warning.repeats",message:'Repeats like "aaa" are easy to guess.'},'Repeats like "abcabcabc" are only slightly harder to guess than "abc".':{id:"password.zxcvbn.warning.longerRepeats",message:'Repeats like "abcabcabc" are only slightly harder to guess than "abc".'},'Sequences like "abc" or "6543" are easy to guess.':{id:"password.zxcvbn.warning.sequences",message:'Sequences like "abc" or "6543" are easy to guess.'},"Recent years are easy to guess.":{id:"password.zxcvbn.warning.recentYears",message:"Recent years are easy to guess."},"Dates are often easy to guess.":{id:"password.zxcvbn.warning.dates",message:"Dates are often easy to guess."},"This is a top-10 common password.":{id:"password.zxcvbn.warning.top10CommonPassword",message:"This is a top-10 common password."},"This is a top-100 common password.":{id:"password.zxcvbn.warning.top100CommonPassword",message:"This is a top-100 common password."},"This is a very common password.":{id:"password.zxcvbn.warning.veryCommonPassword",message:"This is a very common password."},"This is similar to a commonly used password.":{id:"password.zxcvbn.warning.similarToCommonPassword",message:"This is similar to a commonly used password."},"A word by itself is easy to guess.":{id:"password.zxcvbn.warning.wordByItself",message:"A word by itself is easy to guess."},"Names and surnames by themselves are easy to guess.":{id:"password.zxcvbn.warning.names",message:"Names and surnames by themselves are easy to guess."},"Common names and surnames are easy to guess.":{id:"password.zxcvbn.warning.commonNames",message:"Common names and surnames are easy to guess."}},y7={"Use a few words, avoid common phrases.":{id:"password.zxcvbn.suggestion.useAFewWords",message:"Use a few words, avoid common phrases."},"No need for symbols, digits, or uppercase letters.":{id:"password.zxcvbn.suggestion.noSymbolsDigitsUppercase",message:"No need for symbols, digits, or uppercase letters."},"Add another word or two. Uncommon words are better.":{id:"password.zxcvbn.suggestion.addWords",message:"Add another word or two. Uncommon words are better."},"Use a longer keyboard pattern with more turns.":{id:"password.zxcvbn.suggestion.longerKeyboardPattern",message:"Use a longer keyboard pattern with more turns."},"Avoid repeated words and characters.":{id:"password.zxcvbn.suggestion.avoidRepeats",message:"Avoid repeated words and characters."},"Avoid sequences.":{id:"password.zxcvbn.suggestion.avoidSequences",message:"Avoid sequences."},"Avoid recent years.":{id:"password.zxcvbn.suggestion.avoidRecentYears",message:"Avoid recent years."},"Avoid years that are associated with you.":{id:"password.zxcvbn.suggestion.avoidYearsAssociatedWithYou",message:"Avoid years that are associated with you."},"Avoid dates and years that are associated with you.":{id:"password.zxcvbn.suggestion.avoidDatesAndYearsAssociatedWithYou",message:"Avoid dates and years that are associated with you."},"Capitalization doesn't help very much.":{id:"password.zxcvbn.suggestion.capitalization",message:"Capitalization doesn't help very much."},"All-uppercase is almost as easy to guess as all-lowercase.":{id:"password.zxcvbn.suggestion.allUppercase",message:"All-uppercase is almost as easy to guess as all-lowercase."},"Reversed words aren't much harder to guess.":{id:"password.zxcvbn.suggestion.reversed",message:"Reversed words aren't much harder to guess."},"Predictable substitutions like '@' instead of 'a' don't help very much.":{id:"password.zxcvbn.suggestion.predictableSubstitutions",message:"Predictable substitutions like '@' instead of 'a' don't help very much."}},_7=oe.div(Rl||(Rl=Z([`
406  display: flex;
407  justify-content: center;
408  width: 16px;
409  flex-shrink: 0;
410
411  &::before {
412    content: '\u2022';
413    font-size: `,`;
414    line-height: `,`;
415    color: `,`;
416  }
417`])),function(t){var e=t.theme;return e.typography.helper.fontSize},function(t){var e=t.theme;return e.typography.helper.lineHeight},function(t){var e=t.theme;return e.colors.secondary}),b7=oe.div(Fl||(Fl=Z([`
418  flex-shrink: 0;
419  padding-top: 2px;
420`]))),w7=function(e){var n,r,a,i,o,s=e.bootstrap,u=or(e,["bootstrap"]),c=pe(),h=c._,d=(r=(n=s.passwordConfig)===null||n===void 0?void 0:n.ludsComplexity)!==null&&r!==void 0?r:0,f=(i=(a=s.passwordConfig)===null||a===void 0?void 0:a.ludsMinimumCount)!==null&&i!==void 0?i:0;if(u.passwordPolicy==="none")return null;var p=u.isPasswordBreached&&l.createElement(K,{gap:4},l.createElement(sa,null),l.createElement(ae,{size:"helper",color:"error"},h({id:"password.strengthError.breached",message:"This password may have been used on a different site that experienced a security issue. Please choose another password."})));if(u.passwordPolicy==="zxcvbn"){var m=u.passwordWarning?(o=g7[u.passwordWarning])!==null&&o!==void 0?o:u.passwordWarning:null,g=zt(new Set(u.passwordSuggestions)),v=g.map(function(_){var b;return(b=y7[_])!==null&&b!==void 0?b:_});return l.createElement(l.Fragment,null,l.createElement(Bg,{score:u.passwordScore}),u.errorMessage&&l.createElement(Yt,{errorMessage:u.errorMessage}),m&&l.createElement(K,{gap:1,alignItems:"flex-start"},l.createElement(b7,null,l.createElement(sa,null)),l.createElement(ae,{size:"helper",color:"error"},h(m))),v.map(function(_,b){return l.createElement(K,{key:b,gap:1,alignItems:"flex-start"},l.createElement(_7,null)," ",l.createElement(ae,{size:"helper",color:"secondary"},h(_)))}),p)}return l.createElement(K,{direction:"column",gap:4},l.createElement(K,{gap:4},u.missingCharacters===0?l.createElement(Ac,null):l.createElement(sa,null),l.createElement(ae,{size:"helper",color:u.missingCharacters===0?"success":"error"},h({id:"password.strengthError.minimumLength",message:"{characterLength, plural, one {Must be at least # character long} other {Must be at least # characters long}}",values:{characterLength:f}}))),l.createElement(K,{gap:4},u.missingComplexity===0?l.createElement(Ac,null):l.createElement(sa,null),l.createElement(ae,{size:"helper",color:u.missingComplexity===0?"success":"error"},h({id:"password.strengthError.complexity",message:"{complexity, plural, one {Must contain # of the following: uppercase letter, lowercase letter, number, symbol} other {Must contain # of the following: uppercase letter, lowercase letter, number, symbol}}",values:{complexity:d}}))),p)},c0=function(e){var n=ys(),r=n.bootstrap;return l.createElement(w7,Object.assign({},e,{bootstrap:r}))},Rr=oe.label(Ml||(Ml=Z([`
421  all: unset;
422  display: block;
423  cursor: default;
424  width: fit-content;
425
426  color: `,`;
427  `,`;
428`])),function(t){return t.theme.colors.secondary},function(t){return t.theme.typography.helper}),C7=function(){var e=pe(),n=e._,r=Fe(),a=qe(),i=a.passwordOptions,o=ze(),s=I(o,2),u=s[0],c=s[1],h=ct(),d=ht(),f=J(u.formState.passwordState.email),p=I(f,2),m=p[0],g=p[1],v=J(""),_=I(v,2),b=_[0],C=_[1],A=J(""),E=I(A,2),T=E[0],O=E[1],L=J(0),j=I(L,2),X=j[0],w=j[1],P=J(""),R=I(P,2),M=R[0],B=R[1],N=J([]),U=I(N,2),Q=U[0],q=U[1],te=J(!0),_e=I(te,2),Y=_e[0],x=_e[1],W=J(!1),G=I(W,2),S=G[0],se=G[1],$=J("none"),de=I($,2),me=de[0],ge=de[1],ee=J(0),Le=I(ee,2),we=Le[0],he=Le[1],$e=J(0),Oe=I($e,2),We=Oe[0],ft=Oe[1],Pe=J(!1),St=I(Pe,2),gt=St[0],Ke=St[1],ve=jn(T),Ue=at(function(){return a1(function(ut,Bt){O(""),r.passwords.strengthCheck({email:ut,password:Bt}).then(function(wt){var Kt=wt.score,Et=wt.feedback,ur=wt.valid_password,pt=wt.strength_policy,Re=wt.breached_password;ge(pt),pt==="zxcvbn"?(w(Kt),B(Et.warning),q(Et.suggestions),Ke(Re)):pt==="luds"&&(he(Et.luds_requirements.missing_characters),ft(Et.luds_requirements.missing_complexity),Ke(Re)),x(!ur)}).catch(function(wt){O($t(wt,n))})})},[r.passwords,n]),Gt=function(Bt){C(Bt),Ue(m,Bt)},Vt=function(Bt){var wt,Kt;Bt.preventDefault(),O(""),se(!0),r.passwords.create({email:m,password:b,session_duration_minutes:(Kt=(wt=a.sessionOptions)===null||wt===void 0?void 0:wt.sessionDurationMinutes)!==null&&Kt!==void 0?Kt:on}).then(function(Et){se(!1),h({type:fe.PasswordCreate,data:Et}),c({type:"transition",screen:ne.PasswordConfirmation})}).catch(function(Et){d(Et),Et.error_type==="reset_password"?r.passwords.resetByEmailStart(un(m,i)).then(function(){c({type:"transition",screen:ne.PasswordDedupe})}):O($t(Et,n)),se(!1)})};return l.createElement("form",{onSubmit:Vt},l.createElement(K,{direction:"column",gap:8},l.createElement(ae,null,n({id:"password.createAccount.content",message:"Finish creating your account by setting a password."})),l.createElement(K,{direction:"column",gap:2},l.createElement(Rr,{htmlFor:"email-input"},n({id:"formField.email.label",message:"Email"})),l.createElement(Ur,{email:m,setEmail:g,disableInput:!0})),l.createElement(K,{direction:"column",gap:4},l.createElement(Rr,{htmlFor:"new-password"},n({id:"formField.password.label",message:"Password"})),l.createElement(gs,Object.assign({password:b,setPassword:Gt,type:"new"},ve.input)),l.createElement("div",Object.assign({},ve.error),l.createElement(c0,{passwordPolicy:me,passwordScore:X,errorMessage:T,passwordWarning:M,passwordSuggestions:Q,missingCharacters:we,missingComplexity:We,isPasswordBreached:gt}))),l.createElement(Nn,{isSubmitting:S,text:n({id:"button.continue",message:"Continue"}),disabled:Y})))},E7=oe(ae)(Bl||(Bl=Z([`
429  text-decoration: underline;
430  cursor: pointer;
431`]))),k7=function(){var e=pe(),n=e._,r=Fe(),a=qe(),i=a.passwordOptions,o=ze(),s=I(o,2),u=s[0],c=s[1],h=ct(),d=ht(),f=J(u.formState.passwordState.email),p=I(f,2),m=p[0],g=p[1],v=J(""),_=I(v,2),b=_[0],C=_[1],A=J(""),E=I(A,2),T=E[0],O=E[1],L=J(!1),j=I(L,2),X=j[0],w=j[1],P=jn(T),R=function(N){var U,Q;N.preventDefault(),O(""),w(!0),r.passwords.authenticate({email:m,password:b,session_duration_minutes:(Q=(U=a.sessionOptions)===null||U===void 0?void 0:U.sessionDurationMinutes)!==null&&Q!==void 0?Q:on}).then(function(q){w(!1),h({type:fe.PasswordAuthenticate,data:q}),c({type:"transition",screen:ne.PasswordConfirmation})}).catch(function(q){d(q),q.error_type==="reset_password"?r.passwords.resetByEmailStart(un(m,i)).then(function(){c({type:"transition",screen:ne.PasswordDedupe})}):O($t(q,n)),w(!1)})},M=function(){r.passwords.resetByEmailStart(un(m,i)).then(function(){c({type:"transition",screen:ne.PasswordForgot})})};return l.createElement(K,{direction:"column",gap:36},l.createElement(ae,{size:"header"},n({id:"password.login.title",message:"Log In"})),l.createElement("form",{onSubmit:R},l.createElement(K,{direction:"column",gap:8},l.createElement(K,{direction:"column",gap:2},l.createElement(Rr,{htmlFor:"email-input"},n({id:"formField.email.label",message:"Email"})),l.createElement(Ur,{email:m,setEmail:g,disableInput:!0})),l.createElement(K,{direction:"column",gap:2},l.createElement(Rr,{htmlFor:"current-password"},n({id:"formField.password.label",message:"Password"})),l.createElement(gs,Object.assign({password:b,setPassword:C,type:"current"},P.input)),l.createElement(Yt,Object.assign({errorMessage:T},P.error))),l.createElement(K,{justifyContent:"flex-end"},l.createElement(E7,{onClick:M},n({id:"button.forgotPassword",message:"Forgot Password?"}))),l.createElement(Nn,{isSubmitting:X,text:n({id:"button.continue",message:"Continue"})}))))},S7=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[0],o=a[1],s=ht(),u=ct(),c=Fe(),h=qe(),d=h.passwordOptions,f=i.formState.passwordState.email,p=J(""),m=I(
431p,2),g=m[0],v=m[1],_=function(){c.passwords.resetByEmailStart(un(f,d)).then(function(C){u({type:fe.PasswordResetByEmailStart,data:C}),o({type:"transition",screen:ne.PasswordSetNew})}).catch(function(C){s(C),v($t(C,n))})};return l.createElement(K,{direction:"column",gap:4},l.createElement(rt,{type:"button",onClick:_,variant:"text"},n({id:"button.createPasswordInstead",message:"Create a password instead"})),l.createElement(Yt,{errorMessage:g}))},Dc=function(e){var n=e.secondaryType,r=pe(),a=r._,i=Fe(),o=qe(),s=ze(),u=I(s,2),c=u[0],h=u[1],d=J(!1),f=I(d,2),p=f[1],m=ct(),g=ht(),v=o.emailMagicLinksOptions,_=c.formState.passwordState.email,b=c.formState.passwordState.type,C=function(){i.magicLinks.email.loginOrCreate(_,Na(v)).then(function(w){m({type:fe.MagicLinkLoginOrCreateEvent,data:Object.assign(Object.assign({},w),{email:_})}),p(!1),h({type:"set_magic_link_email",email:_}),h({type:"transition",screen:ne.EmailConfirmation})}).catch(function(w){g(w),p(!1)})},A=function(){var w,P,R;i.otps.email.loginOrCreate(_,{expiration_minutes:(P=(w=o.otpOptions)===null||w===void 0?void 0:w.expirationMinutes)!==null&&P!==void 0?P:Jn,locale:(R=o.otpOptions)===null||R===void 0?void 0:R.locale}).then(function(M){p(!1),m({type:fe.OTPsLoginOrCreateEvent,data:M}),h({type:"update_otp_state",otpState:{type:tt.Email,methodId:M.method_id,otpDestination:_}}),h({type:"transition",screen:ne.OTPAuthenticate})}).catch(function(M){g(M),p(!1)})},E=a(n==="eml"?{id:"button.emailMagicLink",message:"Email me a login link"}:{id:"button.emailOTP",message:"Email me a login code"}),T=n==="eml"?C:A,O=function(){return l.createElement(K,{direction:"column",gap:36},l.createElement(ae,{size:"header"},a({id:"createAccount.title",message:"Choose how you would like to create your account."})),l.createElement(rt,{type:"button",onClick:T},E))},L=function(){return l.createElement(rt,{type:"button",variant:"text",onClick:T},E)},j={new:l.createElement(O,null),password:l.createElement(L,null),passwordless:null};return j[b]},O7=function(){var e,n,r=qe(),a=Fe(),i=ct(),o=ht(),s=ze(),u=I(s,2),c=u[0],h=u[1],d=c.formState.passwordState.email,f=(n=(e=r?.otpOptions)===null||e===void 0?void 0:e.methods)!==null&&n!==void 0?n:[],p=r.products.includes(Be.emailMagicLinks)&&!!r.emailMagicLinksOptions,m=f.includes(tt.Email),g=m?"otp":p?"eml":"",v=c.formState.passwordState.type,_=r.emailMagicLinksOptions,b=r.passwordOptions;Te(function(){var A,E;if(v==="passwordless")switch(g){case"eml":{a.magicLinks.email.loginOrCreate(d,Na(_)).then(function(T){i({type:fe.MagicLinkLoginOrCreateEvent,data:Object.assign(Object.assign({},T),{email:d})}),h({type:"set_magic_link_email",email:d})}).catch(function(T){o(T)});return}case"otp":{a.otps.email.loginOrCreate(d,{expiration_minutes:(E=(A=r.otpOptions)===null||A===void 0?void 0:A.expirationMinutes)!==null&&E!==void 0?E:Jn}).then(function(T){i({type:fe.OTPsLoginOrCreateEvent,data:T}),h({type:"update_otp_state",otpState:{type:tt.Email,methodId:T.method_id,otpDestination:d}})}).catch(function(T){o(T)});return}default:{a.passwords.resetByEmailStart(un(d,b)).then(function(T){i({type:fe.PasswordResetByEmailStart,data:T}),h({type:"transition",screen:ne.PasswordSetNew})}).catch(function(T){o(T)});return}}},[v,g]);var C={new:l.createElement(l.Fragment,null,g&&l.createElement(l.Fragment,null,l.createElement(Dc,{secondaryType:g}),l.createElement(qn,null)),l.createElement(C7,null)),password:l.createElement(l.Fragment,null,l.createElement(k7,null),g&&l.createElement(l.Fragment,null,l.createElement(qn,null),l.createElement(Dc,{secondaryType:g}))),passwordless:l.createElement(l.Fragment,null,l.createElement(l.Fragment,null,g&&l.createElement(l.Fragment,null,g==="eml"?l.createElement(Cd,null):l.createElement(n0,{hideBackArrow:!0}),l.createElement(qn,null),l.createElement(S7,null))))};return l.createElement(K,{gap:24,direction:"column"},l.createElement(Mt,{onClick:function(){return h({type:"transition",screen:ne.Main})}}),C[v])},P7=oe(K)(xl||(xl=Z([`
432  > div {
433    height: 200px;
434    width: 200px;
435  }
436`]))),A7=function(){var e=pe(),n=e._,r=ct(),a=ht(),i=function(){a({message:"[Error] Could not connect to wallet"}),h({type:"transition",screen:ne.CryptoError})},o=Fe(),s=ze(),u=I(s,2),c=u[0],h=u[1],d=c.formState.cryptoState.walletOption,f=Jd(d)?"solana":"ethereum",p=function(){return be(void 0,void 0,void 0,z().m(function v(){var _;return z().w(function(b){for(;;)switch(b.n){case 0:return b.n=1,F3({wallet:d});case 1:_=b.v,o.cryptoWallets.authenticateStart({crypto_wallet_address:_,crypto_wallet_type:f}).then(function(C){r({type:fe.CryptoWalletAuthenticateStart,data:C}
436),h({type:"update_crypto_state",cryptoState:{walletAddress:_,walletChallenge:C.challenge,walletOption:d}}),h({type:"transition",screen:ne.CryptoSignMessage})}).catch(i);case 2:return b.a(2)}},v)}))};Te(function(){p()},[]);var m=oi[d];return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return h({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"crypto.connectWallet.title",message:"Connecting to your wallet..."})),l.createElement(P7,{justifyContent:"center"},l.createElement(m,null)),l.createElement(ae,null,n({id:"crypto.connectWallet.instructionPopup",message:"Complete sign in by connecting through the wallet pop up in the right corner of your screen."})),l.createElement(ae,null,n({id:"crypto.troubleHelp",message:"Having trouble? Use the back arrow to return to the main screen and try logging in again."})))},T7=oe(K)($l||($l=Z([`
437  > div {
438    height: 200px;
439    width: 200px;
440  }
441`]))),L7=function(){var e=pe(),n=e._,r=ct(),a=ht(),i=function(){a({message:"[Error] Could not sign message"}),d({type:"transition",screen:ne.CryptoError})},o=Fe(),s=qe(),u=ze(),c=I(u,2),h=c[0],d=c[1],f=h.formState.cryptoState,p=f.walletChallenge,m=f.walletAddress,g=f.walletOption,v=Jd(g)?"solana":"ethereum",_=function(){return be(void 0,void 0,void 0,z().m(function A(){var E,T,O;return z().w(function(L){for(;;)switch(L.n){case 0:return L.n=1,B3({wallet:g,message:p,address:m});case 1:O=L.v,o.cryptoWallets.authenticate({crypto_wallet_address:m,crypto_wallet_type:v,signature:O,session_duration_minutes:(T=(E=s.sessionOptions)===null||E===void 0?void 0:E.sessionDurationMinutes)!==null&&T!==void 0?T:on}).then(function(j){r({type:fe.CryptoWalletAuthenticate,data:j}),d({type:"transition",screen:ne.CryptoConfirmation})}).catch(i);case 2:return L.a(2)}},A)}))};Te(function(){_()},[]);var b=oi[g];return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return d({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"crypto.signMessage.title",message:"Completing signature request..."})),l.createElement(T7,{justifyContent:"center"},l.createElement(b,null)),l.createElement(ae,null,n({id:"crypto.signMessage.instruction",message:"Complete the signature request through the wallet pop up in the right corner of your screen."})),l.createElement(ae,null,n({id:"crypto.troubleHelp",message:"Having trouble? Use the back arrow to return to the main screen and try logging in again."})))},ca=function(e){var n=e.icon,r=e.name,a=e.link;return l.createElement("a",{href:a,target:"_blank",rel:"noreferrer",style:{textDecoration:"none",color:"inherit"}},l.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},n,l.createElement("span",null,r)))},I7=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[1],o=function(u){var c=u.wallet,h=oi[c];return l.createElement(h,null)};return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return i({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"crypto.setupNewWallet.title",message:"Set up a new crypto wallet"})),l.createElement(ae,null,n({id:"crypto.setupNewWallet.content",message:"Signing in with a crypto wallet can help keep your account private and secure."})),l.createElement(ae,null,n({id:"crypto.setupNewWallet.instruction",message:"Get started by downloading any Ethereum or Solana wallet. We\u2019ve included a few examples of wallet extensions you can find below. Once you\u2019ve set up your wallet, you can use it to sign in!"})),l.createElement(K,{direction:"column",gap:24},l.createElement(K,{justifyContent:"space-evenly"},l.createElement(ca,{icon:l.createElement(o,{wallet:ce.Metamask}),name:n({id:"crypto.wallet.metamask",message:"Metamask"}),link:"https://metamask.io/"}),l.createElement(ca,{icon:l.createElement(o,{wallet:ce.Phantom}),name:n({id:"crypto.wallet.phantom",message:"Phantom"}),link:"https://phantom.app/"})),l.createElement(K,{justifyContent:"space-evenly"},l.createElement(ca,{icon:l.createElement(o,{wallet:ce.Coinbase}),name:n({id:"crypto.wallet.coinbase",message:"Coinbase"}),link:"https://www.coinbase.com/wallet"}),l.createElement(ca,{icon:l.createElement(o,{wallet:ce.Binance}),name:n({id:"crypto.wallet.binance",message:"Binance"}),link:"https://www.bnbchain.world/en/binance-wallet"}))))},D7=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[1];return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return i({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"crypto.continueWithOtherWallet.title",message:"Continue with other wallet"})),l.createElement(Xd,{type:"other"}))},R7=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[1];return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return i({type:"transition",screen:ne.Main})}}),l.createElement(sr,{header:n({id:"crypto.success.title",message:"Success!"}),text:n({id:"crypto.success.content",message:"You have successfully connected your wallet."})}))},F7=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[1];return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return i({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"crypto.error.title",message:"Looks like there was an error!"})),l.createElement(ae,null,n({id:"crypto.error.content",message:"Your sign in request could not be completed. Use the back arrow to return to the log in screen and try again!"})))},M7={data:""},B7=function(e){if((typeof window>"u"?"undefined":Ae(window))=="object"){var n=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return n.nonce=window.__nonce__,n.parentNode||(e||document.head).appendChild(n),n.firstChild}return e||M7},x7=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,$7=/\/\*[^]*?\*\/|  +/g,Rc=/\n+/g,mn=function(e,n){var r="",a="",i="",o=function(c){var h=e[c];c[0]=="@"?c[1]=="i"?r=c+" "+h+";":a+=c[1]=="f"?mn(h,c):c+"{"+mn(h,c[1]=="k"?"":n)+"}":Ae(h)=="object"?a+=mn(h,n?n.replace(/([^,])+/g,function(d){return c.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,function(f){return/&/.test(f)?f.replace(/&/g,d):d?d+" "+f:f})}):c):h!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=mn.p?mn.p(c,h):c+":"+h+";")};for(var s in e)o(s);return r+(n&&i?n+"{"+i+"}":i)+a},nn={},d0=function(e){if(Ae(e)=="object"){var n="";for(var r in e)n+=r+d0(e[r]);return n}return e},j7=function(e,n,r,a,i){var o=d0(e),s=nn[o]||(nn[o]=(function(h){for(var d=0,f=11;d<h.length;
441)f=101*f+h.charCodeAt(d++)>>>0;return"go"+f})(o));if(!nn[s]){var u=o!==e?e:(function(h){for(var d,f,p=[{}];d=x7.exec(h.replace($7,""));)d[4]?p.shift():d[3]?(f=d[3].replace(Rc," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][d[1]]=d[2].replace(Rc," ").trim();return p[0]})(e);nn[s]=mn(i?V({},"@keyframes "+s,u):u,r?"":"."+s)}var c=r&&nn.g?nn.g:null;return r&&(nn.g=nn[s]),(function(h,d,f,p){p?d.data=d.data.replace(p,h):d.data.indexOf(h)===-1&&(d.data=f?h+d.data:d.data+h)})(nn[s],n,a,c),s},N7=function(e,n,r){return e.reduce(function(a,i,o){var s=n[o];if(s&&s.call){var u=s(r),c=u&&u.props&&u.props.className||/^go/.test(u)&&u;s=c?"."+c:u&&Ae(u)=="object"?u.props?"":mn(u,""):u===!1?"":u}return a+i+(s??"")},"")};function li(t){var e=this||{},n=t.call?t(e.p):t;return j7(n.unshift?n.raw?N7(n,[].slice.call(arguments,1),e.p):n.reduce(function(r,a){return Object.assign(r,a&&a.call?a(e.p):a)},{}):n,B7(e.target),e.g,e.o,e.k)}var h0,Ao,To;li.bind({g:1});var dn=li.bind({k:1});function U7(t,e,n,r){mn.p=e,h0=t,Ao=n,To=r}function kn(t,e){var n=this||{};return function(){var r=arguments;function a(i,o){var s=Object.assign({},i),u=s.className||a.className;n.p=Object.assign({theme:Ao&&Ao()},s),n.o=/ *go\d+/.test(u),s.className=li.apply(n,r)+(u?" "+u:"");var c=t;return t[0]&&(c=s.as||t,delete s.as),To&&c[0]&&To(s),h0(c,s)}return a}}var H7=function(e){return typeof e=="function"},Da=function(e,n){return H7(e)?e(n):e},z7=(function(){var t=0;return function(){return(++t).toString()}})(),f0=(function(){var t;return function(){if(t===void 0&&(typeof window>"u"?"undefined":Ae(window))<"u"){var e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),W7=20,ya=new Map,G7=1e3,Fc=function(e){if(!ya.has(e)){var n=setTimeout(function(){ya.delete(e),Un({type:4,toastId:e})},G7);ya.set(e,n)}},V7=function(e){var n=ya.get(e);n&&clearTimeout(n)},Lo=function(e,n){switch(n.type){case 0:return re(re({},e),{},{toasts:[n.toast].concat(zt(e.toasts)).slice(0,W7)});case 1:return n.toast.id&&V7(n.toast.id),re(re({},e),{},{toasts:e.toasts.map(function(o){return o.id===n.toast.id?re(re({},o),n.toast):o})});case 2:var r=n.toast;return e.toasts.find(function(o){return o.id===r.id})?Lo(e,{type:1,toast:r}):Lo(e,{type:0,toast:r});case 3:var a=n.toastId;return a?Fc(a):e.toasts.forEach(function(o){Fc(o.id)}),re(re({},e),{},{toasts:e.toasts.map(function(o){return o.id===a||a===void 0?re(re({},o),{},{visible:!1}):o})});case 4:return n.toastId===void 0?re(re({},e),{},{toasts:[]}):re(re({},e),{},{toasts:e.toasts.filter(function(o){return o.id!==n.toastId})});case 5:return re(re({},e),{},{pausedAt:n.time});case 6:var i=n.time-(e.pausedAt||0);return re(re({},e),{},{pausedAt:void 0,toasts:e.toasts.map(function(o){return re(re({},o),{},{pauseDuration:o.pauseDuration+i})})})}},_a=[],ba={toasts:[],pausedAt:void 0},Un=function(e){ba=Lo(ba,e),_a.forEach(function(n){n(ba)})},K7={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Z7=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=J(ba),r=I(n,2),a=r[0],i=r[1];Te(function(){return _a.push(i),function(){var s=_a.indexOf(i);s>-1&&_a.splice(s,1)}},[a]);var o=a.toasts.map(function(s){var u,c;return re(re(re(re({},e),e[s.type]),s),{},{duration:s.duration||((u=e[s.type])==null?void 0:u.duration)||e?.duration||K7[s.type],style:re(re(re({},e.style),(c=e[s.type])==null?void 0:c.style),s.style)})});return re(re({},a),{},{toasts:o})},q7=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"blank",r=arguments.length>2?arguments[2]:void 0;return re(re({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},r),{},{id:r?.id||z7()})},Hr=function(e){return function(n,r){var a=q7(n,e,r);return Un({type:2,toast:a}),a.id}},Dt=function(e,n){return Hr("blank")(e,n)};Dt.error=Hr("error");Dt.success=Hr("success");Dt.loading=Hr("loading");Dt.custom=Hr("custom");Dt.dismiss=function(t){Un({type:3,toastId:t})};Dt.remove=function(t){return Un({type:4,toastId:t})};Dt.promise=function(t,e,n){var r=Dt.loading(e.loading,re(re({},n),n?.loading));return t.then(function(a){return Dt.success(Da(e.success,a),re(re({id:r},n),n?.success)),a}
441).catch(function(a){Dt.error(Da(e.error,a),re(re({id:r},n),n?.error))}),t};var Y7=function(e,n){Un({type:1,toast:{id:e,height:n}})},J7=function(){Un({type:5,time:Date.now()})},X7=function(e){var n=Z7(e),r=n.toasts,a=n.pausedAt;Te(function(){if(!a){var s=Date.now(),u=r.map(function(c){if(c.duration!==1/0){var h=(c.duration||0)+c.pauseDuration-(s-c.createdAt);if(h<0){c.visible&&Dt.dismiss(c.id);return}return setTimeout(function(){return Dt.dismiss(c.id)},h)}});return function(){u.forEach(function(c){return c&&clearTimeout(c)})}}},[r,a]);var i=dt(function(){a&&Un({type:6,time:Date.now()})},[a]),o=dt(function(s,u){var c,h=u||{},d=h.reverseOrder,f=d===void 0?!1:d,p=h.gutter,m=p===void 0?8:p,g=h.defaultPosition,v=r.filter(function(C){return(C.position||g)===(s.position||g)&&C.height}),_=v.findIndex(function(C){return C.id===s.id}),b=v.filter(function(C,A){return A<_&&C.visible}).length;return(c=v.filter(function(C){return C.visible})).slice.apply(c,zt(f?[b+1]:[0,b])).reduce(function(C,A){return C+(A.height||0)+m},0)},[r]);return{toasts:r,handlers:{updateHeight:Y7,startPause:J7,endPause:i,calculateOffset:o}}},Q7=dn(jl||(jl=Z([`
442from {
443  transform: scale(0) rotate(45deg);
444	opacity: 0;
445}
446to {
447 transform: scale(1) rotate(45deg);
448  opacity: 1;
449}`]))),e4=dn(Nl||(Nl=Z([`
450from {
451  transform: scale(0);
452  opacity: 0;
453}
454to {
455  transform: scale(1);
456  opacity: 1;
457}`]))),t4=dn(Ul||(Ul=Z([`
458from {
459  transform: scale(0) rotate(90deg);
460	opacity: 0;
461}
462to {
463  transform: scale(1) rotate(90deg);
464	opacity: 1;
465}`]))),n4=kn("div")(Hl||(Hl=Z([`
466  width: 20px;
467  opacity: 0;
468  height: 20px;
469  border-radius: 10px;
470  background: `,`;
471  position: relative;
472  transform: rotate(45deg);
473
474  animation: `,` 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
475    forwards;
476  animation-delay: 100ms;
477
478  &:after,
479  &:before {
480    content: '';
481    animation: `,` 0.15s ease-out forwards;
482    animation-delay: 150ms;
483    position: absolute;
484    border-radius: 3px;
485    opacity: 0;
486    background: `,`;
487    bottom: 9px;
488    left: 4px;
489    height: 2px;
490    width: 12px;
491  }
492
493  &:before {
494    animation: `,` 0.15s ease-out forwards;
495    animation-delay: 180ms;
496    transform: rotate(90deg);
497  }
498`])),function(t){return t.primary||"#ff4b4b"},Q7,e4,function(t){return t.secondary||"#fff"},t4),r4=dn(zl||(zl=Z([`
499  from {
500    transform: rotate(0deg);
501  }
502  to {
503    transform: rotate(360deg);
504  }
505`]))),a4=kn("div")(Wl||(Wl=Z([`
506  width: 12px;
507  height: 12px;
508  box-sizing: border-box;
509  border: 2px solid;
510  border-radius: 100%;
511  border-color: `,`;
512  border-right-color: `,`;
513  animation: `,` 1s linear infinite;
514`])),function(t){return t.secondary||"#e0e0e0"},function(t){return t.primary||"#616161"},r4),i4=dn(Gl||(Gl=Z([`
515from {
516  transform: scale(0) rotate(45deg);
517	opacity: 0;
518}
519to {
520  transform: scale(1) rotate(45deg);
521	opacity: 1;
522}`]))),o4=dn(Vl||(Vl=Z([`
5230% {
524	height: 0;
525	width: 0;
526	opacity: 0;
527}
52840% {
529  height: 0;
530	width: 6px;
531	opacity: 1;
532}
533100% {
534  opacity: 1;
535  height: 10px;
536}`]))),s4=kn("div")(Kl||(Kl=Z([`
537  width: 20px;
538  opacity: 0;
539  height: 20px;
540  border-radius: 10px;
541  background: `,`;
542  position: relative;
543  transform: rotate(45deg);
544
545  animation: `,` 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
546    forwards;
547  animation-delay: 100ms;
548  &:after {
549    content: '';
550    box-sizing: border-box;
551    animation: `,` 0.2s ease-out forwards;
552    opacity: 0;
553    animation-delay: 200ms;
554    position: absolute;
555    border-right: 2px solid;
556    border-bottom: 2px solid;
557    border-color: `,`;
558    bottom: 6px;
559    left: 6px;
560    height: 10px;
561    width: 6px;
562  }
563`])),function(t){return t.primary||"#61d345"},i4,o4,function(t){return t.secondary||"#fff"}),l4=kn("div")(Zl||(Zl=Z([`
564  position: absolute;
565`]))),u4=kn("div")(ql||(ql=Z([`
566  position: relative;
567  display: flex;
568  justify-content: center;
569  align-items: center;
570  min-width: 20px;
571  min-height: 20px;
572`]))),c4=dn(Yl||(Yl=Z([`
573from {
574  transform: scale(0.6);
575  opacity: 0.4;
576}
577to {
578  transform: scale(1);
579  opacity: 1;
580}`]))),d4=kn("div")(Jl||(Jl=Z([`
581  position: relative;
582  transform: scale(0.6);
583  opacity: 0.4;
584  min-width: 20px;
585  animation: `,` 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
586    forwards;
587`])),c4),h4=function(e){var n=e.toast,r=n.icon,a=n.type,i=n.iconTheme;return r!==void 0?typeof r=="string"?H(d4,null,r):r:a==="blank"?null:H(u4,null,H(a4,re({},i)),a!=="loading"&&H(l4,null,a==="error"?H(n4,re({},i)):H(s4,re({},i))))},f4=function(e){return`
5880% {transform: translate3d(0,`.concat(e*-200,`%,0) scale(.6); opacity:.5;}
589100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
590`)},p4=function(e){return`
5910% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
592100% {transform: translate3d(0,`.concat(e*-150,`%,-1px) scale(.6); opacity:0;}
593`)},m4="0%{opacity:0;} 100%{opacity:1;}",v4="0%{opacity:1;} 100%{opacity:0;}",g4=kn("div")(Xl||(Xl=Z([`
594  display: flex;
595  align-items: center;
596  background: #fff;
597  color: #363636;
598  line-height: 1.3;
599  will-change: transform;
600  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
601  max-width: 350px;
602  pointer-events: auto;
603  padding: 8px 10px;
604  border-radius: 8px;
605`]))),y4=kn("div")(Ql||(Ql=Z([`
606  display: flex;
607  justify-content: center;
608  margin: 4px 10px;
609  color: inherit;
610  flex: 1 1 auto;
611  white-space: pre-line;
612`]))),_4=function(e,n){var r=e.includes("top")?1:-1,a=f0()?[m4,v4]:[f4(r),p4(r)],i=I(a,2),o=i[0],s=i[1];return{animation:n?"".concat(dn(o)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(dn(s)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}},b4=Go(function(t){var e=t.toast,n=t.position,r=t.style,a=t.children,i=e.height?_4(e.position||n||"top-center",e.visible):{opacity:0},o=H(h4,{toast:e}),s=H(y4,re({},e.ariaProps),Da(e.message,e));return H(g4,{className:e.className,style:re(re(re({},i),r),e.style)},typeof a=="function"?a({icon:o,message:s}):H(Rt,null,o,s))});U7(H);var w4=function(e){var n=e.id,r=e.className,a=e.style,i=e.onHeightUpdate,o=e.children,s=dt(function(u){if(u){var c=function(){var d=u.getBoundingClientRect().height;i(n,d)};c(),new MutationObserver(c).observe(u,{subtree:!0,childList:!0,characterData:!0})}},[n,i]);return H("div",{ref:s,className:r,style:a},o)},C4=function(e,n){var r=e.includes("top"),a=r?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return re(re({left:0,right:0,display:"flex",position:"absolute",transition:f0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(n*(r?1:-1),"px)")},a),i)},E4=li(eu||(eu=Z([`
613  z-index: 9999;
614  > * {
615    pointer-events: auto;
616  }
617`]))),da=16,k4=function(e){var n=e.reverseOrder,r=e.position,a=r===void 0?"top-center":r,i=e.toastOptions,o=e.gutter,s=e.children,u=e.containerStyle,c=e.containerClassName,h=X7(i),d=h.toasts,f=h.handlers;return H("div",{style:re({position:"fixed",zIndex:9999,top:da,left:da,right:da,bottom:da,pointerEvents:"none"},u),className:c,onMouseEnter:f.startPause,onMouseLeave:f.endPause},d.map(function(p){var m=p.position||a,g=f.calculateOffset(p,{reverseOrder:n,gutter:o,defaultPosition:a}),v=C4(m,g);return H(w4,{id:p.id,key:p.id,onHeightUpdate:f.updateHeight,className:p.visible?E4:"",style:v},p.type==="custom"?Da(p.message,p):s?s(p):H(b4,{toast:p,position:m}))}))},zr=Dt,bs=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[0],o=a[1],s=Fe(),u=qe(),c=u.emailMagicLinksOptions,h=i.formState.passwordState.email,d=function(){s.magicLinks.email.loginOrCreate(h,Na(c)).then(function(){o({type:"transition",screen:ne.EmailConfirmation})})};return l.createElement(l.Fragment,null,l.createElement(qn,null),l.createElement(rt,{type:"button",variant:"text",onClick:d},n({id:"button.loginWithoutPassword",message:"Login without a password"})))},S4=function(e){var n=e.onClick,r=e.children;return l.createElement("button",{onClick:n,style:{all:"unset"}},l.createElement("b",{style:{cursor:"pointer"}},r))},O4=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[0],o=a[1],s=Fe(),u=qe(),c=u.passwordOptions,h=i.formState.passwordState.email,d=function(){return be(void 0,void 0,void 0,z().m(function p(){return z().w(function(m){for(;;)switch(m.n){case 0:Je(s).networkClient.logEvent({name:"email_try_again_clicked",details:{email:h,type:Cn.ResetPassword}}),s.passwords.resetByEmailStart(un(h,c)).then(function(){return zr.success(n({id:"toast.emailResent",message:"Email resent"}))});case 1:return m.a(2)}},p)}))};return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return o({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"password.forgot.title",message:"Forgot password?"})),l.createElement(ae,null,l.createElement(qt,{id:"password.forgot.content",message:"A link to reset your password was sent to you at <bold>{email}</bold>.",components:{bold:l.createElement("b",null)},values:{email:h}})),l.createElement(ae,null,l.createElement(qt,{id:"password.didntGetItResend",message:"Didn't get it? <resendButton>Resend email</resendButton>",components:{resendButton:l.createElement(S4,{onClick:d})}})),l.createElement(bs,null))},P4=function(e){var n=e.onClick,r=e.children;return l.createElement("button",{type:"button",onClick:n,style:{all:"unset"}},l.createElement("b",{style:{cursor:"pointer"}},r))},A4=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[0],o=a[1],s=Fe(),u=qe(),c=u.passwordOptions,h=i.formState.passwordState.email,d=function(){s.passwords.resetByEmailStart(un(h,c)).then(function(){return zr.success(n({id:"toast.emailResent",message:"Email resent"}))})};return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return o({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"password.breached.title",message:"Check your email to set a new password"})),l.createElement(ae,null,l.createElement(qt,{id:"password.breached.
617content",message:"A different site where you use the same password had a security issue recently. For your safety, an email was sent to you at <bold>{email}</bold> to reset your password.",components:{bold:l.createElement("b",null)},values:{email:h}})),l.createElement(ae,null,l.createElement(qt,{id:"password.didntGetItResend",message:"Didn't get it? <resendButton>Resend email</resendButton>",components:{resendButton:l.createElement(P4,{onClick:d})}})),l.createElement(bs,null))},T4=function(e){var n=e.onClick,r=e.children;return l.createElement("button",{onClick:n,style:{all:"unset"}},l.createElement("b",{style:{cursor:"pointer"}},r))},L4=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[0],o=a[1],s=ht(),u=ct(),c=Fe(),h=qe(),d=h.passwordOptions,f=i.formState.passwordState.email,p=function(){c.passwords.resetByEmailStart(un(f,d)).then(function(g){zr.success(n({id:"toast.emailResent",message:"Email resent"})),u({type:fe.PasswordResetByEmailStart,data:g})}).catch(function(g){s(g)})};return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return o({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"password.setNew.title",message:"Check your email!"})),l.createElement(ae,null,l.createElement(qt,{id:"password.setNew.content",message:"A login link was sent to you at <bold>{email}</bold>.",components:{bold:l.createElement("b",null)},values:{email:f}})),l.createElement(ae,null,l.createElement(qt,{id:"password.didntGetItResend",message:"Didn't get it? <resendButton>Resend email</resendButton>",components:{resendButton:l.createElement(T4,{onClick:p})}})))},I4=function(e){var n=e.onClick,r=e.children;return l.createElement("button",{onClick:n,style:{all:"unset"}},l.createElement("b",{style:{cursor:"pointer"}},r))},D4=function(){var e=pe(),n=e._,r=ze(),a=I(r,2),i=a[0],o=a[1],s=Fe(),u=qe(),c=u.passwordOptions,h=i.formState.passwordState.email,d=function(){s.passwords.resetByEmailStart(un(h,c)).then(function(){return zr.success(n({id:"toast.emailResent",message:"Email resent"}))})};return l.createElement(K,{direction:"column",gap:24},l.createElement(Mt,{onClick:function(){return o({type:"transition",screen:ne.Main})}}),l.createElement(ae,{size:"header"},n({id:"password.resetRequired.title",message:"Check your email to set a new password!"})),l.createElement(ae,null,l.createElement(qt,{id:"password.resetRequired.content",message:"We want to make sure your account is secure and that it's really you logging in! A login link was sent to you at <bold>{email}</bold>.",components:{bold:l.createElement("b",null)},values:{email:h}})),l.createElement(ae,null,l.createElement(qt,{id:"password.didntGetItResend",message:"Didn't get it? <resendButton>Resend email</resendButton>",components:{resendButton:l.createElement(I4,{onClick:d})}})),l.createElement(bs,null))},R4=oe.form(tu||(tu=Z([`
618  width: 100%;
619`]))),F4=function(){var e=pe(),n=e._,r=Fe(),a=qe(),i=ze(),o=I(i,2),s=o[0],u=o[1],c=s.formState.resetPasswordState.token,h=ct(),d=ht(),f=at(function(){var pt,Re=r.parseAuthenticateUrl();return(pt=Re?.tokenType)!==null&&pt!==void 0?pt:""},[r]),p=J(""),m=I(p,2),g=m[0],v=m[1],_=J(""),b=I(_,2),C=b[0],A=b[1],E=J(0),T=I(E,2),O=T[0],L=T[1],j=J(""),X=I(j,2),w=X[0],P=X[1],R=J([]),M=I(R,2),B=M[0],N=M[1],U=J(!0),Q=I(U,2),q=Q[0],te=Q[1],_e=J(!1),Y=I(_e,2),x=Y[0],W=Y[1],G=J("none"),S=I(G,2),se=S[0],$=S[1],de=J(0),me=I(de,2),ge=me[0],ee=me[1],Le=J(0),we=I(Le,2),he=we[0],$e=we[1],Oe=J(!1),We=I(Oe,2),ft=We[0],Pe=We[1],St=J(""),gt=I(St,2),Ke=gt[0],ve=gt[1],Ue=J(!1),Gt=I(Ue,2),Vt=Gt[0],ut=Gt[1],Bt=jn(C),wt=at(function(){return a1(function(pt){return r.passwords.strengthCheck({password:pt}).then(function(Re){var Ct=Re.score,Pt=Re.feedback,Jt=Re.valid_password,cr=Re.strength_policy,dr=Re.breached_password;$(cr),te(!Jt),cr==="zxcvbn"?(L(Ct),P(Pt.warning),N(Pt.suggestions),Pe(dr)):cr==="luds"&&(ee(Pt.luds_requirements.missing_characters),$e(Pt.luds_requirements.missing_complexity),Pe(dr))})})},[r.passwords]);Te(function(){var pt,Re;f==="login"&&r.magicLinks.authenticate(c,{session_duration_minutes:(Re=(pt=a.sessionOptions)===null||pt===void 0?void 0:pt.sessionDurationMinutes)!==null&&Re!==void 0?Re:on}).then(function(){u({type:"transition",screen:ne.PasswordConfirmation})}).catch(function(Ct){d(Ct)})},[f]);var Kt=function(Re){v(Re),wt(Re)},Et=function(Re){var Ct,Pt;Re.preventDefault(),A(""),W(!0),r.passwords.resetByEmail({token:c,password:g,session_duration_minutes:(Pt=(Ct=a.sessionOptions)===null||Ct===void 0?void 0:Ct.sessionDurationMinutes)!==null&&Pt!==void 0?Pt:on}
619).then(function(Jt){W(!1),h({type:fe.PasswordResetByEmail,data:Jt}),u({type:"transition",screen:ne.PasswordConfirmation})}).catch(function(Jt){d(Jt),A($t(Jt,n)),W(!1)})},ur=function(){var Re,Ct;ve(""),ut(!0),r.magicLinks.authenticate(c,{session_duration_minutes:(Ct=(Re=a.sessionOptions)===null||Re===void 0?void 0:Re.sessionDurationMinutes)!==null&&Ct!==void 0?Ct:on}).then(function(){u({type:"transition",screen:ne.PasswordConfirmation})}).catch(function(Pt){d(Pt),ve($t(Pt,n))}).finally(function(){ut(!1)})};return f==="login"?l.createElement(K,{direction:"column",gap:36,className:"resetPasswordContainer",alignItems:"center"},l.createElement(ae,{size:"header"},n({id:"password.reset.loggingInProgress",message:"Logging in..."})),l.createElement(Lr,{size:100,thickness:2})):l.createElement(K,{direction:"column",gap:36,className:"resetPasswordContainer",alignItems:"center",width:"100%"},l.createElement(ae,{size:"header"},n({id:"password.reset.title",message:"Reset your password"})),l.createElement(R4,{onSubmit:Et},l.createElement(K,{direction:"column",gap:8},l.createElement(K,{direction:"column",gap:2},l.createElement(Rr,{htmlFor:"new-password"},n({id:"formField.password.label",message:"Password"})),l.createElement(gs,Object.assign({password:g,setPassword:Kt,type:"new"},Bt.input)),l.createElement("div",Object.assign({},Bt.error),l.createElement(c0,{passwordPolicy:se,passwordScore:O,errorMessage:C,passwordWarning:w,passwordSuggestions:B,missingCharacters:ge,missingComplexity:he,isPasswordBreached:ft}))),l.createElement(Nn,{isSubmitting:x,text:n({id:"button.continue",message:"Continue"}),disabled:q}))),l.createElement(qn,null),l.createElement(K,{direction:"column",gap:8,width:"100%"},l.createElement(rt,{type:"button",variant:"text",disabled:Vt,onClick:ur},Vt?l.createElement(K,{justifyContent:"center",alignItems:"center",gap:8},l.createElement(Lr,{size:18,thickness:1}),n({id:"login.loading",message:"Logging in..."})):n({id:"password.reset.loginWithoutPassword",message:"Login without a password"})),Ke&&l.createElement(Yt,{errorMessage:Ke})))},M4=function(){var e=ct();return ds(function(){e({type:fe.AuthenticateFlowComplete,data:{}})}),H(sr,null)},B4=function(){return l.createElement("svg",{width:"112",height:"96",viewBox:"0 0 112 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{clipPath:"url(#clip0_2877_10121)"},l.createElement("ellipse",{cx:"55.9998",cy:"48.0004",rx:"48",ry:"48.0003",fill:"#C7F1FF"}),l.createElement("path",{d:"M100.866 74.5461H103.823",stroke:"#0C5A56",strokeWidth:"1.28124",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M84.604 67.3945C84.604 67.2618 84.7116 67.1542 84.8442 67.1542H106.54C106.672 67.1542 106.78 67.2618 106.78 67.3945V77.2627C106.78 77.3954 106.672 77.503 106.54 77.503H84.8442C84.7116 77.503 84.604 77.3954 84.604 77.2627V67.3945Z",stroke:"#0C5A56",strokeWidth:"1.28124",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M91.2568 70.8503L87.5608 74.5463",stroke:"#0C5A56",strokeWidth:"1.28124",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M91.2568 74.5463L87.5608 70.8503",stroke:"#0C5A56",strokeWidth:"1.28124",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M97.9096 70.8503L94.2136 74.5463",stroke:"#0C5A56",strokeWidth:"1.28124",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M97.9096 74.5463L94.2136 70.8503",stroke:"#0C5A56",strokeWidth:"1.28124",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M87.9158 31.7665C87.8368 31.7271 87.7974 31.6629 87.7974 31.5742C87.7974 31.4854 87.8171 31.4015 87.8566 31.3226C89.0799 29.6256 90.6289 28.3135 92.5034 27.3861C94.3779 26.4587 96.3806 25.995 98.5117 25.995C100.643 25.995 102.65 26.4489 104.535 27.3565C106.419 28.2642 107.983 29.5665 109.226 31.2634C109.285 31.362 109.31 31.441 109.3 31.5002C109.29 31.5594 109.256 31.6185 109.196 31.6777C109.137 31.7369 109.063 31.7665 108.974 31.7665C108.886 31.7665 108.802 31.7172 108.723 31.6185C107.559 30.0005 106.074 28.7575 104.268 27.8893C102.463 27.0211 100.544 26.587 98.5117 26.587C96.4793 26.587 94.5752 27.026 92.7993 27.9041C91.0235 28.7821 89.5436 30.0203 88.3597 31.6185C88.2808 31.7172 88.2068 31.7764 88.1377 31.7961C88.0687 31.8159 87.9947 31.806 87.9158 31.7665ZM102.034 46.6541C100.001 46.141 98.3291 45.1249 97.017 43.6055C95.7048 42.0862 95.0487 40.2413 95.0487 38.0708C95.0487 37.1434 95.3891 36.364 96.0699 35.7326C96.7506 35.1012 97.5645 34.7855 98.5117 34.7855C99.4588 34.7855 100.273 35.1012 100.953 35.7326C101.634 36.364 101.975 37.1434 101.975 38.0708C101.975 38.8206 102.266 39.452 102.848 39.965C103.43 40.4781 104.106 40.7346 104.875 40.7346C105.625 40.7346 106.281 40.4781 106.843 39.965C107.406 39.452 107.687 38.8206 107.687 38.0708C107.687 35.6438 106.784 33.6114 104.979 31.9737C103.173 30.336 101.018 29.5171 98.5117 29.5171C96.0057 29.5171 93.85 30.336 92.0446 31.9737C90.2392 33.6114 89.3364 35.6438 89.3364 38.0708C89.3364 38.5444 89.3907 39.161 89.4992 39.9206C89.6077 40.6803 89.8396 41.5436 90.1948 42.5104C90.2342 42.6091 90.2342 42.6831 90.1948 42.7324C90.1553 42.7817 90.106 42.8261 90.0468 42.8656C89.9678 42.9051 89.884 42.9149 89.7952 42.8952C89.7064 42.8755 89.6423 42.8163 89.6028 42.7176C89.3463 41.9678 89.144 41.2032 88.9961 40.4238C88.8481 39.6444 88.7741 38.8601 88.7741 38.0708C88.7741 35.5254 89.7409 33.35 91.6746 31.5446C93.6083 29.7391 95.8873 28.8364 98.5117 28.8364C101.195 28.8364 103.499 29.7243 105.423 31.5002C107.347 33.276 108.3
61908 35.4662 108.308 38.0708C108.308 38.9785 107.973 39.748 107.302 40.3794C106.631 41.0108 105.822 41.3265 104.875 41.3265C103.908 41.3265 103.08 41.0108 102.389 40.3794C101.698 39.748 101.353 38.9785 101.353 38.0708C101.353 37.3013 101.072 36.66 100.509 36.147C99.9471 35.6339 99.2812 35.3774 98.5117 35.3774C97.7421 35.3774 97.0712 35.6339 96.499 36.147C95.9268 36.66 95.6407 37.3013 95.6407 38.0708C95.6407 40.1229 96.2622 41.8346 97.5053 43.206C98.7484 44.5773 100.297 45.5392 102.152 46.0917C102.271 46.1312 102.345 46.1805 102.374 46.2397C102.404 46.2989 102.409 46.368 102.389 46.4469C102.369 46.5455 102.33 46.6146 102.271 46.6541C102.211 46.6935 102.132 46.6935 102.034 46.6541ZM91.5858 25.3439C91.4872 25.3833 91.4132 25.3883 91.3639 25.3587C91.3145 25.3291 91.2701 25.2847 91.2307 25.2255C91.1912 25.186 91.1715 25.1268 91.1715 25.0479C91.1715 24.969 91.2011 24.9098 91.2603 24.8703C92.385 24.2586 93.5639 23.7949 94.7972 23.4792C96.0304 23.1635 97.2686 23.0057 98.5117 23.0057C99.7942 23.0057 101.052 23.1635 102.285 23.4792C103.519 23.7949 104.698 24.2389 105.822 24.8111C105.921 24.8506 105.975 24.9098 105.985 24.9887C105.995 25.0676 105.98 25.1367 105.941 25.1959C105.901 25.2551 105.847 25.3044 105.778 25.3439C105.709 25.3833 105.625 25.3833 105.526 25.3439C104.441 24.8111 103.306 24.3918 102.123 24.086C100.939 23.7801 99.735 23.6272 98.5117 23.6272C97.2883 23.6272 96.0945 23.7703 94.9304 24.0564C93.7662 24.3425 92.6514 24.7717 91.5858 25.3439ZM95.5519 46.3285C94.4075 45.1446 93.5146 43.9015 92.8733 42.5992C92.2321 41.2969 91.9114 39.7875 91.9114 38.0708C91.9114 36.3147 92.5576 34.8348 93.85 33.6312C95.1425 32.4275 96.6963 31.8257 98.5117 31.8257C100.327 31.8257 101.891 32.4275 103.203 33.6312C104.515 34.8348 105.171 36.3147 105.171 38.0708C105.171 38.1695 105.146 38.2435 105.097 38.2928C105.048 38.3421 104.974 38.3668 104.875 38.3668C104.776 38.3668 104.698 38.3421 104.638 38.2928C104.579 38.2435 104.55 38.1695 104.55 38.0708C104.55 36.4725 103.953 35.1308 102.759 34.0455C101.565 32.9603 100.149 32.4177 98.5117 32.4177C96.8739 32.4177 95.468 32.9603 94.294 34.0455C93.12 35.1308 92.533 36.4725 92.533 38.0708C92.533 39.748 92.824 41.1785 93.4061 42.3624C93.9882 43.5463 94.8514 44.7302 95.9959 45.9141C96.0748 45.9931 96.1093 46.0671 96.0995 46.1361C96.0896 46.2052 96.0551 46.2693 95.9959 46.3285C95.9564 46.368 95.8923 46.4025 95.8035 46.4321C95.7147 46.4617 95.6308 46.4272 95.5519 46.3285ZM104.609 44.1679C102.872 44.1679 101.368 43.5907 100.095 42.4364C98.8224 41.2821 98.1861 39.8269 98.1861 38.0708C98.1861 37.9721 98.2107 37.8932 98.2601 37.834C98.3094 37.7748 98.3834 37.7452 98.4821 37.7452C98.5807 37.7452 98.6547 37.7748 98.704 37.834C98.7534 37.8932 98.778 37.9721 98.778 38.0708C98.778 39.6691 99.365 40.9862 100.539 42.0221C101.713 43.058 103.07 43.5759 104.609 43.5759C104.767 43.5759 104.954 43.5661 105.171 43.5463C105.388 43.5266 105.625 43.497 105.881 43.4575C105.98 43.4378 106.059 43.4526 106.118 43.5019C106.177 43.5513 106.217 43.6055 106.237 43.6647C106.256 43.7437 106.251 43.8127 106.222 43.8719C106.192 43.9311 106.128 43.9706 106.029 43.9903C105.674 44.089 105.363 44.1432 105.097 44.1531C104.831 44.1629 104.668 44.1679 104.609 44.1679Z",stroke:"#0C5A56",strokeWidth:"0.721422"}),l.createElement("g",{clipPath:"url(#clip1_2877_10121)"},l.createElement("path",{d:"M25.7683 49.5923V52.5147C25.7683 52.9022 25.6144 53.2739 25.3403 53.5479C25.0663 53.8219 24.6947 53.9759 24.3071 53.9759H21.3848",stroke:"#0C5A56",strokeWidth:"1.42772",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M21.3848 32.0582H24.3071C24.6947 32.0582 25.0663 32.2121 25.3403 32.4861C25.6144 32.7602 25.7683 33.1318 25.7683 33.5193V36.4417",stroke:"#0C5A56",strokeWidth:"1.42772",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M3.85059 36.4417V33.5193C3.85059 33.1318 4.00453 32.7602 4.27856 32.4861C4.55258 32.2121 4.92424 32.0582 5.31177 32.0582H8.23413",stroke:"#0C5A56",strokeWidth:"1.42772",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M8.23413 53.9759H5.31177C4.92424 53.9759 4.55258 53.8219 4.27856 53.5479C4.00453 53.2739 3.85059 52.9022 3.85059 52.5147V49.5923",stroke:"#0C5A56",strokeWidth:"1.42772",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M14.8093 44.1129C17.0285 44.1129 18.8275 42.3139 18.8275 40.0947C18.8275 37.8754 17.0285 36.0764 14.8093 36.0764C12.59 36.0764 10.791 37.8754 10.791 40.0947C10.791 42.3139 12.59 44.1129 14.8093 44.1129Z",stroke:"#0C5A56",strokeWidth:"1.42772",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M21.0097 49.9586C20.5564 48.6763 19.7168 47.5662 18.6064 46.781C17.4959 45.9957 16.1694 45.5741 14.8094 45.5741C13.4494 45.5741 12.1229 45.9957 11.0125 46.781C9.90207 47.5662 9.06241 48.6763 8.60913 49.9586",stroke:"#0C5A56",strokeWidth:"1.42772",strokeLinecap:"round",strokeLinejoin:"round"})),l.createElement("path",{d:"M54.7371 47.9187C57.8367 47.9187 60.3495 45.406 60.3495 42.3064C60.3495 39.2068 57.8367 36.694 54.7371 36.694C51.6375 36.694 49.1248 39.2068 49.1248 42.3
619064C49.1248 45.406 51.6375 47.9187 54.7371 47.9187Z",fill:"#0C5A56"}),l.createElement("path",{d:"M69.7034 47.9187C69.7062 47.1369 69.4989 46.3687 69.1032 45.6944C68.7076 45.0201 68.1381 44.4644 67.4542 44.0854C66.7704 43.7064 65.9973 43.518 65.2158 43.54C64.4343 43.5619 63.673 43.7934 63.0115 44.2101C62.35 44.6268 61.8126 45.2136 61.4554 45.9091C61.0982 46.6045 60.9343 47.3832 60.9809 48.1636C61.0275 48.944 61.2828 49.6976 61.7203 50.3457C62.1577 50.9937 62.7611 51.5123 63.4675 51.8474V58.5198L65.3383 60.3906L68.4563 57.2727L66.5855 55.4019L68.4563 53.5311L66.9097 51.9846C67.7311 51.6676 68.4374 51.1097 68.936 50.3841C69.4346 49.6585 69.7021 48.7991 69.7034 47.9187ZM65.3383 47.9187C65.0916 47.9187 64.8505 47.8456 64.6454 47.7085C64.4403 47.5715 64.2804 47.3767 64.186 47.1488C64.0916 46.9209 64.0669 46.6702 64.1151 46.4282C64.1632 46.1863 64.282 45.9641 64.4564 45.7896C64.6308 45.6152 64.853 45.4964 65.095 45.4483C65.3369 45.4002 65.5877 45.4249 65.8156 45.5193C66.0435 45.6137 66.2382 45.7735 66.3753 45.9786C66.5123 46.1837 66.5855 46.4249 66.5855 46.6715C66.5855 47.0023 66.4541 47.3195 66.2202 47.5534C65.9863 47.7873 65.6691 47.9187 65.3383 47.9187Z",fill:"#0C5A56"}),l.createElement("path",{d:"M59.6512 50.4382C58.6934 50.0111 57.6566 49.7902 56.608 49.7896H52.8664C50.8818 49.7896 48.9784 50.578 47.5751 51.9814C46.1717 53.3847 45.3833 55.2881 45.3833 57.2728V59.7671H61.5968V52.8951C60.7557 52.249 60.0873 51.405 59.6512 50.4382Z",fill:"#0C5A56"}),l.createElement("rect",{x:"39.2727",y:"15.4204",width:"35.8443",height:"65.4755",rx:"1.67273",stroke:"#0C5A56",strokeWidth:"2.38962",strokeLinejoin:"round"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2877_10121"},l.createElement("rect",{width:"110.4",height:"96.0005",fill:"white",transform:"translate(0.799805)"})),l.createElement("clipPath",{id:"clip1_2877_10121"},l.createElement("rect",{width:"23.3789",height:"23.3789",fill:"white",transform:"translate(3.11987 31.3276)"}))))},Mc;(function(t){t.DESKTOP="Desktop device",t.MOBILE="Mobile device",t.UNKNOWN="Unknown device"})(Mc||(Mc={}));var x4="At least one credential matches an entry of the excludeCredentials list in the platform attached authenticator.",$4="The user attempted to register an authenticator that contains one of the credentials already registered with the relying party.",ui=function(){return H(K,{direction:"column",gap:36,alignItems:"center"},H(Lr,{size:100,thickness:8}))},j4=oe(K)(nu||(nu=Z([`
620  width: 100%;
621  background-color: `,`;
622`])),function(t){return t.theme.colors.accent}),N4=function(){var e=pe(),n=e._,r=Fe(),a=J(function(){return r.user.getSync()!=null?"hasUser":"loading"}),i=I(a,2),o=i[0],s=i[1],u=J(),c=I(u,2),h=c[0],d=c[1],f=qe(),p=ct(),m=ht();Te(function(){r.user.get().then(function(){s("hasUser")}).catch(function(A){s("noUser"),m(A)})},[m,r]);var g=ze(),v=I(g,2),_=v[1],b=function(){var E,T,O;d(void 0),r.webauthn.register({domain:(E=f.passkeyOptions)===null||E===void 0?void 0:E.domain,is_passkey:!0,session_duration_minutes:(O=(T=f.sessionOptions)===null||T===void 0?void 0:T.sessionDurationMinutes)!==null&&O!==void 0?O:on}).then(function(L){p({type:fe.PasskeyRegister,data:L}),_({type:"transition",screen:ne.PasskeyRegistrationSuccess})}).catch(function(L){if(m(L),L.message.includes(x4)||L.message.includes($4)){d(n({id:"error.duplicatePasskey",message:"The Passkey cannot be created as it seems to be already registered. It is possible this Passkey was registered on another device but has synced cross-device."}));return}else d(n({id:"error.passkeyNotCreated",message:"Your Passkey was not created. Click \u201CCreate a Passkey\u201D to try again or skip without adding a Passkey."}))})},C=function(){p({type:fe.PasskeySkip,data:{}}),_({type:"transition",screen:ne.PasskeyRegistrationSuccess})};return o==="loading"?l.createElement(ui,null):o==="noUser"?l.createElement(Ia,{variant:"warning",text:n({id:"passkey.registrationStart.error.noUser",message:"Error: Cannot use PasskeyRegistration component without active user authenticated."})}):l.createElement(K,{direction:"column",gap:36,marginTop:12,marginLeft:6.5,marginRight:6.5},l.createElement(ae,{size:"header"},n({id:"passkey.registrationStart.title",message:"Set up a new Passkey"})),h&&l.createElement(Ia,{variant:"warning",text:h}),l.createElement(j4,{direction:"column",alignItems:"center",gap:20},l.createElement(K,{direction:"column",padding:20,gap:20,alignItems:"center"},l.createElement(B4,null),l.createElement(ae,{size:"body"},n({id:"passkey.registrationStart.subtitle",message:"With Passkeys you don't need to remember complex passwords."})),l.createElement(ae,{size:"helper",color:"secondary"},n({id:"passkey.registrationStart.description",message:"Passkeys are encrypted digital keys you create using your fingerprint, face, or screen lock. Creating a Passkey will allow you to easily and securely log in to your account."})))),l.createElement(K,{direction:"column",gap:12},l.createElement(rt,{type:"button",onClick:function(){return b()}},n({id:"button.createPasskey",message:"Create a Passkey"})),l.createElement(rt,{type:"button",variant:"text",onClick:function(){return C()}},n({id:"button.skip",message:"Skip"}))))},p0=function(){var e=Fe();return qo(e.onStateChange,function(){return e.user.getSync()})},U4=function(){return H("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("path",{d:"M7.33317 13.2503L3.83317 9.75033L2.6665 10.917L7.33317 15.5837L17.3332 5.58366L16.1665 4.41699L7.33317 13.2503Z",fill:"#19303D"}))},H4=function(){return H("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("path",{d:"M11.7157 7.51667L12.4824 8.28333L4.93236 15.8333H4.16569V15.0667L11.7157 7.51667ZM14.7157 2.5C14.5074 2.5 14.2907 2.58333 14.1324 2.74167L12.6074 4.26667L15.7324 7.39167L17.2574 5.86667C17.5824 5.54167 17.5824 5.01667 17.2574 4.69167L15.3074 2.74167C15.1407 2.575 14.9324 2.5 14.7157 2.5ZM11.7157 5.15833L2.49902 14.375V17.5H5.62402L14.8407 8.28333L11.7157 5.15833Z",fill:"#19303D"}))},z4=function(){return H("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("path",{d:"M5.00008 15.8333C5.00008 16.75 5.75008 17.5 6.66675 17.5H13.3334C14.2501 17.5 15.0001 16.75 15.0001 15.8333V5.83333H5.00008V15.8333ZM6.66675 7.5H13.3334V15.8333H6.66675V7.5ZM12.9167 3.33333L12.0834 2.5H7.91675L7.08341 3.33333H4.16675V5H15.8334V3.33333H12.9167Z",fill:"#19303D"}))},W4=function(){return l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M9.99984 1.66699C5.3915 1.66699 1.666
6225 5.39199 1.6665 10.0003C1.6665 14.6087 5.3915 18.3337 9.99984 18.3337C14.6082 18.3337 18.3332 14.6087 18.3332 10.0003C18.3332 5.39199 14.6082 1.66699 9.99984 1.66699ZM9.99984 16.667C6.32484 16.667 3.33317 13.6753 3.33317 10.0003C3.33317 6.32533 6.32484 3.33366 9.99984 3.33366C13.6748 3.33366 16.6665 6.32533 16.6665 10.0003C16.6665 13.6753 13.6748 16.667 9.99984 16.667ZM12.9915 5.83366L9.99984 8.82533L7.00817 5.83366L5.83317 7.00866L8.82484 10.0003L5.83317 12.992L7.00817 14.167L9.99984 11.1753L12.9915 14.167L14.1665 12.992L11.1748 10.0003L14.1665 7.00866L12.9915 5.83366Z",fill:"#19303D"}))},G4=oe(rt).attrs({variant:"text"})(ru||(ru=Z([`
623  flex: 0 0 32px;
624  height: 32px;
625
626  display: flex;
627  align-items: center;
628  justify-content: center;
629`]))),ha=function(e){var n=e.type,r=n===void 0?"button":n,a=e.icon,i=e.onClick,o=e.label;return l.createElement(G4,{"aria-label":o,onClick:i,type:r},l.createElement(Qd,{themeColor:"primary"},a))},V4=oe(vs)(au||(au=Z([`
630  flex: 1 1 auto;
631  background-color: transparent;
632  border-color: `,`;
633  {(props) => props.theme.typography.body}
634
635  &:disabled {
636    border-color: transparent;
637    background: transparent;
638    color: `,`;
639  }
640`])),function(t){return t.isEditing?t.theme.inputs.borderColor:"transparent"},function(t){return t.othersEditing?t.theme.colors.disabledText:t.theme.colors.primary}),K4=function(e){var n=e.id,r=e.name,a=e.state,i=e.updateState,o=e.handleEdit,s=pe(),u=s._,c=Z4(n,a),h=kt(null);return Te(function(){var d;c&&((d=h.current)===null||d===void 0||d.focus())},[c]),l.createElement(K,{as:"form",direction:"row",gap:2,alignItems:"center",width:"100%",onSubmit:function(f){f.preventDefault(),c&&o(n,a.newName)},"data-testid":q4(n)},l.createElement(V4,{ref:h,disabled:!c,isEditing:c,othersEditing:a.type!=="viewing"&&a.id!==n,value:c?a.newName:r,onChange:function(f){c&&i(Object.assign(Object.assign({},a),{newName:f.target.value}))},"aria-label":u({id:"passkey.editing.label",message:"Passkey name"})}),(function(){switch(a.type){case"viewing":return l.createElement(l.Fragment,null,l.createElement(ha,{key:"edit",onClick:function(){return i({type:"editing",id:n,newName:r})},icon:l.createElement(H4,null),label:u({id:"button.edit",message:"Edit"})}),l.createElement(ha,{onClick:function(){return i({type:"deleting",id:n})},icon:l.createElement(z4,null),label:u({id:"button.delete",message:"Delete"})}));case"editing":return a.id!==n?null:l.createElement(l.Fragment,null,l.createElement(ha,{key:"submit",type:"submit",icon:l.createElement(U4,null),label:u({id:"button.save",message:"Save"})}),l.createElement(ha,{onClick:function(){return i({type:"viewing"})},icon:l.createElement(W4,null),label:u({id:"button.cancel",message:"Cancel"})}));case"deleting":return null}})())};function Z4(t,e){return e.type==="editing"&&e.id===t}function q4(t){return"editable-row-".concat(t)}var Y4=function(){return l.createElement("svg",{width:"101",height:"101",viewBox:"0 0 101 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M60.6296 95.0741C56.8399 96.0414 52.8689 96.5556 48.7778 96.5556C22.3908 96.5556 1 75.1647 1 48.7778C1 22.3908 22.3908 1 48.7778 1C75.1647 1 96.5556 22.3908 96.5556 48.7778C96.5556 52.8689 96.0414 56.8398 95.0741 60.6296",stroke:"#0C5A56",strokeWidth:"1.78025",strokeLinecap:"round"}),l.createElement("path",{d:"M81 61C78.3736 61 75.7728 61.5173 73.3463 62.5224C70.9198 63.5275 68.715 65.0007 66.8579 66.8579C65.0007 68.715 63.5275 70.9198 62.5224 73.3463C61.5173 75.7728 61 78.3736 61 81C61 83.6264 61.5173 86.2272 62.5224 88.6537C63.5275 91.0802 65.0007 93.285 66.8579 95.1421C68.715 96.9993 70.9198 98.4725 73.3463 99.4776C75.7728 100.483 78.3736 101 81 101C83.6264 101 86.2272 100.483 88.6537 99.4776C91.0802 98.4725 93.285 96.9993 95.1421 95.1421C96.9993 93.285 98.4725 91.0802 99.4776 88.6537C100.483 86.2272 101 83.6264 101 81C101 78.3736 100.483 75.7728 99.4776 73.3463C98.4725 70.9198 96.9993 68.715 95.1421 66.8579C93.285 65.0007 91.0802 63.5275 88.6537 62.5224C86.2272 61.5173 83.6264 61 81 61Z",fill:"#C7F1FF"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M91.9508 71.6043C92.3374 71.8892 92.4199 72.4336 92.135 72.8202L79.9611 89.3419C79.8207 89.5324 79.6088 89.6575 79.3742 89.6883C79.1396 89.7191 78.9026 89.6529 78.7178 89.5051L70.0222 82.5486C69.6472 82.248
6406 69.5864 81.7014 69.8864 81.3264C70.1864 80.9514 70.7336 80.8906 71.1086 81.1906L79.0977 87.5819L90.7349 71.7886C91.0198 71.4019 91.5642 71.3194 91.9508 71.6043Z",fill:"#0C5A56"}),l.createElement("path",{d:"M46.1713 49.1485C50.3301 49.1485 53.7015 45.7771 53.7015 41.6183C53.7015 37.4595 50.3301 34.0881 46.1713 34.0881C42.0125 34.0881 38.6411 37.4595 38.6411 41.6183C38.6411 45.7771 42.0125 49.1485 46.1713 49.1485Z",fill:"#0C5A56"}),l.createElement("path",{d:"M66.2519 49.1485C66.2556 48.0995 65.9775 47.0688 65.4466 46.164C64.9158 45.2593 64.1517 44.5137 63.2341 44.0052C62.3166 43.4967 61.2794 43.244 60.2308 43.2734C59.1822 43.3029 58.1608 43.6134 57.2732 44.1725C56.3857 44.7317 55.6646 45.5189 55.1854 46.4521C54.7061 47.3852 54.4862 48.4299 54.5487 49.477C54.6113 50.5241 54.9539 51.5352 55.5408 52.4047C56.1276 53.2742 56.9373 53.97 57.885 54.4196V63.3722L60.3951 65.8822L64.5786 61.6988L62.0685 59.1887L64.5786 56.6787L62.5036 54.6037C63.6056 54.1784 64.5533 53.4299 65.2222 52.4563C65.8912 51.4828 66.2501 50.3297 66.2519 49.1485ZM60.3951 49.1485C60.0642 49.1485 59.7406 49.0503 59.4654 48.8664C59.1902 48.6826 58.9758 48.4212 58.8491 48.1155C58.7225 47.8097 58.6893 47.4732 58.7539 47.1486C58.8185 46.824 58.9778 46.5259 59.2119 46.2918C59.4459 46.0578 59.744 45.8984 60.0687 45.8339C60.3933 45.7693 60.7297 45.8024 61.0355 45.9291C61.3413 46.0557 61.6026 46.2702 61.7865 46.5454C61.9704 46.8206 62.0685 47.1441 62.0685 47.4751C62.0685 47.9189 61.8922 48.3445 61.5784 48.6583C61.2646 48.9722 60.8389 49.1485 60.3951 49.1485Z",fill:"#0C5A56"}),l.createElement("path",{d:"M52.7645 52.5288C51.4795 51.9558 50.0884 51.6594 48.6815 51.6586H43.6614C40.9985 51.6586 38.4447 52.7164 36.5618 54.5993C34.6789 56.4822 33.6211 59.036 33.6211 61.6989V65.0456H55.375V55.8253C54.2465 54.9584 53.3497 53.8259 52.7645 52.5288Z",fill:"#0C5A56"}))},J4=oe(ae)(iu||(iu=Z([`
641   {
642    font-weight: 700;
643    text-transform: uppercase;
644  }
645`]))),X4=function(){var e,n=pe(),r=n._,a=Fe(),i=p0(),o=J(),s=I(o,2),u=s[0],c=s[1],h=(e=u?.registrations)!==null&&e!==void 0?e:i?.webauthn_registrations,d=J({type:"viewing"}),f=I(d,2),p=f[0],m=f[1],g=ct(),v=ze(),_=I(v,2),b=_[1],C=function(){return be(void 0,void 0,void 0,z().m(function j(){return z().w(function(X){for(;;)switch(X.n){case 0:return X.n=1,u?.update;case 1:b({type:"transition",screen:ne.PasskeyRegistrationStart});case 2:return X.a(2)}},j)}))},A=function(){return be(void 0,void 0,void 0,z().m(function j(){return z().w(function(X){for(;;)switch(X.n){case 0:return X.n=1,u?.update;case 1:g({type:fe.PasskeyDone,data:{}});case 2:return X.a(2)}},j)}))},E=function(j,X){var w=Object.assign({},p);c({registrations:j,update:X}),m({type:"viewing"}),X.catch(function(P){Ye.error(P),zr.error(jf(P).message),m(w)}).then(function(){c(void 0)})},T=function(j){i&&E(i.webauthn_registrations.filter(function(X){return X.webauthn_registration_id!==j}),a.user.deleteWebauthnRegistration(j))},O=function(j,X){i&&E(i.webauthn_registrations.map(function(w){return w.webauthn_registration_id===j?Object.assign(Object.assign({},w),{name:X}):w}),a.webauthn.update({webauthn_registration_id:j,name:X}).then(function(){return a.user.get()}))};return l.createElement(K,{direction:"column",gap:36,marginTop:12,marginLeft:6.5,marginRight:6.5},l.createElement(ae,{size:"header"},r({id:"passkey.registrationSuccess.title",message:"Passkey successfully created!"})),l.createElement(K,{alignSelf:"center"},l.createElement(Y4,null)),h&&h.length>0&&l.createElement(K,{"align-items":"left",direction:"column",width:"100%",gap:8},l.createElement(J4,{size:"body"},r({id:"passkey.registrationSuccess.existingPasskeys",message:"Existing Passkeys"})),h.map(function(L){return l.createElement(K4,{key:L.webauthn_registration_id,id:L.webauthn_registration_id,name:L.name,state:p,updateState:m,handleEdit:O})})),l.createElement(K,{direction:"column",gap:12},p.type==="deleting"?l.createElement(l.Fragment,null,l.createElement(rt,{type:"button",variant:"outlined",onClick:function(){T(p.id)}},r({id:"button.delete",message:"Delete"})),l.createElement(rt,{type:"button",variant:"text",onClick:function(){m({type:"viewing"})}},r({id:"button.cancel",message:"Cancel"}))):l.createElement(l.Fragment,null,l.createElement(rt,{type:"button",disabled:p.type==="editing",onClick:C},r({id:"passkey.registrationSuccess.setupAnother",message:"Set up another Passkey"})),l.createElement(rt,{type:"button",variant:"text",disabled:p.type==="editing",onClick:A},r({id:"button.done",message:"Done"})))),p.type==="deleting"&&l.createElement(Ia,{variant:"error",text:r({id:"passkey.registrationSuccess.deleteWarning",message:"Once deleted, the passkey cannot be restored."})}))},Q4=function(){var e=pe(),n=e._,r=ct();return ds(function(){r({type:fe.AuthenticateFlowComplete,data:{}})}),H(sr,{text:n({id:"passkey.success.content",message:"Your Passkey has been successfully authenticated."})})},e8=function(){return H("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM8 15L3 10L4.41 8.59L8 12.17L15.59 4.58L17 6L8 15Z",fill:"#0F4447"}))},t8=function(){return H("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM11 15H9V13H11V15ZM11 11H9V5H11V11Z",fill:"#590607"}))}
645,m0={display:"flex",gap:"8px",padding:"8px",fontSize:"14px",borderRadius:"4px"},n8=Object.assign(Object.assign({},m0),{background:"#ECFFF5",boxShadow:"0px 5px 10px rgba(15, 68, 71, 0.18)",color:"#0F4447"}),r8=Object.assign(Object.assign({},m0),{background:"#FFEEEC",boxShadow:"0px 5px 10px rgba(89, 6, 7, 0.2)",color:"#590607"}),a8=function(){return l.createElement(k4,{containerStyle:{position:"sticky",marginTop:"4px",marginBottom:"24px"},toastOptions:{success:{style:n8,icon:l.createElement(e8,null)},error:{style:r8,icon:l.createElement(t8,null)}}})},i8=oe.div(ou||(ou=Z([`
646  width: `,`;
647  font-family: `,`;
648  box-sizing: border-box;
649  * {
650    box-sizing: content-box;
651  }
652  background-color: `,`;
653  border: `,`;
654  border-radius: `,`;
655  border-bottom-left-radius: `,`;
656  border-bottom-right-radius: `,`;
657  border-bottom: `,`;
658`])),function(t){var e=t.theme;return e.container.width},function(t){var e=t.theme;return e.typography.fontFamily},function(t){var e=t.theme;return e.container.backgroundColor},function(t){var e=t.theme;return e.container.border},function(t){var e=t.theme;return e.container.borderRadius},function(t){var e=t.theme,n=t.displayWatermark;return n?"0":e.container.borderRadius},function(t){var e=t.theme,n=t.displayWatermark;return n?"0":e.container.borderRadius},function(t){var e=t.theme,n=t.displayWatermark;return n?"none":e.container.border}),o8=oe.div(su||(su=Z([`
659  padding: 24px 32px;
660`]))),s8=oe.div(lu||(lu=Z([`
661  box-sizing: border-box;
662  width: `,`;
663  background-color: `,`;
664  border: `,`;
665  border-top: none;
666  border-bottom-left-radius: `,`;
667  border-bottom-right-radius: `,`;
668  overflow: hidden;
669`])),function(t){var e=t.theme;return e.container.width},function(t){var e=t.theme;return e.container.backgroundColor},function(t){var e=t.theme;return e.container.border},function(t){var e=t.theme;return e.container.borderRadius},function(t){var e=t.theme;return e.container.borderRadius}),l8=oe.div(uu||(uu=Z([`
670  background-color: #fff;
671  display: flex;
672  justify-content: center;
673  align-items: center;
674  opacity: 0.5;
675`]))),u8=oe.img(cu||(cu=Z([`
676  width: 150px;
677`]))),c8="https://public-assets.stytch.com/powered_by_stytch_logo_dark.svg",d8=function(e){var n=e.children,r=e.displayWatermark,a=pe(),i=a._;return l.createElement(l.Fragment,null,l.createElement(i8,{displayWatermark:r},l.createElement(o8,null,n,l.createElement(a8,null))),r&&l.createElement(s8,null,l.createElement(l8,null,l.createElement("a",{style:{height:32,display:"flex",alignItems:"center",padding:"8px 0px",boxSizing:"border-box"},href:"https://stytch.com/",target:"_blank",rel:"noreferrer"},l.createElement(u8,{alt:i({id:"watermark.altText",message:"Powered by Stytch"}),src:c8})))))},h8=function(){return l.createElement("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{opacity:"0.1"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.9999 0C155.229 0 200 44.7715 200 99.9999C200 155.229 155.229 200 99.9999 200C44.7715 200 0 155.229 0 99.9999C0 44.7715 44.7715 0 99.9999 0Z",fill:"url(#paint0_linear_4408_12810)"})),l.createElement("g",{opacity:"0.3"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.9993 17.5723C145.523 17.5723 182.427 54.4762 182.427 99.9993C182.427 145.523 145.523 182.427 99.9993 182.427C54.4762 182.427 17.5723 145.523 17.5723 99.9993C17.5723 54.4762 54.4762 17.5723 99.9993 17.5723Z",fill:"url(#paint1_linear_4408_12810)"})),l.createElement("g",{opacity:"0.7"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M99.9987 32.2305C137.487 32.2305 167.877 62.6203 167.877 100.108C167.877 137.596 137.487 167.986 99.9987 167.986C62.5109 167.986 32.1211 137.596 32.1211 100.108C32.1211 62.6203 62.5109 32.2305 99.9987 32.2305Z",fill:"url(#paint2_linear_4408_12810)"})),l.createElement("path",{d:"M100 45.8334C70.1 45.8334 45.8333 70.1 45.8333 100C45.8333 129.9 70.1 154.167 100 154.167C129.9 154.167 154.167 129.9 154.167 100C154.167 70.1 129.9 45.8334 100 45.8334ZM105.417 127.083H94.5833V116.25H105.417V127.083ZM105.417 105.417H94.5833V72.9167H10
6775.417V105.417Z",fill:"#8B1214"}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_4408_12810",x1:"-87.1375",y1:"160.384",x2:"169.669",y2:"338.297",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"#8B1214"})),l.createElement("linearGradient",{id:"paint1_linear_4408_12810",x1:"-87.138",y1:"160.384",x2:"169.668",y2:"338.297",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#F7F0F0"}),l.createElement("stop",{offset:"1",stopColor:"#8B1214"})),l.createElement("linearGradient",{id:"paint2_linear_4408_12810",x1:"-87.1386",y1:"160.493",x2:"169.668",y2:"338.405",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#8B1214",stopOpacity:"0.01"}),l.createElement("stop",{offset:"1",stopColor:"#E4C7C7"}))))},f8=oe(ae)(du||(du=Z([`
678  text-align: center;
679`]))),Ra=function(e){var n=e.text,r=e.onGoBack,a=pe(),i=a._;return l.createElement(K,{direction:"column",gap:24},r&&l.createElement(Mt,{onClick:r}),l.createElement(K,{direction:"column",gap:24,alignItems:"center"},l.createElement(f8,{size:"header"},i({id:"error.title",message:"Looks like there was an error!"})),l.createElement(h8,null),l.createElement(ae,null,n)))},p8={text:"Verify your identity",details:["View information stored within your account"]},m8={text:"View your personal profile information",details:[]},v8={text:"Maintain access to your data even when you're not actively using the app",details:["Access your data even when you are offline.","Synchronize data and process background tasks on your behalf."]},ws="openid",Fa="profile",Ma="email",Io="phone",g8="full_access",v0="offline_access",g0=new Set([ws,Fa,Ma,Io,g8,v0]),y8=[ws,Ma,Fa],_8=function(e){return e.split(" ").some(function(n){return!g0.has(n)})},b8=function(e){var n=[];return e.includes(ws)&&n.push(p8),(e.includes(Ma)||e.includes(Fa)||e.includes(Io))&&n.push(w8({containsEmail:e.includes(Ma),containsPhoneNumber:e.includes(Io),containsProfile:e.includes(Fa)})),e.includes(v0)&&n.push(v8),n},w8=function(e){var n=e.containsProfile,r=e.containsEmail,a=e.containsPhoneNumber,i=[];return n&&i.push("Your name, profile picture, and language preferences"),r&&i.push("Your email address"),a&&i.push("Your phone number"),{text:m8.text,details:i}},y0=function(e,n){if(!n)return[];var r=[],a=_n(e),i;try{var o=function(){var u=i.value;if(g0.has(u))return 1;var c=n.scopes.find(function(h){return h.scope===u});c&&c.description?r.push(c.description):r.push("Use the ".concat(u," scope"))};for(a.s();!(i=a.n()).done;)o()}catch(s){a.e(s)}finally{a.f()}return r},C8=function(e){var n=e.scopes,r=e.clientName,a=e.rbacPolicy;return[{header:"".concat(r," is requesting to:"),items:b8(n).concat(y0(n,a))}]},E8=function(e){for(var n={client_id:"",redirect_uri:"",response_type:"code",scopes:[].concat(y8)},r=["client_id","redirect_uri"],a=0,i=r;a<i.length;a++){var o=i[a],s=e.get(o);if(!s)return{error:"Required parameter is missing: ".concat(o,". Please reach out to the application developer."),result:n};n[o]=s}for(var u=["response_type","scope","code_challenge","state","nonce","prompt"],c=0,h=u;c<h.length;c++){var d=h[c],f=e.get(d);f&&(d==="scope"?n.scopes=f.split(" ").filter(Boolean):n[d]=f)}return e.has("resource")&&(n.resources=e.getAll("resource")),{error:null,result:n}},k8=function(e){for(var n={client_id:"",post_logout_redirect_uri:""},r=["client_id","post_logout_redirect_uri"],a=0,i=r;a<i.length;a++){var o=i[a],s=e.get(o);if(!s)return{error:"Required parameter is missing: ".concat(o,". Please reach out to the application developer."),result:n};n[o]=s}return n.id_token_hint=e.get("id_token_hint")||void 0,n.state=e.get("state")||void 0,{error:null,result:n}},S8=function(e){var n=new URLSearchParams(e);if(n.has("post_logout_redirect_uri")){var r=k8(n);return{error:r.error,flow:{type:"Logout",params:r.result}}}var a=E8(n);return{error:a.error,flow:{type:"Authorize",params:a.result}}},O8=oe.ul(hu||(hu=Z([`
680  padding: 0;
681`]))),P8=oe.li(fu||(fu=Z([`
682  padding: 4px;
683  box-sizing: border-box;
684  position: relative;
685  list-style: none;
686
687  &:not(:last-child) {
688    border-bottom: 1px solid `,`;
689  }
690`])),function(t){var e=t.theme;return e.colors.secondary}),A8=oe.summary(pu||(pu=Z([`
691  list-style: none;
692  display: flex;
693  justify-content: space-between;
694  cursor: `,`;
695`])),function(t){return t.expandable?"pointer":"default"}),T8=oe.svg(mu||(mu=Z([`
696  width: 32px;
697  height: 32px;
698  margin-left: 10px;
699  margin-top: -5px;
700  vertical-align: top;
701  flex-shrink: 0;
702  transition: transform 0.3s ease;
703  details[open] & {
704    transform: rotate(90deg);
705  }
706`]))),L8=oe.ul(vu||(vu=Z([`
707  padding: 4px 24px;
708  list-style: none;
709`]))),_0=function(){return l.createElement(T8,{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M14.5875 11L13.4125 12.175L17.2291 16L13.4125 19.825L14.5875 21L19.5875 16L14.5875 11Z",fill:"currentColor"}))},I8=function(e){var n=e.item,r,a,i,o;return typeof n=="string"&&(n={text:n}),l.createElement(P8,null,l.createElement("details",null,l.createElement(A8,{expandable:!!(!((r=n.details)===null||r===void 0)&&r.length)},l.createElement(ae,{size:"helper"},"\u2022\xA0",n.text),((a=n.details)===null||a===void 0?void 0:a.length)&&l.createElement(_0,null)),((i=n.details)===null||i===void 0?void 0:i.length)&&l.createElement(L8,null,(o=n.details)===null||o===void 0?void 0:o.map(function(s){return l.createElement("li",{key:s},l.createElement(ae,{size:"helper",color:"secondary"},"\u2022\xA0",s))}))))},D8=oe(ae)(gu||(gu=Z([`
710  font-weight: 600;
711`]))),Bc=function(e){var n=e.section;return l.createElement("div",null,l.createElement(D8,{size:"body"},n.header),l.createElement(O8,null,n.items.map(function(r,a){return l.createElement(I8,{key:a,item:r})})))},R8=function(e){var n=e.manifest,r=e.clientName,a=pe(),i=a._;
711return Ae(n[0])==="object"&&"header"in n[0]?l.createElement("div",null,n.map(function(o,s){return l.createElement(Bc,{key:s,section:o})})):l.createElement(Bc,{section:{header:i({id:"idpConsent.allowClientTo",message:"Allow {clientName} to:",values:{clientName:r}}),items:n}})},F8=oe.details(yu||(yu=Z([`
712  border: `,`;
713  border-radius: `,`;
714  padding: 16px;
715  margin-bottom: 36px;
716`])),function(t){var e=t.theme;return e.container.border},function(t){var e=t.theme;return e.container.borderRadius}),M8=oe.summary(_u||(_u=Z([`
717  list-style: none;
718  display: flex;
719  align-items: center;
720  justify-content: space-between;
721  cursor: pointer;
722
723  details[open] > & {
724    padding-bottom: 8px;
725    margin-bottom: 8px;
726    border-bottom: 1px solid `,`;
727  }
728`])),function(t){var e=t.theme;return e.colors.secondary}),B8=oe.ul(bu||(bu=Z([`
729  padding: 4px;
730  margin: 0;
731  list-style: none;
732`]))),x8=function(e){var n=e.clientName,r=e.ungrantableScopeDescriptions,a=pe(),i=a._;return r.length?l.createElement(F8,null,l.createElement(M8,null,l.createElement(ae,{size:"helper"},i({id:"idpConsent.noPermissionsToGrant",message:"You do not have permissions to grant {clientName} access to some of the requested scopes.",values:{clientName:n}})),l.createElement(_0,null)),l.createElement(ae,{size:"helper",color:"secondary"},i({id:"idpConsent.cannotGrantRequest",message:"You cannot grant {clientName}'s request to:",values:{clientName:n}})),l.createElement(B8,null,r.map(function(o,s){return l.createElement("li",{key:s},l.createElement(ae,{size:"helper",color:"secondary"},"\u2022\xA0",o))}))):null},b0=Rn(void 0),w0=Rn(void 0),$8=function(e){var n=e.children,r=e.consentManifestGenerator,a=e.authTokenParams;return l.createElement(b0.Provider,{value:r},l.createElement(w0.Provider,{value:a},n))},j8=function(){return Wt(b0)},N8=function(){return Wt(w0)},U8=oe.img(wu||(wu=Z([`
733  max-height: 50px;
734  max-width: 100px;
735`]))),H8=function(e,n){return{loading:!e,preflight:!!e,error:e,success:!1,denied:!1,consent_required:!1,client:null,grantable_scope:"",ungrantable_scope:"",redirect_uri:n.redirect_uri}},z8=function(e,n){switch(n.type){case"START_SUBMIT":return Object.assign(Object.assign({},e),{loading:!0});case"COMPLETE_SUBMIT":return Object.assign(Object.assign({},e),{loading:!1,success:!0});case"START_PREFLIGHT":return Object.assign(Object.assign({},e),{preflight:!0,loading:!0});case"PREFLIGHT_ERROR":return Object.assign(Object.assign({},e),{preflight:!0,loading:!1,error:n.error});case"COMPLETE_PREFLIGHT":return Object.assign(Object.assign({},e),{loading:!1,client:n.client,consent_required:n.consent_required,grantable_scope:n.grantable_scope,ungrantable_scope:n.ungrantable_scope});case"CONSENT_DENIED":return Object.assign(Object.assign({},e),{denied:!0});default:return e}},W8=function(e){var n=e.initialError,r=e.initialParams,a=e.oauthAuthorizeStart,i=e.oauthAuthorizeSubmit,o=e.onError,s=e.onEvent,u=Br(z8,H8(n,r)),c=I(u,2),h=c[0],d=c[1];Te(function(){n&&o(new Hc(n))},[n,o]);var f=dt(function(g){var v=g.consent_required,_=g.consent_granted;return be(void 0,void 0,void 0,z().m(function b(){var C;return z().w(function(A){for(;;)switch(A.n){case 0:return d({type:"START_SUBMIT"}),A.n=1,i(Object.assign(Object.assign({},r),{consent_granted:_}));case 1:C=A.v,C.authorization_code&&d({type:"COMPLETE_SUBMIT"}),window.location.href=C.redirect_uri,v&&!_?(d({type:"CONSENT_DENIED"}),s({type:fe.OAuthAuthorizeFlowConsentDenied,data:{}})):s({type:fe.OAuthAuthorizeFlowComplete,data:{}});case 2:return A.a(2)}},b)}))},[i,r,s]),p=dt(function(g){var v=g.consent_granted;return f({consent_granted:v,consent_required:!0})},[f]),m=dt(function(){return be(void 0,void 0,void 0,z().m(function g(){var v,_,b,C,A,E;return z().w(function(T){for(;;)switch(T.p=T.n){case 0:return d({type:"START_PREFLIGHT"}),s({type:fe.OAuthAuthorizeFlowStart,data:{client_id:r.client_id,redirect_uri:r.redirect_uri,scope:r.scopes.join(" ")}}),T.p=1,T.n=2,a(r);case 2:v=T.v,T.n=4;break;case 3:return T.p=3,E=T.v,_=Fr.from(E),b=_.error_message,d({type:"PREFLIGHT_ERROR",error:b}),o(_),T.a(2);case 4:if(!v.consent_required){T.n=5;break}return C=v.scope_results.filter(function(O){return O.is_grantable}).map(function(O){return O.scope}).join(" "),A=v.scope_results.filter(function(O){return!O.is_grantable}).map(function(O){return O.scope}).join(" "),d({type:"COMPLETE_PREFLIGHT",consent_required:v.consent_required,
735client:v.client,grantable_scope:C,ungrantable_scope:A}),T.a(2);case 5:return T.n=6,f({consent_required:!1,consent_granted:!1});case 6:return T.a(2)}},g,null,[[1,3]])}))},[s,r,a,o,f]);return Te(function(){h.preflight||m()},[m,h.preflight]),{state:h,submit:p}},G8=function(e){var n=e.bootstrap,r=e.bootstrapNotLoaded,a=e.state,i=e.submit,o,s=pe(),u=s._,c=a.loading,h=a.error,d=a.denied,f=a.success,p=a.client,m=j8(),g=at(function(){var b,C,A=(C=(b=a.client)===null||b===void 0?void 0:b.client_name)!==null&&C!==void 0?C:"";if(!A)try{var E=new URL(a.redirect_uri);A=E.hostname}catch(T){Ye.warn("Unable to parse host from redirect URI.",T),A=u({id:"idpConsent.defaultClientName",message:"The App"})}return A},[(o=a.client)===null||o===void 0?void 0:o.client_name,a.redirect_uri,u]),v=at(function(){if(m)try{return m({scopes:a.grantable_scope.split(" "),clientName:g})}catch(b){Ye.error("Error rendering custom consent screen. Falling back to default consent screen.",b)}return C8({scopes:a.grantable_scope.split(" "),rbacPolicy:n.rbacPolicy,clientName:g})},[m,a.grantable_scope,g,n.rbacPolicy]),_=at(function(){return a.ungrantable_scope===""?[]:y0(a.ungrantable_scope.split(" "),n.rbacPolicy)},[a.ungrantable_scope,n.rbacPolicy]);return c||r?l.createElement(ui,null):h?l.createElement(Ra,{text:h}):d?l.createElement(Ra,{text:u({id:"idpConsent.denied",message:"Access to the application was denied."})}):f?l.createElement(sr,null):l.createElement(V8,{client:p,submit:i,grantableScope:a.grantable_scope,projectName:n.projectName},l.createElement(x8,{ungrantableScopeDescriptions:_,clientName:g}),l.createElement(R8,{manifest:v,clientName:g}))},V8=function(e){var n=e.client,r=e.submit,a=e.grantableScope,i=e.projectName,o=e.children,s=pe(),u=s._,c=Qa(),h=c.logo,d=n.client_name,f=_8(a)?u({i
735d:"idpConsent.customScopes.title",message:"{clientName} wants to access your {projectName} account",values:{clientName:d,projectName:i}}):u({id:"idpConsent.signIn.title",message:"Sign in to {clientName} with {projectName}",values:{clientName:d,projectName:i}});return l.createElement(K,{direction:"column",gap:24},h.logoImageUrl&&l.createElement(K,{justifyContent:"center"},l.createElement(U8,{src:h.logoImageUrl})),l.createElement(ae,{size:"header",align:"center"},f),l.createElement("div",null,o),l.createElement("div",null,l.createElement(rt,{type:"button",onClick:function(){return r({consent_granted:!0})}},u({id:"idpConsent.button.allow",message:"Allow"})),l.createElement(rt,{type:"button",onClick:function(){return r({consent_granted:!1})},variant:"text"},u({id:"idpConsent.button.deny",message:"Deny"}))))},K8=function(e){return{loading:!e,preflight:!!e,error:e,denied:!1,consent_required:!1,redirect_uri:""}},Z8=function(e,n){switch(n.type){case"START_PREFLIGHT":return Object.assign(Object.assign({},e),{preflight:!0,loading:!0});case"PREFLIGHT_ERROR":return Object.assign(Object.assign({},e),{preflight:!0,loading:!1,error:n.error});case"COMPLETE_PREFLIGHT":return Object.assign(Object.assign({},e),{loading:!1,consent_required:n.consent_required,redirect_uri:n.redirect_uri});case"CONSENT_DENIED":return Object.assign(Object.assign({},e),{denied:!0});default:return e}},q8=function(e){var n=e.initialError,r=e.initialParams,a=e.oauthLogoutStart,i=e.revokeSession,o=e.onError,s=Br(Z8,K8(n)),u=I(s,2),c=u[0],h=u[1];Te(function(){n&&o(new Hc(n))},[n,o]);var d=dt(function(m){return be(void 0,void 0,void 0,z().m(function g(){var v;return z().w(function(_){for(;;)switch(_.p=_.n){case 0:return _.p=0,_.n=1,i();case 1:_.n=3;break;case 2:_.p=2,v=_.v;case 3:window.location.href=m;case 4:return _.a(2)}},g,null,[[0,2]])}))},[i]),f=dt(function(){return be(void 0,void 0,void 0,z().m(function m(){var g,v,_,b;return z().w(function(C){for(;;)switch(C.p=C.n){case 0:return h({type:"START_PREFLIGHT"}),C.p=1,C.n=2,a(r);case 2:g=C.v,C.n=4;break;case 3:return C.p=3,b=C.v,v=Fr.from(b),_=v.error_message,h({type:"PREFLIGHT_ERROR",error:_}),o(v),C.a(2);case 4:if(!g.consent_required){C.n=5;break}return h({type:"COMPLETE_PREFLIGHT",consent_required:g.consent_required,redirect_uri:g.redirect_uri}),C.a(2);case 5:d(g.redirect_uri);case 6:return C.a(2)}},m,null,[[1,3]])}))},[r,a,o,d]);Te(function(){c.preflight||f()},[f,c.preflight]);var p=dt(function(m){var g=m.consent_granted;return be(void 0,void 0,void 0,z().m(function v(){return z().w(function(_){for(;;)switch(_.n){case 0:if(!g){_.n=1;break}return _.a(2,d(c.redirect_uri));case 1:h({type:"CONSENT_DENIED"});case 2:return _.a(2)}},v)}))},[d,c]);return{state:c,submit:p}},Y8=function(e){var n=e.state,r=e.submit,a=e.bootstrap,i=e.bootstrapNotLoaded,o=pe(),s=o._,u=n.loading,c=n.error,h=n.denied;if(u||i)return l.createElement(ui,null);if(c)return l.createElement(Ra,{text:c});if(h)return l.createElement(sr,{text:s({id:"idpLogout.notLoggedOut",message:"You have not been logged out. You may close this page."})});var d=a.projectName;return l.createElement(K,{direction:"column",gap:24},l.createElement(ae,{size:"header",align:"center"},s({id:"idpLogout.title",message:"Log out?"})),l.createElement("div",null,s({id:"idpLogout.confirmMessage",message:"Are you sure you want to log out of your {projectName} account?",values:{projectName:d}})),l.createElement("div",null,l.createElement(rt,{type:"button",onClick:function(){return r({consent_granted:!0})}},s({id:"idpLogout.yes",message:"Yes"})),l.createElement(rt,{type:"button",onClick:function(){return r({consent_granted:!1})},variant:"text"},s({id:"idpLogout.no",message:"No"}))))},J8=function(e){var n=e.initialError,r=e.initialParams,a=Fe(),i=ht(),o=ct(),s=a.idp,u=s.oauthAuthorizeStart,c=s.oauthAuthorizeSubmit,h=ys(),d=h.bootstrap,f=h.fromCache,p=W8({initialError:n,initialParams:r,oauthAuthorizeStart:u,oauthAuthorizeSubmit:c,onError:i,onEvent:o});return l.createElement(G8,Object.assign({bootstrap:d,bootstrapNotLoaded:f},p))},X8=function(e){var n=e.initialError,r=e.initialParams,a=Fe(),i=ht(),o=a.idp.oauthLogoutStart,s=function(){return a.session.revoke({forceClear:!0})},u=ys(),c=u.bootstrap,h=u.fromCache,d=q8({initialError:n,initialParams:r,oauthLogoutStart:o,revokeSession:s,onError:i});return l.createElement(Y8,Object.assign({},d,{bootstrap:c,bootstrapNotLoaded:h}))}
735,Q8=function(){var e=J(S8(window.location.search)),n=I(e,1),r=n[0],a=r.flow,i=r.error;switch(a.type){case"Authorize":return l.createElement(e9,null,l.createElement(J8,{initialError:i,initialParams:a.params}));case"Logout":return l.createElement(X8,{initialError:i,initialParams:a.params})}},e9=function(e){var n=e.children,r=pe(),a=r._,i=p0(),o=ht(),s=kt(o);Te(function(){s.current=o},[o]);var u=Fe(),c=N8(),h=J(!1),d=I(h,2),f=d[0],p=d[1],m=J(!1),g=I(m,2),v=g[0],_=g[1];return Te(function(){if(!(f||v)){var b=function(A){return be(void 0,void 0,void 0,z().m(function E(){var T,O,L;return z().w(function(j){for(;;)switch(j.p=j.n){case 0:if(!(A?.trustedAuthToken&&A?.tokenProfileID)){j.n=5;break}if(p(!0),T=A.trustedAuthToken,O=A.tokenProfileID,!u.user.getSync()){j.n=1;break}return j.n=1,u.session.revoke({forceClear:!0});case 1:return j.p=1,j.n=2,u.session.attest({token:T,profile_id:O,session_duration_minutes:60});case 2:j.n=4;break;case 3:j.p=3,L=j.v,s.current(L);case 4:return j.p=4,p(!1),_(!0),j.f(4);case 5:_(!0);case 6:return j.a(2)}},E,null,[[1,3,4,5]])}))};b(c)}},[c,f,v,u]),Te(function(){i||s.current(new Uc)},[i]),f?l.createElement(ui,null):i?n:l.createElement(Ra,{text:a({id:"idpConsent.noActiveSession",message:"No active session detected. Please log in to continue."})})},ci=function(){var e,n=ze(),r=I(n,1),a=r[0],i=Qa(),o=i.displayWatermark,s=Od(),u=a.screen,c=(e={},V(V(V(V(V(V(V(V(V(V(e,ne.Main,l.createElement(ng,null)),ne.PasskeyRegistrationStart,l.createElement(N4,null)),ne.PasskeyRegistrationSuccess,l.createElement(X4,null)),ne.PasskeyConfirmation,l.createElement(Q4,null)),ne.PasswordResetForm,l.createElement(F4,null)),ne.PasswordCreateOrLogin,l.createElement(O7,null)),ne.PasswordForgot,l.createElement(O4,null)),ne.PasswordBreached,l.createElement(A4,null)),ne.PasswordSetNew,l.createElement(L4,null)),ne.PasswordDedupe,l.createElement(D4,null)),V(V(V(V(V(V(V(V(V(V(e,ne.PasswordConfirmation,l.createElement(M4,null)),ne.EmailConfirmation,l.createElement(Cd,null)),ne.OTPAuthenticate,l.createElement(n0,null)),ne.OTPConfirmation,l.createElement(_5,null)),ne.CryptoConnect,l.createElement(A7,null)),ne.CryptoSignMessage,l.createElement(L7,null)),ne.CryptoOtherScreen,l.createElement(D7,null)),ne.CryptoSetupWallet,l.createElement(I7,null)),ne.CryptoError,l.createElement(F7,null)),ne.CryptoConfirmation,l.createElement(R7,null)),V(e,ne.IDPConsent,l.createElement(Q8,null)));return s?l.createElement(Ad,{position:xt.floating}):l.createElement(d8,{displayWatermark:o},c[u])},Ba={exports:{}};Ba.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",a=800,i=16,o=9007199254740991,s="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",_="[object Null]",b="[object Object]",C="[object Proxy]",A="[object RegExp]",E="[object Set]",T="[object String]",O="[object Undefined]",L="[object WeakMap]",j="[object ArrayBuffer]",X="[object DataView]",w="[object Float32Array]",P="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",B="[object Int32Array]",N="[object Uint8Array]",U="[object Uint8ClampedArray]",Q="[object Uint16Array]",q="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,_e=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,x={};x[w]=x[P]=x[R]=x[M]=x[B]=x[N]=x[U]=x[Q]=x[q]=!0,x[s]=x[u]=x[j]=x[h]=x[X]=x[d]=x[f]=x[p]=x[g]=x[v]=x[b]=x[A]=x[E]=x[T]=x[L]=!1;var W=Ae(Ln)=="object"&&Ln&&Ln.Object===Object&&Ln,G=(typeof self>"u"?"undefined":Ae(self))=="object"&&self&&self.Object===Object&&self,S=W||G||Function("return this")(),se=e&&!e.nodeType&&e,$=se&&!0&&t&&!t.nodeType&&t,de=$&&$.exports===se,me=de&&W.process,ge=(function(){try{var y=$&&$.require&&$.require("util").types;return y||me&&me.binding&&me.binding("util")}catch{}})(),ee=ge&&ge.isTypedArray;function Le(y,k,D){switch(D.length){case 0:return y.call(k);case 1:return y.call(k,D[0]);case 2:return y.call(k,D[0],D[1]);case 3:return y.call(k,D[0],D[1],D[2])}return y.apply(k,D)}function we(y,k){for(var D=-1,le=Array(y);++D<y;)le[D]=k(D);return le}function he(y){return function(k){return y(k)}}function $e(y,k){return y?.[k]}
vendor: 7,896 bytes, line 735
735function Oe(y,k){return function(D){return y(k(D))}}var We=Array.prototype,ft=Function.prototype,Pe=Object.prototype,St=S["__core-js_shared__"],gt=ft.toString,Ke=Pe.hasOwnProperty,ve=(function(){var y=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""})(),Ue=Pe.toString,Gt=gt.call(Object),Vt=RegExp("^"+gt.call(Ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=de?S.Buffer:void 0,Bt=S.Symbol,wt=S.Uint8Array;ut&&ut.allocUnsafe;var Kt=Oe(Object.getPrototypeOf,Object),Et=Object.create,ur=Pe.propertyIsEnumerable,pt=We.splice,Re=Bt?Bt.toStringTag:void 0,Ct=(function(){try{var y=_i(Object,"defineProperty");return y({},"",{}),y}catch{}})(),Pt=ut?ut.isBuffer:void 0,Jt=Math.max,cr=Date.now,dr=_i(S,"Map"),hr=_i(Object,"create"),L0=(function(){function y(){}return function(k){if(!On(k))return{};if(Et)return Et(k);y.prototype=k;var D=new y;return y.prototype=void 0,D}})();function Sn(y){var k=-1,D=y==null?0:y.length;for(this.clear();++k<D;){var le=y[k];this.set(le[0],le[1])}}function I0(){this.__data__=hr?hr(null):{},this.size=0}function D0(y){var k=this.has(y)&&delete this.__data__[y];return this.size-=k?1:0,k}function R0(y){var k=this.__data__;if(hr){var D=k[y];return D===r?void 0:D}return Ke.call(k,y)?k[y]:void 0}function F0(y){var k=this.__data__;return hr?k[y]!==void 0:Ke.call(k,y)}function M0(y,k){var D=this.__data__;return this.size+=this.has(y)?0:1,D[y]=hr&&k===void 0?r:k,this}Sn.prototype.clear=I0,Sn.prototype.delete=D0,Sn.prototype.get=R0,Sn.prototype.has=F0,Sn.prototype.set=M0;function Xt(y){var k=-1,D=y==null?0:y.length;for(this.clear();++k<D;){var le=y[k];this.set(le[0],le[1])}}function B0(){this.__data__=[],this.size=0}function x0(y){var k=this.__data__,D=Wr(k,y);if(D<0)return!1;var le=k.length-1;return D==le?k.pop():pt.call(k,D,1),--this.size,!0}function $0(y){var k=this.__data__,D=Wr(k,y);return D<0?void 0:k[D][1]}function j0(y){return Wr(this.__data__,y)>-1}function N0(y,k){var D=this.__data__,le=Wr(D,y);return le<0?(++this.size,D.push([y,k])):D[le][1]=k,this}Xt.prototype.clear=B0,Xt.prototype.delete=x0,Xt.prototype.get=$0,Xt.prototype.has=j0,Xt.prototype.set=N0;function Hn(y){var k=-1,D=y==null?0:y.length;for(this.clear();++k<D;){var le=y[k];this.set(le[0],le[1])}}function U0(){this.size=0,this.__data__={hash:new Sn,map:new(dr||Xt),string:new Sn}}function H0(y){var k=Vr(this,y).delete(y);return this.size-=k?1:0,k}function z0(y){return Vr(this,y).get(y)}function W0(y){return Vr(this,y).has(y)}function G0(y,k){var D=Vr(this,y),le=D.size;return D.set(y,k),this.size+=D.size==le?0:1,this}Hn.prototype.clear=U0,Hn.prototype.delete=H0,Hn.prototype.get=z0,Hn.prototype.has=W0,Hn.prototype.set=G0;function zn(y){var k=this.__data__=new Xt(y);this.size=k.size}function V0(){this.__data__=new Xt,this.size=0}function K0(y){var k=this.__data__,D=k.delete(y);return this.size=k.size,D}function Z0(y){return this.__data__.get(y)}function q0(y){return this.__data__.has(y)}function Y0(y,k){var D=this.__data__;if(D instanceof Xt){var le=D.__data__;if(!dr||le.length<n-1)return le.push([y,k]),this.size=++D.size,this;D=this.__data__=new Hn(le)}return D.set(y,k),this.size=D.size,this}zn.prototype.clear=V0,zn.prototype.delete=K0,zn.prototype.get=Z0,zn.prototype.has=q0,zn.prototype.set=Y0;function J0(y,k){var D=Ci(y),le=!D&&wi(y),De=!D&&!le&&Is(y),Ge=!D&&!le&&!De&&Rs(y),Xe=D||le||De||Ge,Me=Xe?we(y.length,String):[],Qe=Me.length;for(var Ut in y)Xe&&(Ut=="length"||De&&(Ut=="offset"||Ut=="parent")||Ge&&(Ut=="buffer"||Ut=="byteLength"||Ut=="byteOffset")||Ts(Ut,Qe))||Me.push(Ut);return Me}function gi(y,k,D){(D!==void 0&&!Kr(y[k],D)||D===void 0&&!(k in y))&&yi(y,k,D)}function X0(y,k,D){var le=y[k];(!(Ke.call(y,k)&&Kr(le,D))||D===void 0&&!(k in y))&&yi(y,k,D)}function Wr(y,k){for(var D=y.length;D--;)if(Kr(y[D][0],k))return D;return-1}function yi(y,k,D){k=="__proto__"&&Ct?Ct(y,k,{configurable:!0,enumerable:!0,value:D,writable:!0}):y[k]=D}var Q0=hh();function Gr(y){return y==null?y===void 0?O:_:Re&&Re in Object(y)?fh(y):_h(y)}function Ps(y){return fr(y)&&Gr(y)==s}function eh(y){if(!On(y)||gh(y))return!1;var k=ki(y)?Vt:_e;return k.test(Eh(y))}function th(y){return fr(y)&&Ds(y.length)&&!!x[Gr(y)]}function nh(y){if(!On(y))return yh(y);var k=Ls(y),D=[];for(var le in y)le=="constructor"&&(k||!Ke.call(y,le))||D.push(le);return D}function As(y,k,D,le,De){y!==k&&Q0(k,function(Ge,Xe){if(De||(De=new zn),On(Ge))rh(y,k,Xe,D,As,le,De);else{var Me=le?le(bi(y,Xe),Ge,Xe+"",y,k,De):void 0;Me===void 0&&(Me=Ge),gi(y,Xe,Me)}},Fs)}function rh(y,k,D,le,De,Ge,Xe){var Me=bi(y,D),Qe=bi(k,D),Ut=Xe.get(Qe);if(Ut){gi(y,D,Ut);return}var At=Ge?Ge(Me,Qe,D+"",y,k,Xe):void 0,pr=At===void 0;if(pr){var Si=Ci(Qe),Oi=!Si&&Is(Qe),Bs=!Si&&!Oi&&Rs(Qe);At=Qe,Si||Oi||Bs?Ci(Me)?At=Me:kh(Me)?At=uh(Me):Oi?(pr=!1,At=oh(Qe)):Bs?(pr=!1,At=lh(Qe)):At=[]:Sh(Qe)||wi(Qe)?(At=Me,wi(Me)?At=Oh(Me):(!On(Me)||ki(Me))&&(At=ph(Qe))):pr=!1}pr&&(Xe.set(Qe,At),De(At,Qe,le,Ge,Xe),Xe.delete(Qe)),gi(y,D,At)}function ah(y,k){return wh(bh(y,k,Ms),y+"")}var ih=Ct?function(y,k){return Ct(y,"toString",{configurable:!0,enumerable:!1,value:Ah(k),writable:!0})}:Ms;function oh(y,k){return y.slice()}function sh(y){var k=new y.constructor(y.byteLength);return new wt(k).set(new wt(y)),k}function lh(y,k){var D=sh(y.buffer);return new y.constructor(D,y.byteOffset,y.length)}function uh(y,k){var D=-1,le=y.length;for(k||(k=Array(le));++D<le;)k[D]=y[D];return k}function ch(y,k,D,le){var De=!D;D||(D={});for(var Ge=-1,Xe=k.length;++Ge<Xe;){var Me=k[Ge],Qe=void 0;Qe===void 0&&(Qe=y[Me]),De?yi(D,Me,Qe):X0(D,Me,Qe)}return D}function dh(y){return ah(function(k,D){var le=-1,De=D.length,Ge=De>1?D[De-1]:void 0,Xe=De>2?D[2]:void 0;for(Ge=y.length>3&&typeof Ge=="function"?(De--,Ge):void 0,Xe&&mh(D[0],D[1],Xe)&&(Ge=De<3?void 0:Ge,De=1),k=Object(k);++le<De;){var Me=D[le];Me&&y(k,Me,le,Ge)}return k})}function hh(y){return function(k,D,le){for(var De=-1,Ge=Object(k),Xe=le(k),Me=Xe.length;Me--;){var Qe=Xe[++De];if(D(Ge[Qe],Qe,Ge)===!1)break}return k}}function Vr(y,k){var D=y.__data__;return vh(k)?D[typeof k=="string"?"string":"hash"]:D.map}function _i(y,k){var D=$e(y,k);return eh(D)?D:void 0}function fh(y){var k=Ke.call(y,Re),D=y[Re];try{y[Re]=void 0;var le=!0}catch{}var De=Ue.call(y);return le&&(k?y[Re]=D:delete y[Re]),De}function ph(y){return typeof y.constructor=="function"&&!Ls(y)?L0(Kt(y)):{}}function Ts(y,k){var D=Ae(y);return k=k??o,!!k&&(D=="number"||D!="symbol"&&Y.test(y))&&y>-1&&y%1==0&&y<k}function mh(y,k,D){if(!On(D))return!1;var le=Ae(k);return(le=="number"?Ei(D)&&Ts(k,D.length):le=="string"&&k in D)?Kr(D[k],y):!1}function vh(y){var k=Ae(y);return k=="string"||k=="number"||k=="symbol"||k=="boolean"?y!=="__proto__":y===null}function gh(y){return!!ve&&ve in y}function Ls(y){var k=y&&y.constructor,D=typeof k=="function"&&k.prototype||Pe;return y===D}function yh(y){var k=[];if(y!=null)for(var D in Object(y))k.push(D);return k}function _h(y){return Ue.call(y)}function bh(y,k,D){return k=Jt(k===void 0?y.length-1:k,0),function(){for(var le=arguments,De=-1,Ge=Jt(le.length-k,0),Xe=Array(Ge);++De<Ge;)Xe[De]=le[k+De];De=-1;for(var Me=Array(k+1);++De<k;)Me[De]=le[De];return Me[k]=D(Xe),Le(y,this,Me)}}function bi(y,k){if(!(k==="constructor"&&typeof y[k]=="function")&&k!="__proto__")return y[k]}var wh=Ch(ih);function Ch(y){var k=0,D=0;return function(){var le=cr(),De=i-(le-D);if(D=le,De>0){if(++k>=a)return arguments[0]}else k=0;return y.apply(void 0,arguments)}}function Eh(y){if(y!=null){try{return gt.call(y)}catch{}try{return y+""}catch{}}return""}function Kr(y,k){return y===k||y!==y&&k!==k}var wi=Ps((function(){return arguments})())?Ps:function(y){return fr(y)&&Ke.call(y,"callee")&&!ur.call(y,"callee")},Ci=Array.isArray;function Ei(y){return y!=null&&Ds(y.length)&&!ki(y)}function kh(y){return fr(y)&&Ei(y)}var Is=Pt||Th;function ki(y){if(!On(y))return!1;var k=Gr(y);return k==p||k==m||k==c||k==C}
735function Ds(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function On(y){var k=Ae(y);return y!=null&&(k=="object"||k=="function")}function fr(y){return y!=null&&Ae(y)=="object"}function Sh(y){if(!fr(y)||Gr(y)!=b)return!1;var k=Kt(y);if(k===null)return!0;var D=Ke.call(k,"constructor")&&k.constructor;return typeof D=="function"&&D instanceof D&&gt.call(D)==Gt}var Rs=ee?he(ee):th;function Oh(y){return ch(y,Fs(y))}function Fs(y){return Ei(y)?J0(y):nh(y)}var Ph=dh(function(y,k,D){As(y,k,D)});function Ah(y){return function(){return y}}function Ms(y){return y}function Th(){return!1}t.exports=Ph})(Ba,Ba.exports);var t9=Ba.exports,n9=Yo(t9),xc="#8296A1",r9=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r,a,i,o,s,u=n9({},o5,e),c=u.fontFamily,h=u.colors,d=u.container,f=u.buttons,p=u.inputs;return{typography:{fontFamily:c,header:{fontFamily:c,fontSize:24,fontWeight:600,lineHeight:"30px"},body:{fontFamily:c,fontSize:16,fontWeight:"normal",lineHeight:"21px"},helper:{fontFamily:c,fontSize:14,fontWeight:"400",lineHeight:"20px",whiteSpace:"pre-wrap"}},colors:{primary:h.primary,secondary:h.secondary,success:h.success,warning:h.warning,error:h.error,accent:h.accent,disabled:"#F3F5F6",disabledText:xc},container:{width:d.width,border:"1px solid ".concat(d.borderColor),borderRadius:d.borderRadius,backgroundColor:d.backgroundColor},buttons:{primary:{backgroundColor:f.primary.backgroundColor,textColor:f.primary.textColor,border:"1px solid ".concat(f.primary.borderColor),borderRadius:f.primary.borderRadius},secondary:{backgroundColor:f.secondary.backgroundColor,textColor:f.secondary.textColor,border:"1px solid ".concat(f.secondary.borderColor),borderRadius:f.secondary.borderRadius},disabled:{textColor:f.disabled.textColor,backgroundColor:f.disabled.backgroundColor,border:"1px solid ".concat(f.disabled.borderColor),borderRadius:f.disabled.borderRadius}},inputs:{backgroundColor:(r=p?.backgroundColor)!==null&&r!==void 0?r:"transparent",textColor:(a=p?.textColor)!==null&&a!==void 0?a:h.primary,borderColor:(i=p?.borderColor)!==null&&i!==void 0?i:h.primary,borderRadius:(o=p?.borderRadius)!==null&&o!==void 0?o:"4px",placeholderColor:(s=p?.placeholderColor)!==null&&s!==void 0?s:xc},displayHeader:!u.hideHeaderText,displayWatermark:n,logo:{logoImageUrl:u.logo.logoImageUrl}}},di=function(e){var n=e.styles,r=e.displayWatermark;return at(function(){return r9(n,r)},[n,r])},a9=function(e){var n=e.client,r=e.config,a=e.styles,i=e.callbacks,o=e.strings,s=J(function(){var f=Je(n).bootstrap.getSync(),p=f.displayWatermark;return p}),u=I(s,2),c=u[0],h=u[1];Te(function(){Je(n).bootstrap.getAsync().then(function(f){Je(n).networkClient.logEvent({name:"render_login_screen",details:{options:r,bootstrap:f}}),h(f.displayWatermark)})},[n]);var d=di({styles:a,displayWatermark:c});return l.createElement(ai,{client:n,config:r,callbacks:i},l.createElement(Xa,{theme:d},l.createElement(ni,{messages:ei,overrides:o},l.createElement(ci,null))))},i9=function(e){var n=e.client,r=e.config,a=e.styles,i=e.callbacks,o=e.strings,s=e.passwordResetToken,u=J(function(){var m=Je(n).bootstrap.getSync(),g=m.displayWatermark;return g}),c=I(u,2),h=c[0],d=c[1],f=Object.assign(Object.assign({},Mn),{screen:ne.PasswordResetForm,formState:Object.assign(Object.assign({},Mn.formState),{resetPasswordState:{token:s}})});Te(function(){Je(n).bootstrap.getAsync().then(function(m){var g=m.displayWatermark;d(g)})},[n]);var p=di({styles:a,displayWatermark:h});return l.createElement(ai,{client:n,config:r,callbacks:i,initialState:f},l.createElement(Xa,{theme:p},l.createElement(ni,{messages:ei,overrides:o},l.createElement(ci,null))))},o9=function(e){var n=e.client,r=e.config,a=e.styles,i=e.callbacks,o=e.strings,s=J(function(){var p=Je(n).bootstrap.getSync(),m=p.displayWatermark;return m}),u=I(s,2),c=u[0],h=u[1],d=Object.assign(Object.assign({},Mn),{screen:ne.PasskeyRegistrationStart,formState:Object.assign({},Mn.formState)});Te(function(){Je(n).bootstrap.getAsync().then(function(p){var m=p.displayWatermark;h(m)})},[n]);var f=di({styles:a,displayWatermark:c});return l.createElement(ai,{client:n,config:r,callbacks:i,initialState:d},l.createElement(Xa,{theme:f}
735,l.createElement(ni,{messages:ei,overrides:o},l.createElement(ci,null))))},s9=function(e){var n=e.client,r=e.styles,a=e.callbacks,i=e.strings,o=e.getIDPConsentManifest,s=e.authTokenParams,u=Object.assign(Object.assign({},Mn),{screen:ne.IDPConsent}),c=di({styles:r,displayWatermark:!1});return Te(function(){Je(n).bootstrap.getAsync().then(function(h){Je(n).networkClient.logEvent({name:"render_idp_screen",details:{bootstrap:h}})})},[n]),l.createElement(ai,{client:n,config:_d,callbacks:a,initialState:u},l.createElement($8,{consentManifestGenerator:o,authTokenParams:s},l.createElement(Xa,{theme:c},l.createElement(ni,{messages:ei,overrides:i},l.createElement(ci,null)))))},C0="stytch-ui",E0="stytch-reset-password",k0="stytch-passkey-registration",S0="stytch-identity-provider",l9=ri(a9,C0),u9=ri(i9,E0),c9=ri(o9,k0),d9=ri(s9,S0),O0=(function(t){function e(){st(this,e),Zc("StytchUIClient");for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return hn(this,e,[].concat(r))}return fn(e,t),lt(e,[{key:"mountLogin",value:function(r){var a=r.elementId,i=r.config,o=r.styles,s=r.callbacks,u=r.strings,c,h=document.querySelector(a);if(!h)throw new Error("The selector you specified (".concat(a,") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountLogin()."));if(((c=h.firstChild)===null||c===void 0?void 0:c.nodeName.toLowerCase())===C0.toLowerCase()){var d=h.firstChild;d.render({client:this,config:i,callbacks:s,styles:o,strings:u});return}var f=l9({client:this,config:i,callbacks:s,styles:o,strings:u});h.appendChild(f)}},{key:"mountResetPassword",value:function(r){var a=r.elementId,i=r.config,o=r.styles,s=r.callbacks,u=r.strings,c=r.passwordResetToken,h,d=document.querySelector(a);if(!d)throw new Error("The selector you specified (".concat(a,") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountLogin()."));if(((h=d.firstChild)===null||h===void 0?void 0:h.nodeName.toLowerCase())===E0.toLowerCase()){var f=d.firstChild;f.render({client:this,config:i,callbacks:s,styles:o,strings:u,passwordResetToken:c});return}var p=u9({client:this,config:i,callbacks:s,styles:o,strings:u,passwordResetToken:c});d.appendChild(p)}},{key:"mountPasskeyRegistration",value:function(r){var a=r.elementId,i=r.config,o=r.styles,s=r.callbacks,u=r.strings,c,h=document.querySelector(a);if(!h)throw new Error("The selector you specified (".concat(a,") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountPasskeyRegistration()."));if(((c=h.firstChild)===null||c===void 0?void 0:c.nodeName.toLowerCase())===k0.toLowerCase()){var d=h.firstChild;d.render({client:this,config:i,callbacks:s,styles:o,strings:u});return}var f=c9({client:this,config:i,callbacks:s,styles:o,strings:u});h.appendChild(f)}},{key:"mountIdentityProvider",value:function(r){var a=r.elementId,i=r.styles,o=r.callbacks,s=r.strings,u=r.getIDPConsentManifest,c=r.authTokenParams,h,d=document.querySelector(a);if(!d)throw new Error("The selector you specified (".concat(a,") applies to no DOM elements that are currently on the page. Make sure the element exists on the page before calling mountIdentityProvider()."));if(((h=d.firstChild)===null||h===void 0?void 0:h.nodeName.toLowerCase())===S0.toLowerCase()){var f=d.firstChild;f.render({client:this,callbacks:o,styles:i,strings:s,getIDPConsentManifest:u,authTokenParams:c});return}var p=d9({client:this,callbacks:o,styles:i,strings:s,getIDPConsentManifest:u,authTokenParams:c});d.appendChild(p)}}])})(Z2);var hi=t=>{let e=Ai(`${document.location.origin}/login/callback`,{redirect:t?.get("redirect")??"",source:t?.get("source")??""});return{products:[Be.oauth,Be.emailMagicLinks,Be.passwords],oauthOptions:{providers:[{type:ye.Google,one_tap:Pi(document.location.hostname)==="production",position:xt.floating}],loginRedirectURL:e,signupRedirectURL:e},emailMagicLinksOptions:{loginRedirectURL:e,loginExpirationMinutes:30,signupRedirectURL:e,signupExpirationMinutes:30},passwordOptions:{loginRedirectURL:e,loginExpirationMinutes:30,resetPasswordRedirectURL:`${document.location.origin}/login/password/reset`,resetPasswordExpirationMinutes:30}}},fi={container:{backgroundColor:"#FFFFFF",borderColor:"#ADBCC5",borderRadius:"8px",width:"100%"},colors:{primary:"#19303D",secondary:"#5C727D",success:"#0C5A56",error:"#8B1214"},buttons:{primary:{backgroundColor:"#19303D",textColor:"#FFFFFF",borderColor:"#19303D",borderRadius:"4px"},secondary:{backgroundColor:"#FFFFFF",textColor:"#19303D",borderColor:"#19303D",borderRadius:"4px"}},fontFamily:"Geist, sans-serif",hideHeaderText:!1,logo:{logoImageUrl:"https://molin.ai/android-chrome-192x192.png"}};function h9(t){return t=structuredClone(t),delete t.session_token,delete t.session_jwt,t}var pi={onEvent:t=>{if(xs.capture(`stytch/v1/${t.type}`,{data:h9(t.data)}),t.type===fe.PasswordCreate||t.type===fe.PasswordResetByEmail||t.type===fe.PasswordAuthenticate){let e=new URL(document.location.href),n=e.searchParams.get("redirect"),r=e.searchParams.get("source");setTimeout(()=>{window.location.href=Ai("/login/callback/web",{session_token:t.data.session_token,redirect:n,source:r})},2e3)}},onError:t=>console.error(t)},P0;function mi(){return P0??=new O0(Pi(document.location.hostname)!=="production"?"public-token-test-3ad7759e-5d23-4a06-af64-1c23735987e3":"public-token-live-e60ded03-a89c-4c05-a189-593a30d569b9"),P0}var Cs=class extends HTMLElement{static observedAttributes=["query-params"];#e;constructor(){super(),this.id="stytch-login"}attributeChangedCallback(e,n,r){e==="query-params"&&(this.#e=new URLSearchParams(r))}connectedCallback(){mi().mountLogin({elementId:"#stytch-login",config:hi(this.#e),styles:fi,callbacks:pi})}};customElements.define("stytch-login",Cs);var Es=class extends HTMLElement{constructor(){super(),this.id="stytch-reset-password-root"}connectedCallback(){mi().mountResetPassword({elementId:"#stytch-reset-password-root",config:hi(),styles:fi,callbacks:pi,passwordResetToken:new URLSearchParams(document.location.search).get("token")||""})}};customElements.define("stytch-reset-password-container",Es);var f9=Object.freeze(["en","hu","pl"]),p9=Hs({language:Us(f9)}),ks=js("molin.i18n",p9),T0=Ns(ks);var m9=Object.freeze({homeLink:"Molin AI home",loginCompletion:{heading:"Signing you in\u2026",instruction:"This only takes a moment.",continue:"Continue",fallback:"Still here? Choose Continue to finish signing in."},loginVerify:{heading:"Please verify your email address",sent:t=>`We just sent an email to ${t}`,instruction:"Click the magic link in the email to verify your account"},alreadyConnected:{heading:"Shop Already Connected",bodyBeforeShop:"The shop ",bodyAfterShop:" is already connected to a Molin AI account.",nextHeading:"What should I do?",nextBody:"Ask your shop's admin to invite you to their Molin AI team. We've notified them by email that you tried to connect."},appRemoved:{heading:"The Molin AI app was removed from your shop",bodyBeforeShop:"The app is no longer installed on ",bodyAfterShop:", so we can no longer reach your products and orders.",keptHeading:"Is my assistant gone?",keptBody:"No. Your assistant, its settings and its conversation history are all still here. Installing the app again brings everything back exactly as it was.",install:"Install Molin AI again"},accessDenied:{plusAlias:{heading:"Please use your primary email",body:"We're not able to accept email aliases (addresses with a '+' in them, like [email protected]). Please sign up again with your primary business email address.",linkText:"Try again"},default:{heading:"Access Denied",body:"You are not allowed to view this page.",linkText:"Go back"}},preauth:{heading:"Connect Molin AI to your Shoprenter store",productAccess:"Molin will gain access to product information",dataSafety:"Molin keeps your data secure",continue:"Sign up or log in \u2192",termsPrefix:"By continuing, you accept our",termsLink:"Terms and Conditions"}}),v9=Object.freeze({homeLink:"Molin AI kezd\u0151lap",loginCompletion:{heading:"Bejelentkeztet\xFCnk\u2026",instruction:"Ez csak egy pillanat.",continue:"Folytat\xE1s",fallback:"M\xE9g mindig itt vagy? A bejelentkez\xE9s befejez\xE9s\xE9hez v\xE1laszd a Folytat\xE1s gombot."},loginVerify:{heading:"Er\u0151s\xEDtsd meg az e-mail-c\xEDmed",sent:t=>`Most k\xFCldt\xFCnk egy e-mailt ide: ${t}`,instruction:"A fi\xF3kod meger\u0151s\xEDt\xE9s\xE9hez kattints az e-mailben tal\xE1lhat\xF3 var\xE1zslinkre"},alreadyConnected:{heading:"A webshop m\xE1r csatlakoztatva van",bodyBeforeShop:"",bodyAfterShop:" m\xE1r csatlakoztatva van egy Molin AI-fi\xF3khoz.",nextHeading:"Mit tegyek?",nextBody:"K\xE9rd meg a webshop adminisztr\xE1tor\xE1t, hogy h\xEDvjon meg a Molin AI-csapat\xE1ba. E-mailben \xE9rtes\xEDtett\xFCk, hogy megpr\xF3b\xE1ltad csatlakoztatni a webshopot."},appRemoved:{heading:"A Molin AI alkalmaz\xE1st elt\xE1vol\xEDtott\xE1k a webshopodb\xF3l",bodyBeforeShop:"Az alkalmaz\xE1s m\xE1r nincs telep\xEDtve ide: ",bodyAfterShop:", \xEDgy nem \xE9rj\xFCk el t\xF6bb\xE9 a term\xE9keidet \xE9s a rendel\xE9seidet.",keptHeading:"Elveszett az asszisztensem?",keptBody:"Nem. Az asszisztensed, a be\xE1ll\xEDt\xE1sai \xE9s a besz\xE9lget\xE9si el\u0151zm\xE9nyei mind megvannak. Az alkalmaz\xE1s \xFAjratelep\xEDt\xE9s\xE9vel minden pontosan \xFAgy t\xE9r vissza, ahogy volt.",install:"Molin AI \xFAjratelep\xEDt\xE9se"},accessDenied:{plusAlias:{heading:"Haszn\xE1ld az els\u0151dleges e-mail-c\xEDmed",body:"Nem tudjuk elfogadni az e-mail-aliasokat (a \u201E+\u201D jelet tartalmaz\xF3 c\xEDmeket, p\xE9ld\xE1ul [email protected]). Regisztr\xE1lj \xFAjra az els\u0151dleges \xFCzleti e-mail-c\xEDmeddel.",linkText:"Pr\xF3b\xE1ld \xFAjra"},default:{heading:"Hozz\xE1f\xE9r\xE9s megtagadva",body:"Nincs jogosults\xE1god az oldal megtekint\xE9s\xE9hez.",linkText:"Vissza"}},preauth:{heading:"Csatlakoztasd a Molin AI-t a Shoprenter boltodhoz",productAccess:"A Molin hozz\xE1f\xE9r\xE9st kap a term\xE9kinform\xE1ci\xF3khoz",dataSafety:"A Molin biztons\xE1gban tartja az adataidat",continue:"Regisztr\xE1ci\xF3 vagy bejelentkez\xE9s \u2192",termsPrefix:"A folytat\xE1ssal elfogadod az",termsLink:"\xC1ltal\xE1nos Szerz\u0151d\xE9si Felt\xE9teleinket"}}),g9=Object.freeze({homeLink:"Strona g\u0142\xF3wna Molin AI",loginCompletion:{heading:"Logujemy Ci\u0119\u2026",instruction:"To potrwa tylko chwil\u0119.",continue:"Kontynuuj",fallback:"Wci\u0105\u017C tutaj? Wybierz Kontynuuj, aby doko\u0144czy\u0107 logowanie."},loginVerify:{heading:"Potwierd\u017A sw\xF3j adres e-mail",sent:t=>`Wys\u0142ali\u015Bmy w\u0142a\u015Bnie wiadomo\u015B\u0107 na adres ${t}
735`,instruction:"Kliknij magiczny link w wiadomo\u015Bci, aby potwierdzi\u0107 konto"},alreadyConnected:{heading:"Sklep jest ju\u017C po\u0142\u0105czony",bodyBeforeShop:"Sklep ",bodyAfterShop:" jest ju\u017C po\u0142\u0105czony z kontem Molin AI.",nextHeading:"Co mam zrobi\u0107?",nextBody:"Popro\u015B administratora sklepu o zaproszenie Ci\u0119 do zespo\u0142u Molin AI. Powiadomili\u015Bmy go e-mailem o Twojej pr\xF3bie po\u0142\u0105czenia."},appRemoved:{heading:"Aplikacja Molin AI zosta\u0142a usuni\u0119ta ze sklepu",bodyBeforeShop:"Aplikacja nie jest ju\u017C zainstalowana w sklepie ",bodyAfterShop:", wi\u0119c nie mamy ju\u017C dost\u0119pu do Twoich produkt\xF3w i zam\xF3wie\u0144.",keptHeading:"Czy m\xF3j asystent znikn\u0105\u0142?",keptBody:"Nie. Tw\xF3j asystent, jego ustawienia i historia rozm\xF3w s\u0105 nadal na miejscu. Ponowna instalacja aplikacji przywr\xF3ci wszystko dok\u0142adnie tak, jak by\u0142o.",install:"Zainstaluj Molin AI ponownie"},accessDenied:{plusAlias:{heading:"U\u017Cyj g\u0142\xF3wnego adresu e-mail",body:"Nie mo\u017Cemy zaakceptowa\u0107 alias\xF3w e-mail (adres\xF3w zawieraj\u0105cych znak '+', takich jak [email protected]). Zarejestruj si\u0119 ponownie, u\u017Cywaj\u0105c g\u0142\xF3wnego s\u0142u\u017Cbowego adresu e-mail.",linkText:"Spr\xF3buj ponownie"},default:{heading:"Odmowa dost\u0119pu",body:"Nie masz uprawnie\u0144 do wy\u015Bwietlenia tej strony.",linkText:"Wr\xF3\u0107"}},preauth:{heading:"Po\u0142\u0105cz Molin AI ze swoim sklepem Shoprenter",productAccess:"Molin uzyska dost\u0119p do informacji o produktach",dataSafety:"Molin bezpiecznie przechowuje Twoje dane",continue:"Zarejestruj si\u0119 lub zaloguj \u2192",termsPrefix:"Kontynuuj\u0105c, akceptujesz nasze",termsLink:"Warunki korzystania"}});function vi(t){switch(t||T0.proxyObject?.language){case"hu":return v9;case"pl":return g9;default:return m9}}var y9=4e3,Ss=class extends qr{static lightDom=!0;static properties={token:{type:String},tokenType:{type:String,attribute:"token-type"},redirect:{type:String},source:{type:String},action:{type:String},autoSubmit:{type:Boolean,attribute:!1},lang:{type:String},showFallback:{type:Boolean,state:!0}};#e=$s(this,y9,()=>{this.showFallback=!0});constructor(){super(),this.token="",this.tokenType="magic_links",this.redirect="/app",this.source="molin.ai",this.action="/login/callback/complete",this.autoSubmit=!0,this.lang="",this.showFallback=!0}firstUpdated(){if(!this.autoSubmit)return;this.showFallback=!1,this.#e.restart();let e=this.querySelector("form");e instanceof HTMLFormElement&&e.requestSubmit()}render(){let n=vi(this.lang).loginCompletion,r=`rounded-xl bg-violet-600 px-4 py-2 font-medium text-white transition-colors hover:bg-violet-700 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-violet-600 ${this.showFallback?"":"invisible"}`,a=`max-w-sm text-center text-gray-500 dark:text-gray-400 ${this.showFallback?"":"invisible"}`;return Zr`
736      <section class="bg-gray-50 dark:bg-gray-900">
737        <div class="flex h-screen min-h-[400px] flex-col items-center justify-center gap-y-6 p-8">
738          
739          <div class="size-8 animate-spin rounded-full border-2 border-gray-200 border-t-violet-600 dark:border-gray-700 dark:border-t-violet-400" role="status" aria-live="polite">
740            <span class="sr-only">${n.heading}</span>
741          </div>
742
743          <div class="text-center">
744            <h1 class="text-xl font-semibold text-gray-800 dark:text-gray-100">${n.heading}</h1>
745            <p class="mt-2 text-gray-500 dark:text-gray-400">${n.instruction}</p>
746          </div>
747
748          <form method="POST" action="${this.action}" class="flex flex-col items-center gap-y-3">
749            <input type="hidden" name="token" value="${this.token}" />
750            <input type="hidden" name="stytch_token_type" value="${this.tokenType}" />
751            <input type="hidden" name="redirect" value="${this.redirect}" />
752            <input type="hidden" name="source" value="${this.source}" />
753            <p class="${a}">${n.fallback}</p>
754            <button type="submit" class="${r}">${n.continue}</button>
755          </form>
756        </div>
757      </section>
758    `}};customElements.define("m-login-completion",Ss);var Os=class extends qr{static lightDom=!0;static properties={email:{type:String}};constructor(){super(),this.email=""}render(){let e=vi(this.lang),n=e.loginVerify;return Zr`
759      <section class="bg-gray-50 dark:bg-gray-900">
760        <div class="flex h-screen min-h-[650px] flex-col items-center justify-center gap-y-8 p-8">
761          <div>
762            <div class="text-center">
763              <a href="/" aria-current="page" class="inline-block" aria-label="${e.homeLink}">
764                <img
765                  src="https://cdn.prod.website-files.com/649d8b3282637e30ff160bcf/64ff1f8fb639a87f498eee5e_logo%20-%20shop%20AI%20-%20BIG%20(2).png"
766                  loading="lazy"
767                  sizes="(max-width: 479px) 110px, (max-width: 767px) 130px, 140px"
768                  width="140"
769                  alt=""
770                  srcset="
771                    https://cdn.prod.website-files.com/649d8b3282637e30ff160bcf/64ff1f8fb639a87f498eee5e_logo%20-%20shop%20AI%20-%20BIG%20(2)-p-500.png 500w,
772                    https://cdn.prod.website-files.com/649d8b3282637e30ff160bcf/64ff1f8fb639a87f498eee5e_logo%20-%20shop%20AI%20-%20BIG%20(2).png       519w
773                  "
774                  class="h-auto w-[140px]" />
775              </a>
776            </div>
777            <h2 class="mt-10 text-center text-2xl font-semibold text-gray-800">${n.heading}</h2>
778            <p class="mt-8 text-center text-gray-500">${n.sent(this.email)}</p>
779            <p class="mt-1 text-center text-gray-500">${n.instruction}</p>
780          </div>
781        </div>
782      </section>
783    `}};
783customElements.define("m-page-login-verify",Os);zs([ks],document);document.location.hostname==="127.0.0.1"&&(console.log("Molin must run on localhost not 127.0.0.1, redirecting..."),document.location.hostname="localhost");document.location.hostname==="localhost"&&/Chrome/.test(navigator.userAgent)&&(console.log("Molin must run on molin.localhost not localhost, redirecting..."),document.location.hostname="molin.localhost");await Ws(document,customElements);document.body.style.removeProperty("display");

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.