@wacht/jsx 1.0.0-beta.45 → 1.0.0-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +202 -202
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3054 -3044
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),An=require("react-dom"),Gs=require("@wacht/types");function Eu(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const n=Eu(c),qs="__dev_session__",Au="__dev_session_updated_at",zu="__dev_session_updated_at";function ra(){return typeof window<"u"&&typeof document<"u"}function Ks(e){if(!ra())return null;const r=document.cookie?document.cookie.split(";"):[];for(const a of r){const[o,...s]=a.trim().split("=");if(o===e)return decodeURIComponent(s.join("="))}return null}function Ys(e,r){ra()&&(document.cookie=`${e}=${encodeURIComponent(r)}; Path=/; Secure; SameSite=Lax`)}function Ho(e){if(!ra())return null;try{return window.localStorage.getItem(e)}catch{return null}}function yn(e,r){if(ra())try{window.localStorage.setItem(e,r)}catch{}}function Qs(e){if(!e)return 0;const r=Number(e);return Number.isFinite(r)?r:0}function $u(e){const r=e==null?void 0:e.trim();if(!r)return null;try{return new URL(r.includes("://")?r:`https://${r}`).host.toLowerCase()}catch{return r.toLowerCase().replace(/\/+$/,"")}}function Mu(e){const r=$u(e);if(!r)return"";const a=r.replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,64);return a?`_${a}`:""}function n0(e){const r=Mu(e);return{cookie:`${qs}${r}`,updatedAtCookie:`${Au}${r}`,storage:`${qs}${r}`,updatedAtStorage:`${zu}${r}`}}function Lu(e){const r=Ks(e.cookie);if(!r)return null;const a=Qs(Ks(e.updatedAtCookie)),o=Ho(e.storage),s=Qs(Ho(e.updatedAtStorage)),i=a>s||a===0&&r!==o;return(!o||i)&&(yn(e.storage,r),yn(e.updatedAtStorage,String(a||Date.now()))),r}function mt(e){if(!ra())return null;const r=n0(e),a=Lu(r);return a||Ho(r.storage)}function pn(e,r){if(!ra()||!e)return;const a=n0(r),o=Date.now();Ys(a.cookie,e),Ys(a.updatedAtCookie,String(o)),yn(a.storage,e),yn(a.updatedAtStorage,String(o))}const xs=c.createContext(void 0);function Ru({children:e,publicKey:r,adapter:a,uiOverrides:o}){const[s,i]=c.useState(!0),[h,d]=c.useState(null),u=c.useRef(!1);c.useEffect(()=>{async function p(){if(!u.current)try{u.current=!0,i(!0);const[m,g,x]=r.split("_");if(!x)throw new Error("Invalid public key");let b=atob(x),v=g==="test";const w=b;let E=null;if(new URLSearchParams(window.location.search).has("__dev_session__")){E=new URLSearchParams(window.location.search).get("__dev_session__"),pn(E,w);const k=new URL(window.location.href);k.searchParams.delete("__dev_session__"),window.history.replaceState({},"",k.toString())}else E=mt(w),E&&pn(E,w);let j={};const S=new URLSearchParams;v?S.append("__dev_session__",E??""):j={credentials:"include"};const C=await fetch(`${b}/deployment${v?"?":""}${S.toString()}`,j);if(!C.ok){i(!1);return}const _=await C.json();_.data.backend_host=b,o&&(_.data.ui_settings={..._.data.ui_settings,...o}),d(_.data),v&&C.headers.get("x-development-session")&&pn(C.headers.get("x-development-session"),w),i(!1)}catch{i(!1)}}p()},[r,o]);const f=c.useMemo(()=>({loading:s,deployment:h,adapter:a}),[s,h,a]);return t.jsx(xs.Provider,{value:f,children:e})}async function V(e){if(!e.ok){let a=`HTTP ${e.status}: ${e.statusText}`,o;try{const i=await e.json();i.errors&&i.errors.length>0?(a=i.errors[0].message||a,o=i.errors[0].code):i.message&&(a=i.message)}catch{}const s=new Error(a);throw o&&(s.code=o),s}return{data:(await e.json()).data}}function Se(){const e=c.useContext(xs);if(e===void 0)throw new Error("useDeployment must be used within a DeploymentProvider");if(!e.loading&&!e.deployment)throw new Error("Deployment is not loaded");return e}function je(){const{deployment:e,loading:r}=Se(),a=c.useCallback(async(o,s)=>{if(r||!e)throw new Error("Deployment is loading");const i=Pu(e),h=new Headers(i.headers);s!=null&&s.headers&&new Headers(s.headers).forEach((p,m)=>{h.set(m,p)});const d=new URL(`${e.backend_host??""}${o}`);e.mode==="staging"&&d.searchParams.append("__dev_session__",mt(e.backend_host)??"");const u=await fetch(d,{...i,...s,headers:h});return e.mode==="staging"&&u.headers.get("x-development-session")&&pn(u.headers.get("x-development-session"),e.backend_host),u},[e,r]);return c.useMemo(()=>({client:a,loading:r}),[a,r])}function Pu(e){return e.mode==="staging"?{}:{credentials:"include"}}var o0=(e=>(e.XOauth="x_oauth",e.GithubOauth="github_oauth",e.GitlabOauth="gitlab_oauth",e.GoogleOauth="google_oauth",e.FacebookOauth="facebook_oauth",e.MicrosoftOauth="microsoft_oauth",e.LinkedinOauth="linkedin_oauth",e.DiscordOauth="discord_oauth",e.AppleOauth="apple_oauth",e))(o0||{});function Tu(e,r){const a={username:Fu(e,r),email:Zu(e,r),phone:Iu(e,r),email_otp:Ou(e,r),magic_link:Hu(e,r),oauth:Vu(e),passkey:Du(e),generic:Nu(e,r)};return function(s){return a[s]}}function Fu(e,r){return async({username:a,password:o})=>{var d,u;const s=new FormData;s.append("strategy","plain_username"),s.append("username",a),s.append("password",o);const i=await e("/auth/signin",{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signin_attempts)!=null&&u.length)&&r(h.data.signin_attempts.at(-1)||null),h}}function Zu(e,r){return async({email:a,password:o})=>{var d,u;const s=new FormData;s.append("strategy","plain_email"),s.append("email",a),s.append("password",o);const i=await e("/auth/signin",{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signin_attempts)!=null&&u.length)&&r(h.data.signin_attempts.at(-1)||null),h}}function Iu(e,r){return async({phone:a})=>{var h,d;const o=new FormData;o.append("strategy","phone_otp"),o.append("phone",a);const s=await e("/auth/signin",{method:"POST",body:o}),i=await V(s);return"data"in i&&((d=(h=i.data)==null?void 0:h.signin_attempts)!=null&&d.length)&&r(i.data.signin_attempts.at(-1)||null),i}}function Ou(e,r){return async({email:a})=>{var h,d;const o=new FormData;o.append("strategy","email_otp"),o.append("email",a);const s=await e("/auth/signin",{method:"POST",body:o}),i=await V(s);return"data"in i&&((d=(h=i.data)==null?void 0:h.signin_attempts)!=null&&d.length)&&r(i.data.signin_attempts.at(-1)||null),i}}function Hu(e,r){return async({email:a})=>{var h,d;const o=new FormData;o.append("strategy","magic_link"),o.append("email",a);const s=await e("/auth/signin",{method:"POST",body:o}),i=await V(s);return"data"in i&&((d=(h=i.data)==null?void 0:h.signin_attempts)!=null&&d.length)&&r(i.data.signin_attempts.at(-1)||null),i}}function Vu(e){return async({provider:r,redirectUri:a})=>{const o=new URLSearchParams({provider:r});a&&o.append("redirect_uri",a);const s=await e(`/auth/oauth2/init?${o.toString()}`,{method:"POST"}),i=await V(s);return"data"in i&&i.data.oauth_url&&(window.location.href=i.data.oauth_url),i}}function la(e){const r=new Uint8Array(e);let a="";for(let o=0;o<r.length;o++)a+=String.fromCharCode(r[o]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Js(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),o=atob(a),s=new Uint8Array(o.length);for(let i=0;i<o.length;i++)s[i]=o.charCodeAt(i);return s.buffer}function Du(e){return async()=>{var f;const r=await e("/auth/passkey/login/begin",{method:"POST"}),a=await V(r);if(!("data"in a))return a;const o=a.data.options.publicKey,s={challenge:Js(o.challenge),timeout:o.timeout,rpId:o.rpId,userVerification:o.userVerification,allowCredentials:(f=o.allowCredentials)==null?void 0:f.map(p=>({type:p.type,id:Js(p.id),transports:p.transports}))};let i;try{const p=await navigator.credentials.get({publicKey:s});if(!p)throw new Error("Failed to get credential");i=p}catch(p){throw p.name==="NotAllowedError"?new Error("No passkey found on this device. Please try a different sign-in method."):p.name==="AbortError"?new Error("Passkey sign-in was cancelled."):p}const h=i.response,d=new FormData;d.append("id",i.id),d.append("rawId",la(i.rawId)),d.append("type",i.type),d.append("clientDataJSON",la(h.clientDataJSON)),d.append("authenticatorData",la(h.authenticatorData)),d.append("signature",la(h.signature)),h.userHandle&&d.append("userHandle",la(h.userHandle));const u=await e("/auth/passkey/login/finish",{method:"POST",body:d});return V(u)}}function Nu(e,r){return async({email:a,username:o,password:s,phone:i,strategy:h})=>{var p,m;const d=new FormData;h&&d.append("strategy",h),a&&d.append("email",a),o&&d.append("username",o),s&&d.append("password",s),i&&d.append("phone",i);const u=await e("/auth/signin",{method:"POST",body:d}),f=await V(u);return"data"in f&&((m=(p=f.data)==null?void 0:p.signin_attempts)!=null&&m.length)&&r(f.data.signin_attempts.at(-1)||null),f}}function s0(){const{client:e,loading:r}=je(),[a,o]=c.useState(null);return r?{loading:!0,signIn:null,signinAttempt:null,discardSignInAttempt:()=>{o(null)},setSignInAttempt:o}:{loading:!1,signinAttempt:a,signIn:{createStrategy:Tu(e,o),completeVerification:async s=>{var u,f;const i=new FormData;i.append("verification_code",s);const h=await e(`/auth/attempt-verification?attempt_identifier=${a==null?void 0:a.id}&identifier_type=signin`,{method:"POST",body:i}),d=await V(h);if("data"in d&&((f=(u=d.data)==null?void 0:u.signin_attempts)!=null&&f.length)){const p=d.data.signin_attempts.at(-1);return o(p||null),d.data}else throw new Error("Verification failed")},prepareVerification:async s=>{var d;const i=new URL("/auth/prepare-verification",window.location.origin);i.searchParams.set("attempt_identifier",((d=a==null?void 0:a.id)==null?void 0:d.toString())||""),i.searchParams.set("strategy",s.strategy),i.searchParams.set("identifier_type","signin"),s.strategy==="phone_otp"&&s.lastDigits?i.searchParams.set("last_digits",s.lastDigits):(s.strategy==="email_otp"&&s.redirectUri||s.strategy==="magic_link"&&s.redirectUri)&&i.searchParams.set("redirect_uri",s.redirectUri);const h=await e(i.pathname+i.search,{method:"POST"});return V(h)},completeProfile:async s=>{var u;if(!a)throw new Error("No signin attempt found");const i=new FormData;for(const[f,p]of Object.entries(s))p&&i.append(f,p);const h=await e(`/auth/complete-profile?attempt_id=${a.id}`,{method:"POST",body:i}),d=await V(h);if("data"in d&&d.data){const f=(u=d.data.signin_attempts)==null?void 0:u.find(p=>p.id===a.id);return f&&o(f),d.data}else throw new Error("Profile completion failed")},identify:async s=>{const i=new FormData;i.append("identifier",s);const h=await e("/auth/identify",{method:"POST",body:i});return(await V(h)).data},initEnterpriseSso:async(s,i)=>{const h=new URLSearchParams({connection_id:s});i&&h.append("redirect_uri",i);const d=await e(`/auth/sso/login?${h.toString()}`,{method:"POST"});return(await V(d)).data}},discardSignInAttempt:()=>{o(null)},setSignInAttempt:o}}function ya(e){const{loading:r,signIn:a,signinAttempt:o,discardSignInAttempt:s,setSignInAttempt:i}=s0();if(r)return{loading:!0,signIn:null,signinAttempt:null,discardSignInAttempt:s,setSignInAttempt:i};const h=(()=>{switch(e){case"username":return a.createStrategy("username");case"email":return a.createStrategy("email");case"phone":return a.createStrategy("phone");case"email_otp":return a.createStrategy("email_otp");case"magic_link":return a.createStrategy("magic_link");case"oauth":return a.createStrategy("oauth");case"passkey":return a.createStrategy("passkey");case"generic":return a.createStrategy("generic");default:throw new Error("Invalid sign-in strategy")}})();return{loading:!1,signinAttempt:o,signIn:{create:h,completeVerification:a.completeVerification,prepareVerification:a.prepareVerification,completeProfile:a.completeProfile,identify:a.identify,initEnterpriseSso:a.initEnterpriseSso},discardSignInAttempt:s,setSignInAttempt:i}}function Uu(e,r,a){return{create:async o=>{var d,u,f;const s=new FormData;for(const[p,m]of Object.entries(o))s.append(p,m);const i=await e("/auth/signup",{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signup_attempts)!=null&&u.length)&&a(((f=h.data.signup_attempts)==null?void 0:f.at(-1))||null),h},prepareVerification:async o=>{var h;const s=new URL("/auth/prepare-verification",window.location.origin);s.searchParams.set("attempt_identifier",((h=r==null?void 0:r.id)==null?void 0:h.toString())||""),s.searchParams.set("strategy",o.strategy),s.searchParams.set("identifier_type","signup"),o.strategy==="phone_otp"&&o.lastDigits?s.searchParams.set("last_digits",o.lastDigits):o.strategy==="email_otp"&&o.redirectUri&&s.searchParams.set("redirect_uri",o.redirectUri);const i=await e(s.pathname+s.search,{method:"POST"});return V(i)},completeVerification:async o=>{var d,u;const s=new FormData;s.append("verification_code",o);const i=await e(`/auth/attempt-verification?attempt_identifier=${r==null?void 0:r.id}&identifier_type=signup`,{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signup_attempts)!=null&&u.length)&&a(h.data.signup_attempts.at(-1)||null),h},validateDeploymentInvitation:async o=>{try{const s=await e(`/deployment/invitations/validate?token=${encodeURIComponent(o)}`,{method:"GET"}),i=await V(s);return"data"in i&&i.data?i.data:{valid:!1,message:"Failed to validate invitation",error_code:"VALIDATION_ERROR"}}catch(s){return{valid:!1,message:s.message||"Failed to validate invitation",error_code:"NETWORK_ERROR"}}}}}function i0(){const{client:e,loading:r}=je(),[a,o]=c.useState(null);return r?{loading:!0,signUp:null,signupAttempt:null,discardSignupAttempt:()=>{o(null)}}:{loading:!1,signupAttempt:a,discardSignupAttempt:()=>{o(null)},signUp:Uu(e,a,o)}}var Fa={exports:{}},Nn={};/**
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),An=require("react-dom"),qs=require("@wacht/types");function Eu(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const n=Eu(c),Ks="__dev_session__",Au="__dev_session_updated_at",zu="__dev_session_updated_at";function ra(){return typeof window<"u"&&typeof document<"u"}function Ys(e){if(!ra())return null;const r=document.cookie?document.cookie.split(";"):[];for(const a of r){const[o,...s]=a.trim().split("=");if(o===e)return decodeURIComponent(s.join("="))}return null}function Qs(e,r){ra()&&(document.cookie=`${e}=${encodeURIComponent(r)}; Path=/; Secure; SameSite=Lax`)}function Ho(e){if(!ra())return null;try{return window.localStorage.getItem(e)}catch{return null}}function yn(e,r){if(ra())try{window.localStorage.setItem(e,r)}catch{}}function Js(e){if(!e)return 0;const r=Number(e);return Number.isFinite(r)?r:0}function $u(e){const r=e==null?void 0:e.trim();if(!r)return null;try{return new URL(r.includes("://")?r:`https://${r}`).host.toLowerCase()}catch{return r.toLowerCase().replace(/\/+$/,"")}}function Mu(e){const r=$u(e);if(!r)return"";const a=r.replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,64);return a?`_${a}`:""}function o0(e){const r=Mu(e);return{cookie:`${Ks}${r}`,updatedAtCookie:`${Au}${r}`,storage:`${Ks}${r}`,updatedAtStorage:`${zu}${r}`}}function Lu(e){const r=Ys(e.cookie);if(!r)return null;const a=Js(Ys(e.updatedAtCookie)),o=Ho(e.storage),s=Js(Ho(e.updatedAtStorage)),i=a>s||a===0&&r!==o;return(!o||i)&&(yn(e.storage,r),yn(e.updatedAtStorage,String(a||Date.now()))),r}function mt(e){if(!ra())return null;const r=o0(e),a=Lu(r);return a||Ho(r.storage)}function pn(e,r){if(!ra()||!e)return;const a=o0(r),o=Date.now();Qs(a.cookie,e),Qs(a.updatedAtCookie,String(o)),yn(a.storage,e),yn(a.updatedAtStorage,String(o))}const ws=c.createContext(void 0);function Ru({children:e,publicKey:r,adapter:a,uiOverrides:o}){const[s,i]=c.useState(!0),[h,d]=c.useState(null),u=c.useRef(!1);c.useEffect(()=>{async function p(){if(!u.current)try{u.current=!0,i(!0);const[m,g,x]=r.split("_");if(!x)throw new Error("Invalid public key");let b=atob(x),v=g==="test";const w=b;let E=null;if(new URLSearchParams(window.location.search).has("__dev_session__")){E=new URLSearchParams(window.location.search).get("__dev_session__"),pn(E,w);const k=new URL(window.location.href);k.searchParams.delete("__dev_session__"),window.history.replaceState({},"",k.toString())}else E=mt(w),E&&pn(E,w);let j={};const S=new URLSearchParams;v?S.append("__dev_session__",E??""):j={credentials:"include"};const C=await fetch(`${b}/deployment${v?"?":""}${S.toString()}`,j);if(!C.ok){i(!1);return}const _=await C.json();_.data.backend_host=b,o&&(_.data.ui_settings={..._.data.ui_settings,...o}),d(_.data),v&&C.headers.get("x-development-session")&&pn(C.headers.get("x-development-session"),w),i(!1)}catch{i(!1)}}p()},[r,o]);const f=c.useMemo(()=>({loading:s,deployment:h,adapter:a}),[s,h,a]);return t.jsx(ws.Provider,{value:f,children:e})}async function V(e){if(!e.ok){let a=`HTTP ${e.status}: ${e.statusText}`,o;try{const i=await e.json();i.errors&&i.errors.length>0?(a=i.errors[0].message||a,o=i.errors[0].code):i.message&&(a=i.message)}catch{}const s=new Error(a);throw o&&(s.code=o),s}return{data:(await e.json()).data}}function Se(){const e=c.useContext(ws);if(e===void 0)throw new Error("useDeployment must be used within a DeploymentProvider");if(!e.loading&&!e.deployment)throw new Error("Deployment is not loaded");return e}function je(){const{deployment:e,loading:r}=Se(),a=c.useCallback(async(o,s)=>{if(r||!e)throw new Error("Deployment is loading");const i=Pu(e),h=new Headers(i.headers);s!=null&&s.headers&&new Headers(s.headers).forEach((p,m)=>{h.set(m,p)});const d=new URL(`${e.backend_host??""}${o}`);e.mode==="staging"&&d.searchParams.append("__dev_session__",mt(e.backend_host)??"");const u=await fetch(d,{...i,...s,headers:h});return e.mode==="staging"&&u.headers.get("x-development-session")&&pn(u.headers.get("x-development-session"),e.backend_host),u},[e,r]);return c.useMemo(()=>({client:a,loading:r}),[a,r])}function Pu(e){return e.mode==="staging"?{}:{credentials:"include"}}var s0=(e=>(e.XOauth="x_oauth",e.GithubOauth="github_oauth",e.GitlabOauth="gitlab_oauth",e.GoogleOauth="google_oauth",e.FacebookOauth="facebook_oauth",e.MicrosoftOauth="microsoft_oauth",e.LinkedinOauth="linkedin_oauth",e.DiscordOauth="discord_oauth",e.AppleOauth="apple_oauth",e))(s0||{});function Tu(e,r){const a={username:Fu(e,r),email:Zu(e,r),phone:Iu(e,r),email_otp:Ou(e,r),magic_link:Hu(e,r),oauth:Vu(e),passkey:Du(e),generic:Nu(e,r)};return function(s){return a[s]}}function Fu(e,r){return async({username:a,password:o})=>{var d,u;const s=new FormData;s.append("strategy","plain_username"),s.append("username",a),s.append("password",o);const i=await e("/auth/signin",{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signin_attempts)!=null&&u.length)&&r(h.data.signin_attempts.at(-1)||null),h}}function Zu(e,r){return async({email:a,password:o})=>{var d,u;const s=new FormData;s.append("strategy","plain_email"),s.append("email",a),s.append("password",o);const i=await e("/auth/signin",{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signin_attempts)!=null&&u.length)&&r(h.data.signin_attempts.at(-1)||null),h}}function Iu(e,r){return async({phone:a})=>{var h,d;const o=new FormData;o.append("strategy","phone_otp"),o.append("phone",a);const s=await e("/auth/signin",{method:"POST",body:o}),i=await V(s);return"data"in i&&((d=(h=i.data)==null?void 0:h.signin_attempts)!=null&&d.length)&&r(i.data.signin_attempts.at(-1)||null),i}}function Ou(e,r){return async({email:a})=>{var h,d;const o=new FormData;o.append("strategy","email_otp"),o.append("email",a);const s=await e("/auth/signin",{method:"POST",body:o}),i=await V(s);return"data"in i&&((d=(h=i.data)==null?void 0:h.signin_attempts)!=null&&d.length)&&r(i.data.signin_attempts.at(-1)||null),i}}function Hu(e,r){return async({email:a})=>{var h,d;const o=new FormData;o.append("strategy","magic_link"),o.append("email",a);const s=await e("/auth/signin",{method:"POST",body:o}),i=await V(s);return"data"in i&&((d=(h=i.data)==null?void 0:h.signin_attempts)!=null&&d.length)&&r(i.data.signin_attempts.at(-1)||null),i}}function Vu(e){return async({provider:r,redirectUri:a})=>{const o=new URLSearchParams({provider:r});a&&o.append("redirect_uri",a);const s=await e(`/auth/oauth2/init?${o.toString()}`,{method:"POST"}),i=await V(s);return"data"in i&&i.data.oauth_url&&(window.location.href=i.data.oauth_url),i}}function la(e){const r=new Uint8Array(e);let a="";for(let o=0;o<r.length;o++)a+=String.fromCharCode(r[o]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Xs(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),o=atob(a),s=new Uint8Array(o.length);for(let i=0;i<o.length;i++)s[i]=o.charCodeAt(i);return s.buffer}function Du(e){return async()=>{var f;const r=await e("/auth/passkey/login/begin",{method:"POST"}),a=await V(r);if(!("data"in a))return a;const o=a.data.options.publicKey,s={challenge:Xs(o.challenge),timeout:o.timeout,rpId:o.rpId,userVerification:o.userVerification,allowCredentials:(f=o.allowCredentials)==null?void 0:f.map(p=>({type:p.type,id:Xs(p.id),transports:p.transports}))};let i;try{const p=await navigator.credentials.get({publicKey:s});if(!p)throw new Error("Failed to get credential");i=p}catch(p){throw p.name==="NotAllowedError"?new Error("No passkey found on this device. Please try a different sign-in method."):p.name==="AbortError"?new Error("Passkey sign-in was cancelled."):p}const h=i.response,d=new FormData;d.append("id",i.id),d.append("rawId",la(i.rawId)),d.append("type",i.type),d.append("clientDataJSON",la(h.clientDataJSON)),d.append("authenticatorData",la(h.authenticatorData)),d.append("signature",la(h.signature)),h.userHandle&&d.append("userHandle",la(h.userHandle));const u=await e("/auth/passkey/login/finish",{method:"POST",body:d});return V(u)}}function Nu(e,r){return async({email:a,username:o,password:s,phone:i,strategy:h})=>{var p,m;const d=new FormData;h&&d.append("strategy",h),a&&d.append("email",a),o&&d.append("username",o),s&&d.append("password",s),i&&d.append("phone",i);const u=await e("/auth/signin",{method:"POST",body:d}),f=await V(u);return"data"in f&&((m=(p=f.data)==null?void 0:p.signin_attempts)!=null&&m.length)&&r(f.data.signin_attempts.at(-1)||null),f}}function i0(){const{client:e,loading:r}=je(),[a,o]=c.useState(null);return r?{loading:!0,signIn:null,signinAttempt:null,discardSignInAttempt:()=>{o(null)},setSignInAttempt:o}:{loading:!1,signinAttempt:a,signIn:{createStrategy:Tu(e,o),completeVerification:async s=>{var u,f;const i=new FormData;i.append("verification_code",s);const h=await e(`/auth/attempt-verification?attempt_identifier=${a==null?void 0:a.id}&identifier_type=signin`,{method:"POST",body:i}),d=await V(h);if("data"in d&&((f=(u=d.data)==null?void 0:u.signin_attempts)!=null&&f.length)){const p=d.data.signin_attempts.at(-1);return o(p||null),d.data}else throw new Error("Verification failed")},prepareVerification:async s=>{var d;const i=new URL("/auth/prepare-verification",window.location.origin);i.searchParams.set("attempt_identifier",((d=a==null?void 0:a.id)==null?void 0:d.toString())||""),i.searchParams.set("strategy",s.strategy),i.searchParams.set("identifier_type","signin"),s.strategy==="phone_otp"&&s.lastDigits?i.searchParams.set("last_digits",s.lastDigits):(s.strategy==="email_otp"&&s.redirectUri||s.strategy==="magic_link"&&s.redirectUri)&&i.searchParams.set("redirect_uri",s.redirectUri);const h=await e(i.pathname+i.search,{method:"POST"});return V(h)},completeProfile:async s=>{var u;if(!a)throw new Error("No signin attempt found");const i=new FormData;for(const[f,p]of Object.entries(s))p&&i.append(f,p);const h=await e(`/auth/complete-profile?attempt_id=${a.id}`,{method:"POST",body:i}),d=await V(h);if("data"in d&&d.data){const f=(u=d.data.signin_attempts)==null?void 0:u.find(p=>p.id===a.id);return f&&o(f),d.data}else throw new Error("Profile completion failed")},identify:async s=>{const i=new FormData;i.append("identifier",s);const h=await e("/auth/identify",{method:"POST",body:i});return(await V(h)).data},initEnterpriseSso:async(s,i)=>{const h=new URLSearchParams({connection_id:s});i&&h.append("redirect_uri",i);const d=await e(`/auth/sso/login?${h.toString()}`,{method:"POST"});return(await V(d)).data}},discardSignInAttempt:()=>{o(null)},setSignInAttempt:o}}function ya(e){const{loading:r,signIn:a,signinAttempt:o,discardSignInAttempt:s,setSignInAttempt:i}=i0();if(r)return{loading:!0,signIn:null,signinAttempt:null,discardSignInAttempt:s,setSignInAttempt:i};const h=(()=>{switch(e){case"username":return a.createStrategy("username");case"email":return a.createStrategy("email");case"phone":return a.createStrategy("phone");case"email_otp":return a.createStrategy("email_otp");case"magic_link":return a.createStrategy("magic_link");case"oauth":return a.createStrategy("oauth");case"passkey":return a.createStrategy("passkey");case"generic":return a.createStrategy("generic");default:throw new Error("Invalid sign-in strategy")}})();return{loading:!1,signinAttempt:o,signIn:{create:h,completeVerification:a.completeVerification,prepareVerification:a.prepareVerification,completeProfile:a.completeProfile,identify:a.identify,initEnterpriseSso:a.initEnterpriseSso},discardSignInAttempt:s,setSignInAttempt:i}}function Uu(e,r,a){return{create:async o=>{var d,u,f;const s=new FormData;for(const[p,m]of Object.entries(o))s.append(p,m);const i=await e("/auth/signup",{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signup_attempts)!=null&&u.length)&&a(((f=h.data.signup_attempts)==null?void 0:f.at(-1))||null),h},prepareVerification:async o=>{var h;const s=new URL("/auth/prepare-verification",window.location.origin);s.searchParams.set("attempt_identifier",((h=r==null?void 0:r.id)==null?void 0:h.toString())||""),s.searchParams.set("strategy",o.strategy),s.searchParams.set("identifier_type","signup"),o.strategy==="phone_otp"&&o.lastDigits?s.searchParams.set("last_digits",o.lastDigits):o.strategy==="email_otp"&&o.redirectUri&&s.searchParams.set("redirect_uri",o.redirectUri);const i=await e(s.pathname+s.search,{method:"POST"});return V(i)},completeVerification:async o=>{var d,u;const s=new FormData;s.append("verification_code",o);const i=await e(`/auth/attempt-verification?attempt_identifier=${r==null?void 0:r.id}&identifier_type=signup`,{method:"POST",body:s}),h=await V(i);return"data"in h&&((u=(d=h.data)==null?void 0:d.signup_attempts)!=null&&u.length)&&a(h.data.signup_attempts.at(-1)||null),h},validateDeploymentInvitation:async o=>{try{const s=await e(`/deployment/invitations/validate?token=${encodeURIComponent(o)}`,{method:"GET"}),i=await V(s);return"data"in i&&i.data?i.data:{valid:!1,message:"Failed to validate invitation",error_code:"VALIDATION_ERROR"}}catch(s){return{valid:!1,message:s.message||"Failed to validate invitation",error_code:"NETWORK_ERROR"}}}}}function c0(){const{client:e,loading:r}=je(),[a,o]=c.useState(null);return r?{loading:!0,signUp:null,signupAttempt:null,discardSignupAttempt:()=>{o(null)}}:{loading:!1,signupAttempt:a,discardSignupAttempt:()=>{o(null)},signUp:Uu(e,a,o)}}var Fa={exports:{}},Nn={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* use-sync-external-store-shim.production.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var ei;function Bu(){if(ei)return Nn;ei=1;var e=c;function r(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var a=typeof Object.is=="function"?Object.is:r,o=e.useState,s=e.useEffect,i=e.useLayoutEffect,h=e.useDebugValue;function d(m,g){var x=g(),b=o({inst:{value:x,getSnapshot:g}}),v=b[0].inst,w=b[1];return i(function(){v.value=x,v.getSnapshot=g,u(v)&&w({inst:v})},[m,x,g]),s(function(){return u(v)&&w({inst:v}),m(function(){u(v)&&w({inst:v})})},[m]),h(x),x}function u(m){var g=m.getSnapshot;m=m.value;try{var x=g();return!a(m,x)}catch{return!0}}function f(m,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:d;return Nn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Nn}var Un={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* use-sync-external-store-shim.development.js
|
|
13
13
|
*
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var ei;function Wu(){return ei||(ei=1,process.env.NODE_ENV!=="production"&&(function(){function e(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}function r(x,b){p||s.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=b();if(!m){var w=b();i(v,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}w=h({inst:{value:v,getSnapshot:b}});var E=w[0].inst,j=w[1];return u(function(){E.value=v,E.getSnapshot=b,a(E)&&j({inst:E})},[x,v,b]),d(function(){return a(E)&&j({inst:E}),x(function(){a(E)&&j({inst:E})})},[x]),f(v),v}function a(x){var b=x.getSnapshot;x=x.value;try{var v=b();return!i(x,v)}catch{return!0}}function o(x,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=c,i=typeof Object.is=="function"?Object.is:e,h=s.useState,d=s.useEffect,u=s.useLayoutEffect,f=s.useDebugValue,p=!1,m=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;Un.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Un}var ti;function Gu(){return ti||(ti=1,process.env.NODE_ENV==="production"?Fa.exports=Bu():Fa.exports=Wu()),Fa.exports}var Vo=Gu();const c0=0,l0=1,d0=2,ri=3;var ai=Object.prototype.hasOwnProperty;function Do(e,r){var a,o;if(e===r)return!0;if(e&&r&&(a=e.constructor)===r.constructor){if(a===Date)return e.getTime()===r.getTime();if(a===RegExp)return e.toString()===r.toString();if(a===Array){if((o=e.length)===r.length)for(;o--&&Do(e[o],r[o]););return o===-1}if(!a||typeof e=="object"){o=0;for(a in e)if(ai.call(e,a)&&++o&&!ai.call(r,a)||!(a in r)||!Do(e[a],r[a]))return!1;return Object.keys(r).length===o}}return e!==e&&r!==r}const It=new WeakMap,Kt=()=>{},pt=Kt(),No=Object,Ce=e=>e===pt,$t=e=>typeof e=="function",sr=(e,r)=>({...e,...r}),u0=e=>$t(e.then),Bn={},Za={},ws="undefined",za=typeof window!=ws,Uo=typeof document!=ws,qu=za&&"Deno"in window,Ku=()=>za&&typeof window.requestAnimationFrame!=ws,ar=(e,r)=>{const a=It.get(e);return[()=>!Ce(r)&&e.get(r)||Bn,o=>{if(!Ce(r)){const s=e.get(r);r in Za||(Za[r]=s),a[5](r,sr(s,o),s||Bn)}},a[6],()=>!Ce(r)&&r in Za?Za[r]:!Ce(r)&&e.get(r)||Bn]};let Bo=!0;const Yu=()=>Bo,[Wo,Go]=za&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Kt,Kt],Qu=()=>{const e=Uo&&document.visibilityState;return Ce(e)||e!=="hidden"},Ju=e=>(Uo&&document.addEventListener("visibilitychange",e),Wo("focus",e),()=>{Uo&&document.removeEventListener("visibilitychange",e),Go("focus",e)}),Xu=e=>{const r=()=>{Bo=!0,e()},a=()=>{Bo=!1};return Wo("online",r),Wo("offline",a),()=>{Go("online",r),Go("offline",a)}},e2={isOnline:Yu,isVisible:Qu},t2={initFocus:Ju,initReconnect:Xu},ni=!c.useId,Yr=!za||qu,r2=e=>Ku()?window.requestAnimationFrame(e):setTimeout(e,1),hn=Yr?c.useEffect:c.useLayoutEffect,Wn=typeof navigator<"u"&&navigator.connection,oi=!Yr&&Wn&&(["slow-2g","2g"].includes(Wn.effectiveType)||Wn.saveData),Ia=new WeakMap,a2=e=>No.prototype.toString.call(e),Gn=(e,r)=>e===`[object ${r}]`;let n2=0;const qo=e=>{const r=typeof e,a=a2(e),o=Gn(a,"Date"),s=Gn(a,"RegExp"),i=Gn(a,"Object");let h,d;if(No(e)===e&&!o&&!s){if(h=Ia.get(e),h)return h;if(h=++n2+"~",Ia.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=qo(e[d])+",";Ia.set(e,h)}if(i){h="#";const u=No.keys(e).sort();for(;!Ce(d=u.pop());)Ce(e[d])||(h+=d+":"+qo(e[d])+",");Ia.set(e,h)}}else h=o?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},Ca=e=>{if($t(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?qo(e):"",[e,r]};let o2=0;const Ko=()=>++o2;async function p0(...e){const[r,a,o,s]=e,i=sr({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let h=i.populateCache;const d=i.rollbackOnError;let u=i.optimisticData;const f=g=>typeof d=="function"?d(g):d!==!1,p=i.throwOnError;if($t(a)){const g=a,x=[],b=r.keys();for(const v of b)!/^\$(inf|sub)\$/.test(v)&&g(r.get(v)._k)&&x.push(v);return Promise.all(x.map(m))}return m(a);async function m(g){const[x]=Ca(g);if(!x)return;const[b,v]=ar(r,x),[w,E,j,S]=It.get(r),C=()=>{const A=w[x];return($t(i.revalidate)?i.revalidate(b().data,g):i.revalidate!==!1)&&(delete j[x],delete S[x],A&&A[0])?A[0](d0).then(()=>b().data):b().data};if(e.length<3)return C();let _=o,k,y=!1;const L=Ko();E[x]=[L,0];const z=!Ce(u),O=b(),R=O.data,M=O._c,T=Ce(M)?R:M;if(z&&(u=$t(u)?u(T,R):u,v({data:u,_c:T})),$t(_))try{_=_(T)}catch(A){k=A,y=!0}if(_&&u0(_))if(_=await _.catch(A=>{k=A,y=!0}),L!==E[x][0]){if(y)throw k;return _}else y&&z&&f(k)&&(h=!0,v({data:T,_c:pt}));if(h&&!y)if($t(h)){const A=h(_,T);v({data:A,error:pt,_c:pt})}else v({data:_,error:pt,_c:pt});if(E[x][1]=Ko(),Promise.resolve(C()).then(()=>{v({_c:pt})}),y){if(p)throw k;return}return _}}const si=(e,r)=>{for(const a in e)e[a][0]&&e[a][0](r)},s2=(e,r)=>{if(!It.has(e)){const a=sr(t2,r),o=Object.create(null),s=p0.bind(pt,e);let i=Kt;const h=Object.create(null),d=(p,m)=>{const g=h[p]||[];return h[p]=g,g.push(m),()=>g.splice(g.indexOf(m),1)},u=(p,m,g)=>{e.set(p,m);const x=h[p];if(x)for(const b of x)b(m,g)},f=()=>{if(!It.has(e)&&(It.set(e,[o,Object.create(null),Object.create(null),Object.create(null),s,u,d]),!Yr)){const p=a.initFocus(setTimeout.bind(pt,si.bind(pt,o,c0))),m=a.initReconnect(setTimeout.bind(pt,si.bind(pt,o,l0)));i=()=>{p&&p(),m&&m(),It.delete(e)}}};return f(),[e,s,f,i]}return[e,It.get(e)[4]]},i2=(e,r,a,o,s)=>{const i=a.errorRetryCount,h=s.retryCount,d=~~((Math.random()+.5)*(1<<(h<8?h:8)))*a.errorRetryInterval;!Ce(i)&&h>i||setTimeout(o,d,s)},c2=Do,[bs,qr]=s2(new Map),l2=sr({onLoadingSlow:Kt,onSuccess:Kt,onError:Kt,onErrorRetry:i2,onDiscarded:Kt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:oi?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:oi?5e3:3e3,compare:c2,isPaused:()=>!1,cache:bs,mutate:qr,fallback:{}},e2),d2=(e,r)=>{const a=sr(e,r);if(r){const{use:o,fallback:s}=e,{use:i,fallback:h}=r;o&&i&&(a.use=o.concat(i)),s&&h&&(a.fallback=sr(s,h))}return a},u2=c.createContext({}),h0="$inf$",f0=za&&window.__SWR_DEVTOOLS_USE__,p2=f0?window.__SWR_DEVTOOLS_USE__:[],h2=()=>{f0&&(window.__SWR_DEVTOOLS_REACT__=c)},m0=e=>$t(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],g0=()=>{const e=c.useContext(u2);return c.useMemo(()=>sr(l2,e),[e])},f2=e=>(r,a,o)=>e(r,a&&((...i)=>{const[h]=Ca(r),[,,,d]=It.get(bs);if(h.startsWith(h0))return a(...i);const u=d[h];return Ce(u)?a(...i):(delete d[h],u)}),o),m2=p2.concat(f2),g2=e=>function(...a){const o=g0(),[s,i,h]=m0(a),d=d2(o,h);let u=e;const{use:f}=d,p=(f||[]).concat(m2);for(let m=p.length;m--;)u=p[m](u);return u(s,i||d.fetcher||null,d)},v2=(e,r,a)=>{const o=r[e]||(r[e]=[]);return o.push(a),()=>{const s=o.indexOf(a);s>=0&&(o[s]=o[o.length-1],o.pop())}},x2=(e,r)=>(...a)=>{const[o,s,i]=m0(a),h=(i.use||[]).concat(r);return e(o,s,{...i,use:h})};h2();const qn=c.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(r=>{e.status="fulfilled",e.value=r},r=>{e.status="rejected",e.reason=r}),e}}),Kn={dedupe:!0},ii=Promise.resolve(pt),w2=()=>Kt,b2=(e,r,a)=>{const{cache:o,compare:s,suspense:i,fallbackData:h,revalidateOnMount:d,revalidateIfStale:u,refreshInterval:f,refreshWhenHidden:p,refreshWhenOffline:m,keepPreviousData:g,strictServerPrefetchWarning:x}=a,[b,v,w,E]=It.get(o),[j,S]=Ca(e),C=c.useRef(!1),_=c.useRef(!1),k=c.useRef(j),y=c.useRef(r),L=c.useRef(a),z=()=>L.current,O=()=>z().isVisible()&&z().isOnline(),[R,M,T,A]=ar(o,j),$=c.useRef({}).current,I=Ce(h)?Ce(a.fallback)?pt:a.fallback[j]:h,F=(Q,ce)=>{for(const ne in $){const q=ne;if(q==="data"){if(!s(Q[q],ce[q])&&(!Ce(Q[q])||!s(ie,ce[q])))return!1}else if(ce[q]!==Q[q])return!1}return!0},H=!C.current,Z=c.useMemo(()=>{const Q=R(),ce=A(),ne=K=>{const pe=sr(K);return delete pe._k,(()=>{if(!j||!r||z().isPaused())return!1;if(H&&!Ce(d))return d;const Oe=Ce(I)?pe.data:I;return Ce(Oe)||u})()?{isValidating:!0,isLoading:!0,...pe}:pe},q=ne(Q),ue=Q===ce?q:ne(ce);let de=q;return[()=>{const K=ne(R());return F(K,de)?(de.data=K.data,de.isLoading=K.isLoading,de.isValidating=K.isValidating,de.error=K.error,de):(de=K,K)},()=>ue]},[o,j]),P=Vo.useSyncExternalStore(c.useCallback(Q=>T(j,(ce,ne)=>{F(ne,ce)||Q()}),[o,j]),Z[0],Z[1]),G=b[j]&&b[j].length>0,D=P.data,W=Ce(D)?I&&u0(I)?qn(I):I:D,Y=P.error,J=c.useRef(W),ie=g?Ce(D)?Ce(J.current)?W:J.current:D:W,he=j&&Ce(W),ee=c.useRef(null);!Yr&&Vo.useSyncExternalStore(w2,()=>(ee.current=!1,ee),()=>(ee.current=!0,ee));const xe=ee.current;x&&xe&&!i&&he&&console.warn(`Missing pre-initiated data for serialized key "${j}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const te=!j||!r||z().isPaused()||G&&!Ce(Y)?!1:H&&!Ce(d)?d:i?Ce(W)?!1:u:Ce(W)||u,B=H&&te,Je=Ce(P.isValidating)?B:P.isValidating,Te=Ce(P.isLoading)?B:P.isLoading,Ue=c.useCallback(async Q=>{const ce=y.current;if(!j||!ce||_.current||z().isPaused())return!1;let ne,q,ue=!0;const de=Q||{},K=!w[j]||!de.dedupe,pe=()=>ni?!_.current&&j===k.current&&C.current:j===k.current,qe={isValidating:!1,isLoading:!1},Oe=()=>{M(qe)},Ke=()=>{const X=w[j];X&&X[1]===q&&delete w[j]},ht={isValidating:!0};Ce(R().data)&&(ht.isLoading=!0);try{if(K&&(M(ht),a.loadingTimeout&&Ce(R().data)&&setTimeout(()=>{ue&&pe()&&z().onLoadingSlow(j,a)},a.loadingTimeout),w[j]=[ce(S),Ko()]),[ne,q]=w[j],ne=await ne,K&&setTimeout(Ke,a.dedupingInterval),!w[j]||w[j][1]!==q)return K&&pe()&&z().onDiscarded(j),!1;qe.error=pt;const X=v[j];if(!Ce(X)&&(q<=X[0]||q<=X[1]||X[1]===0))return Oe(),K&&pe()&&z().onDiscarded(j),!1;const oe=R().data;qe.data=s(oe,ne)?oe:ne,K&&pe()&&z().onSuccess(ne,j,a)}catch(X){Ke();const oe=z(),{shouldRetryOnError:we}=oe;oe.isPaused()||(qe.error=X,K&&pe()&&(oe.onError(X,j,oe),(we===!0||$t(we)&&we(X))&&(!z().revalidateOnFocus||!z().revalidateOnReconnect||O())&&oe.onErrorRetry(X,j,oe,De=>{const ze=b[j];ze&&ze[0]&&ze[0](ri,De)},{retryCount:(de.retryCount||0)+1,dedupe:!0})))}return ue=!1,Oe(),!0},[j,o]),Ge=c.useCallback((...Q)=>p0(o,k.current,...Q),[]);if(hn(()=>{y.current=r,L.current=a,Ce(D)||(J.current=D)}),hn(()=>{if(!j)return;const Q=Ue.bind(pt,Kn);let ce=0;z().revalidateOnFocus&&(ce=Date.now()+z().focusThrottleInterval);const q=v2(j,b,(ue,de={})=>{if(ue==c0){const K=Date.now();z().revalidateOnFocus&&K>ce&&O()&&(ce=K+z().focusThrottleInterval,Q())}else if(ue==l0)z().revalidateOnReconnect&&O()&&Q();else{if(ue==d0)return Ue();if(ue==ri)return Ue(de)}});return _.current=!1,k.current=j,C.current=!0,M({_k:S}),te&&(w[j]||(Ce(W)||Yr?Q():r2(Q))),()=>{_.current=!0,q()}},[j]),hn(()=>{let Q;function ce(){const q=$t(f)?f(R().data):f;q&&Q!==-1&&(Q=setTimeout(ne,q))}function ne(){!R().error&&(p||z().isVisible())&&(m||z().isOnline())?Ue(Kn).then(ce):ce()}return ce(),()=>{Q&&(clearTimeout(Q),Q=-1)}},[f,p,m,j]),c.useDebugValue(ie),i){if(!ni&&Yr&&he)throw new Error("Fallback data is required when using Suspense in SSR.");he&&(y.current=r,L.current=a,_.current=!1);const Q=E[j],ce=!Ce(Q)&&he?Ge(Q):ii;if(qn(ce),!Ce(Y)&&he)throw Y;const ne=he?Ue(Kn):ii;!Ce(ie)&&he&&(ne.status="fulfilled",ne.value=!0),qn(ne)}return{mutate:Ge,get data(){return $.data=!0,ie},get error(){return $.error=!0,Y},get isValidating(){return $.isValidating=!0,Je},get isLoading(){return $.isLoading=!0,Te}}},Ae=g2(b2),jt=()=>{const{adapter:e,deployment:r}=Se(),a=e.useNavigate(),o=(u,f)=>{a?a(u,f):window.location.href=u},s=u=>{if(u)return u;const p=new URLSearchParams(window.location.search).get("redirect_uri");return p||window.location.href};return{navigate:o,navigateToSignIn:u=>{if(!r)return;const f=s(u),p=new URLSearchParams;p.set("redirect_uri",f),(r==null?void 0:r.mode)==="staging"&&p.set("__dev_session__",mt(r.backend_host)??""),o(`${r.ui_settings.sign_in_page_url}?${p.toString()}`,{replace:!0})},navigateToAccountSelection:u=>{if(!r)return;const f=s(u),p=new URLSearchParams;p.set("redirect_uri",f),(r==null?void 0:r.mode)==="staging"&&p.set("__dev_session__",mt(r.backend_host)??""),o(`https://${r.frontend_host}?${p.toString()}`,{replace:!0})},navigateToSignUp:u=>{if(!r)return;const f=s(u),p=new URLSearchParams;p.set("redirect_uri",f),(r==null?void 0:r.mode)==="staging"&&p.set("__dev_session__",mt(r.backend_host)??""),o(`${r.ui_settings.sign_up_page_url}?${p.toString()}`,{replace:!0})}}};async function y2(e){const r=await e("/session",{method:"GET"});return(await V(r)).data}async function j2(e,r){const a=await e(`/session/switch-sign-in?sign_in_id=${r}`,{method:"POST"});return V(a)}async function _2(e,r){const a=r?`/session/sign-out?sign_in_id=${r}`:"/session/sign-out",o=await e(a,{method:"POST"});return V(o)}async function k2(e,r){const a=await e(`/session/switch-organization${r?`?organization_id=${r}`:""}`,{method:"POST"});return V(a)}async function C2(e,r){const a=await e(`/session/switch-workspace?workspace_id=${r}`,{method:"POST"});return V(a)}async function S2(e,r){const a=await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"});return V(a)}const Yo=new Map,va=new Map;function Mt(){Yo.clear(),va.clear()}async function E2(e,r){const a=await e(`/session/token${r?`?template=${r}`:""}`);return V(a)}function at(){const{client:e,loading:r}=je(),{deployment:a}=Se(),{navigate:o}=jt(),{cache:s}=g0(),{data:i,error:h,mutate:d,isLoading:u}=Ae(r?null:"/session",()=>y2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),f=c.useCallback(async()=>{await d(void 0,{revalidate:!0})},[d]),p=c.useCallback(async(m="default")=>{if(!i)throw new Error("no session");const g=Yo.get(m);if(g&&g.expires>Date.now())return(g==null?void 0:g.token)||"";va.get(m)||va.set(m,E2(e,m));const x=await va.get(m);return va.delete(m),Yo.set(m,x.data),x.data.token},[e,i==null?void 0:i.active_signin]);return r||!i||u?{loading:!0,error:h,session:null,switchSignIn:null,switchOrganization:null,switchWorkspace:null,exchangeTicket:null,signOut:null,getToken:null,refetch:f}:{loading:u,error:h,session:i,switchSignIn:async m=>{await j2(e,m),Mt(),await qr("/me/organization-memberships",void 0,{revalidate:!1}),await qr("/me/workspace-memberships",void 0,{revalidate:!1}),await d(void 0,{revalidate:!0}),await qr("/me/organization-memberships"),await qr("/me/workspace-memberships")},signOut:async m=>{await _2(e,m);const g=["/session","/user","/me/signins","/me/organization-memberships","/me/workspace-memberships","wacht-notifications:scope-unread"],x=["wacht-notifications:","wacht-agent-sessions:","wacht-agent-contexts:","wacht-org-domains:","wacht-api-workspaces:","wacht-api-organizations:"];if(s instanceof Map){const b=Array.from(s.keys());for(const v of b){let w=!1;(g.includes(v)||typeof v=="string"&&x.some(E=>v.startsWith(E)))&&(w=!0),w&&s.delete(v)}}Mt(),await d(void 0,{revalidate:!0}),a!=null&&a.ui_settings&&(m&&a.ui_settings.after_sign_out_one_page_url?o(a.ui_settings.after_sign_out_one_page_url):!m&&a.ui_settings.after_sign_out_all_page_url&&o(a.ui_settings.after_sign_out_all_page_url))},switchOrganization:async m=>{await k2(e,m),Mt(),await d(void 0,{revalidate:!0})},switchWorkspace:async m=>{await C2(e,m),Mt(),await d(void 0,{revalidate:!0})},exchangeTicket:async m=>{await S2(e,m),Mt(),await d(void 0,{revalidate:!0})},getToken:p,refetch:f}}const Ht=()=>{const{organizationMemberships:e,refetch:r,loading:a}=Jt(),{client:o}=je(),{refetch:s}=at(),i=c.useCallback(async H=>(await V(await o(`/organizations/${H.id}/roles`,{method:"GET"}))).data,[o]),h=c.useCallback(async(H,Z)=>{const P=new URLSearchParams;return Z&&(P.set("page",Z.page.toString()),P.set("limit",Z.limit.toString()),Z.search&&P.set("search",Z.search)),(await V(await o(`/organizations/${H.id}/members?${P.toString()}`,{method:"GET"}))).data},[o]),d=c.useCallback(async H=>(await V(await o(`/organizations/${H.id}/invitations`,{method:"GET"}))).data,[o]),u=c.useCallback(async H=>(await V(await o(`/organizations/${H.id}/domains`,{method:"GET"}))).data,[o]),f=c.useCallback(async(H,Z)=>{await o(`/organizations/${H.id}/members/${Z.id}/remove`,{method:"POST"})},[o]),p=c.useCallback(async H=>{const Z=new FormData;Z.append("name",H.name),H.image&&Z.append("image",H.image),H.description&&Z.append("description",H.description);const P=await V(await o("/organizations",{method:"POST",body:Z}));return Mt(),await r(),await s(),P},[s,r,o]),m=c.useCallback(async(H,Z)=>{const P=Object.entries(Z).reduce((D,[W,Y])=>(Y!=null&&(Array.isArray(Y)?Y.forEach(J=>D.append(W,J)):D.append(W,Y)),D),new FormData),G=await V(await o(`/organizations/${H.id}/update`,{method:"POST",body:P}));return await r(),G},[r,o]),g=c.useCallback(async(H,Z)=>{await o(`/organizations/${H.id}/roles/${Z.id}/remove`,{method:"POST"})},[o]),x=c.useCallback(async(H,Z)=>{const P=new FormData;return P.append("domain",Z.fqdn),await V(await o(`/organizations/${H.id}/domains`,{method:"POST",body:P}))},[o]),b=c.useCallback(async(H,Z)=>await V(await o(`/organizations/${H.id}/domains/${Z.id}/verify`,{method:"POST"})),[o]),v=c.useCallback(async(H,Z)=>await V(await o(`/organizations/${H.id}/domains/${Z.id}/delete`,{method:"POST"})),[o]),w=c.useCallback(async H=>(await V(await o(`/organizations/${H.id}/enterprise-connections`,{method:"GET"}))).data,[o]),E=c.useCallback(async(H,Z)=>{const P=new FormData;return P.append("protocol",Z.protocol),Z.domain_id&&P.append("domain_id",Z.domain_id),Z.idp_entity_id&&P.append("idp_entity_id",Z.idp_entity_id),Z.idp_sso_url&&P.append("idp_sso_url",Z.idp_sso_url),Z.idp_certificate&&P.append("idp_certificate",Z.idp_certificate),Z.oidc_client_id&&P.append("oidc_client_id",Z.oidc_client_id),Z.oidc_client_secret&&P.append("oidc_client_secret",Z.oidc_client_secret),Z.oidc_issuer_url&&P.append("oidc_issuer_url",Z.oidc_issuer_url),Z.oidc_scopes&&P.append("oidc_scopes",Z.oidc_scopes),Z.jit_enabled!==void 0&&P.append("jit_enabled",String(Z.jit_enabled)),Z.attribute_mapping&&P.append("attribute_mapping",JSON.stringify(Z.attribute_mapping)),(await V(await o(`/organizations/${H.id}/enterprise-connections`,{method:"POST",body:P}))).data},[o]),j=c.useCallback(async(H,Z,P)=>{const G=new FormData;return P.domain_id&&G.append("domain_id",P.domain_id),P.idp_entity_id&&G.append("idp_entity_id",P.idp_entity_id),P.idp_sso_url&&G.append("idp_sso_url",P.idp_sso_url),P.idp_certificate&&G.append("idp_certificate",P.idp_certificate),P.oidc_client_id&&G.append("oidc_client_id",P.oidc_client_id),P.oidc_client_secret&&G.append("oidc_client_secret",P.oidc_client_secret),P.oidc_issuer_url&&G.append("oidc_issuer_url",P.oidc_issuer_url),P.oidc_scopes&&G.append("oidc_scopes",P.oidc_scopes),P.attribute_mapping&&G.append("attribute_mapping",JSON.stringify(P.attribute_mapping)),(await V(await o(`/organizations/${H.id}/enterprise-connections/${Z}/update`,{method:"POST",body:G}))).data},[o]),S=c.useCallback(async(H,Z)=>{await o(`/organizations/${H.id}/enterprise-connections/${Z}/delete`,{method:"POST"})},[o]),C=c.useCallback(async(H,Z)=>{const P=new FormData;return P.append("protocol",Z.protocol),Z.idp_entity_id&&P.append("idp_entity_id",Z.idp_entity_id),Z.idp_sso_url&&P.append("idp_sso_url",Z.idp_sso_url),Z.idp_certificate&&P.append("idp_certificate",Z.idp_certificate),Z.oidc_issuer_url&&P.append("oidc_issuer_url",Z.oidc_issuer_url),Z.oidc_client_id&&P.append("oidc_client_id",Z.oidc_client_id),Z.oidc_client_secret&&P.append("oidc_client_secret",Z.oidc_client_secret),(await V(await o(`/organizations/${H.id}/enterprise-connections/test`,{method:"POST",body:P}))).data},[o]),_=c.useCallback(async(H,Z)=>(await V(await o(`/organizations/${H.id}/enterprise-connections/${Z}/test`,{method:"POST"}))).data,[o]),k=c.useCallback(async(H,Z)=>(await V(await o(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token`,{method:"POST"}))).data,[o]),y=c.useCallback(async(H,Z)=>(await V(await o(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token`,{method:"GET"}))).data,[o]),L=c.useCallback(async(H,Z)=>{await o(`/organizations/${H.id}/enterprise-connections/${Z}/scim/token/revoke`,{method:"POST"})},[o]),z=c.useCallback(async(H,Z)=>{const P=new FormData;return P.append("name",Z.name),Z.permissions&&Z.permissions.forEach((D,W)=>{P.append(`permissions[${W}]`,D)}),await V(await o(`/organizations/${H.id}/roles`,{method:"POST",body:P}))},[o]),O=c.useCallback(async H=>(await V(await o(`/organizations/${H.id}/leave`,{method:"POST"}))).data,[o]),R=c.useCallback(async H=>{const Z=await V(await o(`/organizations/${H.id}/delete`,{method:"POST"}));return Mt(),await r(),await s(),Z.data},[o,r,s]),M=c.useCallback(async(H,Z,P)=>(await V(await o(`/organizations/${H.id}/members/${Z.id}/roles/${P.id}/add`,{method:"POST"}))).data,[o]),T=c.useCallback(async(H,Z,P)=>(await V(await o(`/organizations/${H.id}/members/${Z.id}/roles/${P.id}/remove`,{method:"POST"}))).data,[o]),A=c.useCallback(async(H,Z)=>{var D,W;const P=new FormData;return P.append("email",Z.email),P.append("role_id",Z.organizationRole.id),(D=Z.workspace)!=null&&D.id&&P.append("workspace_id",Z.workspace.id),(W=Z.workspaceRole)!=null&&W.id&&P.append("workspace_role_id",Z.workspaceRole.id),(await V(await o(`/organizations/${H.id}/invitations`,{method:"POST",body:P}))).data},[o]),$=c.useCallback(async(H,Z)=>(await V(await o(`/organizations/${H.id}/invitations/${Z.id}/discard`,{method:"POST"}))).data,[o]),I=c.useCallback(async(H,Z)=>(await V(await o(`/organizations/${H.id}/invitations/${Z.id}/resend`,{method:"POST"}))).data,[o]);return{organizations:c.useMemo(()=>e==null?void 0:e.map(H=>H.organization),[e]),loading:a,error:null,refetch:r,leaveOrganization:O,getOrganizationRoles:i,getOrganizationMembers:h,removeOrganizationMember:f,createOrganization:p,getOrganizationInvitations:d,getOrganizationDomains:u,addOrganizationDomain:x,verifyOrganizationDomain:b,removeOrganizationDomain:v,addRoleToOrganizationMember:M,removeRoleFromOrganizationMember:T,inviteOrganizationMember:A,discardOrganizationInvitation:$,resendOrganizationInvitation:I,updateOrganization:m,addRole:z,removeOrganizationRoles:g,deleteOrganization:R,getEnterpriseConnections:w,createEnterpriseConnection:E,updateEnterpriseConnection:j,deleteEnterpriseConnection:S,testEnterpriseConnectionConfig:C,testEnterpriseConnection:_,generateSCIMToken:k,getSCIMToken:y,revokeSCIMToken:L}},cr=()=>{const{loading:e,error:r,refetch:a,getOrganizationMembers:o,getOrganizationRoles:s,leaveOrganization:i,removeOrganizationMember:h,getOrganizationInvitations:d,getOrganizationDomains:u,removeOrganizationDomain:f,addOrganizationDomain:p,verifyOrganizationDomain:m,addRoleToOrganizationMember:g,removeRoleFromOrganizationMember:x,inviteOrganizationMember:b,discardOrganizationInvitation:v,resendOrganizationInvitation:w,updateOrganization:E,removeOrganizationRoles:j,getEnterpriseConnections:S,createEnterpriseConnection:C,updateEnterpriseConnection:_,deleteEnterpriseConnection:k,testEnterpriseConnectionConfig:y,testEnterpriseConnection:L,generateSCIMToken:z,getSCIMToken:O,revokeSCIMToken:R}=Ht(),{session:M,error:T,loading:A}=at(),{organizationMemberships:$}=Jt(),I=c.useMemo(()=>($==null?void 0:$.find(K=>{var pe;return K.id===((pe=M==null?void 0:M.active_signin)==null?void 0:pe.active_organization_membership_id)}))||null,[$,M]),F=c.useMemo(()=>(I==null?void 0:I.organization)||null,[I]),H=c.useCallback(async K=>F?await E(F,K):[],[F,E]),Z=c.useCallback(async()=>F?await o(F):[],[F,o]),P=c.useCallback(async()=>F?await s(F):[],[F,s]),G=c.useCallback(async K=>F?await h(F,K):[],[F,h]),D=c.useCallback(async K=>F?await j(F,K):void 0,[F,j]),W=c.useCallback(async()=>F?await u(F):[],[F,u]),Y=c.useCallback(async K=>F?await p(F,K):void 0,[F,p]),J=c.useCallback(async K=>F?await m(F,K):void 0,[F,m]),ie=c.useCallback(async K=>F?await f(F,K):void 0,[F,f]),he=c.useCallback(async(K,pe)=>F?await g(F,K,pe):void 0,[F,g]),ee=c.useCallback(async(K,pe)=>F?await x(F,K,pe):void 0,[F,x]),xe=c.useCallback(async K=>F?await b(F,K):void 0,[F,b]),te=c.useCallback(async K=>F?await v(F,K):void 0,[F,v]),B=c.useCallback(async K=>F?await w(F,K):void 0,[F,w]),Je=c.useCallback(async()=>{F&&await i(F)},[F,i]),Te=c.useCallback(async()=>F?await d(F):[],[F,d]),Ue=c.useCallback(async()=>F?await S(F):[],[F,S]),Ge=c.useCallback(async K=>{if(F)return await C(F,K)},[F,C]),me=c.useCallback(async(K,pe)=>{if(F)return await _(F,K,pe)},[F,_]),Q=c.useCallback(async K=>{F&&await k(F,K)},[F,k]),ce=c.useCallback(async K=>F?await y(F,K):null,[F,y]),ne=c.useCallback(async K=>F?await L(F,K):null,[F,L]),q=c.useCallback(async K=>{if(F)return await z(F,K)},[F,z]),ue=c.useCallback(async K=>{if(F)return await O(F,K)},[F,O]),de=c.useCallback(async K=>{F&&await R(F,K)},[F,R]);return A||e?{activeOrganization:null,activeMembership:null,loading:!0,error:T||r,updateOrganization:null,getRoles:null,getMembers:null,getDomains:null,addDomain:null,verifyDomain:null,removeDomain:null,removeRole:null,getInvitations:null,removeMember:null,addMemberRole:null,removeMemberRole:null,inviteMember:null,discardInvitation:null,resendInvitation:null,leave:null,getEnterpriseConnections:null,createEnterpriseConnection:null,updateEnterpriseConnection:null,deleteEnterpriseConnection:null,generateSCIMToken:null,getSCIMToken:null,revokeSCIMToken:null}:{activeOrganization:F,activeMembership:I,loading:!1,refetch:a,getRoles:P,updateOrganization:H,getMembers:Z,getDomains:W,addDomain:Y,verifyDomain:J,removeDomain:ie,getInvitations:Te,removeMember:G,leave:Je,removeRole:D,addMemberRole:he,removeMemberRole:ee,inviteMember:xe,discardInvitation:te,resendInvitation:B,getEnterpriseConnections:Ue,createEnterpriseConnection:Ge,updateEnterpriseConnection:me,deleteEnterpriseConnection:Q,testEnterpriseConnectionConfig:ce,testEnterpriseConnection:ne,generateSCIMToken:q,getSCIMToken:ue,revokeSCIMToken:de,error:null}};async function A2(e){return(await V(await e("/me/organization-memberships"))).data}const Jt=()=>{const{client:e,loading:r}=je(),{data:a,isLoading:o,error:s,mutate:i}=Ae(r?null:"/me/organization-memberships",()=>A2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),h=c.useCallback(async()=>{await i()},[i]);return{organizationMemberships:a,loading:r||o,error:s,refetch:h}};async function z2(e){return(await V(await e("/me/workspace-memberships"))).data}async function $2(e,r){return(await V(await e(`/workspaces/${r}/leave`,{method:"POST"}))).data}const zn=()=>{const{client:e,loading:r}=je(),{deployment:a}=Se(),{data:o,isLoading:s,error:i,mutate:h}=Ae(!r&&(a!=null&&a.b2b_settings.workspaces_enabled)?"/me/workspace-memberships":null,()=>z2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),d=c.useCallback(async()=>{await h(void 0,{revalidate:!0})},[h]);return{workspaceMemberships:o,loading:r||s,error:i,refetch:d}},lr=()=>{const{workspaceMemberships:e,refetch:r,loading:a,error:o}=zn(),{client:s}=je(),{refetch:i}=at(),h=c.useMemo(()=>e==null?void 0:e.map(k=>({...k.workspace,organization:k.organization,eligibility_restriction:k.eligibility_restriction})),[e]),d=c.useCallback(async(k,y,L,z)=>{const O=new FormData;O.append("name",y),L&&O.append("image",L),z&&O.append("description",z),O.append("organization_id",k);const R=await V(await s("/workspaces",{method:"POST",body:O}));return Mt(),await r(),R.data},[s,r]),u=c.useCallback(async k=>{const y=await $2(s,k);return Mt(),await r(),await i(),y},[s,r,i]),f=c.useCallback(async(k,y)=>{const L=new FormData;y.name&&L.append("name",y.name),y.description&&L.append("description",y.description),y.image&&L.append("image",y.image),y.enforce_2fa!==void 0&&L.append("enforce_2fa",String(y.enforce_2fa)),y.enable_ip_restriction!==void 0&&L.append("enable_ip_restriction",String(y.enable_ip_restriction)),y.whitelisted_ips&&y.whitelisted_ips.forEach(O=>L.append("whitelisted_ips",O));const z=await V(await s(`/workspaces/${k.id}/update`,{method:"POST",body:L}));return await r(),z.data},[s,r]),p=c.useCallback(async k=>{const y=await V(await s(`/workspaces/${k.id}/delete`,{method:"POST"}));return Mt(),await r(),y.data},[s,r]),m=c.useCallback(async(k,y)=>{const L=new URLSearchParams;return y&&(L.set("page",y.page.toString()),L.set("limit",y.limit.toString()),y.search&&L.set("search",y.search)),(await V(await s(`/workspaces/${k.id}/members?${L.toString()}`,{method:"GET"}))).data},[s]),g=c.useCallback(async k=>(await V(await s(`/workspaces/${k.id}/roles`,{method:"GET"}))).data,[s]),x=c.useCallback(async(k,y,L)=>{const z=new FormData;return z.append("name",y),L.forEach(R=>z.append("permissions",R)),(await V(await s(`/workspaces/${k.id}/roles`,{method:"POST",body:z}))).data},[s]),b=c.useCallback(async(k,y)=>(await V(await s(`/workspaces/${k.id}/roles/${y.id}/delete`,{method:"POST"}))).data,[s]),v=c.useCallback(async(k,y)=>{const L=await V(await s(`/workspaces/${k.id}/members/${y}/remove`,{method:"POST"}));return await r(),L.data},[s,r]),w=c.useCallback(async(k,y,L)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${L}/add`,{method:"POST"}))).data,[s]),E=c.useCallback(async(k,y,L)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${L}/remove`,{method:"POST"}))).data,[s]),j=c.useCallback(async k=>(await V(await s(`/organizations/${k.organization.id}/invitations?workspace_id=${k.id}`,{method:"GET"}))).data,[s]),S=c.useCallback(async(k,y,L)=>{const z=new FormData;return z.append("email",y),z.append("workspace_id",k.id),L&&z.append("workspace_role_id",L),(await V(await s(`/organizations/${k.organization.id}/invitations`,{method:"POST",body:z}))).data},[s]),C=c.useCallback(async(k,y)=>(await V(await s(`/organizations/${k.organization.id}/invitations/${y}/discard`,{method:"POST"}))).data,[s]),_=c.useCallback(async(k,y)=>(await V(await s(`/organizations/${k.organization.id}/invitations/${y}/resend`,{method:"POST"}))).data,[s]);return{workspaces:h||[],loading:a,error:o,refetch:r,leaveWorkspace:u,createWorkspace:d,updateWorkspace:f,deleteWorkspace:p,getWorkspaceMembers:m,getWorkspaceRoles:g,createWorkspaceRole:x,deleteWorkspaceRole:b,removeWorkspaceMember:v,addWorkspaceMemberRole:w,removeWorkspaceMemberRole:E,getWorkspaceInvitations:j,createWorkspaceInvitation:S,discardWorkspaceInvitation:C,resendWorkspaceInvitation:_}},Vt=()=>{const{refetch:e,loading:r,error:a,workspaces:o,leaveWorkspace:s,updateWorkspace:i,deleteWorkspace:h,getWorkspaceMembers:d,getWorkspaceRoles:u,createWorkspaceRole:f,deleteWorkspaceRole:p,removeWorkspaceMember:m,addWorkspaceMemberRole:g,removeWorkspaceMemberRole:x,getWorkspaceInvitations:b,createWorkspaceInvitation:v,discardWorkspaceInvitation:w,resendWorkspaceInvitation:E}=lr(),{workspaceMemberships:j}=zn(),{session:S,loading:C,error:_}=at(),k=c.useMemo(()=>(j==null?void 0:j.find(J=>{var ie;return J.id===((ie=S==null?void 0:S.active_signin)==null?void 0:ie.active_workspace_membership_id)}))||null,[j,S]),y=c.useMemo(()=>(k==null?void 0:k.workspace)||null,[k]),L=c.useCallback(async()=>{if(y)return await s(y.id)},[y,s]),z=c.useCallback(async J=>{if(y)return await i(y,J)},[y,i]),O=c.useCallback(async()=>{if(y)return await h(y)},[y,h]),R=c.useCallback(async J=>y?await d(y,J):{data:[],meta:{total:0,page:1,limit:10}},[y,d]),M=c.useCallback(async()=>y?await u(y):[],[y,u]),T=c.useCallback(async(J,ie)=>{if(y)return await f(y,J,ie)},[y,f]),A=c.useCallback(async J=>{if(y)return await p(y,J)},[y,p]),$=c.useCallback(async J=>{if(y)return await m(y,J)},[y,m]),I=c.useCallback(async(J,ie)=>{if(y)return await g(y,J,ie)},[y,g]),F=c.useCallback(async(J,ie)=>{if(y)return await x(y,J,ie)},[y,x]),H=c.useMemo(()=>(o==null?void 0:o.find(J=>J.id===(y==null?void 0:y.id)))||null,[o,y]),Z=c.useCallback(async()=>H?await b(H):[],[H,b]),P=c.useCallback(async J=>{if(H)return await v(H,J.email,J.workspaceRoleId)},[H,v]),G=c.useCallback(async J=>{if(H)return await w(H,J)},[H,w]),D=c.useCallback(async J=>{if(H)return await E(H,J)},[H,E]),W=r||C,Y=a||_;return W?{activeWorkspace:null,activeMembership:null,loading:!0,error:Y,refetch:e,leave:null,updateWorkspace:null,deleteWorkspace:null,getMembers:null,getRoles:null,createRole:null,deleteRole:null,inviteMember:null,removeMember:null,addMemberRole:null,removeMemberRole:null,getInvitations:null,discardInvitation:null,resendInvitation:null}:{activeWorkspace:y,activeMembership:k,loading:!1,error:Y,refetch:e,leave:L,updateWorkspace:z,deleteWorkspace:O,getMembers:R,getRoles:M,createRole:T,deleteRole:A,inviteMember:P,removeMember:$,addMemberRole:I,removeMemberRole:F,getInvitations:Z,discardInvitation:G,resendInvitation:D}};function Yn(e){const r=new Uint8Array(e);let a="";for(let o=0;o<r.length;o++)a+=String.fromCharCode(r[o]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Qn(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),o=atob(a),s=new Uint8Array(o.length);for(let i=0;i<o.length;i++)s[i]=o.charCodeAt(i);return s.buffer}const M2=async e=>(await V(await e("/me"))).data,L2=async e=>(await V(await e("/me/signins"))).data;function dr(){const{client:e,loading:r}=je(),{data:a,error:o,isLoading:s,mutate:i}=Ae(r?null:"/user",()=>M2(e)),h=async H=>{const Z=new FormData;for(const[G,D]of Object.entries(H))D!=null&&D!==""&&Z.append(G,String(D));const P=await V(await e("/me",{method:"POST",body:Z}));return i(),P},d=async()=>await V(await e("/me/email-addresses",{method:"GET"})),u=async H=>await V(await e(`/me/email-addresses/${H}`,{method:"GET"})),f=async H=>{const Z=new FormData;return Z.append("email",H),await V(await e("/me/email-addresses",{method:"POST",body:Z}))},p=async H=>await V(await e(`/me/email-addresses/${H}/delete`,{method:"POST"})),m=async H=>await V(await e(`/me/email-addresses/${H}/prepare-verification`,{method:"POST"})),g=async(H,Z)=>await V(await e(`/me/email-addresses/${H}/attempt-verification?code=${Z}`,{method:"POST"})),x=async(H,Z)=>{const P=new FormData;return P.append("phone_number",H),P.append("country_code",Z),await V(await e("/me/phone-numbers",{method:"POST",body:P}))},b=async H=>await V(await e(`/me/phone-numbers/${H}/delete`,{method:"POST"})),v=async H=>await V(await e(`/me/phone-numbers/${H}/prepare-verification`,{method:"POST"})),w=async(H,Z)=>{const P=new FormData;return P.append("code",Z),await V(await e(`/me/phone-numbers/${H}/attempt-verification`,{method:"POST",body:P}))},E=async H=>{const Z=await V(await e(`/me/phone-numbers/${H}/make-primary`,{method:"POST"}));return i(),Z},j=async H=>await V(await e(`/me/email-addresses/${H}/make-primary`,{method:"POST"})),S=async()=>(await V(await e("/me/authenticator",{method:"POST"}))).data,C=async(H,Z)=>{const P=new FormData;return P.append("authenticator_id",H),Z.forEach(D=>{P.append("codes",D)}),await V(await e("/me/authenticator/attempt-verification",{method:"POST",body:P}))},_=async H=>await V(await e(`/me/authenticator/${H}/delete`,{method:"POST"})),k=async()=>(await V(await e("/me/backup-codes",{method:"POST"}))).data,y=async H=>{const Z=new FormData;return Z.append("file",H),await V(await e("/me/profile-picture",{method:"POST",body:Z}))},L=async()=>(await V(await e("/me/backup-codes/regenerate",{method:"POST"}))).data,z=async(H,Z)=>{const P=new FormData;return P.append("current_password",H),P.append("new_password",Z),await V(await e("/me/update-password",{method:"POST",body:P}))},O=async H=>{const Z=new FormData;Z.append("current_password",H);const P=await V(await e("/me/remove-password",{method:"POST",body:Z}));return i(),P},R=async H=>{const Z=new FormData;return Z.append("password",H),await V(await e("/me/account/delete",{method:"POST",body:Z}))},M=async H=>await V(await e(`/me/social-connections/${H}/disconnect`,{method:"POST"})),T=async({provider:H,redirectUri:Z})=>{var D;const P=new URLSearchParams({provider:H});Z&&P.append("redirect_uri",Z);const G=await V(await e(`/me/init-sso-connection?${P.toString()}`,{method:"POST"}));return"data"in G&&((D=G.data)!=null&&D.oauth_url)&&window.open(G.data.oauth_url,"_blank"),G},A=async()=>await V(await e("/me/passkeys",{method:"GET"})),$=async H=>{var ie,he;const Z=await V(await e("/me/passkeys/register/begin",{method:"POST"}));if(!("data"in Z))return Z;const P=Z.data.options.publicKey,G={challenge:Qn(P.challenge),rp:P.rp,user:{id:Qn(P.user.id),name:P.user.name,displayName:P.user.displayName},pubKeyCredParams:P.pubKeyCredParams,timeout:P.timeout,attestation:P.attestation,authenticatorSelection:P.authenticatorSelection,excludeCredentials:(ie=P.excludeCredentials)==null?void 0:ie.map(ee=>({type:ee.type,id:Qn(ee.id),transports:ee.transports}))},D=await navigator.credentials.create({publicKey:G});if(!D)throw new Error("Failed to create credential");const W=D.response,Y={id:D.id,rawId:Yn(D.rawId),type:D.type,response:{clientDataJSON:Yn(W.clientDataJSON),attestationObject:Yn(W.attestationObject),transports:((he=W.getTransports)==null?void 0:he.call(W))||[]}};return await V(await e(`/me/passkeys/register/finish?name=${encodeURIComponent(H||"")}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)}))},I=async H=>await V(await e(`/me/passkeys/${H}/delete`,{method:"POST"})),F=async(H,Z)=>await V(await e(`/me/passkeys/${H}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:Z})}));return{user:{...a,refetch:i},loading:r||s,error:o||null,updateProfile:h,getEmailAddresses:d,getEmailAddress:u,createEmailAddress:f,deleteEmailAddress:p,prepareEmailVerification:m,attemptEmailVerification:g,makeEmailPrimary:j,createPhoneNumber:x,deletePhoneNumber:b,preparePhoneVerification:v,attemptPhoneVerification:w,makePhonePrimary:E,setupAuthenticator:S,verifyAuthenticator:C,deleteAuthenticator:_,generateBackupCodes:k,regenerateBackupCodes:L,updateProfilePicture:y,disconnectSocialConnection:M,connectSocialAccount:T,updatePassword:z,removePassword:O,deleteAccount:R,getPasskeys:A,registerPasskey:$,deletePasskey:I,renamePasskey:F}}function v0(){const{client:e,loading:r}=je(),{data:a,error:o,isLoading:s,mutate:i}=Ae(r?null:"/me/signins",()=>L2(e));return{signins:a,error:o||null,removeSignin:async d=>await V(await e(`/me/signins/${d}/signout`,{method:"POST"})),refetch:i,loading:s||r}}function x0(){const{session:e,loading:r}=at(),{loading:a,organizationMemberships:o}=Jt(),{loading:s,workspaceMemberships:i}=zn(),h=c.useMemo(()=>!e||!e.signins||e.signins.length===0?null:(o==null?void 0:o.find(u=>{var f;return u.id===((f=e.active_signin)==null?void 0:f.active_organization_membership_id)}))||null,[o,e]),d=c.useMemo(()=>!e||!e.signins||e.signins.length===0?null:(i==null?void 0:i.find(u=>{var f;return u.id===((f=e.active_signin)==null?void 0:f.active_workspace_membership_id)}))||null,[i,e]);return{loading:r||a||s,orgMembership:h,workspaceMembership:d}}function w0(){const{client:e,loading:r}=je(),[a,o]=c.useState(!1),s=async i=>{o(!0);try{const h=new FormData;for(const[f,p]of Object.entries(i))p&&h.append(f,p);const d=await e("/waitlist/join",{method:"POST",body:h});return await V(d)}finally{o(!1)}};return r?{loading:!0,joinWaitlist:null}:{loading:a,joinWaitlist:s}}function b0(){const{client:e,loading:r}=je(),[a,o]=c.useState(!1),[s,i]=c.useState(null),[h,d]=c.useState(null),[u,f]=c.useState(null),[p,m]=c.useState(!1),[g,x]=c.useState(null);c.useEffect(()=>{if(p||r)return;const v=new URLSearchParams(window.location.search),w=v.get("code"),E=v.get("state"),j=v.get("error"),S=v.get("error_description");if(!w&&!j){m(!0);const C=new Error("No OAuth callback data found.");i(C);return}if(m(!0),o(!0),j){const C=S||j,_=new Error(`OAuth Error: ${C}`);i(_),o(!1);return}if(w&&E)b(w,E);else{const C=new Error("Missing required OAuth parameters");i(C),o(!1)}},[p,r]);const b=async(v,w)=>{try{let E,j;try{const _=w.split(".");if(_.length!==3)throw new Error("Invalid OAuth state format - missing signature");const k=_[0].replace(/-/g,"+").replace(/_/g,"/"),y=k.length%4?"=".repeat(4-k.length%4):"",z=atob(k+y).split("|")[0];if(z==="sign_in")E="/auth/oauth2/callback",j="GET";else if(z==="connect_social")E="/me/sso-connection-callback",j="POST";else throw new Error(`Unknown OAuth action: ${z}`)}catch(_){const k=_ instanceof Error?_:new Error("Failed to parse OAuth state");i(new Error(`Invalid OAuth callback: ${k.message}. The authorization link may be expired or malformed. Please try signing in again.`)),o(!1);return}const S=await e(`${E}?code=${encodeURIComponent(v)}&state=${encodeURIComponent(w)}`,{method:j}),C=await V(S);if("data"in C){const _=C.data.session,k=C.data.redirect_uri||null;if(d(_),f(k),_.signin_attempts&&_.signin_attempts.length>0){const y=_.signin_attempts.at(-1);y&&x(y)}}else{const _=new Error("SSO callback failed");i(_)}}catch(E){const j=E instanceof Error?E:new Error("Unknown error occurred");i(j)}finally{o(!1)}};return{loading:a,error:s,session:h,redirectUri:u,processed:p,signinAttempt:g}}function y0(){const{client:e,loading:r}=je(),[a,o]=c.useState(!1),[s,i]=c.useState(null);return{loading:r||a,verifyMagicLink:async d=>{if(!d.token||!d.attempt)throw new Error("Invalid magic link parameters");o(!0),i(null);try{const u=new URL("/auth/verify-magic-link",window.location.origin);u.searchParams.set("token",d.token),u.searchParams.set("attempt",d.attempt),d.redirectUri&&u.searchParams.set("redirect_uri",d.redirectUri);const f=await e(u.pathname+u.search,{method:"GET"}),p=await V(f);return o(!1),i(!0),p}catch(u){throw o(!1),i(!1),u}},success:s}}function R2(){const[e,r]=c.useState({});return c.useEffect(()=>{const a=new URLSearchParams(window.location.search);r({token:a.get("token")||void 0,attempt:a.get("attempt")||void 0,redirectUri:a.get("redirect_uri")||void 0})},[]),e}function j0(){const{client:e,loading:r}=je();return{loading:r,forgotPassword:async i=>{const h=new FormData;h.append("email",i);const d=await e("/auth/forgot-password",{method:"POST",body:h});return await V(d)},verifyOtp:async(i,h)=>{const d=new FormData;d.append("email",i),d.append("otp",h);const u=await e("/auth/forgot-password",{method:"POST",body:d});return await V(u)},resetPassword:async(i,h)=>{const d=new FormData;d.append("token",i),d.append("password",h);const u=await e("/auth/reset-password",{method:"POST",body:d});return await V(u)}}}const P2=()=>{},T2=P2(),Qo=Object,ci=e=>e===T2,F2=e=>typeof e=="function",Oa=new WeakMap,Z2=e=>Qo.prototype.toString.call(e),Jn=(e,r)=>e===`[object ${r}]`;let I2=0;const Jo=e=>{const r=typeof e,a=Z2(e),o=Jn(a,"Date"),s=Jn(a,"RegExp"),i=Jn(a,"Object");let h,d;if(Qo(e)===e&&!o&&!s){if(h=Oa.get(e),h)return h;if(h=++I2+"~",Oa.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=Jo(e[d])+",";Oa.set(e,h)}if(i){h="#";const u=Qo.keys(e).sort();for(;!ci(d=u.pop());)ci(e[d])||(h+=d+":"+Jo(e[d])+",");Oa.set(e,h)}}else h=o?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},O2=e=>{if(F2(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Jo(e):"",[e,r]},H2=e=>O2(e?e(0,null):null)[0],Xn=Promise.resolve(),V2=e=>(r,a,o)=>{const s=c.useRef(!1),{cache:i,initialSize:h=1,revalidateAll:d=!1,persistSize:u=!1,revalidateFirstPage:f=!0,revalidateOnMount:p=!1,parallel:m=!1}=o,[,,,g]=It.get(bs);let x;try{x=H2(r),x&&(x=h0+x)}catch{}const[b,v,w]=ar(i,x),E=c.useCallback(()=>Ce(b()._l)?h:b()._l,[i,x,h]);Vo.useSyncExternalStore(c.useCallback(L=>x?w(x,()=>{L()}):()=>{},[i,x]),E,E);const j=c.useCallback(()=>{const L=b()._l;return Ce(L)?h:L},[x,h]),S=c.useRef(j());hn(()=>{if(!s.current){s.current=!0;return}x&&v({_l:u?S.current:j()})},[x,i]);const C=p&&!s.current,_=e(x,async L=>{const z=b()._i,O=b()._r;v({_r:pt});const R=[],M=j(),[T]=ar(i,L),A=T().data,$=[];let I=null;for(let F=0;F<M;++F){const[H,Z]=Ca(r(F,m?null:I));if(!H)break;const[P,G]=ar(i,H);let D=P().data;const W=d||z||Ce(D)||f&&!F&&!Ce(A)||C||A&&!Ce(A[F])&&!o.compare(A[F],D);if(a&&(typeof O=="function"?O(D,Z):W)){const Y=async()=>{if(!(H in g))D=await a(Z);else{const ie=g[H];delete g[H],D=await ie}G({data:D,_k:Z}),R[F]=D};m?$.push(Y):await Y()}else R[F]=D;m||(I=D)}return m&&await Promise.all($.map(F=>F())),v({_i:pt}),R},o),k=c.useCallback(function(L,z){const O=typeof z=="boolean"?{revalidate:z}:z||{},R=O.revalidate!==!1;return x?(R&&(Ce(L)?v({_i:!0,_r:O.revalidate}):v({_i:!1,_r:O.revalidate})),arguments.length?_.mutate(L,{...O,revalidate:R}):_.mutate()):Xn},[x,i]),y=c.useCallback(L=>{if(!x)return Xn;const[,z]=ar(i,x);let O;if($t(L)?O=L(j()):typeof L=="number"&&(O=L),typeof O!="number")return Xn;z({_l:O}),S.current=O;const R=[],[M]=ar(i,x);let T=null;for(let A=0;A<O;++A){const[$]=Ca(r(A,T)),[I]=ar(i,$),F=$?I().data:pt;if(Ce(F))return k(M().data);R.push(F),T=F}return k(R)},[x,i,k,j]);return{size:j(),setSize:y,mutate:k,get data(){return _.data},get error(){return _.error},get isValidating(){return _.isValidating},get isLoading(){return _.isLoading}}},aa=x2(Ae,V2);function _0({enabled:e=!0,channels:r,organizationIds:a,workspaceIds:o,onNotification:s,onError:i,reconnectDelay:h=1e3,maxReconnectAttempts:d=5}={}){const{session:u,loading:f}=at(),{deployment:p,loading:m}=Se(),[g,x]=c.useState(!1),[b,v]=c.useState(null),w=c.useRef(null),E=c.useRef(null),j=c.useRef(0),S=c.useRef(null),C=c.useRef(s),_=c.useRef(i),k=c.useRef(r),y=c.useRef(a),L=c.useRef(o),z=c.useRef(h),O=c.useRef(d);C.current=s,_.current=i,k.current=r,y.current=a,L.current=o,z.current=h,O.current=d;const R=c.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null),S.current&&(clearInterval(S.current),S.current=null),w.current&&(w.current.close(),w.current=null)},[]),M=c.useCallback(async()=>{var H;if(!e||f||m||!u||!p)return;R();const $=new URL(p.backend_host),I=$.protocol==="https:"?"wss:":"ws:",F=new URL("/notifications/stream",`${I}//${$.host}`);if(p.mode==="staging"){const Z=mt(p.backend_host);Z&&F.searchParams.set("__dev_session__",Z)}k.current&&k.current.length>0&&F.searchParams.set("channels",k.current.join(",")),y.current&&y.current.length>0&&F.searchParams.set("organization_ids",y.current.join(",")),L.current&&L.current.length>0&&F.searchParams.set("workspace_ids",L.current.join(","));try{const Z=new WebSocket(F.toString());w.current=Z,Z.onopen=()=>{x(!0),v(null),j.current=0,S.current=setInterval(()=>{Z.readyState===WebSocket.OPEN&&Z.send("ping")},3e4)},Z.onmessage=P=>{var G,D;try{const W=JSON.parse(P.data);if(W.type==="notification"&&W.data)(G=C.current)==null||G.call(C,W.data);else if(W.type==="error"){const Y=W.error||"Unknown error occurred";v(Y),(D=_.current)==null||D.call(_,Y)}else W.type}catch{}},Z.onerror=()=>{var P;v("Connection error occurred"),(P=_.current)==null||P.call(_,"Connection error occurred")},Z.onclose=P=>{var G;if(x(!1),S.current&&(clearInterval(S.current),S.current=null),e&&P.code!==1e3&&j.current<O.current){j.current++;const D=z.current*Math.pow(2,j.current-1);E.current=setTimeout(()=>{M()},D)}else j.current>=O.current&&(v("Max reconnection attempts reached"),(G=_.current)==null||G.call(_,"Max reconnection attempts reached"))}}catch{v("Failed to connect"),(H=_.current)==null||H.call(_,"Failed to connect")}},[e,f,m,u,p,R]);c.useEffect(()=>(M(),()=>{R()}),[M,R]),c.useEffect(()=>{w.current&&w.current.readyState===WebSocket.OPEN&&M()},[r,a,o,M]);const T=c.useCallback(()=>{R(),x(!1)},[R]),A=c.useCallback(()=>{j.current=0,M()},[M]);return{isConnected:g,connectionError:b,disconnect:T,reconnect:A}}function $n(e){if(!e)return"";const r=new URLSearchParams;e.limit&&r.append("limit",e.limit.toString()),e.cursor&&r.append("cursor",e.cursor),e.scope&&r.append("scope",e.scope),e.channels&&e.channels.length>0&&e.channels.forEach(o=>r.append("channels",o)),e.organization_ids&&e.organization_ids.length>0&&e.organization_ids.forEach(o=>r.append("organization_ids",o)),e.workspace_ids&&e.workspace_ids.length>0&&e.workspace_ids.forEach(o=>r.append("workspace_ids",o)),e.is_read!==void 0&&r.append("is_read",e.is_read.toString()),e.is_archived!==void 0&&r.append("is_archived",e.is_archived.toString()),e.is_starred!==void 0&&r.append("is_starred",e.is_starred.toString()),e.severity&&r.append("severity",e.severity);const a=r.toString();return a?"?"+a:""}async function D2(e,r){const a=`/notifications${$n(r)}`,o=await e(a,{method:"GET"});return(await V(o)).data}async function N2(e,r){const a=await e(`/notifications/${r}/read`,{method:"POST"});return V(a)}async function U2(e,r){const a=await e(`/notifications/${r}/unread`,{method:"POST"});return V(a)}async function B2(e,r){const a=await e(`/notifications/mark-all-read${$n(r)}`,{method:"POST"});return V(a)}async function W2(e,r){const a=await e(`/notifications/archive-all-read${$n(r)}`,{method:"POST"});return V(a)}async function G2(e,r){const a=await e(`/notifications/${r}/archive`,{method:"POST"});return V(a)}async function q2(e,r){const a=await e(`/notifications/${r}/star`,{method:"POST"});return V(a)}function k0(e){var L;const{client:r,loading:a}=je(),{data:o,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=aa((z,O)=>{var A;if(a||z>0&&(!O||!O.has_more))return null;const R=z===0||(A=O==null?void 0:O.notifications[O.notifications.length-1])==null?void 0:A.id,{onNotification:M,...T}=e||{};return["wacht-notifications",{...T,cursor:R}]},([,z])=>D2(r,z),{refreshInterval:6e4,revalidateOnFocus:!0,revalidateFirstPage:!0}),p=c.useMemo(()=>o?o.flatMap(z=>z.notifications):[],[o]),m=o?(L=o[o.length-1])==null?void 0:L.has_more:!1,g=c.useMemo(()=>{if(e!=null&&e.channels&&e.channels.length>0)return e.channels;switch(e==null?void 0:e.scope){case"organization":return["organization"];case"workspace":return["workspace"];case"current":return["current"];case"all":return["user","organization","workspace"];case"user":return["user"];default:return}},[e==null?void 0:e.channels,e==null?void 0:e.scope]),x=c.useMemo(()=>e==null?void 0:e.organization_ids,[e==null?void 0:e.organization_ids]),b=c.useMemo(()=>e==null?void 0:e.workspace_ids,[e==null?void 0:e.workspace_ids]);_0({enabled:!a&&!!o,channels:g,organizationIds:x,workspaceIds:b,onNotification:c.useCallback(z=>{i(async O=>{var A;if(!O||O.length===0||O.some($=>$.notifications.some(I=>I.id===z.id.toString())))return O;(A=e==null?void 0:e.onNotification)==null||A.call(e,z);const M=O[0];return[{...M,notifications:[{id:z.id.toString(),user_id:z.user_id.toString(),deployment_id:z.deployment_id.toString(),title:z.title,body:z.body,severity:z.severity,ctas:z.ctas,is_read:!1,is_archived:!1,created_at:z.created_at,updated_at:z.created_at},...M.notifications]},...O.slice(1)]},!1)},[i,e]),onError:c.useCallback(()=>{},[])});const v=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(R=>({...R,notifications:R.notifications.map(M=>M.id===z?{...M,is_read:!0}:M)})),!1),await N2(r,z),await i())},[r,a,i]),w=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(R=>({...R,notifications:R.notifications.map(M=>M.id===z?{...M,is_read:!1}:M)})),!1),await U2(r,z),await i())},[r,a,i]),E=c.useCallback(async()=>{a||(await i(async z=>z&&z.map(O=>({...O,notifications:O.notifications.map(R=>({...R,is_read:!0}))})),!1),await B2(r,e),await i())},[r,e,i,a]),j=c.useCallback(async()=>{a||(await i(async z=>z&&z.map(O=>({...O,notifications:O.notifications.filter(R=>!R.is_read)})),!1),await W2(r,e),await i())},[r,e,a,i]),S=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(R=>({...R,notifications:(e==null?void 0:e.is_archived)!==void 0?R.notifications.filter(M=>M.id!==z):R.notifications.map(M=>M.id===z?{...M,is_archived:!M.is_archived}:M)})),!1),await G2(r,z),await i())},[r,a,i,e==null?void 0:e.is_archived]),C=c.useCallback(async z=>{a||(await i(async O=>O&&O.map(R=>({...R,notifications:R.notifications.map(M=>M.id===z?{...M,is_starred:!M.is_starred}:M)})),!1),await q2(r,z),await i())},[r,a,i]),_=c.useCallback(async()=>{f||!m||await u(d+1)},[f,m,u,d]),k=c.useCallback(async()=>{await i()},[i]),y=a||h||d>0&&o&&typeof o[d-1]>"u";return!o||y?{loading:!0,notifications:p,hasMore:m,markAsRead:void 0,markAllAsRead:void 0,archiveAllRead:void 0,archiveNotification:void 0,starNotification:void 0,markAsUnread:void 0,error:s,refetch:k,loadMore:_}:{loading:!1,error:s,notifications:p,hasMore:m,markAsRead:v,markAllAsRead:E,archiveAllRead:j,archiveNotification:S,starNotification:C,markAsUnread:w,refetch:k,loadMore:_}}async function K2(e,r){const a=`/notifications/scope-unread${$n(r)}`,o=await e(a,{method:"GET"});return(await V(o)).data}function C0(e){const{client:r,loading:a}=je(),{data:o,error:s,mutate:i}=Ae(a?null:["wacht-notifications-unread",e],([,d])=>K2(r,d),{refreshInterval:3e4,revalidateOnFocus:!0}),h=async()=>{await i()};return!o||a?{loading:!0,count:0,error:s,refetch:h}:{loading:!1,count:o.count,error:s,refetch:h}}const Zr={DISCONNECTED:"disconnected",CONNECTED:"connected",ERROR:"error"},Ne={IDLE:"idle",STARTING:"starting",RUNNING:"running",WAITING_FOR_INPUT:"waiting_for_input",COMPLETED:"completed",FAILED:"failed"},mr={IDLE:"Idle",STARTING:"Starting",RUNNING:"Running",WAITING_FOR_INPUT:"WaitingForInput",COMPLETED:"Completed",FAILED:"Failed",CANCELLED:"Cancelled"};function Y2(e){switch(e.trim()){case mr.IDLE:return Ne.IDLE;case mr.STARTING:case"starting":return Ne.STARTING;case mr.RUNNING:case"running":return Ne.RUNNING;case mr.WAITING_FOR_INPUT:case"waiting_for_input":return Ne.WAITING_FOR_INPUT;case mr.COMPLETED:case"completed":return Ne.COMPLETED;case mr.FAILED:case mr.CANCELLED:case"failed":case"cancelled":return Ne.FAILED;default:return Ne.IDLE}}function Ir(e){return e===Ne.STARTING||e===Ne.RUNNING||e===Ne.WAITING_FOR_INPUT}function Yt(e){return e&&typeof e=="object"?e:null}function Sr(e){return typeof e=="string"?e:null}function Q2(e){const r=Yt(e);return(r==null?void 0:r.ConversationMessage)??e}function J2(e){const r=Yt(e);if(!r)return null;const a=Yt(r.content),o=Yt(r.metadata),s=Sr(r.message_type)||Sr(o==null?void 0:o.message_type)||Sr(a==null?void 0:a.type);return{...r,metadata:{...o||{},message_type:s}}}function X2(e){const r=Yt(e.metadata),a=Yt(e.content);return Sr(r==null?void 0:r.message_type)||Sr(a==null?void 0:a.type)}function ep(e){const r=Yt(e.content);return Sr(r==null?void 0:r.status)}function tp(e){const r=Yt(e.content),a=Sr(r==null?void 0:r.step);return a==="execution_cancelled"||a==="abort"}function rp(e){const r=Yt(e.content);return(r==null?void 0:r.further_actions_required)===!1}function li(e){return[...e].sort((r,a)=>new Date(r.timestamp).getTime()-new Date(a.timestamp).getTime())}function ap(e,r){return{id:e,timestamp:new Date().toISOString(),content:{type:"user_message",message:r},metadata:{message_type:"user_message"}}}function np(e,r){const a=new FormData;a.append("message",e);for(const o of r??[])a.append("files",o);return a}function op(e,r){const a=new FormData;a.append("request_message_id",e);for(const o of r)a.append("approval_tool_name",o.tool_name),a.append("approval_mode",o.mode);return a}function sp(){const e=new FormData;return e.append("cancel","true"),e}function ip({deployment:e,threadId:r,file:a}){const o=a.url||a.filename;if(!o)return null;if(/^https?:\/\//i.test(o))return o;const s=e.backend_host.replace(/\/$/,"");let i;if(o.startsWith("/ai/threads/"))i=new URL(o,`${s}/`);else{const h=o.includes("/")?o.split("/").pop()??"":o;if(!h)return null;i=new URL(`/ai/threads/${encodeURIComponent(r)}/filesystem/file`,`${s}/`),i.searchParams.set("path",`uploads/${h}`)}if(e.mode==="staging"){const h=mt(e.backend_host);h&&i.searchParams.set("__dev_session__",h)}return i.toString()}const cp=5e3,lp=5e3;function dp({threadId:e,initialThread:r=null,platformAdapter:a}){var Ke,ht;const{deployment:o}=Se(),{client:s}=je(),[i,h]=c.useState([]),[d,u]=c.useState(null),[f,p]=c.useState(null),[m,g]=c.useState(r),[x,b]=c.useState(Ne.IDLE),[v,w]=c.useState({status:Zr.DISCONNECTED}),[E,j]=c.useState(!0),[S,C]=c.useState(!1),[_,k]=c.useState(!1),[y,L]=c.useState(null),z=c.useRef(null),O=c.useRef(e),R=c.useRef(0),M=c.useRef(Ne.IDLE),T=c.useRef(null),A=c.useCallback(X=>{h(oe=>{const we=[...oe],De=we.findIndex(ze=>String(ze.id)===String(X.id));return De>=0?we[De]=X:we.push(X),li(we)})},[]),$=c.useCallback(({messages:X,prepend:oe,hasMore:we})=>{const De=li(X);De.length>0&&(z.current=De[0].id),h(ze=>oe?[...De,...ze]:De),we!==void 0&&j(we)},[]),I=c.useCallback(X=>{M.current=X,b(X)},[]),F=c.useCallback(X=>{R.current=Date.now()+cp,I(X)},[I]),H=c.useCallback(()=>{var X;R.current>Date.now()&&Ir(M.current)||(I(Ne.IDLE),(X=T.current)==null||X.call(T))},[I]),Z=c.useCallback(X=>{const oe=Y2(X),we=Ir(oe);!we&&R.current>Date.now()&&Ir(M.current)||(we&&(R.current=0),I(oe))},[I]),P=c.useCallback(()=>{u(null),p(null)},[]),G=c.useCallback(X=>{g(oe=>oe&&{...oe,...X?{status:X}:{},last_activity_at:new Date().toISOString()})},[]),D=c.useCallback((X,oe)=>{A(ap(X,oe)),P()},[P,A]),W=c.useCallback(X=>{const oe=J2(X);if(!oe)return;switch(X2(oe)){case"system_decision":A(oe),tp(oe)&&H();return;case"execution_summary":case"tool_result":case"user_message":A(oe);return;case"steer":A(oe),rp(oe)&&H();return;case"approval_request":R.current=0,I(Ne.WAITING_FOR_INPUT),A(oe);return;case"approval_response":A(oe),F(Ne.RUNNING);return;case"execution_status":{const De=ep(oe);if(!De)return;Z(De),g(ze=>ze&&{...ze,status:De});return}default:A(oe)}},[Z,H,I,F,A]),Y=c.useCallback((X,oe)=>{var we;(we=a==null?void 0:a.onPlatformEvent)==null||we.call(a,X,oe)},[a]),J=c.useRef(W),ie=c.useRef(Y),he=c.useRef(s),ee=c.useRef(o);c.useEffect(()=>{J.current=W,ie.current=Y,he.current=s,ee.current=o}),c.useEffect(()=>{O.current=e},[e]);const xe=c.useRef(null),te=c.useRef(null),B=c.useRef(0),Je=10,Te=c.useCallback(async X=>{if(!e)return;const oe=e;X?C(!0):k(!0),L(null);try{const we=new URLSearchParams({limit:"100"});X&&we.append("before_id",X);const De=await s(`/ai/threads/${e}/messages?${we}`,{method:"GET"}),ze=await V(De);ze.data&&O.current===oe&&$({messages:ze.data.data,prepend:!!X,hasMore:ze.data.has_more||!1})}catch(we){O.current===oe&&L(we instanceof Error?we:new Error("Failed to fetch messages"))}finally{O.current===oe&&(X?C(!1):k(!1))}},[e,s,$]);c.useEffect(()=>{const X=ee.current;if(!X||!e)return;const oe=()=>{xe.current&&(xe.current.close(),xe.current=null);const we=new URL(`${X.backend_host}/ai/threads/${encodeURIComponent(e)}/stream`);if(X.mode==="staging"){const ze=mt(X.backend_host);ze&&we.searchParams.append("__dev_session__",ze)}const De=new EventSource(we.toString(),{withCredentials:X.mode!=="staging"});xe.current=De,De.onopen=()=>{if(w({status:Zr.CONNECTED}),B.current>0){const ze=e;setTimeout(()=>{s(`/ai/threads/${ze}/messages?limit=100`,{method:"GET"}).then(async Qe=>{const _t=await V(Qe);_t.data&&O.current===ze&&$({messages:_t.data.data,hasMore:_t.data.has_more||!1})}).catch(()=>{})},100)}B.current=0},De.onerror=()=>{if(w({status:Zr.ERROR}),De.close(),xe.current=null,B.current<Je){const ze=Math.min(1e3*Math.pow(2,B.current),3e4);te.current=setTimeout(()=>{B.current++,oe()},ze)}else w({status:Zr.DISCONNECTED})},De.addEventListener("conversation_message",ze=>{try{const Qe=Q2(JSON.parse(ze.data));Qe&&J.current(Qe)}catch{}}),De.addEventListener("platform_event",ze=>{try{const Qe=JSON.parse(ze.data);Qe!=null&&Qe.PlatformEvent?ie.current(Qe.PlatformEvent[0],Qe.PlatformEvent[1]):Qe!=null&&Qe.event_label&&ie.current(Qe.event_label,Qe.event_data)}catch{}})};return oe(),()=>{te.current&&(clearTimeout(te.current),te.current=null),xe.current&&(xe.current.close(),xe.current=null)}},[e,s,$]);const Ue=c.useCallback(async()=>{if(!e)return;const X=e;try{const oe=await s(`/ai/threads/${X}`,{method:"GET"});if(!oe.ok)return;const we=await V(oe);we.data&&O.current===X&&(g(we.data),Z(we.data.status),qr(`wacht-ai-thread:${X}`,we.data,{revalidate:!1}))}catch{}},[e,s,Z]);c.useEffect(()=>{T.current=Ue},[Ue]),c.useEffect(()=>{if(!e)return;Ue();const X=window.setInterval(()=>{!Ir(M.current)&&R.current<=Date.now()||Ue()},lp);return()=>{window.clearInterval(X)}},[e,Ue]),c.useEffect(()=>{h([]),g(null),j(!0),C(!1),L(null),k(!!e),w({status:Zr.DISCONNECTED}),z.current=null,R.current=0,M.current=Ne.IDLE,b(Ne.IDLE),P()},[e,P]),c.useEffect(()=>{!r||r.id!==e||g(r)},[r,e]);const Ge=c.useCallback(async(X,oe)=>{var we,De;if(!(!e||!o)){u(X),oe&&oe.length>0&&p(oe),F(Ne.STARTING);try{const ze=await s(`/ai/threads/${e}/run`,{method:"POST",body:np(X,oe)});if(ze.ok){const Qe=await V(ze),_t=((we=Qe.data)==null?void 0:we.conversation_id)??null;G(typeof((De=Qe.data)==null?void 0:De.status)=="string"?Qe.data.status:void 0),_t?D(_t,X):P(),F(Ne.RUNNING)}else R.current=0,I(Ne.IDLE),P()}catch{R.current=0,I(Ne.IDLE),P()}}},[e,o,s,F,I,G,P,D]);c.useEffect(()=>{e&&Te()},[e,Te]);const me=c.useCallback(async()=>{await Te()},[Te]),Q=c.useCallback(async()=>{if(!(S||!E||!z.current)){C(!0);try{await Te(z.current)}finally{C(!1)}}},[S,E,Te]),ce=c.useCallback(()=>{h([]),P()},[P]),ne=c.useCallback(async(X,oe)=>{if(!e)return!1;F(Ne.STARTING);try{return(await s(`/ai/threads/${e}/run`,{method:"POST",body:op(X,oe)})).ok?(G(),F(Ne.RUNNING),!0):(R.current=0,I(Ne.IDLE),!1)}catch{return R.current=0,I(Ne.IDLE),!1}},[e,s,F,I,G]),q=c.useCallback(async X=>{if(!e)return!1;F(Ne.STARTING);try{return(await s(`/ai/threads/${e}/messages/answer`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(X)})).ok?(G(),F(Ne.RUNNING),!0):(R.current=0,I(Ne.IDLE),!1)}catch{return R.current=0,I(Ne.IDLE),!1}},[e,s,F,I,G]),ue=c.useCallback(async()=>{if(!(!e||!Ir(x)))try{await s(`/ai/threads/${e}/run`,{method:"POST",body:sp()}),R.current=0,G(),I(Ne.IDLE)}catch{}},[e,x,s,I,G]),de=c.useCallback(X=>!o||!e||!X?null:ip({deployment:o,threadId:e,file:X}),[e,o]),K=c.useCallback(X=>{const oe=de(X);if(!oe)return;const we=document.createElement("a");we.href=oe,we.download=(X==null?void 0:X.filename)||"attachment",we.rel="noreferrer",document.body.appendChild(we),we.click(),document.body.removeChild(we)},[de]),pe=((Ke=m==null?void 0:m.execution_state)==null?void 0:Ke.pending_approval_request)??null,qe=((ht=m==null?void 0:m.execution_state)==null?void 0:ht.pending_question)??null,Oe=m==null?void 0:m.status;return{thread:m,threadState:m,threadStatus:Oe,messages:i,pendingMessage:d,pendingFiles:f,connectionState:v,isConnected:v.status===Zr.CONNECTED,hasActiveRun:Ir(x),isRunning:x===Ne.STARTING||x===Ne.RUNNING,executionStatus:x,isWaitingForInput:x===Ne.WAITING_FOR_INPUT,pendingApprovalRequest:pe,pendingClarificationRequest:qe,hasMoreMessages:E,isLoadingMore:S,messagesLoading:_,messagesError:y,refreshThread:Ue,refreshMessages:me,sendMessage:Ge,submitApprovalResponse:ne,submitAnswer:q,clearMessages:ce,loadMoreMessages:Q,cancelExecution:ue,resolveMessageFileUrl:de,downloadMessageFile:K}}function up(e){const{client:r}=je(),[a,o]=c.useState(!e),[s,i]=c.useState(!!e),[h,d]=c.useState(null),u=c.useRef(!1),f=c.useRef(!1),p=c.useRef(null),m=a,g=c.useCallback(async()=>{const C=await r("/ai/session",{method:"GET"});if(!C.ok)throw C.status===401||C.status===403?new Error("NO_SESSION"):new Error("Failed to fetch session");return(await V(C)).data},[r]),{data:x,error:b,isLoading:v,mutate:w}=Ae(m?"wacht-agent-session":null,g,{revalidateOnFocus:!1});c.useEffect(()=>{if(!e||u.current||f.current||p.current===e)return;p.current=e,(async()=>{f.current=!0,i(!0);try{(await r(`/session/ticket/exchange?ticket=${encodeURIComponent(e)}`,{method:"GET"})).ok?(u.current=!0,o(!0)):d(new Error("Failed to exchange ticket"))}catch(_){d(_ instanceof Error?_:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const E=!h&&(e?a:!0)&&(!b||b.message!=="NO_SESSION"),j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:E,sessionLoading:s||m&&v,sessionError:j,sessionId:(x==null?void 0:x.session_id)||null,actor:(x==null?void 0:x.actor)||null,agents:(x==null?void 0:x.agents)||[],ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}const di={exists:!1,files:[]};function Ha(e,r,a){const s=(e||[]).filter(i=>i.id!==r.id);return!a&&r.archived_at?s:[r,...s]}function pp(e,r){return r===void 0?"":`?${new URLSearchParams({[e]:String(r)}).toString()}`}function S0(e,r){const a=new URLSearchParams({path:e});return r&&a.set("include_archived","true"),`?${a.toString()}`}function E0(e,r){const a=new URLSearchParams;e&&a.set("path",e),r&&a.set("include_archived","true");const o=a.toString();return o?`?${o}`:""}function hp(e){const r=e.split("/").pop()||e,a=r.lastIndexOf(".");return a<0||a===r.length-1?"":r.slice(a+1).toLowerCase()}function fp(e,r){const a=hp(r),o=new Set(["doc","docx","ppt","pptx","xls","xlsx","pdf","zip","gz","tar","7z","rar","jar","war","bin"]),s=new Set(["txt","md","mdx","markdown","json","jsonc","js","jsx","ts","tsx","mts","cts","mjs","cjs","py","rb","php","java","kt","kts","go","rs","c","cc","cpp","cxx","h","hpp","swift","sh","bash","zsh","fish","ps1","sql","html","htm","css","scss","less","xml","svg","yaml","yml","toml","ini","cfg","conf","env","log"]);return o.has(a)?!1:s.has(a)?!0:e.startsWith("text/")||e.includes("json")||e.includes("javascript")||e.includes("typescript")||e.includes("python")||e.includes("xml")||e.includes("yaml")}function ot(e,r,a){if(a!=null){if(typeof a=="string"){e.set(r,a);return}if(typeof a=="boolean"||typeof a=="number"){e.set(r,String(a));return}}}function mp(e,r,a){a&&e.set(r,JSON.stringify(a))}function ui(e){const r=new FormData;return ot(r,"name",e.name),ot(r,"agent_id","agent_id"in e?e.agent_id:void 0),ot(r,"description",e.description),ot(r,"status",e.status),r}function gp(e){const r=new FormData;if(ot(r,"title",e.title),ot(r,"agent_id",e.agent_id),ot(r,"system_instructions",e.system_instructions),ot(r,"thread_purpose",e.thread_purpose),ot(r,"responsibility",e.responsibility),ot(r,"reusable",e.reusable),ot(r,"accepts_assignments",e.accepts_assignments),mp(r,"metadata",e.metadata),Array.isArray(e.capability_tags))for(const a of e.capability_tags)r.append("capability_tags",a);return r}function A0(e){const r=new FormData;return ot(r,"title",e.title),ot(r,"agent_id",e.agent_id),ot(r,"system_instructions",e.system_instructions),r}function z0(e,r=[]){const a=new FormData;ot(a,"title",e.title),ot(a,"description",e.description),ot(a,"status",e.status),ot(a,"schedule_kind",e.schedule_kind),ot(a,"next_run_at",e.next_run_at),ot(a,"interval_seconds",e.interval_seconds),"clear_schedule"in e&&ot(a,"clear_schedule",e.clear_schedule);for(const o of r)a.append("files",o);return a}function vp(e={}){const{client:r}=je(),{includeArchived:a=!1,enabled:o=!0}=e,s=o?`wacht-ai-actor-projects:${a}`:null,i=c.useCallback(async()=>{const x=await r(`/ai/projects${pp("include_archived",a)}`);return(await V(x)).data},[r,a]),{data:h,error:d,mutate:u}=Ae(s,i,{revalidateOnFocus:!1}),f=c.useCallback(async x=>{const b=await r("/ai/projects",{method:"POST",body:ui(x)}),v=await V(b);return await u(w=>Ha(w,v.data,a),{revalidate:!0}),v},[r,a,u]),p=c.useCallback(async(x,b)=>{const v=await r(`/ai/projects/${x}/update`,{method:"POST",body:ui(b)}),w=await V(v);return await u(E=>Ha(E,w.data,a),{revalidate:!0}),w},[r,a,u]),m=c.useCallback(async x=>{const b=await r(`/ai/projects/${x}/archive`,{method:"POST",body:new URLSearchParams}),v=await V(b);return await u(w=>Ha(w,v.data,a),{revalidate:!0}),v},[r,a,u]),g=c.useCallback(async x=>{const b=await r(`/ai/projects/${x}/unarchive`,{method:"POST",body:new URLSearchParams}),v=await V(b);return await u(w=>Ha(w,v.data,a),{revalidate:!0}),v},[r,a,u]);return{projects:h||[],loading:!h&&!d,error:d,createProject:f,updateProject:p,archiveProject:m,unarchiveProject:g,refetch:async()=>{await u()}}}function xp(e={}){const{client:r}=je(),{enabled:a=!0,query:o="",limit:s=12}=e,i=o.trim(),h=a?`wacht-ai-actor-project-search:${i}:${s}`:null,d=c.useCallback(async()=>{const m=new URLSearchParams({limit:String(s)});i&&m.set("q",i);const g=await r(`/ai/projects/search?${m.toString()}`);return(await V(g)).data},[r,s,i]),{data:u,error:f,mutate:p}=Ae(h,d,{revalidateOnFocus:!1});return{projects:(u==null?void 0:u.data)||[],loading:!u&&!f,error:f,hasMore:(u==null?void 0:u.has_more)||!1,nextCursor:u==null?void 0:u.next_cursor,refetch:async()=>{await p()}}}function wp(e,r={}){const{client:a}=je(),{includeArchived:o=!1,enabled:s=!0}=r,i=s&&e?`wacht-ai-threads:${e}:${o}`:null,h=c.useCallback(async()=>{if(!e)return{data:[],has_more:!1,next_cursor:""};const v=new URLSearchParams({limit:"100"});o&&v.set("include_archived","true");const w=await a(`/ai/projects/${e}/threads?${v.toString()}`);return(await V(w)).data},[e,a,o]),{data:d,error:u,mutate:f}=Ae(i,h,{revalidateOnFocus:!1}),p=c.useCallback(async(v,w)=>{const E=await a(`/ai/projects/${v}/threads`,{method:"POST",body:gp(w)}),j=await V(E);return v===e&&await f(),j},[e,a,f]),m=c.useCallback(async v=>{if(!e)throw new Error("projectId is required");return p(e,v)},[e,p]),g=c.useCallback(async(v,w)=>{const E=await a(`/ai/threads/${v}/update`,{method:"POST",body:A0(w)}),j=await V(E);return await f(),j},[a,f]),x=c.useCallback(async v=>{const w=await a(`/ai/threads/${v}/archive`,{method:"POST",body:new URLSearchParams}),E=await V(w);return await f(),E},[a,f]),b=c.useCallback(async v=>{const w=await a(`/ai/threads/${v}/unarchive`,{method:"POST",body:new URLSearchParams}),E=await V(w);return await f(),E},[a,f]);return{threads:(d==null?void 0:d.data)||[],loading:!d&&!u,error:u,hasMore:(d==null?void 0:d.has_more)||!1,nextCursor:(d==null?void 0:d.next_cursor)||"",createThread:m,createThreadForProject:p,updateThread:g,archiveThread:x,unarchiveThread:b,refetch:async()=>{await f()}}}function bp(e,r={}){var x,b;const{client:a}=je(),{includeArchived:o=!1,archivedOnly:s=!1,enabled:i=!0,query:h="",limit:d=10}=r,u=h.trim(),f=aa((v,w)=>{if(!i||!e||v>0&&w&&!w.has_more)return null;const E=v===0||w==null?void 0:w.next_cursor;return["wacht-ai-project-thread-feed",e,s?"archived-only":o?"with-archived":"active-only",u,d,E||""]},async([,v,w,E,j,S])=>{const C=new URLSearchParams({limit:String(j)});w==="with-archived"?C.set("include_archived","true"):w==="archived-only"&&(C.set("include_archived","true"),C.set("archived_only","true")),E&&C.set("q",String(E)),S&&C.set("cursor",String(S));const _=await a(`/ai/projects/${v}/threads?${C.toString()}`);return(await V(_)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0}),p=c.useMemo(()=>{var v;return((v=f.data)==null?void 0:v.flatMap(w=>w.data||[]))||[]},[f.data]),m=f.data&&((x=f.data[f.data.length-1])==null?void 0:x.has_more)||!1,g=f.isValidating&&!!f.data&&f.size>(((b=f.data)==null?void 0:b.length)||0);return{threads:p,loading:!f.data&&!f.error,error:f.error||null,hasMore:m,loadingMore:g,loadMore:async()=>{!m||g||await f.setSize(v=>v+1)},refetch:async()=>{await f.mutate()}}}function yp(e={}){const{client:r}=je(),{enabled:a=!0,query:o="",limit:s=16}=e,i=o.trim(),h=a?`wacht-ai-actor-thread-search:${i}:${s}`:null,d=c.useCallback(async()=>{const m=new URLSearchParams({limit:String(s)});i&&m.set("q",i);const g=await r(`/ai/threads/search?${m.toString()}`);return(await V(g)).data},[r,s,i]),{data:u,error:f,mutate:p}=Ae(h,d,{revalidateOnFocus:!1});return{threads:(u==null?void 0:u.data)||[],loading:!u&&!f,error:f,hasMore:(u==null?void 0:u.has_more)||!1,nextCursor:u==null?void 0:u.next_cursor,refetch:async()=>{await p()}}}function jp(e,r=!0){const{client:a}=je(),o=r&&e?`wacht-ai-thread:${e}`:null,s=c.useCallback(async()=>{if(!e)return null;const p=await a(`/ai/threads/${e}`);return(await V(p)).data},[e,a]),i=Ae(o,s,{revalidateOnFocus:!1}),h=c.useCallback(async p=>{if(!e)throw new Error("threadId is required");const m=await a(`/ai/threads/${e}/update`,{method:"POST",body:A0(p)}),g=await V(m);return await i.mutate(),g},[e,a,i]),d=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const p=await a(`/ai/threads/${e}/archive`,{method:"POST",body:new URLSearchParams}),m=await V(p);return await i.mutate(),m},[e,a,i]),u=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const p=await a(`/ai/threads/${e}/unarchive`,{method:"POST",body:new URLSearchParams}),m=await V(p);return await i.mutate(),m},[e,a,i]),f=c.useCallback(async p=>{if(!e)throw new Error("threadId is required");await a(`/ai/threads/${e}/messages/answer`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)})},[e,a]);return{thread:i.data||null,loading:!i.data&&!i.error,error:i.error||null,updateThread:h,archiveThread:d,unarchiveThread:u,submitAnswer:f,refetch:async()=>{await i.mutate()}}}function _p(e,r=!0){const{client:a}=je(),o=r&&e?`wacht-ai-thread-filesystem:${e}`:null,s=c.useCallback(async d=>{if(!e)throw new Error("threadId is required");const u=await a(`/ai/threads/${e}/filesystem/file${S0(d)}`);if(!u.ok)throw new Error("Failed to load file");const f=await u.blob(),p=(u.headers.get("content-type")||"application/octet-stream").split(";")[0].trim().toLowerCase(),m=fp(p,d);let g;return m&&(g=await f.text()),{path:d,name:d.split("/").pop()||"file",mime_type:p,is_text:m,size_bytes:f.size,truncated:!1,content:g,blob:f}},[e,a]),i=c.useCallback(async d=>{if(!e)return di;const u=await a(`/ai/threads/${e}/filesystem${E0(d)}`);return(await V(u)).data},[e,a]),h=Ae(o,()=>i(),{revalidateOnFocus:!1});return{filesystem:h.data||di,filesystemLoading:!h.data&&!h.error,filesystemError:h.error||null,getFile:s,listDirectory:i,refetch:async()=>{await h.mutate()}}}function kp(e,r={}){var f,p;const{client:a}=je(),{enabled:o=!0,limit:s=40}=r,i=aa((m,g)=>{if(!o||!e||m>0&&g&&!g.has_more)return null;const x=m===0||g==null?void 0:g.next_cursor;return["wacht-ai-thread-assignments",e,s,x||""]},async([,m,g,x])=>{const b=new URLSearchParams({limit:String(g)});x&&b.set("cursor",String(x));const v=await a(`/ai/threads/${m}/assignments?${b.toString()}`);return(await V(v)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:15e3,dedupingInterval:15e3}),h=c.useMemo(()=>{var m;return((m=i.data)==null?void 0:m.flatMap(g=>g.data||[]))||[]},[i.data]),d=i.data&&((f=i.data[i.data.length-1])==null?void 0:f.has_more)||!1,u=i.isValidating&&!!i.data&&i.size>(((p=i.data)==null?void 0:p.length)||0);return{assignments:h,loading:!i.data&&!i.error,error:i.error||null,hasMore:d,loadingMore:u,loadMore:async()=>{!d||u||await i.setSize(m=>m+1)},refetch:async()=>{await i.mutate()}}}function Cp(e={},r){const a=new URLSearchParams;e.statuses&&e.statuses.length>0&&a.set("status",e.statuses.join(",")),e.includeArchived&&a.set("include_archived","true"),e.archivedOnly&&a.set("archived_only","true"),e.limit&&a.set("limit",String(e.limit)),r&&a.set("cursor",r);const o=a.toString();return o?`?${o}`:""}function Sp(e,r=!0,a={}){var b,v,w;const{client:o}=je(),s=((b=a.statuses)==null?void 0:b.join(","))||"all",i=a.archivedOnly?"archived-only":a.includeArchived?"with-archived":"active-only",h=a.limit||60,d=aa((E,j)=>{if(!r||!e||E>0&&j&&!j.has_more)return null;const S=E===0||j==null?void 0:j.next_cursor;return["wacht-ai-project-tasks",e,s,i,h,S||""]},async([,E,,,,j])=>{const S=await o(`/ai/projects/${E}/board/items${Cp(a,j||void 0)}`);return(await V(S)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:15e3,dedupingInterval:15e3}),u=c.useMemo(()=>{var E;return((E=d.data)==null?void 0:E.flatMap(j=>j.data||[]))||[]},[d.data]),f=d.data&&((v=d.data[d.data.length-1])==null?void 0:v.has_more)||!1,p=d.isValidating&&!!d.data&&d.size>(((w=d.data)==null?void 0:w.length)||0),m=c.useCallback(async(E,j=[])=>{if(!e)throw new Error("projectId is required");const S=await o(`/ai/projects/${e}/board/items`,{method:"POST",body:z0(E,j)}),C=await V(S);return await d.mutate(),C},[e,o,d]),g=c.useCallback(async E=>{if(!e)throw new Error("projectId is required");const j=await o(`/ai/projects/${e}/board/items/${E}/archive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,o,d]),x=c.useCallback(async E=>{if(!e)throw new Error("projectId is required");const j=await o(`/ai/projects/${e}/board/items/${E}/unarchive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,o,d]);return{tasks:u,loading:!d.data&&!d.error,error:d.error||null,hasMore:f,loadingMore:p,loadMore:async()=>{!f||p||await d.setSize(E=>E+1)},createTask:m,archiveTask:g,unarchiveTask:x,refetch:async()=>{await d.mutate()}}}function Ep(e,r,a=!0,o={}){var z,O;const{client:s}=je(),i=o.includeArchived?"with-archived":"active-only",h=o.includeArchived?"?include_archived=true":"",d=a&&e&&r?`wacht-ai-board-item:${e}:${r}:${i}`:null,u=a&&e&&r?`wacht-ai-board-item-workspace:${e}:${r}:${i}`:null,f=c.useCallback(async()=>{if(!e||!r)return null;const R=await s(`/ai/projects/${e}/board/items/${r}${h}`);return(await V(R)).data},[e,r,s,h]),p=Ae(d,f,{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3}),m=aa((R,M)=>{if(!a||!e||!r||R>0&&M&&!M.has_more)return null;const T=R===0||M==null?void 0:M.next_cursor;return["wacht-ai-board-item-assignments",e,r,i,T||""]},async([,R,M,,T])=>{const A=new URLSearchParams({limit:"40"});o.includeArchived&&A.set("include_archived","true"),T&&A.set("cursor",String(T));const $=await s(`/ai/projects/${R}/board/items/${M}/assignments?${A.toString()}`);return(await V($)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:15e3,dedupingInterval:15e3}),g=c.useCallback(async()=>{if(!e||!r)return{exists:!1,files:[]};const R=await s(`/ai/projects/${e}/board/items/${r}/filesystem${h}`);return(await V(R)).data},[e,r,s,h]),x=Ae(u,g,{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3}),b=c.useCallback(async(R,M=[])=>{if(!e||!r)throw new Error("projectId and itemId are required");const T=await s(`/ai/projects/${e}/board/items/${r}/update`,{method:"POST",body:z0(R,M)}),A=await V(T);return await p.mutate(),await x.mutate(),A},[e,r,s,p,x]),v=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const R=await s(`/ai/projects/${e}/board/items/${r}/archive`,{method:"POST",body:new URLSearchParams}),M=await V(R);return await p.mutate(),M},[e,r,s,p]),w=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const R=await s(`/ai/projects/${e}/board/items/${r}/unarchive`,{method:"POST",body:new URLSearchParams}),M=await V(R);return await p.mutate(),M},[e,r,s,p]),E=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const R=await s(`/ai/projects/${e}/board/items/${r}/cancel`,{method:"POST",body:new URLSearchParams}),M=await V(R);return await p.mutate(),await m.mutate(),M},[e,r,s,p,m]),j=c.useCallback(async R=>{if(!e||!r)throw new Error("projectId and itemId are required");const M=new FormData;for(const $ of R.answers)M.append("answer_question_id",$.question_id),M.append("answer_value",JSON.stringify($.value));const T=await s(`/ai/projects/${e}/board/items/${r}/answer`,{method:"POST",body:M}),A=await V(T);return await p.mutate(),A},[e,r,s,p]),S=c.useCallback(async R=>{var I;if(!e||!r)throw new Error("projectId and itemId are required");const M=p.data,T=(I=M==null?void 0:M.pending_approval)==null?void 0:I.request_message_id;if(!T)throw new Error("Task has no pending approval");const A=new FormData;A.set("request_message_id",T);for(const F of R)A.append("approval_tool_name",F.tool_name),A.append("approval_mode",F.mode);const $=await s(`/ai/projects/${e}/board/items/${r}/approval`,{method:"POST",body:A});return await p.mutate(),$.ok},[e,r,s,p]),C=c.useCallback(async R=>{if(!e||!r)throw new Error("projectId and itemId are required");const M=await s(`/ai/projects/${e}/board/items/${r}/filesystem/file${S0(R,o.includeArchived)}`);return await V(M)},[e,r,s,o.includeArchived]),_=c.useCallback(async R=>{if(!e||!r)throw new Error("projectId and itemId are required");const M=await s(`/ai/projects/${e}/board/items/${r}/filesystem${E0(R,o.includeArchived)}`);return await V(M)},[e,r,s,o.includeArchived]),k=c.useMemo(()=>{var R;return((R=m.data)==null?void 0:R.flatMap(M=>M.data||[]))||[]},[m.data]),y=m.data&&((z=m.data[m.data.length-1])==null?void 0:z.has_more)||!1,L=m.isValidating&&!!m.data&&m.size>(((O=m.data)==null?void 0:O.length)||0);return{item:p.data||null,assignments:k,assignmentsHasMore:y,assignmentsLoadingMore:L,loadMoreAssignments:async()=>{!y||L||await m.setSize(R=>R+1)},taskWorkspace:x.data||{exists:!1,files:[]},taskWorkspaceLoading:!x.data&&!x.error,taskWorkspaceError:x.error||null,loading:!p.data&&!p.error||!m.data&&!m.error,error:p.error||m.error||null,updateItem:b,archiveItem:v,unarchiveItem:w,cancelItem:E,submitAnswer:j,submitApproval:S,getTaskWorkspaceFile:C,listTaskWorkspaceDirectory:_,refetch:async()=>{await p.mutate(),await m.mutate(),await x.mutate()},refetchAssignments:async()=>{await m.mutate()},refetchTaskWorkspace:async()=>{await x.mutate()}}}function Ap(e,r=!0){var x;const{client:a}=je(),{data:o,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=aa((b,v)=>{if(!r||!e||b>0&&(!v||!v.has_more))return null;const w=b===0||v==null?void 0:v.next_cursor;return["wacht-ai-thread-graphs",e,w]},async([,b,v])=>{const w=new URLSearchParams;w.set("limit","10"),v&&w.set("cursor",String(v));const E=await a(`/ai/threads/${b}/task-graphs?${w.toString()}`),S=(await V(E)).data||{data:[],limit:10,has_more:!1};return{...S,data:(S.data||[]).map(C=>({...C,nodes:Array.isArray(C.nodes)?C.nodes:[],edges:Array.isArray(C.edges)?C.edges:[],summary:C.summary||null}))}},{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3,revalidateFirstPage:!0,revalidateAll:!1,persistSize:!0}),p=c.useMemo(()=>o?o.flatMap(b=>b.data||[]):[],[o]),m=o&&((x=o[o.length-1])==null?void 0:x.has_more)||!1,g=f&&!!o&&d>((o==null?void 0:o.length)||0);return{graphs:p,latestGraph:p[0]||null,has_more:m,loadingMore:g,loading:h,error:s,loadMore:async()=>{!m||g||await u(d+1)},refetch:async()=>{await i()}}}function zp(e,r,a=!0){const{client:o}=je(),s=a&&e&&r?`wacht-ai-board-item-comments:${e}:${r}`:null,i=c.useCallback(async()=>{if(!e||!r)return[];const u=await o(`/ai/projects/${e}/board/items/${r}/comments`);return(await V(u)).data},[e,r,o]),h=Ae(s,i,{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3}),d=c.useCallback(async(u,f)=>{if(!e||!r)throw new Error("projectId and itemId are required");const p=new FormData;if(p.set("body",u),f)for(const x of f)p.append("attachments",x,x.name);const m=await o(`/ai/projects/${e}/board/items/${r}/comments`,{method:"POST",body:p}),g=await V(m);return await h.mutate(),g},[e,r,o,h]);return{comments:h.data||[],loading:!h.data&&!h.error,error:h.error||null,createComment:d,refetch:async()=>{await h.mutate()}}}function $p(e=!0){const{client:r}=je(),a=e?"wacht-ai-actor-mcp-servers":null,o=c.useCallback(async()=>{const p=await r("/ai/mcp-servers");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=Ae(a,o,{revalidateOnFocus:!1}),u=c.useCallback(async p=>{const m=await r(`/ai/mcp-servers/${p}/connect`,{method:"POST",body:new URLSearchParams});return V(m)},[r]),f=c.useCallback(async p=>{const m=await r(`/ai/mcp-servers/${p}/disconnect`,{method:"POST",body:new URLSearchParams}),g=await V(m);return await h(),g},[r,h]);return{servers:s??[],loading:d,error:i,connect:u,disconnect:f,refetch:async()=>{await h()}}}function Mp(e=!0){const{client:r}=je(),a=e?"wacht-ai-external-agent-connections":null,o=c.useCallback(async()=>{const p=await r("/ai/external-connections");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=Ae(a,o,{revalidateOnFocus:!1}),u=c.useCallback(async(p,m,g)=>{const x=await r(`/ai/external-connections/${encodeURIComponent(p)}/${encodeURIComponent(m)}/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({return_url:(g==null?void 0:g.returnUrl)??""})}),b=await V(x);return await h(),b.data},[r,h]),f=c.useCallback(async(p,m)=>{const g=await r(`/ai/external-connections/${encodeURIComponent(p)}/${encodeURIComponent(m)}`,{method:"DELETE"}),x=await V(g);return await h(),x.data},[r,h]);return{connections:s??[],loading:d,error:i,connect:u,disconnect:f,refetch:async()=>{await h()}}}function $0(e){const r=new URLSearchParams;return r.append("url",e.url),e.description&&r.append("description",e.description),e.subscribed_events&&e.subscribed_events.forEach(a=>r.append("subscribed_events",a)),e.subscriptions&&e.subscriptions.length>0&&r.append("subscriptions",JSON.stringify(e.subscriptions)),e.headers&&Object.entries(e.headers).forEach(([a,o])=>{r.append(`headers[${a}]`,o)}),e.rate_limit_config&&(r.append("rate_limit[duration_ms]",e.rate_limit_config.duration_ms.toString()),r.append("rate_limit[max_requests]",e.rate_limit_config.max_requests.toString())),r}function Lp(e){const r=new URLSearchParams;return e.url&&r.append("url",e.url),e.description!==void 0&&r.append("description",e.description||""),e.subscribed_events&&e.subscribed_events.forEach(a=>r.append("subscribed_events",a)),e.subscriptions&&e.subscriptions.length>0&&r.append("subscriptions",JSON.stringify(e.subscriptions)),e.headers&&Object.entries(e.headers).forEach(([a,o])=>{r.append(`headers[${a}]`,o)}),e.is_active!==void 0&&r.append("is_active",e.is_active.toString()),e.rate_limit_config&&(r.append("rate_limit[duration_ms]",e.rate_limit_config.duration_ms.toString()),r.append("rate_limit[max_requests]",e.rate_limit_config.max_requests.toString())),r}function Rp(e){const r=new URLSearchParams;return r.append("event_name",e.event_name),r.append("payload",JSON.stringify(e.payload||{})),r}function Pp(e){const r=new URLSearchParams;return(e.delivery_ids||[]).forEach(o=>r.append("delivery_ids",o)),e.start_date&&r.append("start_date",e.start_date),e.end_date&&r.append("end_date",e.end_date),e.status&&r.append("status",e.status),e.event_name&&r.append("event_name",e.event_name),e.endpoint_id&&r.append("endpoint_id",e.endpoint_id),e.idempotency_key&&r.append("idempotency_key",e.idempotency_key),r}const $a={"Content-Type":"application/x-www-form-urlencoded"};async function St(e,r){const a=await V(e);if(!a||!("data"in a))throw new Error(r);return a}async function Tp(e){const r=await e("/webhook/session",{method:"GET"});if(!r.ok)throw r.status===401||r.status===403?new Error("NO_SESSION"):new Error("Failed to fetch webhook app session");return(await St(r,"Failed to fetch webhook app session")).data}async function Fp(e,r){if(!(await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"})).ok)throw new Error("Failed to exchange ticket")}async function Zp(e,r){const a=$0(r),o=await e("/webhook/endpoints",{method:"POST",headers:$a,body:a.toString()});return St(o,"Failed to create webhook endpoint")}async function Ip(e,r,a){const o=Lp(a),s=await e(`/webhook/endpoints/${r}`,{method:"PUT",headers:$a,body:o.toString()});return St(s,"Failed to update webhook endpoint")}async function Op(e,r){const a=await e(`/webhook/endpoints/${r}`,{method:"DELETE"});return St(a,"Failed to delete webhook endpoint")}async function Hp(e,r,a){const o=Rp(a),s=await e(`/webhook/endpoints/${r}/test`,{method:"POST",headers:$a,body:o.toString()});return St(s,"Failed to test webhook endpoint")}async function Vp(e){const r=await e("/webhook/rotate-secret",{method:"POST"});return St(r,"Failed to rotate signing secret")}async function Dp(e,r){const a=new URLSearchParams;for(const s of r.failure_notification_emails)a.append("failure_notification_emails",s);const o=await e("/webhook/settings",{method:"PUT",headers:$a,body:a.toString()});return St(o,"Failed to update webhook settings")}async function Np(e,r){const a=Pp(r),o=await e("/webhook/deliveries/replay",{method:"POST",headers:$a,body:a.toString()});return St(o,"Failed to replay webhook delivery")}async function Up(e,r){const a=await e(`/webhook/deliveries/${r}`,{method:"GET"});return St(a,"Failed to fetch delivery details")}async function Bp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}`,{method:"GET"});return St(a,"Failed to fetch replay task status")}async function Wp(e,r){const a=(r==null?void 0:r.limit)??50,o=(r==null?void 0:r.offset)??0,s=await e(`/webhook/deliveries/replay?limit=${a}&offset=${o}`,{method:"GET"});return St(s,"Failed to fetch replay tasks")}async function Gp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}/cancel`,{method:"POST"});return St(a,"Failed to cancel replay task")}function qp(e){const{client:r}=je(),[a,o]=c.useState(!e),[s,i]=c.useState(!!e),[h,d]=c.useState(null),u=c.useRef(!1),f=c.useRef(!1),p=c.useRef(null),m=a,g=c.useCallback(async()=>Tp(r),[r]),{data:x,error:b,isLoading:v,mutate:w}=Ae(m?"wacht-webhook-app-session":null,g,{revalidateOnFocus:!1,shouldRetryOnError:!1});c.useEffect(()=>{if(!e||u.current||f.current||p.current===e)return;p.current=e,(async()=>{f.current=!0,i(!0);try{await Fp(r,e),u.current=!0,o(!0)}catch(I){d(I instanceof Error?I:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const E=c.useCallback(async $=>Zp(r,$),[r]),j=c.useCallback(async($,I)=>Ip(r,$,I),[r]),S=c.useCallback(async $=>Op(r,$),[r]),C=c.useCallback(async($,I)=>Hp(r,$,I),[r]),_=c.useCallback(async()=>Vp(r),[r]),k=c.useCallback(async $=>Np(r,$),[r]),y=c.useCallback(async $=>Dp(r,$),[r]),L=c.useCallback(async $=>Up(r,$),[r]),z=c.useCallback(async $=>Bp(r,$),[r]),O=c.useCallback(async $=>Wp(r,$),[r]),R=c.useCallback(async $=>Gp(r,$),[r]),M=!b||b.message!=="NO_SESSION",T=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:M,sessionLoading:s||m&&v,sessionError:T,sessionId:(x==null?void 0:x.session_id)||null,webhookApp:(x==null?void 0:x.webhook_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()},createEndpoint:E,updateEndpoint:j,deleteEndpoint:S,testEndpoint:C,rotateSecret:_,updateSettings:y,replayDelivery:k,fetchReplayTaskStatus:z,fetchReplayTasks:O,cancelReplayTask:R,fetchDeliveryDetail:L}}function Kp(){const{client:e}=je(),r=c.useCallback(async()=>{const h=await e("/webhook/stats",{method:"GET"});return(await V(h)).data},[e]),{data:a,error:o,isLoading:s,mutate:i}=Ae("wacht-webhook-stats",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{stats:a||null,loading:s,error:o,refetch:()=>i()}}function Yp(){const{client:e}=je(),r=c.useCallback(async()=>{const h=await e("/webhook/endpoints",{method:"GET"});return(await V(h)).data},[e]),{data:a,error:o,isLoading:s,mutate:i}=Ae("wacht-webhook-endpoints",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{endpoints:a||[],loading:s,error:o,refetch:()=>i()}}function Qp(){const{client:e}=je();return{createEndpoint:c.useCallback(async a=>{const o=$0(a),s=await e("/webhook/endpoints",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o.toString()});return await V(s)},[e]),loading:!1,error:null}}function Jp(){const{client:e}=je(),r=c.useCallback(async()=>{const h=await e("/webhook/events",{method:"GET"});return(await V(h)).data},[e]),{data:a,error:o,isLoading:s,mutate:i}=Ae("wacht-webhook-events",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{events:a||[],loading:s,error:o,refetch:()=>i()}}function Xp(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.status&&d.set("status",e.status),e.event_name&&d.set("event_name",e.event_name),e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor);const u=await r(`/webhook/deliveries?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.endpoint_id,e.status,e.event_name,e.limit,e.cursor]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.status&&d.set("status",e.status),e.event_name&&d.set("event_name",e.event_name),e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor),`wacht-webhook-deliveries?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{deliveries:(o==null?void 0:o.data)||[],has_more:(o==null?void 0:o.has_more)||!1,next_cursor:o==null?void 0:o.next_cursor,loading:i,error:s,refetch:()=>h()}}function eh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.fields&&e.fields.length>0&&d.set("fields",e.fields.join(","));const u=await r(`/webhook/analytics?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.endpoint_id,e.fields]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.fields&&e.fields.length>0&&d.set("fields",e.fields.join(",")),`wacht-webhook-analytics?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{analytics:o||null,loading:i,error:s,refetch:()=>h()}}function th(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id);const u=await r(`/webhook/analytics/timeseries?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.interval,e.endpoint_id]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),`wacht-webhook-timeseries?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{timeseries:(o==null?void 0:o.data)||[],interval:(o==null?void 0:o.interval)||"hour",loading:i,error:s,refetch:()=>h()}}function rh(e){const{client:r}=je(),[a,o]=c.useState(!e),[s,i]=c.useState(!!e),[h,d]=c.useState(null),u=c.useRef(!1),f=c.useRef(!1),p=c.useRef(null),m=a,g=c.useCallback(async()=>{const C=await r("/api-auth/session",{method:"GET"});if(!C.ok)throw C.status===401||C.status===403?new Error("NO_SESSION"):new Error("Failed to fetch API auth app session");return(await V(C)).data},[r]),{data:x,error:b,isLoading:v,mutate:w}=Ae(m?"wacht-api-auth-app-session":null,g,{revalidateOnFocus:!1,shouldRetryOnError:!1});c.useEffect(()=>{if(!e||u.current||f.current||p.current===e)return;p.current=e,(async()=>{f.current=!0,i(!0);try{(await r(`/session/ticket/exchange?ticket=${encodeURIComponent(e)}`,{method:"GET"})).ok?(u.current=!0,o(!0)):d(new Error("Failed to exchange ticket"))}catch(_){d(_ instanceof Error?_:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const E=!b||b.message!=="NO_SESSION",j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:E,sessionLoading:s||m&&v,sessionError:j,sessionId:(x==null?void 0:x.session_id)||null,apiAuthApp:(x==null?void 0:x.api_auth_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}function ah(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const p=new URLSearchParams;e.status&&p.set("status",e.status);const m=await r(`/api-auth/keys${p.toString()?`?${p.toString()}`:""}`,{method:"GET"});return(await V(m)).data},[r,e.status]),{data:o,error:s,isLoading:i,mutate:h}=Ae(`wacht-api-auth-keys:${e.status||"all"}`,a,{revalidateOnFocus:!1,shouldRetryOnError:!1}),d=c.useCallback(async p=>{const m=new URLSearchParams;m.set("name",p.name),p.expires_at&&m.set("expires_at",p.expires_at);const g=await r("/api-auth/keys",{method:"POST",body:m}),x=await V(g);return await h(),x},[r,h]),u=c.useCallback(async p=>{const m=await r(`/api-auth/keys/${p.key_id}/rotate`,{method:"POST"}),g=await V(m);return await h(),g},[r,h]),f=c.useCallback(async p=>{const m=new URLSearchParams;p.reason&&m.set("reason",p.reason);const g=await r(`/api-auth/keys/${p.key_id}/revoke`,{method:"POST",body:m}),x=await V(g);return await h(),x},[r,h]);return{keys:o||[],createKey:d,rotateKey:u,revokeKey:f,loading:i,error:s,refetch:()=>h()}}function nh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor),e.outcome&&d.set("outcome",e.outcome),e.key_id&&d.set("key_id",e.key_id),e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date);const u=await r(`/api-auth/audit/logs?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.limit,e.cursor,e.outcome,e.key_id,e.start_date,e.end_date]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor),e.outcome&&d.set("outcome",e.outcome),e.key_id&&d.set("key_id",e.key_id),e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),`wacht-api-auth-audit-logs?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{logs:(o==null?void 0:o.data)||[],limit:(o==null?void 0:o.limit)||e.limit||0,has_more:(o==null?void 0:o.has_more)||!1,next_cursor:o==null?void 0:o.next_cursor,loading:i,error:s,refetch:()=>h()}}function oh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.key_id&&d.set("key_id",e.key_id),e.include_top_keys&&d.set("include_top_keys","true"),e.include_top_paths&&d.set("include_top_paths","true"),e.include_blocked_reasons&&d.set("include_blocked_reasons","true"),e.include_rate_limits&&d.set("include_rate_limits","true"),e.top_limit&&d.set("top_limit",e.top_limit.toString());const u=await r(`/api-auth/audit/analytics?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.key_id,e.include_top_keys,e.include_top_paths,e.include_blocked_reasons,e.include_rate_limits,e.top_limit]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.key_id&&d.set("key_id",e.key_id),e.include_top_keys&&d.set("include_top_keys","true"),e.include_top_paths&&d.set("include_top_paths","true"),e.include_blocked_reasons&&d.set("include_blocked_reasons","true"),e.include_rate_limits&&d.set("include_rate_limits","true"),e.top_limit&&d.set("top_limit",e.top_limit.toString()),`wacht-api-auth-audit-analytics?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{analytics:o||null,loading:i,error:s,refetch:()=>h()}}function sh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.key_id&&d.set("key_id",e.key_id);const u=await r(`/api-auth/audit/timeseries?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.interval,e.key_id]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.key_id&&d.set("key_id",e.key_id),`wacht-api-auth-audit-timeseries?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{timeseries:(o==null?void 0:o.data)||[],interval:(o==null?void 0:o.interval)||e.interval||"hour",loading:i,error:s,refetch:()=>h()}}const M0=()=>{const{client:e}=je(),[r,a]=c.useState(!1),[o,s]=c.useState(null),[i,h]=c.useState(null),d=c.useCallback(async f=>{a(!0),s(null),h(null);try{const p=new FormData;p.append("token",f);const m=await e("/organizations/invitations/accept",{method:"POST",body:p}),x=(await V(m)).data;return h(x),x.error_code&&s(x.message||"Failed to accept invitation"),x}catch(p){const m=p.message||"Failed to accept invitation";s(m);const g={error_code:"NETWORK_ERROR",message:m};return h(g),g}finally{a(!1)}},[e]),u=c.useCallback(()=>{s(null),h(null)},[]);return{acceptInvitation:d,invitationData:i,loading:r,error:o,reset:u}},ih=({children:e})=>{const{loading:r}=Se();return r?null:t.jsx(t.Fragment,{children:e})},ch=({children:e})=>{const{loading:r}=Se();return r?t.jsx(t.Fragment,{children:e}):null};function lh(e){var r=Object.create(null);return function(a){return r[a]===void 0&&(r[a]=e(a)),r[a]}}var dh=/^((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)-.*))$/,uh=lh(function(e){return dh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tt="-ms-",ja="-moz-",We="-webkit-",L0="comm",Mn="rule",ys="decl",ph="@import",hh="@namespace",R0="@keyframes",fh="@layer",P0=Math.abs,js=String.fromCharCode,Xo=Object.assign;function mh(e,r){return ut(e,0)^45?(((r<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}function T0(e){return e.trim()}function Gt(e,r){return(e=r.exec(e))?e[0]:e}function Me(e,r,a){return e.replace(r,a)}function fn(e,r,a){return e.indexOf(r,a)}function ut(e,r){return e.charCodeAt(r)|0}function Lr(e,r,a){return e.slice(r,a)}function zt(e){return e.length}function F0(e){return e.length}function xa(e,r){return r.push(e),e}function gh(e,r){return e.map(r).join("")}function pi(e,r){return e.filter(function(a){return!Gt(a,r)})}var Ln=1,Xr=1,Z0=0,Ct=0,it=0,na="";function Rn(e,r,a,o,s,i,h,d){return{value:e,root:r,parent:a,type:o,props:s,children:i,line:Ln,column:Xr,length:h,return:"",siblings:d}}function rr(e,r){return Xo(Rn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function Or(e){for(;e.root;)e=rr(e.root,{children:[e]});xa(e,e.siblings)}function vh(){return it}function xh(){return it=Ct>0?ut(na,--Ct):0,Xr--,it===10&&(Xr=1,Ln--),it}function Lt(){return it=Ct<Z0?ut(na,Ct++):0,Xr++,it===10&&(Xr=1,Ln++),it}function nr(){return ut(na,Ct)}function mn(){return Ct}function Pn(e,r){return Lr(na,e,r)}function Sa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wh(e){return Ln=Xr=1,Z0=zt(na=e),Ct=0,[]}function bh(e){return na="",e}function eo(e){return T0(Pn(Ct-1,es(e===91?e+2:e===40?e+1:e)))}function yh(e){for(;(it=nr())&&it<33;)Lt();return Sa(e)>2||Sa(it)>3?"":" "}function jh(e,r){for(;--r&&Lt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Pn(e,mn()+(r<6&&nr()==32&&Lt()==32))}function es(e){for(;Lt();)switch(it){case e:return Ct;case 34:case 39:e!==34&&e!==39&&es(it);break;case 40:e===41&&es(e);break;case 92:Lt();break}return Ct}function _h(e,r){for(;Lt()&&e+it!==57;)if(e+it===84&&nr()===47)break;return"/*"+Pn(r,Ct-1)+"*"+js(e===47?e:Lt())}function kh(e){for(;!Sa(nr());)Lt();return Pn(e,Ct)}function Ch(e){return bh(gn("",null,null,null,[""],e=wh(e),0,[0],e))}function gn(e,r,a,o,s,i,h,d,u){for(var f=0,p=0,m=h,g=0,x=0,b=0,v=1,w=1,E=1,j=0,S="",C=s,_=i,k=o,y=S;w;)switch(b=j,j=Lt()){case 40:if(b!=108&&ut(y,m-1)==58){fn(y+=Me(eo(j),"&","&\f"),"&\f",P0(f?d[f-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:y+=eo(j);break;case 9:case 10:case 13:case 32:y+=yh(b);break;case 92:y+=jh(mn()-1,7);continue;case 47:switch(nr()){case 42:case 47:xa(Sh(_h(Lt(),mn()),r,a,u),u),(Sa(b||1)==5||Sa(nr()||1)==5)&&zt(y)&&Lr(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*v:d[f++]=zt(y)*E;case 125*v:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:E==-1&&(y=Me(y,/\f/g,"")),x>0&&(zt(y)-m||v===0&&b===47)&&xa(x>32?fi(y+";",o,a,m-1,u):fi(Me(y," ","")+";",o,a,m-2,u),u);break;case 59:y+=";";default:if(xa(k=hi(y,r,a,f,p,s,d,S,C=[],_=[],m,i),i),j===123)if(p===0)gn(y,r,k,k,C,i,m,d,_);else{switch(g){case 99:if(ut(y,3)===110)break;case 108:if(ut(y,2)===97)break;default:p=0;case 100:case 109:case 115:}p?gn(e,k,k,o&&xa(hi(e,k,k,0,0,s,d,S,s,C=[],m,_),_),s,_,m,d,o?C:_):gn(y,k,k,k,[""],_,0,d,_)}}f=p=x=0,v=E=1,S=y="",m=h;break;case 58:m=1+zt(y),x=b;default:if(v<1){if(j==123)--v;else if(j==125&&v++==0&&xh()==125)continue}switch(y+=js(j),j*v){case 38:E=p>0?1:(y+="\f",-1);break;case 44:d[f++]=(zt(y)-1)*E,E=1;break;case 64:nr()===45&&(y+=eo(Lt())),g=nr(),p=m=zt(S=y+=kh(mn())),j++;break;case 45:b===45&&zt(y)==2&&(v=0)}}return i}function hi(e,r,a,o,s,i,h,d,u,f,p,m){for(var g=s-1,x=s===0?i:[""],b=F0(x),v=0,w=0,E=0;v<o;++v)for(var j=0,S=Lr(e,g+1,g=P0(w=h[v])),C=e;j<b;++j)(C=T0(w>0?x[j]+" "+S:Me(S,/&\f/g,x[j])))&&(u[E++]=C);return Rn(e,r,a,s===0?Mn:d,u,f,p,m)}function Sh(e,r,a,o){return Rn(e,r,a,L0,js(vh()),Lr(e,2,-2),0,o)}function fi(e,r,a,o,s){return Rn(e,r,a,ys,Lr(e,0,o),Lr(e,o+1,-1),o,s)}function I0(e,r,a){switch(mh(e,r)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return We+e+e;case 4855:return We+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ja+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+ja+e+tt+e+e;case 5936:switch(ut(e,r+11)){case 114:return We+e+tt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+tt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+tt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return We+e+tt+e+e;case 6165:return We+e+tt+"flex-"+e+e;case 5187:return We+e+Me(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return We+e+tt+"flex-item-"+Me(e,/flex-|-self/g,"")+(Gt(e,/flex-|baseline/)?"":tt+"grid-row-"+Me(e,/flex-|-self/g,""))+e;case 4675:return We+e+tt+"flex-line-pack"+Me(e,/align-content|flex-|-self/g,"")+e;case 5548:return We+e+tt+Me(e,"shrink","negative")+e;case 5292:return We+e+tt+Me(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Me(e,"-grow","")+We+e+tt+Me(e,"grow","positive")+e;case 4554:return We+Me(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Me(Me(Me(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Me(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Me(Me(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+tt+"flex-pack:$3"),/space-between/,"justify")+We+e+e;case 4200:if(!Gt(e,/flex-|baseline/))return tt+"grid-column-align"+Lr(e,r)+e;break;case 2592:case 3360:return tt+Me(e,"template-","")+e;case 4384:case 3616:return a&&a.some(function(o,s){return r=s,Gt(o.props,/grid-\w+-end/)})?~fn(e+(a=a[r].value),"span",0)?e:tt+Me(e,"-start","")+e+tt+"grid-row-span:"+(~fn(a,"span",0)?Gt(a,/\d+/):+Gt(a,/\d+/)-+Gt(e,/\d+/))+";":tt+Me(e,"-start","")+e;case 4896:case 4128:return a&&a.some(function(o){return Gt(o.props,/grid-\w+-start/)})?e:tt+Me(Me(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Me(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zt(e)-1-r>6)switch(ut(e,r+1)){case 109:if(ut(e,r+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+ja+(ut(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~fn(e,"stretch",0)?I0(Me(e,"stretch","fill-available"),r,a)+e:e}break;case 5152:case 5920:return Me(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,i,h,d,u,f){return tt+s+":"+i+f+(h?tt+s+"-span:"+(d?u:+u-+i)+f:"")+e});case 4949:if(ut(e,r+6)===121)return Me(e,":",":"+We)+e;break;case 6444:switch(ut(e,ut(e,14)===45?18:11)){case 120:return Me(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+We+(ut(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+tt+"$2box$3")+e;case 100:return Me(e,":",":"+tt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Me(e,"scroll-","scroll-snap-")+e}return e}function jn(e,r){for(var a="",o=0;o<e.length;o++)a+=r(e[o],o,e,r)||"";return a}function Eh(e,r,a,o){switch(e.type){case fh:if(e.children.length)break;case ph:case hh:case ys:return e.return=e.return||e.value;case L0:return"";case R0:return e.return=e.value+"{"+jn(e.children,o)+"}";case Mn:if(!zt(e.value=e.props.join(",")))return""}return zt(a=jn(e.children,o))?e.return=e.value+"{"+a+"}":""}function Ah(e){var r=F0(e);return function(a,o,s,i){for(var h="",d=0;d<r;d++)h+=e[d](a,o,s,i)||"";return h}}function zh(e){return function(r){r.root||(r=r.return)&&e(r)}}function $h(e,r,a,o){if(e.length>-1&&!e.return)switch(e.type){case ys:e.return=I0(e.value,e.length,a);return;case R0:return jn([rr(e,{value:Me(e.value,"@","@"+We)})],o);case Mn:if(e.length)return gh(a=e.props,function(s){switch(Gt(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Or(rr(e,{props:[Me(s,/:(read-\w+)/,":"+ja+"$1")]})),Or(rr(e,{props:[s]})),Xo(e,{props:pi(a,o)});break;case"::placeholder":Or(rr(e,{props:[Me(s,/:(plac\w+)/,":"+We+"input-$1")]})),Or(rr(e,{props:[Me(s,/:(plac\w+)/,":"+ja+"$1")]})),Or(rr(e,{props:[Me(s,/:(plac\w+)/,tt+"input-$1")]})),Or(rr(e,{props:[s]})),Xo(e,{props:pi(a,o)});break}return""})}}var to,ro;const Rr=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",O0="active",H0="data-styled-version",Tn="6.4.1",_s=`/*!sc*/
|
|
19
|
-
`,_a=typeof window<"u"&&typeof document<"u";function
|
|
18
|
+
*/var ti;function Wu(){return ti||(ti=1,process.env.NODE_ENV!=="production"&&(function(){function e(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}function r(x,b){p||s.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=b();if(!m){var w=b();i(v,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}w=h({inst:{value:v,getSnapshot:b}});var E=w[0].inst,j=w[1];return u(function(){E.value=v,E.getSnapshot=b,a(E)&&j({inst:E})},[x,v,b]),d(function(){return a(E)&&j({inst:E}),x(function(){a(E)&&j({inst:E})})},[x]),f(v),v}function a(x){var b=x.getSnapshot;x=x.value;try{var v=b();return!i(x,v)}catch{return!0}}function o(x,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=c,i=typeof Object.is=="function"?Object.is:e,h=s.useState,d=s.useEffect,u=s.useLayoutEffect,f=s.useDebugValue,p=!1,m=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;Un.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Un}var ri;function Gu(){return ri||(ri=1,process.env.NODE_ENV==="production"?Fa.exports=Bu():Fa.exports=Wu()),Fa.exports}var Vo=Gu();const l0=0,d0=1,u0=2,ai=3;var ni=Object.prototype.hasOwnProperty;function Do(e,r){var a,o;if(e===r)return!0;if(e&&r&&(a=e.constructor)===r.constructor){if(a===Date)return e.getTime()===r.getTime();if(a===RegExp)return e.toString()===r.toString();if(a===Array){if((o=e.length)===r.length)for(;o--&&Do(e[o],r[o]););return o===-1}if(!a||typeof e=="object"){o=0;for(a in e)if(ni.call(e,a)&&++o&&!ni.call(r,a)||!(a in r)||!Do(e[a],r[a]))return!1;return Object.keys(r).length===o}}return e!==e&&r!==r}const It=new WeakMap,Kt=()=>{},pt=Kt(),No=Object,Ce=e=>e===pt,$t=e=>typeof e=="function",sr=(e,r)=>({...e,...r}),p0=e=>$t(e.then),Bn={},Za={},bs="undefined",za=typeof window!=bs,Uo=typeof document!=bs,qu=za&&"Deno"in window,Ku=()=>za&&typeof window.requestAnimationFrame!=bs,ar=(e,r)=>{const a=It.get(e);return[()=>!Ce(r)&&e.get(r)||Bn,o=>{if(!Ce(r)){const s=e.get(r);r in Za||(Za[r]=s),a[5](r,sr(s,o),s||Bn)}},a[6],()=>!Ce(r)&&r in Za?Za[r]:!Ce(r)&&e.get(r)||Bn]};let Bo=!0;const Yu=()=>Bo,[Wo,Go]=za&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Kt,Kt],Qu=()=>{const e=Uo&&document.visibilityState;return Ce(e)||e!=="hidden"},Ju=e=>(Uo&&document.addEventListener("visibilitychange",e),Wo("focus",e),()=>{Uo&&document.removeEventListener("visibilitychange",e),Go("focus",e)}),Xu=e=>{const r=()=>{Bo=!0,e()},a=()=>{Bo=!1};return Wo("online",r),Wo("offline",a),()=>{Go("online",r),Go("offline",a)}},e2={isOnline:Yu,isVisible:Qu},t2={initFocus:Ju,initReconnect:Xu},oi=!c.useId,Yr=!za||qu,r2=e=>Ku()?window.requestAnimationFrame(e):setTimeout(e,1),hn=Yr?c.useEffect:c.useLayoutEffect,Wn=typeof navigator<"u"&&navigator.connection,si=!Yr&&Wn&&(["slow-2g","2g"].includes(Wn.effectiveType)||Wn.saveData),Ia=new WeakMap,a2=e=>No.prototype.toString.call(e),Gn=(e,r)=>e===`[object ${r}]`;let n2=0;const qo=e=>{const r=typeof e,a=a2(e),o=Gn(a,"Date"),s=Gn(a,"RegExp"),i=Gn(a,"Object");let h,d;if(No(e)===e&&!o&&!s){if(h=Ia.get(e),h)return h;if(h=++n2+"~",Ia.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=qo(e[d])+",";Ia.set(e,h)}if(i){h="#";const u=No.keys(e).sort();for(;!Ce(d=u.pop());)Ce(e[d])||(h+=d+":"+qo(e[d])+",");Ia.set(e,h)}}else h=o?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},Ca=e=>{if($t(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?qo(e):"",[e,r]};let o2=0;const Ko=()=>++o2;async function h0(...e){const[r,a,o,s]=e,i=sr({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let h=i.populateCache;const d=i.rollbackOnError;let u=i.optimisticData;const f=g=>typeof d=="function"?d(g):d!==!1,p=i.throwOnError;if($t(a)){const g=a,x=[],b=r.keys();for(const v of b)!/^\$(inf|sub)\$/.test(v)&&g(r.get(v)._k)&&x.push(v);return Promise.all(x.map(m))}return m(a);async function m(g){const[x]=Ca(g);if(!x)return;const[b,v]=ar(r,x),[w,E,j,S]=It.get(r),C=()=>{const A=w[x];return($t(i.revalidate)?i.revalidate(b().data,g):i.revalidate!==!1)&&(delete j[x],delete S[x],A&&A[0])?A[0](u0).then(()=>b().data):b().data};if(e.length<3)return C();let _=o,k,y=!1;const L=Ko();E[x]=[L,0];const $=!Ce(u),H=b(),F=H.data,M=H._c,R=Ce(M)?F:M;if($&&(u=$t(u)?u(R,F):u,v({data:u,_c:R})),$t(_))try{_=_(R)}catch(A){k=A,y=!0}if(_&&p0(_))if(_=await _.catch(A=>{k=A,y=!0}),L!==E[x][0]){if(y)throw k;return _}else y&&$&&f(k)&&(h=!0,v({data:R,_c:pt}));if(h&&!y)if($t(h)){const A=h(_,R);v({data:A,error:pt,_c:pt})}else v({data:_,error:pt,_c:pt});if(E[x][1]=Ko(),Promise.resolve(C()).then(()=>{v({_c:pt})}),y){if(p)throw k;return}return _}}const ii=(e,r)=>{for(const a in e)e[a][0]&&e[a][0](r)},s2=(e,r)=>{if(!It.has(e)){const a=sr(t2,r),o=Object.create(null),s=h0.bind(pt,e);let i=Kt;const h=Object.create(null),d=(p,m)=>{const g=h[p]||[];return h[p]=g,g.push(m),()=>g.splice(g.indexOf(m),1)},u=(p,m,g)=>{e.set(p,m);const x=h[p];if(x)for(const b of x)b(m,g)},f=()=>{if(!It.has(e)&&(It.set(e,[o,Object.create(null),Object.create(null),Object.create(null),s,u,d]),!Yr)){const p=a.initFocus(setTimeout.bind(pt,ii.bind(pt,o,l0))),m=a.initReconnect(setTimeout.bind(pt,ii.bind(pt,o,d0)));i=()=>{p&&p(),m&&m(),It.delete(e)}}};return f(),[e,s,f,i]}return[e,It.get(e)[4]]},i2=(e,r,a,o,s)=>{const i=a.errorRetryCount,h=s.retryCount,d=~~((Math.random()+.5)*(1<<(h<8?h:8)))*a.errorRetryInterval;!Ce(i)&&h>i||setTimeout(o,d,s)},c2=Do,[ys,qr]=s2(new Map),l2=sr({onLoadingSlow:Kt,onSuccess:Kt,onError:Kt,onErrorRetry:i2,onDiscarded:Kt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:si?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:si?5e3:3e3,compare:c2,isPaused:()=>!1,cache:ys,mutate:qr,fallback:{}},e2),d2=(e,r)=>{const a=sr(e,r);if(r){const{use:o,fallback:s}=e,{use:i,fallback:h}=r;o&&i&&(a.use=o.concat(i)),s&&h&&(a.fallback=sr(s,h))}return a},u2=c.createContext({}),f0="$inf$",m0=za&&window.__SWR_DEVTOOLS_USE__,p2=m0?window.__SWR_DEVTOOLS_USE__:[],h2=()=>{m0&&(window.__SWR_DEVTOOLS_REACT__=c)},g0=e=>$t(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],v0=()=>{const e=c.useContext(u2);return c.useMemo(()=>sr(l2,e),[e])},f2=e=>(r,a,o)=>e(r,a&&((...i)=>{const[h]=Ca(r),[,,,d]=It.get(ys);if(h.startsWith(f0))return a(...i);const u=d[h];return Ce(u)?a(...i):(delete d[h],u)}),o),m2=p2.concat(f2),g2=e=>function(...a){const o=v0(),[s,i,h]=g0(a),d=d2(o,h);let u=e;const{use:f}=d,p=(f||[]).concat(m2);for(let m=p.length;m--;)u=p[m](u);return u(s,i||d.fetcher||null,d)},v2=(e,r,a)=>{const o=r[e]||(r[e]=[]);return o.push(a),()=>{const s=o.indexOf(a);s>=0&&(o[s]=o[o.length-1],o.pop())}},x2=(e,r)=>(...a)=>{const[o,s,i]=g0(a),h=(i.use||[]).concat(r);return e(o,s,{...i,use:h})};h2();const qn=c.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(r=>{e.status="fulfilled",e.value=r},r=>{e.status="rejected",e.reason=r}),e}}),Kn={dedupe:!0},ci=Promise.resolve(pt),w2=()=>Kt,b2=(e,r,a)=>{const{cache:o,compare:s,suspense:i,fallbackData:h,revalidateOnMount:d,revalidateIfStale:u,refreshInterval:f,refreshWhenHidden:p,refreshWhenOffline:m,keepPreviousData:g,strictServerPrefetchWarning:x}=a,[b,v,w,E]=It.get(o),[j,S]=Ca(e),C=c.useRef(!1),_=c.useRef(!1),k=c.useRef(j),y=c.useRef(r),L=c.useRef(a),$=()=>L.current,H=()=>$().isVisible()&&$().isOnline(),[F,M,R,A]=ar(o,j),z=c.useRef({}).current,Z=Ce(h)?Ce(a.fallback)?pt:a.fallback[j]:h,P=(Q,ce)=>{for(const ne in z){const q=ne;if(q==="data"){if(!s(Q[q],ce[q])&&(!Ce(Q[q])||!s(ie,ce[q])))return!1}else if(ce[q]!==Q[q])return!1}return!0},O=!C.current,I=c.useMemo(()=>{const Q=F(),ce=A(),ne=K=>{const pe=sr(K);return delete pe._k,(()=>{if(!j||!r||$().isPaused())return!1;if(O&&!Ce(d))return d;const Oe=Ce(Z)?pe.data:Z;return Ce(Oe)||u})()?{isValidating:!0,isLoading:!0,...pe}:pe},q=ne(Q),ue=Q===ce?q:ne(ce);let de=q;return[()=>{const K=ne(F());return P(K,de)?(de.data=K.data,de.isLoading=K.isLoading,de.isValidating=K.isValidating,de.error=K.error,de):(de=K,K)},()=>ue]},[o,j]),T=Vo.useSyncExternalStore(c.useCallback(Q=>R(j,(ce,ne)=>{P(ne,ce)||Q()}),[o,j]),I[0],I[1]),G=b[j]&&b[j].length>0,D=T.data,W=Ce(D)?Z&&p0(Z)?qn(Z):Z:D,Y=T.error,J=c.useRef(W),ie=g?Ce(D)?Ce(J.current)?W:J.current:D:W,he=j&&Ce(W),ee=c.useRef(null);!Yr&&Vo.useSyncExternalStore(w2,()=>(ee.current=!1,ee),()=>(ee.current=!0,ee));const xe=ee.current;x&&xe&&!i&&he&&console.warn(`Missing pre-initiated data for serialized key "${j}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const te=!j||!r||$().isPaused()||G&&!Ce(Y)?!1:O&&!Ce(d)?d:i?Ce(W)?!1:u:Ce(W)||u,B=O&&te,Je=Ce(T.isValidating)?B:T.isValidating,Te=Ce(T.isLoading)?B:T.isLoading,Ue=c.useCallback(async Q=>{const ce=y.current;if(!j||!ce||_.current||$().isPaused())return!1;let ne,q,ue=!0;const de=Q||{},K=!w[j]||!de.dedupe,pe=()=>oi?!_.current&&j===k.current&&C.current:j===k.current,qe={isValidating:!1,isLoading:!1},Oe=()=>{M(qe)},Ke=()=>{const X=w[j];X&&X[1]===q&&delete w[j]},ht={isValidating:!0};Ce(F().data)&&(ht.isLoading=!0);try{if(K&&(M(ht),a.loadingTimeout&&Ce(F().data)&&setTimeout(()=>{ue&&pe()&&$().onLoadingSlow(j,a)},a.loadingTimeout),w[j]=[ce(S),Ko()]),[ne,q]=w[j],ne=await ne,K&&setTimeout(Ke,a.dedupingInterval),!w[j]||w[j][1]!==q)return K&&pe()&&$().onDiscarded(j),!1;qe.error=pt;const X=v[j];if(!Ce(X)&&(q<=X[0]||q<=X[1]||X[1]===0))return Oe(),K&&pe()&&$().onDiscarded(j),!1;const oe=F().data;qe.data=s(oe,ne)?oe:ne,K&&pe()&&$().onSuccess(ne,j,a)}catch(X){Ke();const oe=$(),{shouldRetryOnError:we}=oe;oe.isPaused()||(qe.error=X,K&&pe()&&(oe.onError(X,j,oe),(we===!0||$t(we)&&we(X))&&(!$().revalidateOnFocus||!$().revalidateOnReconnect||H())&&oe.onErrorRetry(X,j,oe,De=>{const ze=b[j];ze&&ze[0]&&ze[0](ai,De)},{retryCount:(de.retryCount||0)+1,dedupe:!0})))}return ue=!1,Oe(),!0},[j,o]),Ge=c.useCallback((...Q)=>h0(o,k.current,...Q),[]);if(hn(()=>{y.current=r,L.current=a,Ce(D)||(J.current=D)}),hn(()=>{if(!j)return;const Q=Ue.bind(pt,Kn);let ce=0;$().revalidateOnFocus&&(ce=Date.now()+$().focusThrottleInterval);const q=v2(j,b,(ue,de={})=>{if(ue==l0){const K=Date.now();$().revalidateOnFocus&&K>ce&&H()&&(ce=K+$().focusThrottleInterval,Q())}else if(ue==d0)$().revalidateOnReconnect&&H()&&Q();else{if(ue==u0)return Ue();if(ue==ai)return Ue(de)}});return _.current=!1,k.current=j,C.current=!0,M({_k:S}),te&&(w[j]||(Ce(W)||Yr?Q():r2(Q))),()=>{_.current=!0,q()}},[j]),hn(()=>{let Q;function ce(){const q=$t(f)?f(F().data):f;q&&Q!==-1&&(Q=setTimeout(ne,q))}function ne(){!F().error&&(p||$().isVisible())&&(m||$().isOnline())?Ue(Kn).then(ce):ce()}return ce(),()=>{Q&&(clearTimeout(Q),Q=-1)}},[f,p,m,j]),c.useDebugValue(ie),i){if(!oi&&Yr&&he)throw new Error("Fallback data is required when using Suspense in SSR.");he&&(y.current=r,L.current=a,_.current=!1);const Q=E[j],ce=!Ce(Q)&&he?Ge(Q):ci;if(qn(ce),!Ce(Y)&&he)throw Y;const ne=he?Ue(Kn):ci;!Ce(ie)&&he&&(ne.status="fulfilled",ne.value=!0),qn(ne)}return{mutate:Ge,get data(){return z.data=!0,ie},get error(){return z.error=!0,Y},get isValidating(){return z.isValidating=!0,Je},get isLoading(){return z.isLoading=!0,Te}}},Ae=g2(b2),jt=()=>{const{adapter:e,deployment:r}=Se(),a=e.useNavigate(),o=(u,f)=>{a?a(u,f):window.location.href=u},s=u=>{if(u)return u;const p=new URLSearchParams(window.location.search).get("redirect_uri");return p||window.location.href};return{navigate:o,navigateToSignIn:u=>{if(!r)return;const f=s(u),p=new URLSearchParams;p.set("redirect_uri",f),(r==null?void 0:r.mode)==="staging"&&p.set("__dev_session__",mt(r.backend_host)??""),o(`${r.ui_settings.sign_in_page_url}?${p.toString()}`,{replace:!0})},navigateToAccountSelection:u=>{if(!r)return;const f=s(u),p=new URLSearchParams;p.set("redirect_uri",f),(r==null?void 0:r.mode)==="staging"&&p.set("__dev_session__",mt(r.backend_host)??""),o(`https://${r.frontend_host}?${p.toString()}`,{replace:!0})},navigateToSignUp:u=>{if(!r)return;const f=s(u),p=new URLSearchParams;p.set("redirect_uri",f),(r==null?void 0:r.mode)==="staging"&&p.set("__dev_session__",mt(r.backend_host)??""),o(`${r.ui_settings.sign_up_page_url}?${p.toString()}`,{replace:!0})}}};async function y2(e){const r=await e("/session",{method:"GET"});return(await V(r)).data}async function j2(e,r){const a=await e(`/session/switch-sign-in?sign_in_id=${r}`,{method:"POST"});return V(a)}async function _2(e,r){const a=r?`/session/sign-out?sign_in_id=${r}`:"/session/sign-out",o=await e(a,{method:"POST"});return V(o)}async function k2(e,r){const a=await e(`/session/switch-organization${r?`?organization_id=${r}`:""}`,{method:"POST"});return V(a)}async function C2(e,r){const a=await e(`/session/switch-workspace?workspace_id=${r}`,{method:"POST"});return V(a)}async function S2(e,r){const a=await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"});return V(a)}const Yo=new Map,va=new Map;function Mt(){Yo.clear(),va.clear()}async function E2(e,r){const a=await e(`/session/token${r?`?template=${r}`:""}`);return V(a)}function at(){const{client:e,loading:r}=je(),{deployment:a}=Se(),{navigate:o}=jt(),{cache:s}=v0(),{data:i,error:h,mutate:d,isLoading:u}=Ae(r?null:"/session",()=>y2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),f=c.useCallback(async()=>{await d(void 0,{revalidate:!0})},[d]),p=c.useCallback(async(m="default")=>{if(!i)throw new Error("no session");const g=Yo.get(m);if(g&&g.expires>Date.now())return(g==null?void 0:g.token)||"";va.get(m)||va.set(m,E2(e,m));const x=await va.get(m);return va.delete(m),Yo.set(m,x.data),x.data.token},[e,i==null?void 0:i.active_signin]);return r||!i||u?{loading:!0,error:h,session:null,switchSignIn:null,switchOrganization:null,switchWorkspace:null,exchangeTicket:null,signOut:null,getToken:null,refetch:f}:{loading:u,error:h,session:i,switchSignIn:async m=>{await j2(e,m),Mt(),await qr("/me/organization-memberships",void 0,{revalidate:!1}),await qr("/me/workspace-memberships",void 0,{revalidate:!1}),await d(void 0,{revalidate:!0}),await qr("/me/organization-memberships"),await qr("/me/workspace-memberships")},signOut:async m=>{await _2(e,m);const g=["/session","/user","/me/signins","/me/organization-memberships","/me/workspace-memberships","wacht-notifications:scope-unread"],x=["wacht-notifications:","wacht-agent-sessions:","wacht-agent-contexts:","wacht-org-domains:","wacht-api-workspaces:","wacht-api-organizations:"];if(s instanceof Map){const b=Array.from(s.keys());for(const v of b){let w=!1;(g.includes(v)||typeof v=="string"&&x.some(E=>v.startsWith(E)))&&(w=!0),w&&s.delete(v)}}Mt(),await d(void 0,{revalidate:!0}),a!=null&&a.ui_settings&&(m&&a.ui_settings.after_sign_out_one_page_url?o(a.ui_settings.after_sign_out_one_page_url):!m&&a.ui_settings.after_sign_out_all_page_url&&o(a.ui_settings.after_sign_out_all_page_url))},switchOrganization:async m=>{await k2(e,m),Mt(),await d(void 0,{revalidate:!0})},switchWorkspace:async m=>{await C2(e,m),Mt(),await d(void 0,{revalidate:!0})},exchangeTicket:async m=>{await S2(e,m),Mt(),await d(void 0,{revalidate:!0})},getToken:p,refetch:f}}const Ht=()=>{const{organizationMemberships:e,refetch:r,loading:a}=Jt(),{client:o}=je(),{refetch:s}=at(),i=c.useCallback(async O=>(await V(await o(`/organizations/${O.id}/roles`,{method:"GET"}))).data,[o]),h=c.useCallback(async(O,I)=>{const T=new URLSearchParams;return I&&(T.set("page",I.page.toString()),T.set("limit",I.limit.toString()),I.search&&T.set("search",I.search)),(await V(await o(`/organizations/${O.id}/members?${T.toString()}`,{method:"GET"}))).data},[o]),d=c.useCallback(async O=>(await V(await o(`/organizations/${O.id}/invitations`,{method:"GET"}))).data,[o]),u=c.useCallback(async O=>(await V(await o(`/organizations/${O.id}/domains`,{method:"GET"}))).data,[o]),f=c.useCallback(async(O,I)=>{await o(`/organizations/${O.id}/members/${I.id}/remove`,{method:"POST"})},[o]),p=c.useCallback(async O=>{const I=new FormData;I.append("name",O.name),O.image&&I.append("image",O.image),O.description&&I.append("description",O.description);const T=await V(await o("/organizations",{method:"POST",body:I}));return Mt(),await r(),await s(),T},[s,r,o]),m=c.useCallback(async(O,I)=>{const T=Object.entries(I).reduce((D,[W,Y])=>(Y!=null&&(Array.isArray(Y)?Y.forEach(J=>D.append(W,J)):D.append(W,Y)),D),new FormData),G=await V(await o(`/organizations/${O.id}/update`,{method:"POST",body:T}));return await r(),G},[r,o]),g=c.useCallback(async(O,I)=>{await o(`/organizations/${O.id}/roles/${I.id}/remove`,{method:"POST"})},[o]),x=c.useCallback(async(O,I)=>{const T=new FormData;return T.append("domain",I.fqdn),await V(await o(`/organizations/${O.id}/domains`,{method:"POST",body:T}))},[o]),b=c.useCallback(async(O,I)=>await V(await o(`/organizations/${O.id}/domains/${I.id}/verify`,{method:"POST"})),[o]),v=c.useCallback(async(O,I)=>await V(await o(`/organizations/${O.id}/domains/${I.id}/delete`,{method:"POST"})),[o]),w=c.useCallback(async O=>(await V(await o(`/organizations/${O.id}/enterprise-connections`,{method:"GET"}))).data,[o]),E=c.useCallback(async(O,I)=>{const T=new FormData;return T.append("protocol",I.protocol),I.domain_id&&T.append("domain_id",I.domain_id),I.idp_entity_id&&T.append("idp_entity_id",I.idp_entity_id),I.idp_sso_url&&T.append("idp_sso_url",I.idp_sso_url),I.idp_certificate&&T.append("idp_certificate",I.idp_certificate),I.oidc_client_id&&T.append("oidc_client_id",I.oidc_client_id),I.oidc_client_secret&&T.append("oidc_client_secret",I.oidc_client_secret),I.oidc_issuer_url&&T.append("oidc_issuer_url",I.oidc_issuer_url),I.oidc_scopes&&T.append("oidc_scopes",I.oidc_scopes),I.jit_enabled!==void 0&&T.append("jit_enabled",String(I.jit_enabled)),I.attribute_mapping&&T.append("attribute_mapping",JSON.stringify(I.attribute_mapping)),(await V(await o(`/organizations/${O.id}/enterprise-connections`,{method:"POST",body:T}))).data},[o]),j=c.useCallback(async(O,I,T)=>{const G=new FormData;return T.domain_id&&G.append("domain_id",T.domain_id),T.idp_entity_id&&G.append("idp_entity_id",T.idp_entity_id),T.idp_sso_url&&G.append("idp_sso_url",T.idp_sso_url),T.idp_certificate&&G.append("idp_certificate",T.idp_certificate),T.oidc_client_id&&G.append("oidc_client_id",T.oidc_client_id),T.oidc_client_secret&&G.append("oidc_client_secret",T.oidc_client_secret),T.oidc_issuer_url&&G.append("oidc_issuer_url",T.oidc_issuer_url),T.oidc_scopes&&G.append("oidc_scopes",T.oidc_scopes),T.attribute_mapping&&G.append("attribute_mapping",JSON.stringify(T.attribute_mapping)),(await V(await o(`/organizations/${O.id}/enterprise-connections/${I}/update`,{method:"POST",body:G}))).data},[o]),S=c.useCallback(async(O,I)=>{await o(`/organizations/${O.id}/enterprise-connections/${I}/delete`,{method:"POST"})},[o]),C=c.useCallback(async(O,I)=>{const T=new FormData;return T.append("protocol",I.protocol),I.idp_entity_id&&T.append("idp_entity_id",I.idp_entity_id),I.idp_sso_url&&T.append("idp_sso_url",I.idp_sso_url),I.idp_certificate&&T.append("idp_certificate",I.idp_certificate),I.oidc_issuer_url&&T.append("oidc_issuer_url",I.oidc_issuer_url),I.oidc_client_id&&T.append("oidc_client_id",I.oidc_client_id),I.oidc_client_secret&&T.append("oidc_client_secret",I.oidc_client_secret),(await V(await o(`/organizations/${O.id}/enterprise-connections/test`,{method:"POST",body:T}))).data},[o]),_=c.useCallback(async(O,I)=>(await V(await o(`/organizations/${O.id}/enterprise-connections/${I}/test`,{method:"POST"}))).data,[o]),k=c.useCallback(async(O,I)=>(await V(await o(`/organizations/${O.id}/enterprise-connections/${I}/scim/token`,{method:"POST"}))).data,[o]),y=c.useCallback(async(O,I)=>(await V(await o(`/organizations/${O.id}/enterprise-connections/${I}/scim/token`,{method:"GET"}))).data,[o]),L=c.useCallback(async(O,I)=>{await o(`/organizations/${O.id}/enterprise-connections/${I}/scim/token/revoke`,{method:"POST"})},[o]),$=c.useCallback(async(O,I)=>{const T=new FormData;return T.append("name",I.name),I.permissions&&I.permissions.forEach((D,W)=>{T.append(`permissions[${W}]`,D)}),await V(await o(`/organizations/${O.id}/roles`,{method:"POST",body:T}))},[o]),H=c.useCallback(async O=>(await V(await o(`/organizations/${O.id}/leave`,{method:"POST"}))).data,[o]),F=c.useCallback(async O=>{const I=await V(await o(`/organizations/${O.id}/delete`,{method:"POST"}));return Mt(),await r(),await s(),I.data},[o,r,s]),M=c.useCallback(async(O,I,T)=>(await V(await o(`/organizations/${O.id}/members/${I.id}/roles/${T.id}/add`,{method:"POST"}))).data,[o]),R=c.useCallback(async(O,I,T)=>(await V(await o(`/organizations/${O.id}/members/${I.id}/roles/${T.id}/remove`,{method:"POST"}))).data,[o]),A=c.useCallback(async(O,I)=>{var D,W;const T=new FormData;return T.append("email",I.email),T.append("role_id",I.organizationRole.id),(D=I.workspace)!=null&&D.id&&T.append("workspace_id",I.workspace.id),(W=I.workspaceRole)!=null&&W.id&&T.append("workspace_role_id",I.workspaceRole.id),(await V(await o(`/organizations/${O.id}/invitations`,{method:"POST",body:T}))).data},[o]),z=c.useCallback(async(O,I)=>(await V(await o(`/organizations/${O.id}/invitations/${I.id}/discard`,{method:"POST"}))).data,[o]),Z=c.useCallback(async(O,I)=>(await V(await o(`/organizations/${O.id}/invitations/${I.id}/resend`,{method:"POST"}))).data,[o]);return{organizations:c.useMemo(()=>e==null?void 0:e.map(O=>O.organization),[e]),loading:a,error:null,refetch:r,leaveOrganization:H,getOrganizationRoles:i,getOrganizationMembers:h,removeOrganizationMember:f,createOrganization:p,getOrganizationInvitations:d,getOrganizationDomains:u,addOrganizationDomain:x,verifyOrganizationDomain:b,removeOrganizationDomain:v,addRoleToOrganizationMember:M,removeRoleFromOrganizationMember:R,inviteOrganizationMember:A,discardOrganizationInvitation:z,resendOrganizationInvitation:Z,updateOrganization:m,addRole:$,removeOrganizationRoles:g,deleteOrganization:F,getEnterpriseConnections:w,createEnterpriseConnection:E,updateEnterpriseConnection:j,deleteEnterpriseConnection:S,testEnterpriseConnectionConfig:C,testEnterpriseConnection:_,generateSCIMToken:k,getSCIMToken:y,revokeSCIMToken:L}},cr=()=>{const{loading:e,error:r,refetch:a,getOrganizationMembers:o,getOrganizationRoles:s,leaveOrganization:i,removeOrganizationMember:h,getOrganizationInvitations:d,getOrganizationDomains:u,removeOrganizationDomain:f,addOrganizationDomain:p,verifyOrganizationDomain:m,addRoleToOrganizationMember:g,removeRoleFromOrganizationMember:x,inviteOrganizationMember:b,discardOrganizationInvitation:v,resendOrganizationInvitation:w,updateOrganization:E,removeOrganizationRoles:j,getEnterpriseConnections:S,createEnterpriseConnection:C,updateEnterpriseConnection:_,deleteEnterpriseConnection:k,testEnterpriseConnectionConfig:y,testEnterpriseConnection:L,generateSCIMToken:$,getSCIMToken:H,revokeSCIMToken:F}=Ht(),{session:M,error:R,loading:A}=at(),{organizationMemberships:z}=Jt(),Z=c.useMemo(()=>(z==null?void 0:z.find(K=>{var pe;return K.id===((pe=M==null?void 0:M.active_signin)==null?void 0:pe.active_organization_membership_id)}))||null,[z,M]),P=c.useMemo(()=>(Z==null?void 0:Z.organization)||null,[Z]),O=c.useCallback(async K=>P?await E(P,K):[],[P,E]),I=c.useCallback(async()=>P?await o(P):[],[P,o]),T=c.useCallback(async()=>P?await s(P):[],[P,s]),G=c.useCallback(async K=>P?await h(P,K):[],[P,h]),D=c.useCallback(async K=>P?await j(P,K):void 0,[P,j]),W=c.useCallback(async()=>P?await u(P):[],[P,u]),Y=c.useCallback(async K=>P?await p(P,K):void 0,[P,p]),J=c.useCallback(async K=>P?await m(P,K):void 0,[P,m]),ie=c.useCallback(async K=>P?await f(P,K):void 0,[P,f]),he=c.useCallback(async(K,pe)=>P?await g(P,K,pe):void 0,[P,g]),ee=c.useCallback(async(K,pe)=>P?await x(P,K,pe):void 0,[P,x]),xe=c.useCallback(async K=>P?await b(P,K):void 0,[P,b]),te=c.useCallback(async K=>P?await v(P,K):void 0,[P,v]),B=c.useCallback(async K=>P?await w(P,K):void 0,[P,w]),Je=c.useCallback(async()=>{P&&await i(P)},[P,i]),Te=c.useCallback(async()=>P?await d(P):[],[P,d]),Ue=c.useCallback(async()=>P?await S(P):[],[P,S]),Ge=c.useCallback(async K=>{if(P)return await C(P,K)},[P,C]),me=c.useCallback(async(K,pe)=>{if(P)return await _(P,K,pe)},[P,_]),Q=c.useCallback(async K=>{P&&await k(P,K)},[P,k]),ce=c.useCallback(async K=>P?await y(P,K):null,[P,y]),ne=c.useCallback(async K=>P?await L(P,K):null,[P,L]),q=c.useCallback(async K=>{if(P)return await $(P,K)},[P,$]),ue=c.useCallback(async K=>{if(P)return await H(P,K)},[P,H]),de=c.useCallback(async K=>{P&&await F(P,K)},[P,F]);return A||e?{activeOrganization:null,activeMembership:null,loading:!0,error:R||r,updateOrganization:null,getRoles:null,getMembers:null,getDomains:null,addDomain:null,verifyDomain:null,removeDomain:null,removeRole:null,getInvitations:null,removeMember:null,addMemberRole:null,removeMemberRole:null,inviteMember:null,discardInvitation:null,resendInvitation:null,leave:null,getEnterpriseConnections:null,createEnterpriseConnection:null,updateEnterpriseConnection:null,deleteEnterpriseConnection:null,generateSCIMToken:null,getSCIMToken:null,revokeSCIMToken:null}:{activeOrganization:P,activeMembership:Z,loading:!1,refetch:a,getRoles:T,updateOrganization:O,getMembers:I,getDomains:W,addDomain:Y,verifyDomain:J,removeDomain:ie,getInvitations:Te,removeMember:G,leave:Je,removeRole:D,addMemberRole:he,removeMemberRole:ee,inviteMember:xe,discardInvitation:te,resendInvitation:B,getEnterpriseConnections:Ue,createEnterpriseConnection:Ge,updateEnterpriseConnection:me,deleteEnterpriseConnection:Q,testEnterpriseConnectionConfig:ce,testEnterpriseConnection:ne,generateSCIMToken:q,getSCIMToken:ue,revokeSCIMToken:de,error:null}};async function A2(e){return(await V(await e("/me/organization-memberships"))).data}const Jt=()=>{const{client:e,loading:r}=je(),{data:a,isLoading:o,error:s,mutate:i}=Ae(r?null:"/me/organization-memberships",()=>A2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),h=c.useCallback(async()=>{await i()},[i]);return{organizationMemberships:a,loading:r||o,error:s,refetch:h}};async function z2(e){return(await V(await e("/me/workspace-memberships"))).data}async function $2(e,r){return(await V(await e(`/workspaces/${r}/leave`,{method:"POST"}))).data}const zn=()=>{const{client:e,loading:r}=je(),{deployment:a}=Se(),{data:o,isLoading:s,error:i,mutate:h}=Ae(!r&&(a!=null&&a.b2b_settings.workspaces_enabled)?"/me/workspace-memberships":null,()=>z2(e),{refreshInterval:3e4,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3}),d=c.useCallback(async()=>{await h(void 0,{revalidate:!0})},[h]);return{workspaceMemberships:o,loading:r||s,error:i,refetch:d}},lr=()=>{const{workspaceMemberships:e,refetch:r,loading:a,error:o}=zn(),{client:s}=je(),{refetch:i}=at(),h=c.useMemo(()=>e==null?void 0:e.map(k=>({...k.workspace,organization:k.organization,eligibility_restriction:k.eligibility_restriction})),[e]),d=c.useCallback(async(k,y,L,$)=>{const H=new FormData;H.append("name",y),L&&H.append("image",L),$&&H.append("description",$),H.append("organization_id",k);const F=await V(await s("/workspaces",{method:"POST",body:H}));return Mt(),await r(),F.data},[s,r]),u=c.useCallback(async k=>{const y=await $2(s,k);return Mt(),await r(),await i(),y},[s,r,i]),f=c.useCallback(async(k,y)=>{const L=new FormData;y.name&&L.append("name",y.name),y.description&&L.append("description",y.description),y.image&&L.append("image",y.image),y.enforce_2fa!==void 0&&L.append("enforce_2fa",String(y.enforce_2fa)),y.enable_ip_restriction!==void 0&&L.append("enable_ip_restriction",String(y.enable_ip_restriction)),y.whitelisted_ips&&y.whitelisted_ips.forEach(H=>L.append("whitelisted_ips",H));const $=await V(await s(`/workspaces/${k.id}/update`,{method:"POST",body:L}));return await r(),$.data},[s,r]),p=c.useCallback(async k=>{const y=await V(await s(`/workspaces/${k.id}/delete`,{method:"POST"}));return Mt(),await r(),y.data},[s,r]),m=c.useCallback(async(k,y)=>{const L=new URLSearchParams;return y&&(L.set("page",y.page.toString()),L.set("limit",y.limit.toString()),y.search&&L.set("search",y.search)),(await V(await s(`/workspaces/${k.id}/members?${L.toString()}`,{method:"GET"}))).data},[s]),g=c.useCallback(async k=>(await V(await s(`/workspaces/${k.id}/roles`,{method:"GET"}))).data,[s]),x=c.useCallback(async(k,y,L)=>{const $=new FormData;return $.append("name",y),L.forEach(F=>$.append("permissions",F)),(await V(await s(`/workspaces/${k.id}/roles`,{method:"POST",body:$}))).data},[s]),b=c.useCallback(async(k,y)=>(await V(await s(`/workspaces/${k.id}/roles/${y.id}/delete`,{method:"POST"}))).data,[s]),v=c.useCallback(async(k,y)=>{const L=await V(await s(`/workspaces/${k.id}/members/${y}/remove`,{method:"POST"}));return await r(),L.data},[s,r]),w=c.useCallback(async(k,y,L)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${L}/add`,{method:"POST"}))).data,[s]),E=c.useCallback(async(k,y,L)=>(await V(await s(`/workspaces/${k.id}/members/${y}/roles/${L}/remove`,{method:"POST"}))).data,[s]),j=c.useCallback(async k=>(await V(await s(`/organizations/${k.organization.id}/invitations?workspace_id=${k.id}`,{method:"GET"}))).data,[s]),S=c.useCallback(async(k,y,L)=>{const $=new FormData;return $.append("email",y),$.append("workspace_id",k.id),L&&$.append("workspace_role_id",L),(await V(await s(`/organizations/${k.organization.id}/invitations`,{method:"POST",body:$}))).data},[s]),C=c.useCallback(async(k,y)=>(await V(await s(`/organizations/${k.organization.id}/invitations/${y}/discard`,{method:"POST"}))).data,[s]),_=c.useCallback(async(k,y)=>(await V(await s(`/organizations/${k.organization.id}/invitations/${y}/resend`,{method:"POST"}))).data,[s]);return{workspaces:h||[],loading:a,error:o,refetch:r,leaveWorkspace:u,createWorkspace:d,updateWorkspace:f,deleteWorkspace:p,getWorkspaceMembers:m,getWorkspaceRoles:g,createWorkspaceRole:x,deleteWorkspaceRole:b,removeWorkspaceMember:v,addWorkspaceMemberRole:w,removeWorkspaceMemberRole:E,getWorkspaceInvitations:j,createWorkspaceInvitation:S,discardWorkspaceInvitation:C,resendWorkspaceInvitation:_}},Vt=()=>{const{refetch:e,loading:r,error:a,workspaces:o,leaveWorkspace:s,updateWorkspace:i,deleteWorkspace:h,getWorkspaceMembers:d,getWorkspaceRoles:u,createWorkspaceRole:f,deleteWorkspaceRole:p,removeWorkspaceMember:m,addWorkspaceMemberRole:g,removeWorkspaceMemberRole:x,getWorkspaceInvitations:b,createWorkspaceInvitation:v,discardWorkspaceInvitation:w,resendWorkspaceInvitation:E}=lr(),{workspaceMemberships:j}=zn(),{session:S,loading:C,error:_}=at(),k=c.useMemo(()=>(j==null?void 0:j.find(J=>{var ie;return J.id===((ie=S==null?void 0:S.active_signin)==null?void 0:ie.active_workspace_membership_id)}))||null,[j,S]),y=c.useMemo(()=>(k==null?void 0:k.workspace)||null,[k]),L=c.useCallback(async()=>{if(y)return await s(y.id)},[y,s]),$=c.useCallback(async J=>{if(y)return await i(y,J)},[y,i]),H=c.useCallback(async()=>{if(y)return await h(y)},[y,h]),F=c.useCallback(async J=>y?await d(y,J):{data:[],meta:{total:0,page:1,limit:10}},[y,d]),M=c.useCallback(async()=>y?await u(y):[],[y,u]),R=c.useCallback(async(J,ie)=>{if(y)return await f(y,J,ie)},[y,f]),A=c.useCallback(async J=>{if(y)return await p(y,J)},[y,p]),z=c.useCallback(async J=>{if(y)return await m(y,J)},[y,m]),Z=c.useCallback(async(J,ie)=>{if(y)return await g(y,J,ie)},[y,g]),P=c.useCallback(async(J,ie)=>{if(y)return await x(y,J,ie)},[y,x]),O=c.useMemo(()=>(o==null?void 0:o.find(J=>J.id===(y==null?void 0:y.id)))||null,[o,y]),I=c.useCallback(async()=>O?await b(O):[],[O,b]),T=c.useCallback(async J=>{if(O)return await v(O,J.email,J.workspaceRoleId)},[O,v]),G=c.useCallback(async J=>{if(O)return await w(O,J)},[O,w]),D=c.useCallback(async J=>{if(O)return await E(O,J)},[O,E]),W=r||C,Y=a||_;return W?{activeWorkspace:null,activeMembership:null,loading:!0,error:Y,refetch:e,leave:null,updateWorkspace:null,deleteWorkspace:null,getMembers:null,getRoles:null,createRole:null,deleteRole:null,inviteMember:null,removeMember:null,addMemberRole:null,removeMemberRole:null,getInvitations:null,discardInvitation:null,resendInvitation:null}:{activeWorkspace:y,activeMembership:k,loading:!1,error:Y,refetch:e,leave:L,updateWorkspace:$,deleteWorkspace:H,getMembers:F,getRoles:M,createRole:R,deleteRole:A,inviteMember:T,removeMember:z,addMemberRole:Z,removeMemberRole:P,getInvitations:I,discardInvitation:G,resendInvitation:D}};function Yn(e){const r=new Uint8Array(e);let a="";for(let o=0;o<r.length;o++)a+=String.fromCharCode(r[o]);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Qn(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),a=r.padEnd(r.length+(4-r.length%4)%4,"="),o=atob(a),s=new Uint8Array(o.length);for(let i=0;i<o.length;i++)s[i]=o.charCodeAt(i);return s.buffer}const M2=async e=>(await V(await e("/me"))).data,L2=async e=>(await V(await e("/me/signins"))).data;function dr(){const{client:e,loading:r}=je(),{data:a,error:o,isLoading:s,mutate:i}=Ae(r?null:"/user",()=>M2(e)),h=async O=>{const I=new FormData;for(const[G,D]of Object.entries(O))D!=null&&D!==""&&I.append(G,String(D));const T=await V(await e("/me",{method:"POST",body:I}));return i(),T},d=async()=>await V(await e("/me/email-addresses",{method:"GET"})),u=async O=>await V(await e(`/me/email-addresses/${O}`,{method:"GET"})),f=async O=>{const I=new FormData;return I.append("email",O),await V(await e("/me/email-addresses",{method:"POST",body:I}))},p=async O=>await V(await e(`/me/email-addresses/${O}/delete`,{method:"POST"})),m=async O=>await V(await e(`/me/email-addresses/${O}/prepare-verification`,{method:"POST"})),g=async(O,I)=>await V(await e(`/me/email-addresses/${O}/attempt-verification?code=${I}`,{method:"POST"})),x=async(O,I)=>{const T=new FormData;return T.append("phone_number",O),T.append("country_code",I),await V(await e("/me/phone-numbers",{method:"POST",body:T}))},b=async O=>await V(await e(`/me/phone-numbers/${O}/delete`,{method:"POST"})),v=async O=>await V(await e(`/me/phone-numbers/${O}/prepare-verification`,{method:"POST"})),w=async(O,I)=>{const T=new FormData;return T.append("code",I),await V(await e(`/me/phone-numbers/${O}/attempt-verification`,{method:"POST",body:T}))},E=async O=>{const I=await V(await e(`/me/phone-numbers/${O}/make-primary`,{method:"POST"}));return i(),I},j=async O=>await V(await e(`/me/email-addresses/${O}/make-primary`,{method:"POST"})),S=async()=>(await V(await e("/me/authenticator",{method:"POST"}))).data,C=async(O,I)=>{const T=new FormData;return T.append("authenticator_id",O),I.forEach(D=>{T.append("codes",D)}),await V(await e("/me/authenticator/attempt-verification",{method:"POST",body:T}))},_=async O=>await V(await e(`/me/authenticator/${O}/delete`,{method:"POST"})),k=async()=>(await V(await e("/me/backup-codes",{method:"POST"}))).data,y=async O=>{const I=new FormData;return I.append("file",O),await V(await e("/me/profile-picture",{method:"POST",body:I}))},L=async()=>(await V(await e("/me/backup-codes/regenerate",{method:"POST"}))).data,$=async(O,I)=>{const T=new FormData;return T.append("current_password",O),T.append("new_password",I),await V(await e("/me/update-password",{method:"POST",body:T}))},H=async O=>{const I=new FormData;I.append("current_password",O);const T=await V(await e("/me/remove-password",{method:"POST",body:I}));return i(),T},F=async O=>{const I=new FormData;return I.append("password",O),await V(await e("/me/account/delete",{method:"POST",body:I}))},M=async O=>await V(await e(`/me/social-connections/${O}/disconnect`,{method:"POST"})),R=async({provider:O,redirectUri:I})=>{var D;const T=new URLSearchParams({provider:O});I&&T.append("redirect_uri",I);const G=await V(await e(`/me/init-sso-connection?${T.toString()}`,{method:"POST"}));return"data"in G&&((D=G.data)!=null&&D.oauth_url)&&window.open(G.data.oauth_url,"_blank"),G},A=async()=>await V(await e("/me/passkeys",{method:"GET"})),z=async O=>{var ie,he;const I=await V(await e("/me/passkeys/register/begin",{method:"POST"}));if(!("data"in I))return I;const T=I.data.options.publicKey,G={challenge:Qn(T.challenge),rp:T.rp,user:{id:Qn(T.user.id),name:T.user.name,displayName:T.user.displayName},pubKeyCredParams:T.pubKeyCredParams,timeout:T.timeout,attestation:T.attestation,authenticatorSelection:T.authenticatorSelection,excludeCredentials:(ie=T.excludeCredentials)==null?void 0:ie.map(ee=>({type:ee.type,id:Qn(ee.id),transports:ee.transports}))},D=await navigator.credentials.create({publicKey:G});if(!D)throw new Error("Failed to create credential");const W=D.response,Y={id:D.id,rawId:Yn(D.rawId),type:D.type,response:{clientDataJSON:Yn(W.clientDataJSON),attestationObject:Yn(W.attestationObject),transports:((he=W.getTransports)==null?void 0:he.call(W))||[]}};return await V(await e(`/me/passkeys/register/finish?name=${encodeURIComponent(O||"")}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)}))},Z=async O=>await V(await e(`/me/passkeys/${O}/delete`,{method:"POST"})),P=async(O,I)=>await V(await e(`/me/passkeys/${O}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:I})}));return{user:{...a,refetch:i},loading:r||s,error:o||null,updateProfile:h,getEmailAddresses:d,getEmailAddress:u,createEmailAddress:f,deleteEmailAddress:p,prepareEmailVerification:m,attemptEmailVerification:g,makeEmailPrimary:j,createPhoneNumber:x,deletePhoneNumber:b,preparePhoneVerification:v,attemptPhoneVerification:w,makePhonePrimary:E,setupAuthenticator:S,verifyAuthenticator:C,deleteAuthenticator:_,generateBackupCodes:k,regenerateBackupCodes:L,updateProfilePicture:y,disconnectSocialConnection:M,connectSocialAccount:R,updatePassword:$,removePassword:H,deleteAccount:F,getPasskeys:A,registerPasskey:z,deletePasskey:Z,renamePasskey:P}}function x0(){const{client:e,loading:r}=je(),{data:a,error:o,isLoading:s,mutate:i}=Ae(r?null:"/me/signins",()=>L2(e));return{signins:a,error:o||null,removeSignin:async d=>await V(await e(`/me/signins/${d}/signout`,{method:"POST"})),refetch:i,loading:s||r}}function w0(){const{session:e,loading:r}=at(),{loading:a,organizationMemberships:o}=Jt(),{loading:s,workspaceMemberships:i}=zn(),h=c.useMemo(()=>!e||!e.signins||e.signins.length===0?null:(o==null?void 0:o.find(u=>{var f;return u.id===((f=e.active_signin)==null?void 0:f.active_organization_membership_id)}))||null,[o,e]),d=c.useMemo(()=>!e||!e.signins||e.signins.length===0?null:(i==null?void 0:i.find(u=>{var f;return u.id===((f=e.active_signin)==null?void 0:f.active_workspace_membership_id)}))||null,[i,e]);return{loading:r||a||s,orgMembership:h,workspaceMembership:d}}function b0(){const{client:e,loading:r}=je(),[a,o]=c.useState(!1),s=async i=>{o(!0);try{const h=new FormData;for(const[f,p]of Object.entries(i))p&&h.append(f,p);const d=await e("/waitlist/join",{method:"POST",body:h});return await V(d)}finally{o(!1)}};return r?{loading:!0,joinWaitlist:null}:{loading:a,joinWaitlist:s}}function y0(){const{client:e,loading:r}=je(),[a,o]=c.useState(!1),[s,i]=c.useState(null),[h,d]=c.useState(null),[u,f]=c.useState(null),[p,m]=c.useState(!1),[g,x]=c.useState(null);c.useEffect(()=>{if(p||r)return;const v=new URLSearchParams(window.location.search),w=v.get("code"),E=v.get("state"),j=v.get("error"),S=v.get("error_description");if(!w&&!j){m(!0);const C=new Error("No OAuth callback data found.");i(C);return}if(m(!0),o(!0),j){const C=S||j,_=new Error(`OAuth Error: ${C}`);i(_),o(!1);return}if(w&&E)b(w,E);else{const C=new Error("Missing required OAuth parameters");i(C),o(!1)}},[p,r]);const b=async(v,w)=>{try{let E,j;try{const _=w.split(".");if(_.length!==3)throw new Error("Invalid OAuth state format - missing signature");const k=_[0].replace(/-/g,"+").replace(/_/g,"/"),y=k.length%4?"=".repeat(4-k.length%4):"",$=atob(k+y).split("|")[0];if($==="sign_in")E="/auth/oauth2/callback",j="GET";else if($==="connect_social")E="/me/sso-connection-callback",j="POST";else throw new Error(`Unknown OAuth action: ${$}`)}catch(_){const k=_ instanceof Error?_:new Error("Failed to parse OAuth state");i(new Error(`Invalid OAuth callback: ${k.message}. The authorization link may be expired or malformed. Please try signing in again.`)),o(!1);return}const S=await e(`${E}?code=${encodeURIComponent(v)}&state=${encodeURIComponent(w)}`,{method:j}),C=await V(S);if("data"in C){const _=C.data.session,k=C.data.redirect_uri||null;if(d(_),f(k),_.signin_attempts&&_.signin_attempts.length>0){const y=_.signin_attempts.at(-1);y&&x(y)}}else{const _=new Error("SSO callback failed");i(_)}}catch(E){const j=E instanceof Error?E:new Error("Unknown error occurred");i(j)}finally{o(!1)}};return{loading:a,error:s,session:h,redirectUri:u,processed:p,signinAttempt:g}}function j0(){const{client:e,loading:r}=je(),[a,o]=c.useState(!1),[s,i]=c.useState(null);return{loading:r||a,verifyMagicLink:async d=>{if(!d.token||!d.attempt)throw new Error("Invalid magic link parameters");o(!0),i(null);try{const u=new URL("/auth/verify-magic-link",window.location.origin);u.searchParams.set("token",d.token),u.searchParams.set("attempt",d.attempt),d.redirectUri&&u.searchParams.set("redirect_uri",d.redirectUri);const f=await e(u.pathname+u.search,{method:"GET"}),p=await V(f);return o(!1),i(!0),p}catch(u){throw o(!1),i(!1),u}},success:s}}function R2(){const[e,r]=c.useState({});return c.useEffect(()=>{const a=new URLSearchParams(window.location.search);r({token:a.get("token")||void 0,attempt:a.get("attempt")||void 0,redirectUri:a.get("redirect_uri")||void 0})},[]),e}function _0(){const{client:e,loading:r}=je();return{loading:r,forgotPassword:async i=>{const h=new FormData;h.append("email",i);const d=await e("/auth/forgot-password",{method:"POST",body:h});return await V(d)},verifyOtp:async(i,h)=>{const d=new FormData;d.append("email",i),d.append("otp",h);const u=await e("/auth/forgot-password",{method:"POST",body:d});return await V(u)},resetPassword:async(i,h)=>{const d=new FormData;d.append("token",i),d.append("password",h);const u=await e("/auth/reset-password",{method:"POST",body:d});return await V(u)}}}const P2=()=>{},T2=P2(),Qo=Object,li=e=>e===T2,F2=e=>typeof e=="function",Oa=new WeakMap,Z2=e=>Qo.prototype.toString.call(e),Jn=(e,r)=>e===`[object ${r}]`;let I2=0;const Jo=e=>{const r=typeof e,a=Z2(e),o=Jn(a,"Date"),s=Jn(a,"RegExp"),i=Jn(a,"Object");let h,d;if(Qo(e)===e&&!o&&!s){if(h=Oa.get(e),h)return h;if(h=++I2+"~",Oa.set(e,h),Array.isArray(e)){for(h="@",d=0;d<e.length;d++)h+=Jo(e[d])+",";Oa.set(e,h)}if(i){h="#";const u=Qo.keys(e).sort();for(;!li(d=u.pop());)li(e[d])||(h+=d+":"+Jo(e[d])+",");Oa.set(e,h)}}else h=o?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return h},O2=e=>{if(F2(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Jo(e):"",[e,r]},H2=e=>O2(e?e(0,null):null)[0],Xn=Promise.resolve(),V2=e=>(r,a,o)=>{const s=c.useRef(!1),{cache:i,initialSize:h=1,revalidateAll:d=!1,persistSize:u=!1,revalidateFirstPage:f=!0,revalidateOnMount:p=!1,parallel:m=!1}=o,[,,,g]=It.get(ys);let x;try{x=H2(r),x&&(x=f0+x)}catch{}const[b,v,w]=ar(i,x),E=c.useCallback(()=>Ce(b()._l)?h:b()._l,[i,x,h]);Vo.useSyncExternalStore(c.useCallback(L=>x?w(x,()=>{L()}):()=>{},[i,x]),E,E);const j=c.useCallback(()=>{const L=b()._l;return Ce(L)?h:L},[x,h]),S=c.useRef(j());hn(()=>{if(!s.current){s.current=!0;return}x&&v({_l:u?S.current:j()})},[x,i]);const C=p&&!s.current,_=e(x,async L=>{const $=b()._i,H=b()._r;v({_r:pt});const F=[],M=j(),[R]=ar(i,L),A=R().data,z=[];let Z=null;for(let P=0;P<M;++P){const[O,I]=Ca(r(P,m?null:Z));if(!O)break;const[T,G]=ar(i,O);let D=T().data;const W=d||$||Ce(D)||f&&!P&&!Ce(A)||C||A&&!Ce(A[P])&&!o.compare(A[P],D);if(a&&(typeof H=="function"?H(D,I):W)){const Y=async()=>{if(!(O in g))D=await a(I);else{const ie=g[O];delete g[O],D=await ie}G({data:D,_k:I}),F[P]=D};m?z.push(Y):await Y()}else F[P]=D;m||(Z=D)}return m&&await Promise.all(z.map(P=>P())),v({_i:pt}),F},o),k=c.useCallback(function(L,$){const H=typeof $=="boolean"?{revalidate:$}:$||{},F=H.revalidate!==!1;return x?(F&&(Ce(L)?v({_i:!0,_r:H.revalidate}):v({_i:!1,_r:H.revalidate})),arguments.length?_.mutate(L,{...H,revalidate:F}):_.mutate()):Xn},[x,i]),y=c.useCallback(L=>{if(!x)return Xn;const[,$]=ar(i,x);let H;if($t(L)?H=L(j()):typeof L=="number"&&(H=L),typeof H!="number")return Xn;$({_l:H}),S.current=H;const F=[],[M]=ar(i,x);let R=null;for(let A=0;A<H;++A){const[z]=Ca(r(A,R)),[Z]=ar(i,z),P=z?Z().data:pt;if(Ce(P))return k(M().data);F.push(P),R=P}return k(F)},[x,i,k,j]);return{size:j(),setSize:y,mutate:k,get data(){return _.data},get error(){return _.error},get isValidating(){return _.isValidating},get isLoading(){return _.isLoading}}},aa=x2(Ae,V2);function k0({enabled:e=!0,channels:r,organizationIds:a,workspaceIds:o,onNotification:s,onError:i,reconnectDelay:h=1e3,maxReconnectAttempts:d=5}={}){const{session:u,loading:f}=at(),{deployment:p,loading:m}=Se(),[g,x]=c.useState(!1),[b,v]=c.useState(null),w=c.useRef(null),E=c.useRef(null),j=c.useRef(0),S=c.useRef(null),C=c.useRef(s),_=c.useRef(i),k=c.useRef(r),y=c.useRef(a),L=c.useRef(o),$=c.useRef(h),H=c.useRef(d);C.current=s,_.current=i,k.current=r,y.current=a,L.current=o,$.current=h,H.current=d;const F=c.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null),S.current&&(clearInterval(S.current),S.current=null),w.current&&(w.current.close(),w.current=null)},[]),M=c.useCallback(async()=>{var O;if(!e||f||m||!u||!p)return;F();const z=new URL(p.backend_host),Z=z.protocol==="https:"?"wss:":"ws:",P=new URL("/notifications/stream",`${Z}//${z.host}`);if(p.mode==="staging"){const I=mt(p.backend_host);I&&P.searchParams.set("__dev_session__",I)}k.current&&k.current.length>0&&P.searchParams.set("channels",k.current.join(",")),y.current&&y.current.length>0&&P.searchParams.set("organization_ids",y.current.join(",")),L.current&&L.current.length>0&&P.searchParams.set("workspace_ids",L.current.join(","));try{const I=new WebSocket(P.toString());w.current=I,I.onopen=()=>{x(!0),v(null),j.current=0,S.current=setInterval(()=>{I.readyState===WebSocket.OPEN&&I.send("ping")},3e4)},I.onmessage=T=>{var G,D;try{const W=JSON.parse(T.data);if(W.type==="notification"&&W.data)(G=C.current)==null||G.call(C,W.data);else if(W.type==="error"){const Y=W.error||"Unknown error occurred";v(Y),(D=_.current)==null||D.call(_,Y)}else W.type}catch{}},I.onerror=()=>{var T;v("Connection error occurred"),(T=_.current)==null||T.call(_,"Connection error occurred")},I.onclose=T=>{var G;if(x(!1),S.current&&(clearInterval(S.current),S.current=null),e&&T.code!==1e3&&j.current<H.current){j.current++;const D=$.current*Math.pow(2,j.current-1);E.current=setTimeout(()=>{M()},D)}else j.current>=H.current&&(v("Max reconnection attempts reached"),(G=_.current)==null||G.call(_,"Max reconnection attempts reached"))}}catch{v("Failed to connect"),(O=_.current)==null||O.call(_,"Failed to connect")}},[e,f,m,u,p,F]);c.useEffect(()=>(M(),()=>{F()}),[M,F]),c.useEffect(()=>{w.current&&w.current.readyState===WebSocket.OPEN&&M()},[r,a,o,M]);const R=c.useCallback(()=>{F(),x(!1)},[F]),A=c.useCallback(()=>{j.current=0,M()},[M]);return{isConnected:g,connectionError:b,disconnect:R,reconnect:A}}function $n(e){if(!e)return"";const r=new URLSearchParams;e.limit&&r.append("limit",e.limit.toString()),e.cursor&&r.append("cursor",e.cursor),e.scope&&r.append("scope",e.scope),e.channels&&e.channels.length>0&&e.channels.forEach(o=>r.append("channels",o)),e.organization_ids&&e.organization_ids.length>0&&e.organization_ids.forEach(o=>r.append("organization_ids",o)),e.workspace_ids&&e.workspace_ids.length>0&&e.workspace_ids.forEach(o=>r.append("workspace_ids",o)),e.is_read!==void 0&&r.append("is_read",e.is_read.toString()),e.is_archived!==void 0&&r.append("is_archived",e.is_archived.toString()),e.is_starred!==void 0&&r.append("is_starred",e.is_starred.toString()),e.severity&&r.append("severity",e.severity);const a=r.toString();return a?"?"+a:""}async function D2(e,r){const a=`/notifications${$n(r)}`,o=await e(a,{method:"GET"});return(await V(o)).data}async function N2(e,r){const a=await e(`/notifications/${r}/read`,{method:"POST"});return V(a)}async function U2(e,r){const a=await e(`/notifications/${r}/unread`,{method:"POST"});return V(a)}async function B2(e,r){const a=await e(`/notifications/mark-all-read${$n(r)}`,{method:"POST"});return V(a)}async function W2(e,r){const a=await e(`/notifications/archive-all-read${$n(r)}`,{method:"POST"});return V(a)}async function G2(e,r){const a=await e(`/notifications/${r}/archive`,{method:"POST"});return V(a)}async function q2(e,r){const a=await e(`/notifications/${r}/star`,{method:"POST"});return V(a)}function C0(e){var L;const{client:r,loading:a}=je(),{data:o,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=aa(($,H)=>{var A;if(a||$>0&&(!H||!H.has_more))return null;const F=$===0||(A=H==null?void 0:H.notifications[H.notifications.length-1])==null?void 0:A.id,{onNotification:M,...R}=e||{};return["wacht-notifications",{...R,cursor:F}]},([,$])=>D2(r,$),{refreshInterval:6e4,revalidateOnFocus:!0,revalidateFirstPage:!0}),p=c.useMemo(()=>o?o.flatMap($=>$.notifications):[],[o]),m=o?(L=o[o.length-1])==null?void 0:L.has_more:!1,g=c.useMemo(()=>{if(e!=null&&e.channels&&e.channels.length>0)return e.channels;switch(e==null?void 0:e.scope){case"organization":return["organization"];case"workspace":return["workspace"];case"current":return["current"];case"all":return["user","organization","workspace"];case"user":return["user"];default:return}},[e==null?void 0:e.channels,e==null?void 0:e.scope]),x=c.useMemo(()=>e==null?void 0:e.organization_ids,[e==null?void 0:e.organization_ids]),b=c.useMemo(()=>e==null?void 0:e.workspace_ids,[e==null?void 0:e.workspace_ids]);k0({enabled:!a&&!!o,channels:g,organizationIds:x,workspaceIds:b,onNotification:c.useCallback($=>{i(async H=>{var A;if(!H||H.length===0||H.some(z=>z.notifications.some(Z=>Z.id===$.id.toString())))return H;(A=e==null?void 0:e.onNotification)==null||A.call(e,$);const M=H[0];return[{...M,notifications:[{id:$.id.toString(),user_id:$.user_id.toString(),deployment_id:$.deployment_id.toString(),title:$.title,body:$.body,severity:$.severity,ctas:$.ctas,is_read:!1,is_archived:!1,created_at:$.created_at,updated_at:$.created_at},...M.notifications]},...H.slice(1)]},!1)},[i,e]),onError:c.useCallback(()=>{},[])});const v=c.useCallback(async $=>{a||(await i(async H=>H&&H.map(F=>({...F,notifications:F.notifications.map(M=>M.id===$?{...M,is_read:!0}:M)})),!1),await N2(r,$),await i())},[r,a,i]),w=c.useCallback(async $=>{a||(await i(async H=>H&&H.map(F=>({...F,notifications:F.notifications.map(M=>M.id===$?{...M,is_read:!1}:M)})),!1),await U2(r,$),await i())},[r,a,i]),E=c.useCallback(async()=>{a||(await i(async $=>$&&$.map(H=>({...H,notifications:H.notifications.map(F=>({...F,is_read:!0}))})),!1),await B2(r,e),await i())},[r,e,i,a]),j=c.useCallback(async()=>{a||(await i(async $=>$&&$.map(H=>({...H,notifications:H.notifications.filter(F=>!F.is_read)})),!1),await W2(r,e),await i())},[r,e,a,i]),S=c.useCallback(async $=>{a||(await i(async H=>H&&H.map(F=>({...F,notifications:(e==null?void 0:e.is_archived)!==void 0?F.notifications.filter(M=>M.id!==$):F.notifications.map(M=>M.id===$?{...M,is_archived:!M.is_archived}:M)})),!1),await G2(r,$),await i())},[r,a,i,e==null?void 0:e.is_archived]),C=c.useCallback(async $=>{a||(await i(async H=>H&&H.map(F=>({...F,notifications:F.notifications.map(M=>M.id===$?{...M,is_starred:!M.is_starred}:M)})),!1),await q2(r,$),await i())},[r,a,i]),_=c.useCallback(async()=>{f||!m||await u(d+1)},[f,m,u,d]),k=c.useCallback(async()=>{await i()},[i]),y=a||h||d>0&&o&&typeof o[d-1]>"u";return!o||y?{loading:!0,notifications:p,hasMore:m,markAsRead:void 0,markAllAsRead:void 0,archiveAllRead:void 0,archiveNotification:void 0,starNotification:void 0,markAsUnread:void 0,error:s,refetch:k,loadMore:_}:{loading:!1,error:s,notifications:p,hasMore:m,markAsRead:v,markAllAsRead:E,archiveAllRead:j,archiveNotification:S,starNotification:C,markAsUnread:w,refetch:k,loadMore:_}}async function K2(e,r){const a=`/notifications/scope-unread${$n(r)}`,o=await e(a,{method:"GET"});return(await V(o)).data}function S0(e){const{client:r,loading:a}=je(),{data:o,error:s,mutate:i}=Ae(a?null:["wacht-notifications-unread",e],([,d])=>K2(r,d),{refreshInterval:3e4,revalidateOnFocus:!0}),h=async()=>{await i()};return!o||a?{loading:!0,count:0,error:s,refetch:h}:{loading:!1,count:o.count,error:s,refetch:h}}const Zr={DISCONNECTED:"disconnected",CONNECTED:"connected",ERROR:"error"},Ne={IDLE:"idle",STARTING:"starting",RUNNING:"running",WAITING_FOR_INPUT:"waiting_for_input",COMPLETED:"completed",FAILED:"failed"},mr={IDLE:"Idle",STARTING:"Starting",RUNNING:"Running",WAITING_FOR_INPUT:"WaitingForInput",COMPLETED:"Completed",FAILED:"Failed",CANCELLED:"Cancelled"};function Y2(e){switch(e.trim()){case mr.IDLE:return Ne.IDLE;case mr.STARTING:case"starting":return Ne.STARTING;case mr.RUNNING:case"running":return Ne.RUNNING;case mr.WAITING_FOR_INPUT:case"waiting_for_input":return Ne.WAITING_FOR_INPUT;case mr.COMPLETED:case"completed":return Ne.COMPLETED;case mr.FAILED:case mr.CANCELLED:case"failed":case"cancelled":return Ne.FAILED;default:return Ne.IDLE}}function Ir(e){return e===Ne.STARTING||e===Ne.RUNNING||e===Ne.WAITING_FOR_INPUT}function Yt(e){return e&&typeof e=="object"?e:null}function Sr(e){return typeof e=="string"?e:null}function Q2(e){const r=Yt(e);return(r==null?void 0:r.ConversationMessage)??e}function J2(e){const r=Yt(e);if(!r)return null;const a=Yt(r.content),o=Yt(r.metadata),s=Sr(r.message_type)||Sr(o==null?void 0:o.message_type)||Sr(a==null?void 0:a.type);return{...r,metadata:{...o||{},message_type:s}}}function X2(e){const r=Yt(e.metadata),a=Yt(e.content);return Sr(r==null?void 0:r.message_type)||Sr(a==null?void 0:a.type)}function ep(e){const r=Yt(e.content);return Sr(r==null?void 0:r.status)}function tp(e){const r=Yt(e.content),a=Sr(r==null?void 0:r.step);return a==="execution_cancelled"||a==="abort"}function rp(e){const r=Yt(e.content);return(r==null?void 0:r.further_actions_required)===!1}function di(e){return[...e].sort((r,a)=>new Date(r.timestamp).getTime()-new Date(a.timestamp).getTime())}function ap(e,r){return{id:e,timestamp:new Date().toISOString(),content:{type:"user_message",message:r},metadata:{message_type:"user_message"}}}function np(e,r){const a=new FormData;a.append("message",e);for(const o of r??[])a.append("files",o);return a}function op(e,r){const a=new FormData;a.append("request_message_id",e);for(const o of r)a.append("approval_tool_name",o.tool_name),a.append("approval_mode",o.mode);return a}function sp(){const e=new FormData;return e.append("cancel","true"),e}function ip({deployment:e,threadId:r,file:a}){const o=a.url||a.filename;if(!o)return null;if(/^https?:\/\//i.test(o))return o;const s=e.backend_host.replace(/\/$/,"");let i;if(o.startsWith("/ai/threads/"))i=new URL(o,`${s}/`);else{const h=o.includes("/")?o.split("/").pop()??"":o;if(!h)return null;i=new URL(`/ai/threads/${encodeURIComponent(r)}/filesystem/file`,`${s}/`),i.searchParams.set("path",`uploads/${h}`)}if(e.mode==="staging"){const h=mt(e.backend_host);h&&i.searchParams.set("__dev_session__",h)}return i.toString()}const cp=5e3,lp=5e3;function dp({threadId:e,initialThread:r=null,platformAdapter:a}){var Ke,ht;const{deployment:o}=Se(),{client:s}=je(),[i,h]=c.useState([]),[d,u]=c.useState(null),[f,p]=c.useState(null),[m,g]=c.useState(r),[x,b]=c.useState(Ne.IDLE),[v,w]=c.useState({status:Zr.DISCONNECTED}),[E,j]=c.useState(!0),[S,C]=c.useState(!1),[_,k]=c.useState(!1),[y,L]=c.useState(null),$=c.useRef(null),H=c.useRef(e),F=c.useRef(0),M=c.useRef(Ne.IDLE),R=c.useRef(null),A=c.useCallback(X=>{h(oe=>{const we=[...oe],De=we.findIndex(ze=>String(ze.id)===String(X.id));return De>=0?we[De]=X:we.push(X),di(we)})},[]),z=c.useCallback(({messages:X,prepend:oe,hasMore:we})=>{const De=di(X);De.length>0&&($.current=De[0].id),h(ze=>oe?[...De,...ze]:De),we!==void 0&&j(we)},[]),Z=c.useCallback(X=>{M.current=X,b(X)},[]),P=c.useCallback(X=>{F.current=Date.now()+cp,Z(X)},[Z]),O=c.useCallback(()=>{var X;F.current>Date.now()&&Ir(M.current)||(Z(Ne.IDLE),(X=R.current)==null||X.call(R))},[Z]),I=c.useCallback(X=>{const oe=Y2(X),we=Ir(oe);!we&&F.current>Date.now()&&Ir(M.current)||(we&&(F.current=0),Z(oe))},[Z]),T=c.useCallback(()=>{u(null),p(null)},[]),G=c.useCallback(X=>{g(oe=>oe&&{...oe,...X?{status:X}:{},last_activity_at:new Date().toISOString()})},[]),D=c.useCallback((X,oe)=>{A(ap(X,oe)),T()},[T,A]),W=c.useCallback(X=>{const oe=J2(X);if(!oe)return;switch(X2(oe)){case"system_decision":A(oe),tp(oe)&&O();return;case"execution_summary":case"tool_result":case"user_message":A(oe);return;case"steer":A(oe),rp(oe)&&O();return;case"approval_request":F.current=0,Z(Ne.WAITING_FOR_INPUT),A(oe);return;case"approval_response":A(oe),P(Ne.RUNNING);return;case"execution_status":{const De=ep(oe);if(!De)return;I(De),g(ze=>ze&&{...ze,status:De});return}default:A(oe)}},[I,O,Z,P,A]),Y=c.useCallback((X,oe)=>{var we;(we=a==null?void 0:a.onPlatformEvent)==null||we.call(a,X,oe)},[a]),J=c.useRef(W),ie=c.useRef(Y),he=c.useRef(s),ee=c.useRef(o);c.useEffect(()=>{J.current=W,ie.current=Y,he.current=s,ee.current=o}),c.useEffect(()=>{H.current=e},[e]);const xe=c.useRef(null),te=c.useRef(null),B=c.useRef(0),Je=10,Te=c.useCallback(async X=>{if(!e)return;const oe=e;X?C(!0):k(!0),L(null);try{const we=new URLSearchParams({limit:"100"});X&&we.append("before_id",X);const De=await s(`/ai/threads/${e}/messages?${we}`,{method:"GET"}),ze=await V(De);ze.data&&H.current===oe&&z({messages:ze.data.data,prepend:!!X,hasMore:ze.data.has_more||!1})}catch(we){H.current===oe&&L(we instanceof Error?we:new Error("Failed to fetch messages"))}finally{H.current===oe&&(X?C(!1):k(!1))}},[e,s,z]);c.useEffect(()=>{const X=ee.current;if(!X||!e)return;const oe=()=>{xe.current&&(xe.current.close(),xe.current=null);const we=new URL(`${X.backend_host}/ai/threads/${encodeURIComponent(e)}/stream`);if(X.mode==="staging"){const ze=mt(X.backend_host);ze&&we.searchParams.append("__dev_session__",ze)}const De=new EventSource(we.toString(),{withCredentials:X.mode!=="staging"});xe.current=De,De.onopen=()=>{if(w({status:Zr.CONNECTED}),B.current>0){const ze=e;setTimeout(()=>{s(`/ai/threads/${ze}/messages?limit=100`,{method:"GET"}).then(async Qe=>{const _t=await V(Qe);_t.data&&H.current===ze&&z({messages:_t.data.data,hasMore:_t.data.has_more||!1})}).catch(()=>{})},100)}B.current=0},De.onerror=()=>{if(w({status:Zr.ERROR}),De.close(),xe.current=null,B.current<Je){const ze=Math.min(1e3*Math.pow(2,B.current),3e4);te.current=setTimeout(()=>{B.current++,oe()},ze)}else w({status:Zr.DISCONNECTED})},De.addEventListener("conversation_message",ze=>{try{const Qe=Q2(JSON.parse(ze.data));Qe&&J.current(Qe)}catch{}}),De.addEventListener("platform_event",ze=>{try{const Qe=JSON.parse(ze.data);Qe!=null&&Qe.PlatformEvent?ie.current(Qe.PlatformEvent[0],Qe.PlatformEvent[1]):Qe!=null&&Qe.event_label&&ie.current(Qe.event_label,Qe.event_data)}catch{}})};return oe(),()=>{te.current&&(clearTimeout(te.current),te.current=null),xe.current&&(xe.current.close(),xe.current=null)}},[e,s,z]);const Ue=c.useCallback(async()=>{if(!e)return;const X=e;try{const oe=await s(`/ai/threads/${X}`,{method:"GET"});if(!oe.ok)return;const we=await V(oe);we.data&&H.current===X&&(g(we.data),I(we.data.status),qr(`wacht-ai-thread:${X}`,we.data,{revalidate:!1}))}catch{}},[e,s,I]);c.useEffect(()=>{R.current=Ue},[Ue]),c.useEffect(()=>{if(!e)return;Ue();const X=window.setInterval(()=>{!Ir(M.current)&&F.current<=Date.now()||Ue()},lp);return()=>{window.clearInterval(X)}},[e,Ue]),c.useEffect(()=>{h([]),g(null),j(!0),C(!1),L(null),k(!!e),w({status:Zr.DISCONNECTED}),$.current=null,F.current=0,M.current=Ne.IDLE,b(Ne.IDLE),T()},[e,T]),c.useEffect(()=>{!r||r.id!==e||g(r)},[r,e]);const Ge=c.useCallback(async(X,oe)=>{var we,De;if(!(!e||!o)){u(X),oe&&oe.length>0&&p(oe),P(Ne.STARTING);try{const ze=await s(`/ai/threads/${e}/run`,{method:"POST",body:np(X,oe)});if(ze.ok){const Qe=await V(ze),_t=((we=Qe.data)==null?void 0:we.conversation_id)??null;G(typeof((De=Qe.data)==null?void 0:De.status)=="string"?Qe.data.status:void 0),_t?D(_t,X):T(),P(Ne.RUNNING)}else F.current=0,Z(Ne.IDLE),T()}catch{F.current=0,Z(Ne.IDLE),T()}}},[e,o,s,P,Z,G,T,D]);c.useEffect(()=>{e&&Te()},[e,Te]);const me=c.useCallback(async()=>{await Te()},[Te]),Q=c.useCallback(async()=>{if(!(S||!E||!$.current)){C(!0);try{await Te($.current)}finally{C(!1)}}},[S,E,Te]),ce=c.useCallback(()=>{h([]),T()},[T]),ne=c.useCallback(async(X,oe)=>{if(!e)return!1;P(Ne.STARTING);try{return(await s(`/ai/threads/${e}/run`,{method:"POST",body:op(X,oe)})).ok?(G(),P(Ne.RUNNING),!0):(F.current=0,Z(Ne.IDLE),!1)}catch{return F.current=0,Z(Ne.IDLE),!1}},[e,s,P,Z,G]),q=c.useCallback(async X=>{if(!e)return!1;P(Ne.STARTING);try{return(await s(`/ai/threads/${e}/messages/answer`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(X)})).ok?(G(),P(Ne.RUNNING),!0):(F.current=0,Z(Ne.IDLE),!1)}catch{return F.current=0,Z(Ne.IDLE),!1}},[e,s,P,Z,G]),ue=c.useCallback(async()=>{if(!(!e||!Ir(x)))try{await s(`/ai/threads/${e}/run`,{method:"POST",body:sp()}),F.current=0,G(),Z(Ne.IDLE)}catch{}},[e,x,s,Z,G]),de=c.useCallback(X=>!o||!e||!X?null:ip({deployment:o,threadId:e,file:X}),[e,o]),K=c.useCallback(X=>{const oe=de(X);if(!oe)return;const we=document.createElement("a");we.href=oe,we.download=(X==null?void 0:X.filename)||"attachment",we.rel="noreferrer",document.body.appendChild(we),we.click(),document.body.removeChild(we)},[de]),pe=((Ke=m==null?void 0:m.execution_state)==null?void 0:Ke.pending_approval_request)??null,qe=((ht=m==null?void 0:m.execution_state)==null?void 0:ht.pending_question)??null,Oe=m==null?void 0:m.status;return{thread:m,threadState:m,threadStatus:Oe,messages:i,pendingMessage:d,pendingFiles:f,connectionState:v,isConnected:v.status===Zr.CONNECTED,hasActiveRun:Ir(x),isRunning:x===Ne.STARTING||x===Ne.RUNNING,executionStatus:x,isWaitingForInput:x===Ne.WAITING_FOR_INPUT,pendingApprovalRequest:pe,pendingClarificationRequest:qe,hasMoreMessages:E,isLoadingMore:S,messagesLoading:_,messagesError:y,refreshThread:Ue,refreshMessages:me,sendMessage:Ge,submitApprovalResponse:ne,submitAnswer:q,clearMessages:ce,loadMoreMessages:Q,cancelExecution:ue,resolveMessageFileUrl:de,downloadMessageFile:K}}function up(e){const{client:r}=je(),[a,o]=c.useState(!e),[s,i]=c.useState(!!e),[h,d]=c.useState(null),u=c.useRef(!1),f=c.useRef(!1),p=c.useRef(null),m=a,g=c.useCallback(async()=>{const C=await r("/ai/session",{method:"GET"});if(!C.ok)throw C.status===401||C.status===403?new Error("NO_SESSION"):new Error("Failed to fetch session");return(await V(C)).data},[r]),{data:x,error:b,isLoading:v,mutate:w}=Ae(m?"wacht-agent-session":null,g,{revalidateOnFocus:!1});c.useEffect(()=>{if(!e||u.current||f.current||p.current===e)return;p.current=e,(async()=>{f.current=!0,i(!0);try{(await r(`/session/ticket/exchange?ticket=${encodeURIComponent(e)}`,{method:"GET"})).ok?(u.current=!0,o(!0)):d(new Error("Failed to exchange ticket"))}catch(_){d(_ instanceof Error?_:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const E=!h&&(e?a:!0)&&(!b||b.message!=="NO_SESSION"),j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:E,sessionLoading:s||m&&v,sessionError:j,sessionId:(x==null?void 0:x.session_id)||null,actor:(x==null?void 0:x.actor)||null,agents:(x==null?void 0:x.agents)||[],ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}const ui={exists:!1,files:[]};function Ha(e,r,a){const s=(e||[]).filter(i=>i.id!==r.id);return!a&&r.archived_at?s:[r,...s]}function pp(e,r){return r===void 0?"":`?${new URLSearchParams({[e]:String(r)}).toString()}`}function Xo(e,r){const a=new URLSearchParams({path:e});return r&&a.set("include_archived","true"),`?${a.toString()}`}function E0(e,r){const a=new URLSearchParams;e&&a.set("path",e),r&&a.set("include_archived","true");const o=a.toString();return o?`?${o}`:""}function hp(e){const r=e.split("/").pop()||e,a=r.lastIndexOf(".");return a<0||a===r.length-1?"":r.slice(a+1).toLowerCase()}function fp(e,r){const a=hp(r),o=new Set(["doc","docx","ppt","pptx","xls","xlsx","pdf","zip","gz","tar","7z","rar","jar","war","bin"]),s=new Set(["txt","md","mdx","markdown","json","jsonc","js","jsx","ts","tsx","mts","cts","mjs","cjs","py","rb","php","java","kt","kts","go","rs","c","cc","cpp","cxx","h","hpp","swift","sh","bash","zsh","fish","ps1","sql","html","htm","css","scss","less","xml","svg","yaml","yml","toml","ini","cfg","conf","env","log"]);return o.has(a)?!1:s.has(a)?!0:e.startsWith("text/")||e.includes("json")||e.includes("javascript")||e.includes("typescript")||e.includes("python")||e.includes("xml")||e.includes("yaml")}function ot(e,r,a){if(a!=null){if(typeof a=="string"){e.set(r,a);return}if(typeof a=="boolean"||typeof a=="number"){e.set(r,String(a));return}}}function mp(e,r,a){a&&e.set(r,JSON.stringify(a))}function pi(e){const r=new FormData;return ot(r,"name",e.name),ot(r,"agent_id","agent_id"in e?e.agent_id:void 0),ot(r,"description",e.description),ot(r,"status",e.status),r}function gp(e){const r=new FormData;if(ot(r,"title",e.title),ot(r,"agent_id",e.agent_id),ot(r,"system_instructions",e.system_instructions),ot(r,"thread_purpose",e.thread_purpose),ot(r,"responsibility",e.responsibility),ot(r,"reusable",e.reusable),ot(r,"accepts_assignments",e.accepts_assignments),mp(r,"metadata",e.metadata),Array.isArray(e.capability_tags))for(const a of e.capability_tags)r.append("capability_tags",a);return r}function A0(e){const r=new FormData;return ot(r,"title",e.title),ot(r,"agent_id",e.agent_id),ot(r,"system_instructions",e.system_instructions),r}function z0(e,r=[]){const a=new FormData;ot(a,"title",e.title),ot(a,"description",e.description),ot(a,"status",e.status),ot(a,"schedule_kind",e.schedule_kind),ot(a,"next_run_at",e.next_run_at),ot(a,"interval_seconds",e.interval_seconds),"clear_schedule"in e&&ot(a,"clear_schedule",e.clear_schedule);for(const o of r)a.append("files",o);return a}function vp(e={}){const{client:r}=je(),{includeArchived:a=!1,enabled:o=!0}=e,s=o?`wacht-ai-actor-projects:${a}`:null,i=c.useCallback(async()=>{const x=await r(`/ai/projects${pp("include_archived",a)}`);return(await V(x)).data},[r,a]),{data:h,error:d,mutate:u}=Ae(s,i,{revalidateOnFocus:!1,refreshInterval:15e3}),f=c.useCallback(async x=>{const b=await r("/ai/projects",{method:"POST",body:pi(x)}),v=await V(b);return await u(w=>Ha(w,v.data,a),{revalidate:!0}),v},[r,a,u]),p=c.useCallback(async(x,b)=>{const v=await r(`/ai/projects/${x}/update`,{method:"POST",body:pi(b)}),w=await V(v);return await u(E=>Ha(E,w.data,a),{revalidate:!0}),w},[r,a,u]),m=c.useCallback(async x=>{const b=await r(`/ai/projects/${x}/archive`,{method:"POST",body:new URLSearchParams}),v=await V(b);return await u(w=>Ha(w,v.data,a),{revalidate:!0}),v},[r,a,u]),g=c.useCallback(async x=>{const b=await r(`/ai/projects/${x}/unarchive`,{method:"POST",body:new URLSearchParams}),v=await V(b);return await u(w=>Ha(w,v.data,a),{revalidate:!0}),v},[r,a,u]);return{projects:h||[],loading:!h&&!d,error:d,createProject:f,updateProject:p,archiveProject:m,unarchiveProject:g,refetch:async()=>{await u()}}}function xp(e={}){const{client:r}=je(),{enabled:a=!0,query:o="",limit:s=12}=e,i=o.trim(),h=a?`wacht-ai-actor-project-search:${i}:${s}`:null,d=c.useCallback(async()=>{const m=new URLSearchParams({limit:String(s)});i&&m.set("q",i);const g=await r(`/ai/projects/search?${m.toString()}`);return(await V(g)).data},[r,s,i]),{data:u,error:f,mutate:p}=Ae(h,d,{revalidateOnFocus:!1});return{projects:(u==null?void 0:u.data)||[],loading:!u&&!f,error:f,hasMore:(u==null?void 0:u.has_more)||!1,nextCursor:u==null?void 0:u.next_cursor,refetch:async()=>{await p()}}}function wp(e,r={}){const{client:a}=je(),{includeArchived:o=!1,enabled:s=!0}=r,i=s&&e?`wacht-ai-threads:${e}:${o}`:null,h=c.useCallback(async()=>{if(!e)return{data:[],has_more:!1,next_cursor:""};const v=new URLSearchParams({limit:"100"});o&&v.set("include_archived","true");const w=await a(`/ai/projects/${e}/threads?${v.toString()}`);return(await V(w)).data},[e,a,o]),{data:d,error:u,mutate:f}=Ae(i,h,{revalidateOnFocus:!1,refreshInterval:15e3}),p=c.useCallback(async(v,w)=>{const E=await a(`/ai/projects/${v}/threads`,{method:"POST",body:gp(w)}),j=await V(E);return v===e&&await f(),j},[e,a,f]),m=c.useCallback(async v=>{if(!e)throw new Error("projectId is required");return p(e,v)},[e,p]),g=c.useCallback(async(v,w)=>{const E=await a(`/ai/threads/${v}/update`,{method:"POST",body:A0(w)}),j=await V(E);return await f(),j},[a,f]),x=c.useCallback(async v=>{const w=await a(`/ai/threads/${v}/archive`,{method:"POST",body:new URLSearchParams}),E=await V(w);return await f(),E},[a,f]),b=c.useCallback(async v=>{const w=await a(`/ai/threads/${v}/unarchive`,{method:"POST",body:new URLSearchParams}),E=await V(w);return await f(),E},[a,f]);return{threads:(d==null?void 0:d.data)||[],loading:!d&&!u,error:u,hasMore:(d==null?void 0:d.has_more)||!1,nextCursor:(d==null?void 0:d.next_cursor)||"",createThread:m,createThreadForProject:p,updateThread:g,archiveThread:x,unarchiveThread:b,refetch:async()=>{await f()}}}function bp(e,r={}){var x,b;const{client:a}=je(),{includeArchived:o=!1,archivedOnly:s=!1,enabled:i=!0,query:h="",limit:d=10}=r,u=h.trim(),f=aa((v,w)=>{if(!i||!e||v>0&&w&&!w.has_more)return null;const E=v===0||w==null?void 0:w.next_cursor;return["wacht-ai-project-thread-feed",e,s?"archived-only":o?"with-archived":"active-only",u,d,E||""]},async([,v,w,E,j,S])=>{const C=new URLSearchParams({limit:String(j)});w==="with-archived"?C.set("include_archived","true"):w==="archived-only"&&(C.set("include_archived","true"),C.set("archived_only","true")),E&&C.set("q",String(E)),S&&C.set("cursor",String(S));const _=await a(`/ai/projects/${v}/threads?${C.toString()}`);return(await V(_)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:15e3,dedupingInterval:15e3}),p=c.useMemo(()=>{var v;return((v=f.data)==null?void 0:v.flatMap(w=>w.data||[]))||[]},[f.data]),m=f.data&&((x=f.data[f.data.length-1])==null?void 0:x.has_more)||!1,g=f.isValidating&&!!f.data&&f.size>(((b=f.data)==null?void 0:b.length)||0);return{threads:p,loading:!f.data&&!f.error,error:f.error||null,hasMore:m,loadingMore:g,loadMore:async()=>{!m||g||await f.setSize(v=>v+1)},refetch:async()=>{await f.mutate()}}}function yp(e={}){const{client:r}=je(),{enabled:a=!0,query:o="",limit:s=16}=e,i=o.trim(),h=a?`wacht-ai-actor-thread-search:${i}:${s}`:null,d=c.useCallback(async()=>{const m=new URLSearchParams({limit:String(s)});i&&m.set("q",i);const g=await r(`/ai/threads/search?${m.toString()}`);return(await V(g)).data},[r,s,i]),{data:u,error:f,mutate:p}=Ae(h,d,{revalidateOnFocus:!1});return{threads:(u==null?void 0:u.data)||[],loading:!u&&!f,error:f,hasMore:(u==null?void 0:u.has_more)||!1,nextCursor:u==null?void 0:u.next_cursor,refetch:async()=>{await p()}}}function jp(e,r=!0){const{client:a}=je(),o=r&&e?`wacht-ai-thread:${e}`:null,s=c.useCallback(async()=>{if(!e)return null;const p=await a(`/ai/threads/${e}`);return(await V(p)).data},[e,a]),i=Ae(o,s,{revalidateOnFocus:!1}),h=c.useCallback(async p=>{if(!e)throw new Error("threadId is required");const m=await a(`/ai/threads/${e}/update`,{method:"POST",body:A0(p)}),g=await V(m);return await i.mutate(),g},[e,a,i]),d=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const p=await a(`/ai/threads/${e}/archive`,{method:"POST",body:new URLSearchParams}),m=await V(p);return await i.mutate(),m},[e,a,i]),u=c.useCallback(async()=>{if(!e)throw new Error("threadId is required");const p=await a(`/ai/threads/${e}/unarchive`,{method:"POST",body:new URLSearchParams}),m=await V(p);return await i.mutate(),m},[e,a,i]),f=c.useCallback(async p=>{if(!e)throw new Error("threadId is required");await a(`/ai/threads/${e}/messages/answer`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)})},[e,a]);return{thread:i.data||null,loading:!i.data&&!i.error,error:i.error||null,updateThread:h,archiveThread:d,unarchiveThread:u,submitAnswer:f,refetch:async()=>{await i.mutate()}}}function _p(e,r=!0){const{client:a}=je(),o=r&&e?`wacht-ai-thread-filesystem:${e}`:null,s=c.useCallback(async d=>{if(!e)throw new Error("threadId is required");const u=await a(`/ai/threads/${e}/filesystem/file${Xo(d)}`);if(!u.ok)throw new Error("Failed to load file");const f=await u.blob(),p=(u.headers.get("content-type")||"application/octet-stream").split(";")[0].trim().toLowerCase(),m=fp(p,d);let g;return m&&(g=await f.text()),{path:d,name:d.split("/").pop()||"file",mime_type:p,is_text:m,size_bytes:f.size,truncated:!1,content:g,blob:f}},[e,a]),i=c.useCallback(async d=>{if(!e)return ui;const u=await a(`/ai/threads/${e}/filesystem${E0(d)}`);return(await V(u)).data},[e,a]),h=Ae(o,()=>i(),{revalidateOnFocus:!1});return{filesystem:h.data||ui,filesystemLoading:!h.data&&!h.error,filesystemError:h.error||null,getFile:s,listDirectory:i,refetch:async()=>{await h.mutate()}}}function kp(e,r={}){var f,p;const{client:a}=je(),{enabled:o=!0,limit:s=40}=r,i=aa((m,g)=>{if(!o||!e||m>0&&g&&!g.has_more)return null;const x=m===0||g==null?void 0:g.next_cursor;return["wacht-ai-thread-assignments",e,s,x||""]},async([,m,g,x])=>{const b=new URLSearchParams({limit:String(g)});x&&b.set("cursor",String(x));const v=await a(`/ai/threads/${m}/assignments?${b.toString()}`);return(await V(v)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:15e3,dedupingInterval:15e3}),h=c.useMemo(()=>{var m;return((m=i.data)==null?void 0:m.flatMap(g=>g.data||[]))||[]},[i.data]),d=i.data&&((f=i.data[i.data.length-1])==null?void 0:f.has_more)||!1,u=i.isValidating&&!!i.data&&i.size>(((p=i.data)==null?void 0:p.length)||0);return{assignments:h,loading:!i.data&&!i.error,error:i.error||null,hasMore:d,loadingMore:u,loadMore:async()=>{!d||u||await i.setSize(m=>m+1)},refetch:async()=>{await i.mutate()}}}function Cp(e={},r){const a=new URLSearchParams;e.statuses&&e.statuses.length>0&&a.set("status",e.statuses.join(",")),e.includeArchived&&a.set("include_archived","true"),e.archivedOnly&&a.set("archived_only","true"),e.limit&&a.set("limit",String(e.limit)),r&&a.set("cursor",r);const o=a.toString();return o?`?${o}`:""}function Sp(e,r=!0,a={}){var b,v,w;const{client:o}=je(),s=((b=a.statuses)==null?void 0:b.join(","))||"all",i=a.archivedOnly?"archived-only":a.includeArchived?"with-archived":"active-only",h=a.limit||60,d=aa((E,j)=>{if(!r||!e||E>0&&j&&!j.has_more)return null;const S=E===0||j==null?void 0:j.next_cursor;return["wacht-ai-project-tasks",e,s,i,h,S||""]},async([,E,,,,j])=>{const S=await o(`/ai/projects/${E}/board/items${Cp(a,j||void 0)}`);return(await V(S)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:15e3,dedupingInterval:15e3}),u=c.useMemo(()=>{var E;return((E=d.data)==null?void 0:E.flatMap(j=>j.data||[]))||[]},[d.data]),f=d.data&&((v=d.data[d.data.length-1])==null?void 0:v.has_more)||!1,p=d.isValidating&&!!d.data&&d.size>(((w=d.data)==null?void 0:w.length)||0),m=c.useCallback(async(E,j=[])=>{if(!e)throw new Error("projectId is required");const S=await o(`/ai/projects/${e}/board/items`,{method:"POST",body:z0(E,j)}),C=await V(S);return await d.mutate(),C},[e,o,d]),g=c.useCallback(async E=>{if(!e)throw new Error("projectId is required");const j=await o(`/ai/projects/${e}/board/items/${E}/archive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,o,d]),x=c.useCallback(async E=>{if(!e)throw new Error("projectId is required");const j=await o(`/ai/projects/${e}/board/items/${E}/unarchive`,{method:"POST",body:new URLSearchParams}),S=await V(j);return await d.mutate(),S},[e,o,d]);return{tasks:u,loading:!d.data&&!d.error,error:d.error||null,hasMore:f,loadingMore:p,loadMore:async()=>{!f||p||await d.setSize(E=>E+1)},createTask:m,archiveTask:g,unarchiveTask:x,refetch:async()=>{await d.mutate()}}}function Ep(e,r,a=!0,o={}){var H,F;const{client:s}=je(),i=o.includeArchived?"with-archived":"active-only",h=o.includeArchived?"?include_archived=true":"",d=a&&e&&r?`wacht-ai-board-item:${e}:${r}:${i}`:null,u=a&&e&&r?`wacht-ai-board-item-workspace:${e}:${r}:${i}`:null,f=c.useCallback(async()=>{if(!e||!r)return null;const M=await s(`/ai/projects/${e}/board/items/${r}${h}`);return(await V(M)).data},[e,r,s,h]),p=Ae(d,f,{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3}),m=aa((M,R)=>{if(!a||!e||!r||M>0&&R&&!R.has_more)return null;const A=M===0||R==null?void 0:R.next_cursor;return["wacht-ai-board-item-assignments",e,r,i,A||""]},async([,M,R,,A])=>{const z=new URLSearchParams({limit:"40"});o.includeArchived&&z.set("include_archived","true"),A&&z.set("cursor",String(A));const Z=await s(`/ai/projects/${M}/board/items/${R}/assignments?${z.toString()}`);return(await V(Z)).data},{revalidateOnFocus:!1,revalidateFirstPage:!0,persistSize:!0,refreshInterval:15e3,dedupingInterval:15e3}),g=c.useCallback(async()=>{if(!e||!r)return{exists:!1,files:[]};const M=await s(`/ai/projects/${e}/board/items/${r}/filesystem${h}`);return(await V(M)).data},[e,r,s,h]),x=Ae(u,g,{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3}),b=c.useCallback(async(M,R=[])=>{if(!e||!r)throw new Error("projectId and itemId are required");const A=await s(`/ai/projects/${e}/board/items/${r}/update`,{method:"POST",body:z0(M,R)}),z=await V(A);return await p.mutate(),await x.mutate(),z},[e,r,s,p,x]),v=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const M=await s(`/ai/projects/${e}/board/items/${r}/archive`,{method:"POST",body:new URLSearchParams}),R=await V(M);return await p.mutate(),R},[e,r,s,p]),w=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const M=await s(`/ai/projects/${e}/board/items/${r}/unarchive`,{method:"POST",body:new URLSearchParams}),R=await V(M);return await p.mutate(),R},[e,r,s,p]),E=c.useCallback(async()=>{if(!e||!r)throw new Error("projectId and itemId are required");const M=await s(`/ai/projects/${e}/board/items/${r}/cancel`,{method:"POST",body:new URLSearchParams}),R=await V(M);return await p.mutate(),await m.mutate(),R},[e,r,s,p,m]),j=c.useCallback(async M=>{if(!e||!r)throw new Error("projectId and itemId are required");const R=new FormData;for(const Z of M.answers)R.append("answer_question_id",Z.question_id),R.append("answer_value",JSON.stringify(Z.value));const A=await s(`/ai/projects/${e}/board/items/${r}/answer`,{method:"POST",body:R}),z=await V(A);return await p.mutate(),z},[e,r,s,p]),S=c.useCallback(async M=>{var P;if(!e||!r)throw new Error("projectId and itemId are required");const R=p.data,A=(P=R==null?void 0:R.pending_approval)==null?void 0:P.request_message_id;if(!A)throw new Error("Task has no pending approval");const z=new FormData;z.set("request_message_id",A);for(const O of M)z.append("approval_tool_name",O.tool_name),z.append("approval_mode",O.mode);const Z=await s(`/ai/projects/${e}/board/items/${r}/approval`,{method:"POST",body:z});return await p.mutate(),Z.ok},[e,r,s,p]),C=c.useCallback(async M=>{if(!e||!r)throw new Error("projectId and itemId are required");const R=await s(`/ai/projects/${e}/board/items/${r}/filesystem/file${Xo(M,o.includeArchived)}`);return await V(R)},[e,r,s,o.includeArchived]),_=c.useCallback(async M=>{if(!e||!r)throw new Error("projectId and itemId are required");const R=await s(`/ai/projects/${e}/board/items/${r}/filesystem/download${Xo(M,o.includeArchived)}`);if(!R.ok)throw new Error("Failed to download file");const A=await R.blob(),z=M.split("/").pop()||"file",Z=URL.createObjectURL(A),P=document.createElement("a");P.href=Z,P.download=z,document.body.appendChild(P),P.click(),P.remove(),URL.revokeObjectURL(Z)},[e,r,s,o.includeArchived]),k=c.useCallback(async M=>{if(!e||!r)throw new Error("projectId and itemId are required");const R=await s(`/ai/projects/${e}/board/items/${r}/filesystem${E0(M,o.includeArchived)}`);return await V(R)},[e,r,s,o.includeArchived]),y=c.useMemo(()=>{var M;return((M=m.data)==null?void 0:M.flatMap(R=>R.data||[]))||[]},[m.data]),L=m.data&&((H=m.data[m.data.length-1])==null?void 0:H.has_more)||!1,$=m.isValidating&&!!m.data&&m.size>(((F=m.data)==null?void 0:F.length)||0);return{item:p.data||null,assignments:y,assignmentsHasMore:L,assignmentsLoadingMore:$,loadMoreAssignments:async()=>{!L||$||await m.setSize(M=>M+1)},taskWorkspace:x.data||{exists:!1,files:[]},taskWorkspaceLoading:!x.data&&!x.error,taskWorkspaceError:x.error||null,loading:!p.data&&!p.error||!m.data&&!m.error,error:p.error||m.error||null,updateItem:b,archiveItem:v,unarchiveItem:w,cancelItem:E,submitAnswer:j,submitApproval:S,getTaskWorkspaceFile:C,downloadTaskWorkspaceFile:_,listTaskWorkspaceDirectory:k,refetch:async()=>{await p.mutate(),await m.mutate(),await x.mutate()},refetchAssignments:async()=>{await m.mutate()},refetchTaskWorkspace:async()=>{await x.mutate()}}}function Ap(e,r=!0){var x;const{client:a}=je(),{data:o,error:s,mutate:i,isLoading:h,size:d,setSize:u,isValidating:f}=aa((b,v)=>{if(!r||!e||b>0&&(!v||!v.has_more))return null;const w=b===0||v==null?void 0:v.next_cursor;return["wacht-ai-thread-graphs",e,w]},async([,b,v])=>{const w=new URLSearchParams;w.set("limit","10"),v&&w.set("cursor",String(v));const E=await a(`/ai/threads/${b}/task-graphs?${w.toString()}`),S=(await V(E)).data||{data:[],limit:10,has_more:!1};return{...S,data:(S.data||[]).map(C=>({...C,nodes:Array.isArray(C.nodes)?C.nodes:[],edges:Array.isArray(C.edges)?C.edges:[],summary:C.summary||null}))}},{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3,revalidateFirstPage:!0,revalidateAll:!1,persistSize:!0}),p=c.useMemo(()=>o?o.flatMap(b=>b.data||[]):[],[o]),m=o&&((x=o[o.length-1])==null?void 0:x.has_more)||!1,g=f&&!!o&&d>((o==null?void 0:o.length)||0);return{graphs:p,latestGraph:p[0]||null,has_more:m,loadingMore:g,loading:h,error:s,loadMore:async()=>{!m||g||await u(d+1)},refetch:async()=>{await i()}}}function zp(e,r,a=!0){const{client:o}=je(),s=a&&e&&r?`wacht-ai-board-item-comments:${e}:${r}`:null,i=c.useCallback(async()=>{if(!e||!r)return[];const u=await o(`/ai/projects/${e}/board/items/${r}/comments`);return(await V(u)).data},[e,r,o]),h=Ae(s,i,{revalidateOnFocus:!1,refreshInterval:15e3,dedupingInterval:15e3}),d=c.useCallback(async(u,f)=>{if(!e||!r)throw new Error("projectId and itemId are required");const p=new FormData;if(p.set("body",u),f)for(const x of f)p.append("attachments",x,x.name);const m=await o(`/ai/projects/${e}/board/items/${r}/comments`,{method:"POST",body:p}),g=await V(m);return await h.mutate(),g},[e,r,o,h]);return{comments:h.data||[],loading:!h.data&&!h.error,error:h.error||null,createComment:d,refetch:async()=>{await h.mutate()}}}function $p(e=!0){const{client:r}=je(),a=e?"wacht-ai-actor-mcp-servers":null,o=c.useCallback(async()=>{const p=await r("/ai/mcp-servers");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=Ae(a,o,{revalidateOnFocus:!1}),u=c.useCallback(async p=>{const m=await r(`/ai/mcp-servers/${p}/connect`,{method:"POST",body:new URLSearchParams});return V(m)},[r]),f=c.useCallback(async p=>{const m=await r(`/ai/mcp-servers/${p}/disconnect`,{method:"POST",body:new URLSearchParams}),g=await V(m);return await h(),g},[r,h]);return{servers:s??[],loading:d,error:i,connect:u,disconnect:f,refetch:async()=>{await h()}}}function Mp(e=!0){const{client:r}=je(),a=e?"wacht-ai-external-agent-connections":null,o=c.useCallback(async()=>{const p=await r("/ai/external-connections");return(await V(p)).data},[r]),{data:s,error:i,mutate:h,isLoading:d}=Ae(a,o,{revalidateOnFocus:!1}),u=c.useCallback(async(p,m,g)=>{const x=await r(`/ai/external-connections/${encodeURIComponent(p)}/${encodeURIComponent(m)}/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({return_url:(g==null?void 0:g.returnUrl)??""})}),b=await V(x);return await h(),b.data},[r,h]),f=c.useCallback(async(p,m)=>{const g=await r(`/ai/external-connections/${encodeURIComponent(p)}/${encodeURIComponent(m)}`,{method:"DELETE"}),x=await V(g);return await h(),x.data},[r,h]);return{connections:s??[],loading:d,error:i,connect:u,disconnect:f,refetch:async()=>{await h()}}}function $0(e){const r=new URLSearchParams;return r.append("url",e.url),e.description&&r.append("description",e.description),e.subscribed_events&&e.subscribed_events.forEach(a=>r.append("subscribed_events",a)),e.subscriptions&&e.subscriptions.length>0&&r.append("subscriptions",JSON.stringify(e.subscriptions)),e.headers&&Object.entries(e.headers).forEach(([a,o])=>{r.append(`headers[${a}]`,o)}),e.rate_limit_config&&(r.append("rate_limit[duration_ms]",e.rate_limit_config.duration_ms.toString()),r.append("rate_limit[max_requests]",e.rate_limit_config.max_requests.toString())),r}function Lp(e){const r=new URLSearchParams;return e.url&&r.append("url",e.url),e.description!==void 0&&r.append("description",e.description||""),e.subscribed_events&&e.subscribed_events.forEach(a=>r.append("subscribed_events",a)),e.subscriptions&&e.subscriptions.length>0&&r.append("subscriptions",JSON.stringify(e.subscriptions)),e.headers&&Object.entries(e.headers).forEach(([a,o])=>{r.append(`headers[${a}]`,o)}),e.is_active!==void 0&&r.append("is_active",e.is_active.toString()),e.rate_limit_config&&(r.append("rate_limit[duration_ms]",e.rate_limit_config.duration_ms.toString()),r.append("rate_limit[max_requests]",e.rate_limit_config.max_requests.toString())),r}function Rp(e){const r=new URLSearchParams;return r.append("event_name",e.event_name),r.append("payload",JSON.stringify(e.payload||{})),r}function Pp(e){const r=new URLSearchParams;return(e.delivery_ids||[]).forEach(o=>r.append("delivery_ids",o)),e.start_date&&r.append("start_date",e.start_date),e.end_date&&r.append("end_date",e.end_date),e.status&&r.append("status",e.status),e.event_name&&r.append("event_name",e.event_name),e.endpoint_id&&r.append("endpoint_id",e.endpoint_id),e.idempotency_key&&r.append("idempotency_key",e.idempotency_key),r}const $a={"Content-Type":"application/x-www-form-urlencoded"};async function St(e,r){const a=await V(e);if(!a||!("data"in a))throw new Error(r);return a}async function Tp(e){const r=await e("/webhook/session",{method:"GET"});if(!r.ok)throw r.status===401||r.status===403?new Error("NO_SESSION"):new Error("Failed to fetch webhook app session");return(await St(r,"Failed to fetch webhook app session")).data}async function Fp(e,r){if(!(await e(`/session/ticket/exchange?ticket=${encodeURIComponent(r)}`,{method:"GET"})).ok)throw new Error("Failed to exchange ticket")}async function Zp(e,r){const a=$0(r),o=await e("/webhook/endpoints",{method:"POST",headers:$a,body:a.toString()});return St(o,"Failed to create webhook endpoint")}async function Ip(e,r,a){const o=Lp(a),s=await e(`/webhook/endpoints/${r}`,{method:"PUT",headers:$a,body:o.toString()});return St(s,"Failed to update webhook endpoint")}async function Op(e,r){const a=await e(`/webhook/endpoints/${r}`,{method:"DELETE"});return St(a,"Failed to delete webhook endpoint")}async function Hp(e,r,a){const o=Rp(a),s=await e(`/webhook/endpoints/${r}/test`,{method:"POST",headers:$a,body:o.toString()});return St(s,"Failed to test webhook endpoint")}async function Vp(e){const r=await e("/webhook/rotate-secret",{method:"POST"});return St(r,"Failed to rotate signing secret")}async function Dp(e,r){const a=new URLSearchParams;for(const s of r.failure_notification_emails)a.append("failure_notification_emails",s);const o=await e("/webhook/settings",{method:"PUT",headers:$a,body:a.toString()});return St(o,"Failed to update webhook settings")}async function Np(e,r){const a=Pp(r),o=await e("/webhook/deliveries/replay",{method:"POST",headers:$a,body:a.toString()});return St(o,"Failed to replay webhook delivery")}async function Up(e,r){const a=await e(`/webhook/deliveries/${r}`,{method:"GET"});return St(a,"Failed to fetch delivery details")}async function Bp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}`,{method:"GET"});return St(a,"Failed to fetch replay task status")}async function Wp(e,r){const a=(r==null?void 0:r.limit)??50,o=(r==null?void 0:r.offset)??0,s=await e(`/webhook/deliveries/replay?limit=${a}&offset=${o}`,{method:"GET"});return St(s,"Failed to fetch replay tasks")}async function Gp(e,{taskId:r}){const a=await e(`/webhook/deliveries/replay/${r}/cancel`,{method:"POST"});return St(a,"Failed to cancel replay task")}function qp(e){const{client:r}=je(),[a,o]=c.useState(!e),[s,i]=c.useState(!!e),[h,d]=c.useState(null),u=c.useRef(!1),f=c.useRef(!1),p=c.useRef(null),m=a,g=c.useCallback(async()=>Tp(r),[r]),{data:x,error:b,isLoading:v,mutate:w}=Ae(m?"wacht-webhook-app-session":null,g,{revalidateOnFocus:!1,shouldRetryOnError:!1});c.useEffect(()=>{if(!e||u.current||f.current||p.current===e)return;p.current=e,(async()=>{f.current=!0,i(!0);try{await Fp(r,e),u.current=!0,o(!0)}catch(Z){d(Z instanceof Error?Z:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const E=c.useCallback(async z=>Zp(r,z),[r]),j=c.useCallback(async(z,Z)=>Ip(r,z,Z),[r]),S=c.useCallback(async z=>Op(r,z),[r]),C=c.useCallback(async(z,Z)=>Hp(r,z,Z),[r]),_=c.useCallback(async()=>Vp(r),[r]),k=c.useCallback(async z=>Np(r,z),[r]),y=c.useCallback(async z=>Dp(r,z),[r]),L=c.useCallback(async z=>Up(r,z),[r]),$=c.useCallback(async z=>Bp(r,z),[r]),H=c.useCallback(async z=>Wp(r,z),[r]),F=c.useCallback(async z=>Gp(r,z),[r]),M=!b||b.message!=="NO_SESSION",R=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:M,sessionLoading:s||m&&v,sessionError:R,sessionId:(x==null?void 0:x.session_id)||null,webhookApp:(x==null?void 0:x.webhook_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()},createEndpoint:E,updateEndpoint:j,deleteEndpoint:S,testEndpoint:C,rotateSecret:_,updateSettings:y,replayDelivery:k,fetchReplayTaskStatus:$,fetchReplayTasks:H,cancelReplayTask:F,fetchDeliveryDetail:L}}function Kp(){const{client:e}=je(),r=c.useCallback(async()=>{const h=await e("/webhook/stats",{method:"GET"});return(await V(h)).data},[e]),{data:a,error:o,isLoading:s,mutate:i}=Ae("wacht-webhook-stats",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{stats:a||null,loading:s,error:o,refetch:()=>i()}}function Yp(){const{client:e}=je(),r=c.useCallback(async()=>{const h=await e("/webhook/endpoints",{method:"GET"});return(await V(h)).data},[e]),{data:a,error:o,isLoading:s,mutate:i}=Ae("wacht-webhook-endpoints",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{endpoints:a||[],loading:s,error:o,refetch:()=>i()}}function Qp(){const{client:e}=je();return{createEndpoint:c.useCallback(async a=>{const o=$0(a),s=await e("/webhook/endpoints",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o.toString()});return await V(s)},[e]),loading:!1,error:null}}function Jp(){const{client:e}=je(),r=c.useCallback(async()=>{const h=await e("/webhook/events",{method:"GET"});return(await V(h)).data},[e]),{data:a,error:o,isLoading:s,mutate:i}=Ae("wacht-webhook-events",r,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{events:a||[],loading:s,error:o,refetch:()=>i()}}function Xp(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.status&&d.set("status",e.status),e.event_name&&d.set("event_name",e.event_name),e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor);const u=await r(`/webhook/deliveries?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.endpoint_id,e.status,e.event_name,e.limit,e.cursor]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.status&&d.set("status",e.status),e.event_name&&d.set("event_name",e.event_name),e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor),`wacht-webhook-deliveries?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{deliveries:(o==null?void 0:o.data)||[],has_more:(o==null?void 0:o.has_more)||!1,next_cursor:o==null?void 0:o.next_cursor,loading:i,error:s,refetch:()=>h()}}function eh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.fields&&e.fields.length>0&&d.set("fields",e.fields.join(","));const u=await r(`/webhook/analytics?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.endpoint_id,e.fields]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),e.fields&&e.fields.length>0&&d.set("fields",e.fields.join(",")),`wacht-webhook-analytics?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{analytics:o||null,loading:i,error:s,refetch:()=>h()}}function th(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id);const u=await r(`/webhook/analytics/timeseries?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.interval,e.endpoint_id]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.endpoint_id&&d.set("endpoint_id",e.endpoint_id),`wacht-webhook-timeseries?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{timeseries:(o==null?void 0:o.data)||[],interval:(o==null?void 0:o.interval)||"hour",loading:i,error:s,refetch:()=>h()}}function rh(e){const{client:r}=je(),[a,o]=c.useState(!e),[s,i]=c.useState(!!e),[h,d]=c.useState(null),u=c.useRef(!1),f=c.useRef(!1),p=c.useRef(null),m=a,g=c.useCallback(async()=>{const C=await r("/api-auth/session",{method:"GET"});if(!C.ok)throw C.status===401||C.status===403?new Error("NO_SESSION"):new Error("Failed to fetch API auth app session");return(await V(C)).data},[r]),{data:x,error:b,isLoading:v,mutate:w}=Ae(m?"wacht-api-auth-app-session":null,g,{revalidateOnFocus:!1,shouldRetryOnError:!1});c.useEffect(()=>{if(!e||u.current||f.current||p.current===e)return;p.current=e,(async()=>{f.current=!0,i(!0);try{(await r(`/session/ticket/exchange?ticket=${encodeURIComponent(e)}`,{method:"GET"})).ok?(u.current=!0,o(!0)):d(new Error("Failed to exchange ticket"))}catch(_){d(_ instanceof Error?_:new Error("Failed to exchange ticket"))}finally{i(!1),f.current=!1}})()},[e,r]);const E=!b||b.message!=="NO_SESSION",j=h||(b&&b.message!=="NO_SESSION"?b:null);return{hasSession:E,sessionLoading:s||m&&v,sessionError:j,sessionId:(x==null?void 0:x.session_id)||null,apiAuthApp:(x==null?void 0:x.api_auth_app)||null,ticketExchanged:a,ticketLoading:s,refetch:async()=>{await w()}}}function ah(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const p=new URLSearchParams;e.status&&p.set("status",e.status);const m=await r(`/api-auth/keys${p.toString()?`?${p.toString()}`:""}`,{method:"GET"});return(await V(m)).data},[r,e.status]),{data:o,error:s,isLoading:i,mutate:h}=Ae(`wacht-api-auth-keys:${e.status||"all"}`,a,{revalidateOnFocus:!1,shouldRetryOnError:!1}),d=c.useCallback(async p=>{const m=new URLSearchParams;m.set("name",p.name),p.expires_at&&m.set("expires_at",p.expires_at);const g=await r("/api-auth/keys",{method:"POST",body:m}),x=await V(g);return await h(),x},[r,h]),u=c.useCallback(async p=>{const m=await r(`/api-auth/keys/${p.key_id}/rotate`,{method:"POST"}),g=await V(m);return await h(),g},[r,h]),f=c.useCallback(async p=>{const m=new URLSearchParams;p.reason&&m.set("reason",p.reason);const g=await r(`/api-auth/keys/${p.key_id}/revoke`,{method:"POST",body:m}),x=await V(g);return await h(),x},[r,h]);return{keys:o||[],createKey:d,rotateKey:u,revokeKey:f,loading:i,error:s,refetch:()=>h()}}function nh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor),e.outcome&&d.set("outcome",e.outcome),e.key_id&&d.set("key_id",e.key_id),e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date);const u=await r(`/api-auth/audit/logs?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.limit,e.cursor,e.outcome,e.key_id,e.start_date,e.end_date]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.limit&&d.set("limit",e.limit.toString()),e.cursor&&d.set("cursor",e.cursor),e.outcome&&d.set("outcome",e.outcome),e.key_id&&d.set("key_id",e.key_id),e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),`wacht-api-auth-audit-logs?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{logs:(o==null?void 0:o.data)||[],limit:(o==null?void 0:o.limit)||e.limit||0,has_more:(o==null?void 0:o.has_more)||!1,next_cursor:o==null?void 0:o.next_cursor,loading:i,error:s,refetch:()=>h()}}function oh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.key_id&&d.set("key_id",e.key_id),e.include_top_keys&&d.set("include_top_keys","true"),e.include_top_paths&&d.set("include_top_paths","true"),e.include_blocked_reasons&&d.set("include_blocked_reasons","true"),e.include_rate_limits&&d.set("include_rate_limits","true"),e.top_limit&&d.set("top_limit",e.top_limit.toString());const u=await r(`/api-auth/audit/analytics?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.key_id,e.include_top_keys,e.include_top_paths,e.include_blocked_reasons,e.include_rate_limits,e.top_limit]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.key_id&&d.set("key_id",e.key_id),e.include_top_keys&&d.set("include_top_keys","true"),e.include_top_paths&&d.set("include_top_paths","true"),e.include_blocked_reasons&&d.set("include_blocked_reasons","true"),e.include_rate_limits&&d.set("include_rate_limits","true"),e.top_limit&&d.set("top_limit",e.top_limit.toString()),`wacht-api-auth-audit-analytics?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{analytics:o||null,loading:i,error:s,refetch:()=>h()}}function sh(e={}){const{client:r}=je(),a=c.useCallback(async()=>{const d=new URLSearchParams;e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.key_id&&d.set("key_id",e.key_id);const u=await r(`/api-auth/audit/timeseries?${d.toString()}`,{method:"GET"});return(await V(u)).data},[r,e.start_date,e.end_date,e.interval,e.key_id]),{data:o,error:s,isLoading:i,mutate:h}=Ae(()=>{const d=new URLSearchParams;return e.start_date&&d.set("start_date",e.start_date),e.end_date&&d.set("end_date",e.end_date),e.interval&&d.set("interval",e.interval),e.key_id&&d.set("key_id",e.key_id),`wacht-api-auth-audit-timeseries?${d.toString()}`},a,{revalidateOnFocus:!1,shouldRetryOnError:!1});return{timeseries:(o==null?void 0:o.data)||[],interval:(o==null?void 0:o.interval)||e.interval||"hour",loading:i,error:s,refetch:()=>h()}}const M0=()=>{const{client:e}=je(),[r,a]=c.useState(!1),[o,s]=c.useState(null),[i,h]=c.useState(null),d=c.useCallback(async f=>{a(!0),s(null),h(null);try{const p=new FormData;p.append("token",f);const m=await e("/organizations/invitations/accept",{method:"POST",body:p}),x=(await V(m)).data;return h(x),x.error_code&&s(x.message||"Failed to accept invitation"),x}catch(p){const m=p.message||"Failed to accept invitation";s(m);const g={error_code:"NETWORK_ERROR",message:m};return h(g),g}finally{a(!1)}},[e]),u=c.useCallback(()=>{s(null),h(null)},[]);return{acceptInvitation:d,invitationData:i,loading:r,error:o,reset:u}},ih=({children:e})=>{const{loading:r}=Se();return r?null:t.jsx(t.Fragment,{children:e})},ch=({children:e})=>{const{loading:r}=Se();return r?t.jsx(t.Fragment,{children:e}):null};function lh(e){var r=Object.create(null);return function(a){return r[a]===void 0&&(r[a]=e(a)),r[a]}}var dh=/^((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)-.*))$/,uh=lh(function(e){return dh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tt="-ms-",ja="-moz-",We="-webkit-",L0="comm",Mn="rule",js="decl",ph="@import",hh="@namespace",R0="@keyframes",fh="@layer",P0=Math.abs,_s=String.fromCharCode,es=Object.assign;function mh(e,r){return ut(e,0)^45?(((r<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}function T0(e){return e.trim()}function Gt(e,r){return(e=r.exec(e))?e[0]:e}function Me(e,r,a){return e.replace(r,a)}function fn(e,r,a){return e.indexOf(r,a)}function ut(e,r){return e.charCodeAt(r)|0}function Lr(e,r,a){return e.slice(r,a)}function zt(e){return e.length}function F0(e){return e.length}function xa(e,r){return r.push(e),e}function gh(e,r){return e.map(r).join("")}function hi(e,r){return e.filter(function(a){return!Gt(a,r)})}var Ln=1,Xr=1,Z0=0,Ct=0,it=0,na="";function Rn(e,r,a,o,s,i,h,d){return{value:e,root:r,parent:a,type:o,props:s,children:i,line:Ln,column:Xr,length:h,return:"",siblings:d}}function rr(e,r){return es(Rn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},r)}function Or(e){for(;e.root;)e=rr(e.root,{children:[e]});xa(e,e.siblings)}function vh(){return it}function xh(){return it=Ct>0?ut(na,--Ct):0,Xr--,it===10&&(Xr=1,Ln--),it}function Lt(){return it=Ct<Z0?ut(na,Ct++):0,Xr++,it===10&&(Xr=1,Ln++),it}function nr(){return ut(na,Ct)}function mn(){return Ct}function Pn(e,r){return Lr(na,e,r)}function Sa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wh(e){return Ln=Xr=1,Z0=zt(na=e),Ct=0,[]}function bh(e){return na="",e}function eo(e){return T0(Pn(Ct-1,ts(e===91?e+2:e===40?e+1:e)))}function yh(e){for(;(it=nr())&&it<33;)Lt();return Sa(e)>2||Sa(it)>3?"":" "}function jh(e,r){for(;--r&&Lt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Pn(e,mn()+(r<6&&nr()==32&&Lt()==32))}function ts(e){for(;Lt();)switch(it){case e:return Ct;case 34:case 39:e!==34&&e!==39&&ts(it);break;case 40:e===41&&ts(e);break;case 92:Lt();break}return Ct}function _h(e,r){for(;Lt()&&e+it!==57;)if(e+it===84&&nr()===47)break;return"/*"+Pn(r,Ct-1)+"*"+_s(e===47?e:Lt())}function kh(e){for(;!Sa(nr());)Lt();return Pn(e,Ct)}function Ch(e){return bh(gn("",null,null,null,[""],e=wh(e),0,[0],e))}function gn(e,r,a,o,s,i,h,d,u){for(var f=0,p=0,m=h,g=0,x=0,b=0,v=1,w=1,E=1,j=0,S="",C=s,_=i,k=o,y=S;w;)switch(b=j,j=Lt()){case 40:if(b!=108&&ut(y,m-1)==58){fn(y+=Me(eo(j),"&","&\f"),"&\f",P0(f?d[f-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:y+=eo(j);break;case 9:case 10:case 13:case 32:y+=yh(b);break;case 92:y+=jh(mn()-1,7);continue;case 47:switch(nr()){case 42:case 47:xa(Sh(_h(Lt(),mn()),r,a,u),u),(Sa(b||1)==5||Sa(nr()||1)==5)&&zt(y)&&Lr(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*v:d[f++]=zt(y)*E;case 125*v:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+p:E==-1&&(y=Me(y,/\f/g,"")),x>0&&(zt(y)-m||v===0&&b===47)&&xa(x>32?mi(y+";",o,a,m-1,u):mi(Me(y," ","")+";",o,a,m-2,u),u);break;case 59:y+=";";default:if(xa(k=fi(y,r,a,f,p,s,d,S,C=[],_=[],m,i),i),j===123)if(p===0)gn(y,r,k,k,C,i,m,d,_);else{switch(g){case 99:if(ut(y,3)===110)break;case 108:if(ut(y,2)===97)break;default:p=0;case 100:case 109:case 115:}p?gn(e,k,k,o&&xa(fi(e,k,k,0,0,s,d,S,s,C=[],m,_),_),s,_,m,d,o?C:_):gn(y,k,k,k,[""],_,0,d,_)}}f=p=x=0,v=E=1,S=y="",m=h;break;case 58:m=1+zt(y),x=b;default:if(v<1){if(j==123)--v;else if(j==125&&v++==0&&xh()==125)continue}switch(y+=_s(j),j*v){case 38:E=p>0?1:(y+="\f",-1);break;case 44:d[f++]=(zt(y)-1)*E,E=1;break;case 64:nr()===45&&(y+=eo(Lt())),g=nr(),p=m=zt(S=y+=kh(mn())),j++;break;case 45:b===45&&zt(y)==2&&(v=0)}}return i}function fi(e,r,a,o,s,i,h,d,u,f,p,m){for(var g=s-1,x=s===0?i:[""],b=F0(x),v=0,w=0,E=0;v<o;++v)for(var j=0,S=Lr(e,g+1,g=P0(w=h[v])),C=e;j<b;++j)(C=T0(w>0?x[j]+" "+S:Me(S,/&\f/g,x[j])))&&(u[E++]=C);return Rn(e,r,a,s===0?Mn:d,u,f,p,m)}function Sh(e,r,a,o){return Rn(e,r,a,L0,_s(vh()),Lr(e,2,-2),0,o)}function mi(e,r,a,o,s){return Rn(e,r,a,js,Lr(e,0,o),Lr(e,o+1,-1),o,s)}function I0(e,r,a){switch(mh(e,r)){case 5103:return We+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return We+e+e;case 4855:return We+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ja+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+ja+e+tt+e+e;case 5936:switch(ut(e,r+11)){case 114:return We+e+tt+Me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+tt+Me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+tt+Me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return We+e+tt+e+e;case 6165:return We+e+tt+"flex-"+e+e;case 5187:return We+e+Me(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return We+e+tt+"flex-item-"+Me(e,/flex-|-self/g,"")+(Gt(e,/flex-|baseline/)?"":tt+"grid-row-"+Me(e,/flex-|-self/g,""))+e;case 4675:return We+e+tt+"flex-line-pack"+Me(e,/align-content|flex-|-self/g,"")+e;case 5548:return We+e+tt+Me(e,"shrink","negative")+e;case 5292:return We+e+tt+Me(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Me(e,"-grow","")+We+e+tt+Me(e,"grow","positive")+e;case 4554:return We+Me(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Me(Me(Me(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Me(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Me(Me(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+tt+"flex-pack:$3"),/space-between/,"justify")+We+e+e;case 4200:if(!Gt(e,/flex-|baseline/))return tt+"grid-column-align"+Lr(e,r)+e;break;case 2592:case 3360:return tt+Me(e,"template-","")+e;case 4384:case 3616:return a&&a.some(function(o,s){return r=s,Gt(o.props,/grid-\w+-end/)})?~fn(e+(a=a[r].value),"span",0)?e:tt+Me(e,"-start","")+e+tt+"grid-row-span:"+(~fn(a,"span",0)?Gt(a,/\d+/):+Gt(a,/\d+/)-+Gt(e,/\d+/))+";":tt+Me(e,"-start","")+e;case 4896:case 4128:return a&&a.some(function(o){return Gt(o.props,/grid-\w+-start/)})?e:tt+Me(Me(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Me(e,/(.+)-inline(.+)/,We+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zt(e)-1-r>6)switch(ut(e,r+1)){case 109:if(ut(e,r+4)!==45)break;case 102:return Me(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+ja+(ut(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~fn(e,"stretch",0)?I0(Me(e,"stretch","fill-available"),r,a)+e:e}break;case 5152:case 5920:return Me(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,i,h,d,u,f){return tt+s+":"+i+f+(h?tt+s+"-span:"+(d?u:+u-+i)+f:"")+e});case 4949:if(ut(e,r+6)===121)return Me(e,":",":"+We)+e;break;case 6444:switch(ut(e,ut(e,14)===45?18:11)){case 120:return Me(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+We+(ut(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+tt+"$2box$3")+e;case 100:return Me(e,":",":"+tt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Me(e,"scroll-","scroll-snap-")+e}return e}function jn(e,r){for(var a="",o=0;o<e.length;o++)a+=r(e[o],o,e,r)||"";return a}function Eh(e,r,a,o){switch(e.type){case fh:if(e.children.length)break;case ph:case hh:case js:return e.return=e.return||e.value;case L0:return"";case R0:return e.return=e.value+"{"+jn(e.children,o)+"}";case Mn:if(!zt(e.value=e.props.join(",")))return""}return zt(a=jn(e.children,o))?e.return=e.value+"{"+a+"}":""}function Ah(e){var r=F0(e);return function(a,o,s,i){for(var h="",d=0;d<r;d++)h+=e[d](a,o,s,i)||"";return h}}function zh(e){return function(r){r.root||(r=r.return)&&e(r)}}function $h(e,r,a,o){if(e.length>-1&&!e.return)switch(e.type){case js:e.return=I0(e.value,e.length,a);return;case R0:return jn([rr(e,{value:Me(e.value,"@","@"+We)})],o);case Mn:if(e.length)return gh(a=e.props,function(s){switch(Gt(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Or(rr(e,{props:[Me(s,/:(read-\w+)/,":"+ja+"$1")]})),Or(rr(e,{props:[s]})),es(e,{props:hi(a,o)});break;case"::placeholder":Or(rr(e,{props:[Me(s,/:(plac\w+)/,":"+We+"input-$1")]})),Or(rr(e,{props:[Me(s,/:(plac\w+)/,":"+ja+"$1")]})),Or(rr(e,{props:[Me(s,/:(plac\w+)/,tt+"input-$1")]})),Or(rr(e,{props:[s]})),es(e,{props:hi(a,o)});break}return""})}}var to,ro;const Rr=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",O0="active",H0="data-styled-version",Tn="6.4.1",ks=`/*!sc*/
|
|
19
|
+
`,_a=typeof window<"u"&&typeof document<"u";function gi(e){if(typeof process<"u"&&process.env!==void 0){const r=process.env[e];if(r!==void 0&&r!=="")return r!=="false"}}const Mh=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(ro=(to=gi("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&to!==void 0?to:gi("SC_DISABLE_SPEEDY"))!==null&&ro!==void 0?ro:typeof process>"u"||process.env===void 0||process.env.NODE_ENV!=="production"),V0="sc-keyframes-",Lh=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
20
20
|
|
|
21
21
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
22
22
|
|
|
@@ -79,11 +79,11 @@ export function App() {
|
|
|
79
79
|
\`\`\`
|
|
80
80
|
|
|
81
81
|
If you need access to the theme in an uncertain composition scenario, \`React.useContext(ThemeContext)\` will not emit an error if there is no \`ThemeProvider\` ancestor.
|
|
82
|
-
`}:{};function oa(e,...r){return process.env.NODE_ENV==="production"?new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${r.length>0?` Args: ${r.join(", ")}`:""}`):new Error((function(...a){let o=a[0];const s=[];for(let i=1,h=a.length;i<h;i+=1)s.push(a[i]);return s.forEach(i=>{o=o.replace(/%[a-z]/,i)}),o})(Lh[e],...r).trim())}const Rh=1<<30;let vn=new Map,_n=new Map,xn=1;const wa=e=>{if(vn.has(e))return vn.get(e);for(;_n.has(xn);)xn++;const r=xn++;if(process.env.NODE_ENV!=="production"&&((0|r)<0||r>Rh))throw oa(16,`${r}`);return vn.set(e,r),_n.set(r,e),r},Ph=e=>_n.get(e),Th=(e,r)=>{xn=r+1,vn.set(e,r),_n.set(r,e)},
|
|
82
|
+
`}:{};function oa(e,...r){return process.env.NODE_ENV==="production"?new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${r.length>0?` Args: ${r.join(", ")}`:""}`):new Error((function(...a){let o=a[0];const s=[];for(let i=1,h=a.length;i<h;i+=1)s.push(a[i]);return s.forEach(i=>{o=o.replace(/%[a-z]/,i)}),o})(Lh[e],...r).trim())}const Rh=1<<30;let vn=new Map,_n=new Map,xn=1;const wa=e=>{if(vn.has(e))return vn.get(e);for(;_n.has(xn);)xn++;const r=xn++;if(process.env.NODE_ENV!=="production"&&((0|r)<0||r>Rh))throw oa(16,`${r}`);return vn.set(e,r),_n.set(r,e),r},Ph=e=>_n.get(e),Th=(e,r)=>{xn=r+1,vn.set(e,r),_n.set(r,e)},vi=/invalid hook call/i,Va=new Set,Fh=(e,r)=>{if(process.env.NODE_ENV!=="production"){const a=`The component ${e}${r?` with the id of "${r}"`:""} has been created dynamically.
|
|
83
83
|
You may see this warning because you've called styled inside another component.
|
|
84
84
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
85
85
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
86
|
-
`,o=console.error;try{let s=!0;console.error=(i,...h)=>{gi.test(i)?(s=!1,Va.delete(a)):o(i,...h)},typeof c.useState=="function"&&c.useState(null),s&&!Va.has(a)&&(console.warn(a),Va.add(a))}catch(s){gi.test(s.message)&&Va.delete(a)}finally{console.error=o}}},ks=Object.freeze([]),ea=Object.freeze({});function Zh(e,r,a=ea){return e.theme!==a.theme&&e.theme||r||a.theme}const Ih=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oh=/(^-|-$)/g;function D0(e){return e.replace(Ih,"-").replace(Oh,"")}const Hh=/(a)(d)/gi,vi=e=>String.fromCharCode(e+(e>25?39:97));function Cs(e){let r,a="";for(r=Math.abs(e);r>52;r=r/52|0)a=vi(r%52)+a;return(vi(r%52)+a).replace(Hh,"$1-$2")}const ts=5381,Er=(e,r)=>{let a=r.length;for(;a;)e=33*e^r.charCodeAt(--a);return e},N0=e=>Er(ts,e);function U0(e){return Cs(N0(e)>>>0)}function Ss(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function wn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}function Vh(e){return wn(e)?`styled.${e}`:`Styled(${Ss(e)})`}const B0=Symbol.for("react.memo"),Dh=Symbol.for("react.forward_ref"),Nh={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Uh={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},W0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bh={[Dh]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B0]:W0};function xi(e){return("type"in(r=e)&&r.type.$$typeof)===B0?W0:"$$typeof"in e?Bh[e.$$typeof]:Nh;var r}const Wh=Object.defineProperty,Gh=Object.getOwnPropertyNames,qh=Object.getOwnPropertySymbols,Kh=Object.getOwnPropertyDescriptor,Yh=Object.getPrototypeOf,Qh=Object.prototype;function G0(e,r,a){if(typeof r!="string"){const o=Yh(r);o&&o!==Qh&&G0(e,o,a);const s=Gh(r).concat(qh(r)),i=xi(e),h=xi(r);for(let d=0;d<s.length;++d){const u=s[d];if(!(u in Uh||a&&a[u]||h&&u in h||i&&u in i)){const f=Kh(r,u);try{Wh(e,u,f)}catch{}}}}return e}function Fn(e){return typeof e=="function"}function q0(e){return typeof e=="object"&&"styledComponentId"in e}function ba(e,r){return e&&r?e+" "+r:e||r||""}function rs(e,r){return e.join("")}function Pr(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function as(e,r,a=!1){if(!a&&!Pr(e)&&!Array.isArray(e))return r;if(Array.isArray(r))for(let o=0;o<r.length;o++)e[o]=as(e[o],r[o]);else if(Pr(r))for(const o in r)e[o]=as(e[o],r[o]);return e}function Es(e,r){Object.defineProperty(e,"toString",{value:r})}const Jh=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let r=this._cIndex;if(e>this._cGroup)for(let a=this._cGroup;a<e;a++)r+=this.groupSizes[a];else for(let a=this._cGroup-1;a>=e;a--)r-=this.groupSizes[a];return this._cGroup=e,this._cIndex=r,r}insertRules(e,r){if(e>=this.groupSizes.length){const s=this.groupSizes,i=s.length;let h=i;for(;e>=h;)if(h<<=1,h<0)throw oa(16,`${e}`);this.groupSizes=new Uint32Array(h),this.groupSizes.set(s),this.length=h;for(let d=i;d<h;d++)this.groupSizes[d]=0}let a=this.indexOfGroup(e+1),o=0;for(let s=0,i=r.length;s<i;s++)this.tag.insertRule(a,r[s])&&(this.groupSizes[e]++,a++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const r=this.groupSizes[e],a=this.indexOfGroup(e),o=a+r;this.groupSizes[e]=0;for(let s=a;s<o;s++)this.tag.deleteRule(a);r>0&&this._cGroup>e&&(this._cIndex-=r)}}getGroup(e){let r="";if(e>=this.length||this.groupSizes[e]===0)return r;const a=this.groupSizes[e],o=this.indexOfGroup(e),s=o+a;for(let i=o;i<s;i++)r+=this.tag.getRule(i)+_s;return r}},Xh=`style[${Rr}][${H0}="${Tn}"]`,e8=new RegExp(`^${Rr}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),wi=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,ns=e=>{if(!e)return document;if(wi(e))return e;if("getRootNode"in e){const r=e.getRootNode();if(wi(r))return r}return document},t8=(e,r,a)=>{const o=a.split(",");let s;for(let i=0,h=o.length;i<h;i++)(s=o[i])&&e.registerName(r,s)},r8=(e,r)=>{var a;const o=((a=r.textContent)!==null&&a!==void 0?a:"").split(_s),s=[];for(let i=0,h=o.length;i<h;i++){const d=o[i].trim();if(!d)continue;const u=d.match(e8);if(u){const f=0|parseInt(u[1],10),p=u[2];f!==0&&(Th(p,f),t8(e,p,u[3]),e.getTag().insertRules(f,s)),s.length=0}else s.push(d)}},ao=e=>{const r=ns(e.options.target).querySelectorAll(Xh);for(let a=0,o=r.length;a<o;a++){const s=r[a];s&&s.getAttribute(Rr)!==O0&&(r8(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let da=!1;function a8(){if(da!==!1)return da;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return da=e.nonce||e.getAttribute("content")||void 0;const r=document.head.querySelector('meta[name="sc-nonce"]');if(r)return da=r.getAttribute("content")||void 0}return da=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const K0=(e,r)=>{const a=document.head,o=e||a,s=document.createElement("style"),i=(u=>{const f=Array.from(u.querySelectorAll(`style[${Rr}]`));return f[f.length-1]})(o),h=i!==void 0?i.nextSibling:null;s.setAttribute(Rr,O0),s.setAttribute(H0,Tn);const d=r||a8();return d&&s.setAttribute("nonce",d),o.insertBefore(s,h),s},n8=class{constructor(e,r){this.element=K0(e,r),this.element.appendChild(document.createTextNode("")),this.sheet=(a=>{var o;if(a.sheet)return a.sheet;const s=(o=a.getRootNode().styleSheets)!==null&&o!==void 0?o:document.styleSheets;for(let i=0,h=s.length;i<h;i++){const d=s[i];if(d.ownerNode===a)return d}throw oa(17)})(this.element),this.length=0}insertRule(e,r){try{return this.sheet.insertRule(r,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const r=this.sheet.cssRules[e];return r&&r.cssText?r.cssText:""}},o8=class{constructor(e,r){this.element=K0(e,r),this.nodes=this.element.childNodes,this.length=0}insertRule(e,r){if(e<=this.length&&e>=0){const a=document.createTextNode(r);return this.element.insertBefore(a,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let bi=_a;const s8={isServer:!_a,useCSSOMInjection:!Mh};class Zn{static registerId(r){return wa(r)}constructor(r=ea,a={},o){this.options=Object.assign(Object.assign({},s8),r),this.gs=a,this.keyframeIds=new Set,this.names=new Map(o),this.server=!!r.isServer,!this.server&&_a&&bi&&(bi=!1,ao(this)),Es(this,()=>(s=>{const i=s.getTag(),{length:h}=i;let d="";for(let u=0;u<h;u++){const f=Ph(u);if(f===void 0)continue;const p=s.names.get(f);if(p===void 0||!p.size)continue;const m=i.getGroup(u);if(m.length===0)continue;const g=Rr+".g"+u+'[id="'+f+'"]';let x="";for(const b of p)b.length>0&&(x+=b+",");d+=m+g+'{content:"'+x+'"}'+_s}return d})(this))}rehydrate(){!this.server&&_a&&ao(this)}reconstructWithOptions(r,a=!0){const o=new Zn(Object.assign(Object.assign({},this.options),r),this.gs,a&&this.names||void 0);return o.keyframeIds=new Set(this.keyframeIds),!this.server&&_a&&r.target!==this.options.target&&ns(this.options.target)!==ns(r.target)&&ao(o),o}allocateGSInstance(r){return this.gs[r]=(this.gs[r]||0)+1}getTag(){return this.tag||(this.tag=(r=(({useCSSOMInjection:a,target:o,nonce:s})=>a?new n8(o,s):new o8(o,s))(this.options),new Jh(r)));var r}hasNameForId(r,a){var o,s;return(s=(o=this.names.get(r))===null||o===void 0?void 0:o.has(a))!==null&&s!==void 0&&s}registerName(r,a){wa(r),r.startsWith(V0)&&this.keyframeIds.add(r);const o=this.names.get(r);o?o.add(a):this.names.set(r,new Set([a]))}insertRules(r,a,o){this.registerName(r,a),this.getTag().insertRules(wa(r),o)}clearNames(r){this.names.has(r)&&this.names.get(r).clear()}clearRules(r){this.getTag().clearGroup(wa(r)),this.clearNames(r)}clearTag(){this.tag=void 0}}const Y0=new WeakSet,i8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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 c8(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||e in i8||e.startsWith("--")?String(r).trim():r+"px"}const Cr=47;function yi(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let r="";for(let a=0;a<e.length;a++){const o=e.charCodeAt(a);r+=o>=65&&o<=90?"-"+String.fromCharCode(o+32):e[a]}return r.startsWith("ms-")?"-"+r:r}const Q0=Symbol.for("sc-keyframes");function os(e){return typeof e=="object"&&e!==null&&Q0 in e}function J0(e){return Fn(e)&&!(e.prototype&&e.prototype.isReactComponent)}const X0=e=>e==null||e===!1||e==="",l8=Symbol.for("react.client.reference");function ji(e){return e.$$typeof===l8}function _i(e){const r=e.$$id,a=(r&&r.includes("#")?r.split("#").pop():r)||e.name||"unknown";console.warn(`Interpolating a client component (${a}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function ed(e,r){for(const a in e){const o=e[a];e.hasOwnProperty(a)&&!X0(o)&&(Array.isArray(o)&&Y0.has(o)||Fn(o)?r.push(yi(a)+":",o,";"):Pr(o)?(r.push(a+" {"),ed(o,r),r.push("}")):r.push(yi(a)+": "+c8(a,o)+";"))}}function Ar(e,r,a,o,s=[]){if(X0(e))return s;const i=typeof e;if(i==="string")return s.push(e),s;if(i==="function"){if(ji(e))return process.env.NODE_ENV!=="production"&&_i(e),s;if(J0(e)&&r){const h=e(r);return process.env.NODE_ENV==="production"||typeof h!="object"||Array.isArray(h)||os(h)||Pr(h)||h===null||console.error(`${Ss(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),Ar(h,r,a,o,s)}return s.push(e),s}if(Array.isArray(e)){for(let h=0;h<e.length;h++)Ar(e[h],r,a,o,s);return s}return q0(e)?(s.push(`.${e.styledComponentId}`),s):os(e)?(a?(e.inject(a,o),s.push(e.getName(o))):s.push(e),s):ji(e)?(process.env.NODE_ENV!=="production"&&_i(e),s):Pr(e)?(ed(e,s),s):(s.push(e.toString()),s)}const d8=N0(Tn);class u8{constructor(r,a,o){this.rules=r,this.componentId=a,this.baseHash=Er(d8,a),this.baseStyle=o,Zn.registerId(a)}generateAndInjectStyles(r,a,o){let s=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,a,o):"";{let i="";for(let h=0;h<this.rules.length;h++){const d=this.rules[h];if(typeof d=="string")i+=d;else if(d)if(J0(d)){const u=d(r);typeof u=="string"?i+=u:u!=null&&u!==!1&&(process.env.NODE_ENV==="production"||typeof u!="object"||Array.isArray(u)||os(u)||Pr(u)||console.error(`${Ss(d)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),i+=rs(Ar(u,r,a,o)))}else i+=rs(Ar(d,r,a,o))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const h=o.hash?o.hash+i:i;let d=this.dynamicNameCache.get(h);if(!d){if(d=Cs(Er(Er(this.baseHash,o.hash),i)>>>0),this.dynamicNameCache.size>=200){const u=this.dynamicNameCache.keys().next().value;u!==void 0&&this.dynamicNameCache.delete(u)}this.dynamicNameCache.set(h,d)}if(!a.hasNameForId(this.componentId,d)){const u=o(i,"."+d,void 0,this.componentId);a.insertRules(this.componentId,d,u)}s=ba(s,d)}}return s}}const p8=/&/g;function td(e,r){let a=0;for(;--r>=0&&e.charCodeAt(r)===92;)a++;return!(1&~a)}function no(e){const r=e.length;let a="",o=0,s=0,i=0,h=!1,d=!1;for(let u=0;u<r;u++){const f=e.charCodeAt(u);if(i!==0||h||f!==Cr||e.charCodeAt(u+1)!==42)if(h)f===42&&e.charCodeAt(u+1)===Cr&&(h=!1,u++);else if(f!==34&&f!==39||td(e,u)){if(i===0)if(f===123)s++;else if(f===125){if(s--,s<0){d=!0;let p=u+1;for(;p<r;){const m=e.charCodeAt(p);if(m===59||m===10)break;p++}p<r&&e.charCodeAt(p)===59&&p++,s=0,u=p-1,o=p;continue}s===0&&(a+=e.substring(o,u+1),o=u+1)}else f===59&&s===0&&(a+=e.substring(o,u+1),o=u+1)}else i===0?i=f:i===f&&(i=0);else h=!0,u++}return d||s!==0||i!==0?(o<r&&s===0&&i===0&&(a+=e.substring(o)),a):e}function rd(e,r){const a=r+" ",o=","+a;for(let s=0;s<e.length;s++){const i=e[s];if(i.type==="rule"){i.value=(a+i.value).replaceAll(",",o);const h=i.props,d=[];for(let u=0;u<h.length;u++)d[u]=a+h[u];i.props=d}Array.isArray(i.children)&&i.type!=="@keyframes"&&rd(i.children,r)}return e}function h8({options:e=ea,plugins:r=ks}=ea){let a,o,s;const i=(g,x,b)=>b.startsWith(o)&&b.endsWith(o)&&b.replaceAll(o,"").length>0?`.${a}`:g,h=r.slice();h.push(g=>{g.type===Mn&&g.value.includes("&")&&(s||(s=new RegExp(`\\${o}\\b`,"g")),g.props[0]=g.props[0].replace(p8,o).replace(s,i))}),e.prefix&&h.push($h),h.push(Eh);let d=[];const u=Ah(h.concat(zh(g=>d.push(g)))),f=(g,x="",b="",v="&")=>{a=v,o=x,s=void 0;const w=(function(j){const S=j.indexOf("//")!==-1,C=j.indexOf("}")!==-1;if(!S&&!C)return j;if(!S)return no(j);const _=j.length;let k="",y=0,L=0,z=0,O=0,R=0,M=!1;for(;L<_;){const T=j.charCodeAt(L);if(T!==34&&T!==39||td(j,L))if(z===0)if(T===Cr&&L+1<_&&j.charCodeAt(L+1)===42){for(L+=2;L+1<_&&(j.charCodeAt(L)!==42||j.charCodeAt(L+1)!==Cr);)L++;L+=2}else if(T!==40)if(T!==41)if(O>0)L++;else if(T===42&&L+1<_&&j.charCodeAt(L+1)===Cr)k+=j.substring(y,L),L+=2,y=L,M=!0;else if(T===Cr&&L+1<_&&j.charCodeAt(L+1)===Cr){for(k+=j.substring(y,L);L<_&&j.charCodeAt(L)!==10;)L++;y=L,M=!0}else T===123?R++:T===125&&R--,L++;else O>0&&O--,L++;else O++,L++;else L++;else z===0?z=T:z===T&&(z=0),L++}return M?(y<_&&(k+=j.substring(y)),R===0?k:no(k)):R===0?j:no(j)})(g);let E=Ch(b||x?b+" "+x+" { "+w+" }":w);return e.namespace&&(E=rd(E,e.namespace)),d=[],jn(E,u),d},p=e;let m=ts;for(let g=0;g<r.length;g++)r[g].name||oa(15),m=Er(m,r[g].name);return p!=null&&p.namespace&&(m=Er(m,p.namespace)),p!=null&&p.prefix&&(m=Er(m,"p")),f.hash=m!==ts?m.toString():"",f}const f8=new Zn,ss=h8(),ad=c.createContext({shouldForwardProp:void 0,styleSheet:f8,stylis:ss,stylisPlugins:void 0});ad.Consumer;function m8(){return c.useContext(ad)}const nd=c.createContext(void 0);nd.Consumer;const ki=Object.prototype.hasOwnProperty,oo={};function g8(e,r){const a=typeof e!="string"?"sc":D0(e);oo[a]=(oo[a]||0)+1;const o=a+"-"+U0(Tn+a+oo[a]);return r?r+"-"+o:o}let so;function v8(e,r,a){const o=q0(e),s=e,i=!wn(e),{attrs:h=ks,componentId:d=g8(r.displayName,r.parentComponentId),displayName:u=Vh(e)}=r,f=r.displayName&&r.componentId?D0(r.displayName)+"-"+r.componentId:r.componentId||d,p=o&&s.attrs?s.attrs.concat(h).filter(Boolean):h;let{shouldForwardProp:m}=r;if(o&&s.shouldForwardProp){const v=s.shouldForwardProp;if(r.shouldForwardProp){const w=r.shouldForwardProp;m=(E,j)=>v(E,j)&&w(E,j)}else m=v}const g=new u8(a,f,o?s.componentStyle:void 0);function x(v,w){return(function(E,j,S){const{attrs:C,componentStyle:_,defaultProps:k,foldedComponentIds:y,styledComponentId:L,target:z}=E,O=c.useContext(nd),R=m8(),M=E.shouldForwardProp||R.shouldForwardProp;process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(L);const T=Zh(j,O,k)||ea;let A,$;{const Z=c.useRef(null),P=Z.current;if(P!==null&&P[1]===T&&P[2]===R.styleSheet&&P[3]===R.stylis&&P[7]===_&&(function(G,D,W){const Y=G,J=D;let ie=0;for(const he in J)if(ki.call(J,he)&&(ie++,Y[he]!==J[he]))return!1;return ie===W})(P[0],j,P[4]))A=P[5],$=P[6];else{A=(function(D,W,Y){const J=Object.assign(Object.assign({},W),{className:void 0,theme:Y}),ie=D.length>1;for(let he=0;he<D.length;he++){const ee=D[he],xe=Fn(ee)?ee(ie?Object.assign({},J):J):ee;for(const te in xe)te==="className"?J.className=ba(J.className,xe[te]):te==="style"?J.style=Object.assign(Object.assign({},J.style),xe[te]):te in W&&W[te]===void 0||(J[te]=xe[te])}return"className"in W&&typeof W.className=="string"&&(J.className=ba(J.className,W.className)),J})(C,j,T),$=(function(D,W,Y,J){const ie=D.generateAndInjectStyles(W,Y,J);return process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(ie),ie})(_,A,R.styleSheet,R.stylis);let G=0;for(const D in j)ki.call(j,D)&&G++;Z.current=[j,T,R.styleSheet,R.stylis,G,A,$,_]}}process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses($);const I=A.as||z,F=(function(Z,P,G,D){const W={};for(const Y in Z)Z[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&Z.theme===G||(Y==="forwardedAs"?W.as=Z.forwardedAs:D&&!D(Y,P)||(W[Y]=Z[Y],D||process.env.NODE_ENV!=="development"||uh(Y)||(so||(so=new Set)).has(Y)||!wn(P)||P.includes("-")||(so.add(Y),console.warn(`styled-components: it looks like an unknown prop "${Y}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return W})(A,I,T,M);let H=ba(y,L);return $&&(H+=" "+$),A.className&&(H+=" "+A.className),F[wn(I)&&I.includes("-")?"class":"className"]=H,S&&(F.ref=S),c.createElement(I,F)})(b,v,w)}x.displayName=u;let b=c.forwardRef(x);return b.attrs=p,b.componentStyle=g,b.displayName=u,b.shouldForwardProp=m,b.foldedComponentIds=o?ba(s.foldedComponentIds,s.styledComponentId):"",b.styledComponentId=f,b.target=o?s.target:e,Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(v){this._foldedDefaultProps=o?(function(w,...E){for(const j of E)as(w,j,!0);return w})({},s.defaultProps,v):v}}),process.env.NODE_ENV!=="production"&&(Fh(u,f),b.warnTooManyClasses=((v,w)=>{let E={},j=!1;return S=>{!j&&(E[S]=!0,Object.keys(E).length>=200)&&(console.warn(`Over 200 classes were generated for component ${v}${w?` with the id of "${w}"`:""}.
|
|
86
|
+
`,o=console.error;try{let s=!0;console.error=(i,...h)=>{vi.test(i)?(s=!1,Va.delete(a)):o(i,...h)},typeof c.useState=="function"&&c.useState(null),s&&!Va.has(a)&&(console.warn(a),Va.add(a))}catch(s){vi.test(s.message)&&Va.delete(a)}finally{console.error=o}}},Cs=Object.freeze([]),ea=Object.freeze({});function Zh(e,r,a=ea){return e.theme!==a.theme&&e.theme||r||a.theme}const Ih=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oh=/(^-|-$)/g;function D0(e){return e.replace(Ih,"-").replace(Oh,"")}const Hh=/(a)(d)/gi,xi=e=>String.fromCharCode(e+(e>25?39:97));function Ss(e){let r,a="";for(r=Math.abs(e);r>52;r=r/52|0)a=xi(r%52)+a;return(xi(r%52)+a).replace(Hh,"$1-$2")}const rs=5381,Er=(e,r)=>{let a=r.length;for(;a;)e=33*e^r.charCodeAt(--a);return e},N0=e=>Er(rs,e);function U0(e){return Ss(N0(e)>>>0)}function Es(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function wn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}function Vh(e){return wn(e)?`styled.${e}`:`Styled(${Es(e)})`}const B0=Symbol.for("react.memo"),Dh=Symbol.for("react.forward_ref"),Nh={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Uh={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},W0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bh={[Dh]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[B0]:W0};function wi(e){return("type"in(r=e)&&r.type.$$typeof)===B0?W0:"$$typeof"in e?Bh[e.$$typeof]:Nh;var r}const Wh=Object.defineProperty,Gh=Object.getOwnPropertyNames,qh=Object.getOwnPropertySymbols,Kh=Object.getOwnPropertyDescriptor,Yh=Object.getPrototypeOf,Qh=Object.prototype;function G0(e,r,a){if(typeof r!="string"){const o=Yh(r);o&&o!==Qh&&G0(e,o,a);const s=Gh(r).concat(qh(r)),i=wi(e),h=wi(r);for(let d=0;d<s.length;++d){const u=s[d];if(!(u in Uh||a&&a[u]||h&&u in h||i&&u in i)){const f=Kh(r,u);try{Wh(e,u,f)}catch{}}}}return e}function Fn(e){return typeof e=="function"}function q0(e){return typeof e=="object"&&"styledComponentId"in e}function ba(e,r){return e&&r?e+" "+r:e||r||""}function as(e,r){return e.join("")}function Pr(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ns(e,r,a=!1){if(!a&&!Pr(e)&&!Array.isArray(e))return r;if(Array.isArray(r))for(let o=0;o<r.length;o++)e[o]=ns(e[o],r[o]);else if(Pr(r))for(const o in r)e[o]=ns(e[o],r[o]);return e}function As(e,r){Object.defineProperty(e,"toString",{value:r})}const Jh=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let r=this._cIndex;if(e>this._cGroup)for(let a=this._cGroup;a<e;a++)r+=this.groupSizes[a];else for(let a=this._cGroup-1;a>=e;a--)r-=this.groupSizes[a];return this._cGroup=e,this._cIndex=r,r}insertRules(e,r){if(e>=this.groupSizes.length){const s=this.groupSizes,i=s.length;let h=i;for(;e>=h;)if(h<<=1,h<0)throw oa(16,`${e}`);this.groupSizes=new Uint32Array(h),this.groupSizes.set(s),this.length=h;for(let d=i;d<h;d++)this.groupSizes[d]=0}let a=this.indexOfGroup(e+1),o=0;for(let s=0,i=r.length;s<i;s++)this.tag.insertRule(a,r[s])&&(this.groupSizes[e]++,a++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const r=this.groupSizes[e],a=this.indexOfGroup(e),o=a+r;this.groupSizes[e]=0;for(let s=a;s<o;s++)this.tag.deleteRule(a);r>0&&this._cGroup>e&&(this._cIndex-=r)}}getGroup(e){let r="";if(e>=this.length||this.groupSizes[e]===0)return r;const a=this.groupSizes[e],o=this.indexOfGroup(e),s=o+a;for(let i=o;i<s;i++)r+=this.tag.getRule(i)+ks;return r}},Xh=`style[${Rr}][${H0}="${Tn}"]`,e8=new RegExp(`^${Rr}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),bi=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,os=e=>{if(!e)return document;if(bi(e))return e;if("getRootNode"in e){const r=e.getRootNode();if(bi(r))return r}return document},t8=(e,r,a)=>{const o=a.split(",");let s;for(let i=0,h=o.length;i<h;i++)(s=o[i])&&e.registerName(r,s)},r8=(e,r)=>{var a;const o=((a=r.textContent)!==null&&a!==void 0?a:"").split(ks),s=[];for(let i=0,h=o.length;i<h;i++){const d=o[i].trim();if(!d)continue;const u=d.match(e8);if(u){const f=0|parseInt(u[1],10),p=u[2];f!==0&&(Th(p,f),t8(e,p,u[3]),e.getTag().insertRules(f,s)),s.length=0}else s.push(d)}},ao=e=>{const r=os(e.options.target).querySelectorAll(Xh);for(let a=0,o=r.length;a<o;a++){const s=r[a];s&&s.getAttribute(Rr)!==O0&&(r8(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let da=!1;function a8(){if(da!==!1)return da;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return da=e.nonce||e.getAttribute("content")||void 0;const r=document.head.querySelector('meta[name="sc-nonce"]');if(r)return da=r.getAttribute("content")||void 0}return da=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const K0=(e,r)=>{const a=document.head,o=e||a,s=document.createElement("style"),i=(u=>{const f=Array.from(u.querySelectorAll(`style[${Rr}]`));return f[f.length-1]})(o),h=i!==void 0?i.nextSibling:null;s.setAttribute(Rr,O0),s.setAttribute(H0,Tn);const d=r||a8();return d&&s.setAttribute("nonce",d),o.insertBefore(s,h),s},n8=class{constructor(e,r){this.element=K0(e,r),this.element.appendChild(document.createTextNode("")),this.sheet=(a=>{var o;if(a.sheet)return a.sheet;const s=(o=a.getRootNode().styleSheets)!==null&&o!==void 0?o:document.styleSheets;for(let i=0,h=s.length;i<h;i++){const d=s[i];if(d.ownerNode===a)return d}throw oa(17)})(this.element),this.length=0}insertRule(e,r){try{return this.sheet.insertRule(r,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const r=this.sheet.cssRules[e];return r&&r.cssText?r.cssText:""}},o8=class{constructor(e,r){this.element=K0(e,r),this.nodes=this.element.childNodes,this.length=0}insertRule(e,r){if(e<=this.length&&e>=0){const a=document.createTextNode(r);return this.element.insertBefore(a,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let yi=_a;const s8={isServer:!_a,useCSSOMInjection:!Mh};class Zn{static registerId(r){return wa(r)}constructor(r=ea,a={},o){this.options=Object.assign(Object.assign({},s8),r),this.gs=a,this.keyframeIds=new Set,this.names=new Map(o),this.server=!!r.isServer,!this.server&&_a&&yi&&(yi=!1,ao(this)),As(this,()=>(s=>{const i=s.getTag(),{length:h}=i;let d="";for(let u=0;u<h;u++){const f=Ph(u);if(f===void 0)continue;const p=s.names.get(f);if(p===void 0||!p.size)continue;const m=i.getGroup(u);if(m.length===0)continue;const g=Rr+".g"+u+'[id="'+f+'"]';let x="";for(const b of p)b.length>0&&(x+=b+",");d+=m+g+'{content:"'+x+'"}'+ks}return d})(this))}rehydrate(){!this.server&&_a&&ao(this)}reconstructWithOptions(r,a=!0){const o=new Zn(Object.assign(Object.assign({},this.options),r),this.gs,a&&this.names||void 0);return o.keyframeIds=new Set(this.keyframeIds),!this.server&&_a&&r.target!==this.options.target&&os(this.options.target)!==os(r.target)&&ao(o),o}allocateGSInstance(r){return this.gs[r]=(this.gs[r]||0)+1}getTag(){return this.tag||(this.tag=(r=(({useCSSOMInjection:a,target:o,nonce:s})=>a?new n8(o,s):new o8(o,s))(this.options),new Jh(r)));var r}hasNameForId(r,a){var o,s;return(s=(o=this.names.get(r))===null||o===void 0?void 0:o.has(a))!==null&&s!==void 0&&s}registerName(r,a){wa(r),r.startsWith(V0)&&this.keyframeIds.add(r);const o=this.names.get(r);o?o.add(a):this.names.set(r,new Set([a]))}insertRules(r,a,o){this.registerName(r,a),this.getTag().insertRules(wa(r),o)}clearNames(r){this.names.has(r)&&this.names.get(r).clear()}clearRules(r){this.getTag().clearGroup(wa(r)),this.clearNames(r)}clearTag(){this.tag=void 0}}const Y0=new WeakSet,i8={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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 c8(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||e in i8||e.startsWith("--")?String(r).trim():r+"px"}const Cr=47;function ji(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let r="";for(let a=0;a<e.length;a++){const o=e.charCodeAt(a);r+=o>=65&&o<=90?"-"+String.fromCharCode(o+32):e[a]}return r.startsWith("ms-")?"-"+r:r}const Q0=Symbol.for("sc-keyframes");function ss(e){return typeof e=="object"&&e!==null&&Q0 in e}function J0(e){return Fn(e)&&!(e.prototype&&e.prototype.isReactComponent)}const X0=e=>e==null||e===!1||e==="",l8=Symbol.for("react.client.reference");function _i(e){return e.$$typeof===l8}function ki(e){const r=e.$$id,a=(r&&r.includes("#")?r.split("#").pop():r)||e.name||"unknown";console.warn(`Interpolating a client component (${a}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function ed(e,r){for(const a in e){const o=e[a];e.hasOwnProperty(a)&&!X0(o)&&(Array.isArray(o)&&Y0.has(o)||Fn(o)?r.push(ji(a)+":",o,";"):Pr(o)?(r.push(a+" {"),ed(o,r),r.push("}")):r.push(ji(a)+": "+c8(a,o)+";"))}}function Ar(e,r,a,o,s=[]){if(X0(e))return s;const i=typeof e;if(i==="string")return s.push(e),s;if(i==="function"){if(_i(e))return process.env.NODE_ENV!=="production"&&ki(e),s;if(J0(e)&&r){const h=e(r);return process.env.NODE_ENV==="production"||typeof h!="object"||Array.isArray(h)||ss(h)||Pr(h)||h===null||console.error(`${Es(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),Ar(h,r,a,o,s)}return s.push(e),s}if(Array.isArray(e)){for(let h=0;h<e.length;h++)Ar(e[h],r,a,o,s);return s}return q0(e)?(s.push(`.${e.styledComponentId}`),s):ss(e)?(a?(e.inject(a,o),s.push(e.getName(o))):s.push(e),s):_i(e)?(process.env.NODE_ENV!=="production"&&ki(e),s):Pr(e)?(ed(e,s),s):(s.push(e.toString()),s)}const d8=N0(Tn);class u8{constructor(r,a,o){this.rules=r,this.componentId=a,this.baseHash=Er(d8,a),this.baseStyle=o,Zn.registerId(a)}generateAndInjectStyles(r,a,o){let s=this.baseStyle?this.baseStyle.generateAndInjectStyles(r,a,o):"";{let i="";for(let h=0;h<this.rules.length;h++){const d=this.rules[h];if(typeof d=="string")i+=d;else if(d)if(J0(d)){const u=d(r);typeof u=="string"?i+=u:u!=null&&u!==!1&&(process.env.NODE_ENV==="production"||typeof u!="object"||Array.isArray(u)||ss(u)||Pr(u)||console.error(`${Es(d)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),i+=as(Ar(u,r,a,o)))}else i+=as(Ar(d,r,a,o))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const h=o.hash?o.hash+i:i;let d=this.dynamicNameCache.get(h);if(!d){if(d=Ss(Er(Er(this.baseHash,o.hash),i)>>>0),this.dynamicNameCache.size>=200){const u=this.dynamicNameCache.keys().next().value;u!==void 0&&this.dynamicNameCache.delete(u)}this.dynamicNameCache.set(h,d)}if(!a.hasNameForId(this.componentId,d)){const u=o(i,"."+d,void 0,this.componentId);a.insertRules(this.componentId,d,u)}s=ba(s,d)}}return s}}const p8=/&/g;function td(e,r){let a=0;for(;--r>=0&&e.charCodeAt(r)===92;)a++;return!(1&~a)}function no(e){const r=e.length;let a="",o=0,s=0,i=0,h=!1,d=!1;for(let u=0;u<r;u++){const f=e.charCodeAt(u);if(i!==0||h||f!==Cr||e.charCodeAt(u+1)!==42)if(h)f===42&&e.charCodeAt(u+1)===Cr&&(h=!1,u++);else if(f!==34&&f!==39||td(e,u)){if(i===0)if(f===123)s++;else if(f===125){if(s--,s<0){d=!0;let p=u+1;for(;p<r;){const m=e.charCodeAt(p);if(m===59||m===10)break;p++}p<r&&e.charCodeAt(p)===59&&p++,s=0,u=p-1,o=p;continue}s===0&&(a+=e.substring(o,u+1),o=u+1)}else f===59&&s===0&&(a+=e.substring(o,u+1),o=u+1)}else i===0?i=f:i===f&&(i=0);else h=!0,u++}return d||s!==0||i!==0?(o<r&&s===0&&i===0&&(a+=e.substring(o)),a):e}function rd(e,r){const a=r+" ",o=","+a;for(let s=0;s<e.length;s++){const i=e[s];if(i.type==="rule"){i.value=(a+i.value).replaceAll(",",o);const h=i.props,d=[];for(let u=0;u<h.length;u++)d[u]=a+h[u];i.props=d}Array.isArray(i.children)&&i.type!=="@keyframes"&&rd(i.children,r)}return e}function h8({options:e=ea,plugins:r=Cs}=ea){let a,o,s;const i=(g,x,b)=>b.startsWith(o)&&b.endsWith(o)&&b.replaceAll(o,"").length>0?`.${a}`:g,h=r.slice();h.push(g=>{g.type===Mn&&g.value.includes("&")&&(s||(s=new RegExp(`\\${o}\\b`,"g")),g.props[0]=g.props[0].replace(p8,o).replace(s,i))}),e.prefix&&h.push($h),h.push(Eh);let d=[];const u=Ah(h.concat(zh(g=>d.push(g)))),f=(g,x="",b="",v="&")=>{a=v,o=x,s=void 0;const w=(function(j){const S=j.indexOf("//")!==-1,C=j.indexOf("}")!==-1;if(!S&&!C)return j;if(!S)return no(j);const _=j.length;let k="",y=0,L=0,$=0,H=0,F=0,M=!1;for(;L<_;){const R=j.charCodeAt(L);if(R!==34&&R!==39||td(j,L))if($===0)if(R===Cr&&L+1<_&&j.charCodeAt(L+1)===42){for(L+=2;L+1<_&&(j.charCodeAt(L)!==42||j.charCodeAt(L+1)!==Cr);)L++;L+=2}else if(R!==40)if(R!==41)if(H>0)L++;else if(R===42&&L+1<_&&j.charCodeAt(L+1)===Cr)k+=j.substring(y,L),L+=2,y=L,M=!0;else if(R===Cr&&L+1<_&&j.charCodeAt(L+1)===Cr){for(k+=j.substring(y,L);L<_&&j.charCodeAt(L)!==10;)L++;y=L,M=!0}else R===123?F++:R===125&&F--,L++;else H>0&&H--,L++;else H++,L++;else L++;else $===0?$=R:$===R&&($=0),L++}return M?(y<_&&(k+=j.substring(y)),F===0?k:no(k)):F===0?j:no(j)})(g);let E=Ch(b||x?b+" "+x+" { "+w+" }":w);return e.namespace&&(E=rd(E,e.namespace)),d=[],jn(E,u),d},p=e;let m=rs;for(let g=0;g<r.length;g++)r[g].name||oa(15),m=Er(m,r[g].name);return p!=null&&p.namespace&&(m=Er(m,p.namespace)),p!=null&&p.prefix&&(m=Er(m,"p")),f.hash=m!==rs?m.toString():"",f}const f8=new Zn,is=h8(),ad=c.createContext({shouldForwardProp:void 0,styleSheet:f8,stylis:is,stylisPlugins:void 0});ad.Consumer;function m8(){return c.useContext(ad)}const nd=c.createContext(void 0);nd.Consumer;const Ci=Object.prototype.hasOwnProperty,oo={};function g8(e,r){const a=typeof e!="string"?"sc":D0(e);oo[a]=(oo[a]||0)+1;const o=a+"-"+U0(Tn+a+oo[a]);return r?r+"-"+o:o}let so;function v8(e,r,a){const o=q0(e),s=e,i=!wn(e),{attrs:h=Cs,componentId:d=g8(r.displayName,r.parentComponentId),displayName:u=Vh(e)}=r,f=r.displayName&&r.componentId?D0(r.displayName)+"-"+r.componentId:r.componentId||d,p=o&&s.attrs?s.attrs.concat(h).filter(Boolean):h;let{shouldForwardProp:m}=r;if(o&&s.shouldForwardProp){const v=s.shouldForwardProp;if(r.shouldForwardProp){const w=r.shouldForwardProp;m=(E,j)=>v(E,j)&&w(E,j)}else m=v}const g=new u8(a,f,o?s.componentStyle:void 0);function x(v,w){return(function(E,j,S){const{attrs:C,componentStyle:_,defaultProps:k,foldedComponentIds:y,styledComponentId:L,target:$}=E,H=c.useContext(nd),F=m8(),M=E.shouldForwardProp||F.shouldForwardProp;process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(L);const R=Zh(j,H,k)||ea;let A,z;{const I=c.useRef(null),T=I.current;if(T!==null&&T[1]===R&&T[2]===F.styleSheet&&T[3]===F.stylis&&T[7]===_&&(function(G,D,W){const Y=G,J=D;let ie=0;for(const he in J)if(Ci.call(J,he)&&(ie++,Y[he]!==J[he]))return!1;return ie===W})(T[0],j,T[4]))A=T[5],z=T[6];else{A=(function(D,W,Y){const J=Object.assign(Object.assign({},W),{className:void 0,theme:Y}),ie=D.length>1;for(let he=0;he<D.length;he++){const ee=D[he],xe=Fn(ee)?ee(ie?Object.assign({},J):J):ee;for(const te in xe)te==="className"?J.className=ba(J.className,xe[te]):te==="style"?J.style=Object.assign(Object.assign({},J.style),xe[te]):te in W&&W[te]===void 0||(J[te]=xe[te])}return"className"in W&&typeof W.className=="string"&&(J.className=ba(J.className,W.className)),J})(C,j,R),z=(function(D,W,Y,J){const ie=D.generateAndInjectStyles(W,Y,J);return process.env.NODE_ENV!=="production"&&c.useDebugValue&&c.useDebugValue(ie),ie})(_,A,F.styleSheet,F.stylis);let G=0;for(const D in j)Ci.call(j,D)&&G++;I.current=[j,R,F.styleSheet,F.stylis,G,A,z,_]}}process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(z);const Z=A.as||$,P=(function(I,T,G,D){const W={};for(const Y in I)I[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&I.theme===G||(Y==="forwardedAs"?W.as=I.forwardedAs:D&&!D(Y,T)||(W[Y]=I[Y],D||process.env.NODE_ENV!=="development"||uh(Y)||(so||(so=new Set)).has(Y)||!wn(T)||T.includes("-")||(so.add(Y),console.warn(`styled-components: it looks like an unknown prop "${Y}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return W})(A,Z,R,M);let O=ba(y,L);return z&&(O+=" "+z),A.className&&(O+=" "+A.className),P[wn(Z)&&Z.includes("-")?"class":"className"]=O,S&&(P.ref=S),c.createElement(Z,P)})(b,v,w)}x.displayName=u;let b=c.forwardRef(x);return b.attrs=p,b.componentStyle=g,b.displayName=u,b.shouldForwardProp=m,b.foldedComponentIds=o?ba(s.foldedComponentIds,s.styledComponentId):"",b.styledComponentId=f,b.target=o?s.target:e,Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(v){this._foldedDefaultProps=o?(function(w,...E){for(const j of E)ns(w,j,!0);return w})({},s.defaultProps,v):v}}),process.env.NODE_ENV!=="production"&&(Fh(u,f),b.warnTooManyClasses=((v,w)=>{let E={},j=!1;return S=>{!j&&(E[S]=!0,Object.keys(E).length>=200)&&(console.warn(`Over 200 classes were generated for component ${v}${w?` with the id of "${w}"`:""}.
|
|
87
87
|
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
88
88
|
Example:
|
|
89
89
|
const Component = styled.div.attrs(props => ({
|
|
@@ -92,11 +92,11 @@ Example:
|
|
|
92
92
|
},
|
|
93
93
|
}))\`width: 100%;\`
|
|
94
94
|
|
|
95
|
-
<Component />`),j=!0,E={})}})(u,f)),
|
|
95
|
+
<Component />`),j=!0,E={})}})(u,f)),As(b,()=>`.${b.styledComponentId}`),i&&G0(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}var x8=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function Si(e,r){const a=[e[0]];for(let o=0,s=r.length;o<s;o+=1)a.push(r[o],e[o+1]);return a}const Ei=e=>(Y0.add(e),e);function Qt(e,...r){if(Fn(e)||Pr(e))return Ei(Ar(Si(Cs,[e,...r])));const a=e;return r.length===0&&a.length===1&&typeof a[0]=="string"?Ar(a):Ei(Ar(Si(a,r)))}function cs(e,r,a=ea){if(!r)throw oa(1,r);const o=(s,...i)=>e(r,a,Qt(s,...i));return o.attrs=s=>cs(e,r,Object.assign(Object.assign({},a),{attrs:Array.prototype.concat(a.attrs,s).filter(Boolean)})),o.withConfig=s=>cs(e,r,Object.assign(Object.assign({},a),s)),o}const od=e=>cs(v8,e),l=od;x8.forEach(e=>{l[e]=od(e)});var sd;class w8{constructor(r,a){this[sd]=!0,this.inject=(o,s=is)=>{const i=this.getName(s);if(!o.hasNameForId(this.id,i)){const h=s(this.rules,i,"@keyframes");o.insertRules(this.id,i,h)}},this.name=r,this.id=V0+r,this.rules=a,wa(this.id),As(this,()=>{throw oa(12,String(this.name))})}getName(r=is){return r.hash?this.name+Ss(+r.hash>>>0):this.name}}function gt(e,...r){process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");const a=as(Qt(e,...r)),o=U0(a);return new w8(o,a)}sd=Q0;process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
96
96
|
Perhaps you're looking to import 'styled-components/native'?
|
|
97
97
|
Read more about this at https://styled-components.com/docs/basics#react-native`);const Da=`__sc-${Rr}__`;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Da]||(window[Da]=0),window[Da]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
98
98
|
|
|
99
|
-
See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Da]+=1);const b8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V88a20,20,0,0,0,16,19.6V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V107.6A20,20,0,0,0,244,88V64A20,20,0,0,0,224,44ZM36,68H220V84H36ZM52,188V108H204v80Zm112-52a12,12,0,0,1-12,12H104a12,12,0,0,1,0-24h48A12,12,0,0,1,164,136Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm-72,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm72-56H32V64H224V88Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V88a14,14,0,0,0,14,14h2v90a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V102h2a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM210,192a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V102H210ZM226,88a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM98,136a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V88a12,12,0,0,0,12,12h4v92a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V100h4a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM212,192a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V100H212ZM228,88a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM100,136a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,136Z"}))]]),y8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),j8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),n.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),_8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),n.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),k8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),n.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"}))]]),C8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.88,207.93l-160-176A12,12,0,1,0,39.12,48.07l14.8,16.29A83.58,83.58,0,0,0,44,104c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.68,186,19.75,19.75,0,0,0,48,196H84.19a44,44,0,0,0,87.62,0h1.79l25.52,28.07a12,12,0,0,0,17.76-16.14ZM68,104a59.84,59.84,0,0,1,3.52-20.29L151.78,172H54.68C63.52,154,68,131.14,68,104Zm60,108a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM88.89,42.35a12,12,0,0,1,6.37-15.73A84,84,0,0,1,212,104c0,18.68,2.38,34.93,7.07,48.28a12,12,0,1,1-22.64,8C190.83,144.32,188,125.4,188,104a60,60,0,0,0-83.38-55.28A12,12,0,0,1,88.89,42.35Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L58.82,63.8A79.59,79.59,0,0,0,48,104c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.8a40,40,0,0,0,78.4,0h15.44l19.44,21.38a8,8,0,1,0,11.84-10.76ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a63.65,63.65,0,0,1,6.26-27.62L168.09,184Zm166-4.73a8.13,8.13,0,0,1-2.93.55,8,8,0,0,1-7.44-5.08C196.35,156.19,192,129.75,192,104A64,64,0,0,0,96.43,48.31a8,8,0,0,1-7.9-13.91A80,80,0,0,1,208,104c0,35.35,8.05,58.59,10.52,64.88A8,8,0,0,1,214,179.25Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.84,192v0a1.85,1.85,0,0,1-3,.28L83.27,43.19a4,4,0,0,1,.8-6A79.55,79.55,0,0,1,129.17,24C173,24.66,207.8,61.1,208,104.92c.14,34.88,8.31,61.54,13.82,71A15.89,15.89,0,0,1,221.84,192Zm-7.92,18.62a8,8,0,0,1-11.85,10.76L182.62,200H167.16a40,40,0,0,1-78.41,0H47.91a15.78,15.78,0,0,1-13.59-7.59,16.42,16.42,0,0,1-.09-16.68c5.55-9.73,13.7-36.64,13.7-71.73A79.42,79.42,0,0,1,58.79,63.85L42,45.38A8,8,0,1,1,53.84,34.62ZM150.59,200H105.32a24,24,0,0,0,45.27,0Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L61.31,63.56A77.45,77.45,0,0,0,50,104c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198h42.5a38,38,0,0,0,75,0h18l20,22a6,6,0,0,0,8.88-8.08ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218ZM48,186a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.86,170,62,139.69,62,104a65.63,65.63,0,0,1,7.78-31.12L172.62,186Zm165.29-8.62a5.88,5.88,0,0,1-2.2.42,6,6,0,0,1-5.58-3.81c-7.2-18.31-11.49-44.48-11.49-70A66,66,0,0,0,95.45,46.57a6,6,0,1,1-5.93-10.43A78,78,0,0,1,206,104c0,35.7,8.16,59.24,10.66,65.61A6,6,0,0,1,213.27,177.38Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L58.82,63.8A79.59,79.59,0,0,0,48,104c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.8a40,40,0,0,0,78.4,0h15.44l19.44,21.38a8,8,0,1,0,11.84-10.76ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a63.65,63.65,0,0,1,6.26-27.62L168.09,184Zm166-4.73a8.13,8.13,0,0,1-2.93.55,8,8,0,0,1-7.44-5.08C196.35,156.19,192,129.75,192,104A64,64,0,0,0,96.43,48.31a8,8,0,0,1-7.9-13.91A80,80,0,0,1,208,104c0,35.35,8.05,58.59,10.52,64.88A8,8,0,0,1,214,179.25Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L63.8,63.32A75.52,75.52,0,0,0,52,104c0,36.13-8.58,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0h20.64L205,218.69a4,4,0,1,0,5.92-5.38ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220ZM48,188a3.89,3.89,0,0,1-3.43-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a67.58,67.58,0,0,1,9.4-34.51L177.14,188Zm164.55-12.48a3.94,3.94,0,0,1-1.46.28,4,4,0,0,1-3.72-2.54C200.24,155.17,196,129.28,196,104A68,68,0,0,0,94.46,44.83a4,4,0,1,1-4-6.95A76,76,0,0,1,204,104c0,36.05,8.26,59.89,10.79,66.34A4,4,0,0,1,212.53,175.52Z"}))]]),S8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,204H228V96a20,20,0,0,0-20-20H172V32a20,20,0,0,0-28.45-18.12l-104,48.54A20.06,20.06,0,0,0,28,80.55V204H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM204,100V204H172V100ZM52,83.09,148,38.3V204H52ZM132,112v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm-40,0v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm0,52v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Zm40,0v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,32V216H40V85.35a8,8,0,0,1,3.56-6.66l80-53.33A8,8,0,0,1,136,32Z",opacity:"0.2"}),n.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M239.73,208H224V96a16,16,0,0,0-16-16H164a4,4,0,0,0-4,4V208H144V32.41a16.43,16.43,0,0,0-6.16-13,16,16,0,0,0-18.72-.69L39.12,72A16,16,0,0,0,32,85.34V208H16.27A8.18,8.18,0,0,0,8,215.47,8,8,0,0,0,16,224H240a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,239.73,208ZM76,184a8,8,0,0,1-8.53,8A8.18,8.18,0,0,1,60,183.72V168.27A8.19,8.19,0,0,1,67.47,160,8,8,0,0,1,76,168Zm0-56a8,8,0,0,1-8.53,8A8.19,8.19,0,0,1,60,127.72V112.27A8.19,8.19,0,0,1,67.47,104,8,8,0,0,1,76,112Zm40,56a8,8,0,0,1-8.53,8,8.18,8.18,0,0,1-7.47-8.26V168.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Zm0-56a8,8,0,0,1-8.53,8,8.19,8.19,0,0,1-7.47-8.26V112.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,210H222V96a14,14,0,0,0-14-14H142V32a14,14,0,0,0-21.77-11.64l-80,53.33A14,14,0,0,0,34,85.34V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM208,94a2,2,0,0,1,2,2V210H142V94ZM46,85.34a2,2,0,0,1,.89-1.66l80-53.34A2,2,0,0,1,130,32V210H46ZM110,112v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm-32,0v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm0,56v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Zm32,0v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,212H220V96a12,12,0,0,0-12-12H140V32a12,12,0,0,0-18.66-10l-80,53.33a12,12,0,0,0-5.34,10V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM208,92a4,4,0,0,1,4,4V212H140V92ZM44,85.34A4,4,0,0,1,45.78,82l80-53.33A4,4,0,0,1,132,32V212H44ZM108,112v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm-32,0v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm0,56v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Zm32,0v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Z"}))]]),E8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"}))]]),A8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),n.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),z8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),n.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),$8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),n.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),M8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),n.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),L8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"}),n.createElement("path",{d:"M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"}))]]),R8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),n.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),P8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),T8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152.41,88.56l-89.6,88a12,12,0,0,1-16.82,0L7.59,138.85a12,12,0,0,1,16.82-17.13l30,29.46,81.19-79.74a12,12,0,0,1,16.82,17.12Zm96.15-17a12,12,0,0,0-17-.15L150.4,151.18l-7.88-7.74a12,12,0,0,0-16.82,17.12l16.29,16a12,12,0,0,0,16.82,0l89.6-88A12,12,0,0,0,248.56,71.59Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"}),n.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM72,168a8,8,0,0,1-5.66-2.34l-24-24a8,8,0,0,1,11.32-11.32L72,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-64,64A8,8,0,0,1,72,168Zm141.66-66.34-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L144,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M148.2,84.28l-89.6,88a6,6,0,0,1-8.4,0L11.8,134.57A6,6,0,1,1,20.2,126l34.2,33.58,85.4-83.87a6,6,0,1,1,8.4,8.56Zm96.08-8.48a6,6,0,0,0-8.48-.08l-85.4,83.87-20.23-19.87a6,6,0,1,0-8.41,8.56l24.44,24a6,6,0,0,0,8.4,0l89.6-88A6,6,0,0,0,244.28,75.8Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M146.8,82.85l-89.6,88a4,4,0,0,1-5.6,0L13.2,133.14a4,4,0,0,1,5.6-5.71l35.6,35,86.8-85.24a4,4,0,0,1,5.6,5.7Zm96-5.65a4,4,0,0,0-5.65,0l-86.8,85.24-21.63-21.24a4,4,0,1,0-5.61,5.7l24.44,24a4,4,0,0,0,5.6,0l89.6-88A4,4,0,0,0,242.85,77.2Z"}))]]),F8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]),Z8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),I8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),O8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,12H80A28,28,0,0,0,52,40V216a28,28,0,0,0,28,28h96a28,28,0,0,0,28-28V40A28,28,0,0,0,176,12ZM76,76H180V180H76Zm4-40h96a4,4,0,0,1,4,4V52H76V40A4,4,0,0,1,80,36Zm96,184H80a4,4,0,0,1-4-4V204H180v12A4,4,0,0,1,176,220Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,56V200H64V56Z",opacity:"0.2"}),n.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM72,64H184V192H72Zm8-32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM80,32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,18H80A22,22,0,0,0,58,40V216a22,22,0,0,0,22,22h96a22,22,0,0,0,22-22V40A22,22,0,0,0,176,18ZM70,62H186V194H70ZM80,30h96a10,10,0,0,1,10,10V50H70V40A10,10,0,0,1,80,30Zm96,196H80a10,10,0,0,1-10-10V206H186v10A10,10,0,0,1,176,226Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM72,64H184V192H72Zm8-32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,20H80A20,20,0,0,0,60,40V216a20,20,0,0,0,20,20h96a20,20,0,0,0,20-20V40A20,20,0,0,0,176,20ZM68,60H188V196H68ZM80,28h96a12,12,0,0,1,12,12V52H68V40A12,12,0,0,1,80,28Zm96,200H80a12,12,0,0,1-12-12V204H188v12A12,12,0,0,1,176,228Z"}))]]),H8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"}),n.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"}))]]),V8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),n.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),D8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),n.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"}))]]),N8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),U8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),B8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,128a224.48,224.48,0,0,1-26.37,105.54,12,12,0,1,1-21.16-11.32A200.33,200.33,0,0,0,136,128a8,8,0,0,0-16,0,12,12,0,0,1-24,0,32,32,0,0,1,64,0ZM128,56a12,12,0,1,0,0,24,48.05,48.05,0,0,1,48,48c0,7.62-.36,15.32-1.07,22.87A12,12,0,0,0,185.74,164c.38,0,.76,0,1.14,0a12,12,0,0,0,11.93-10.87c.79-8.3,1.18-16.76,1.18-25.13A72.08,72.08,0,0,0,128,56ZM96,92.23A12,12,0,0,0,80,74.35,72.1,72.1,0,0,0,56,128a120.11,120.11,0,0,1-15.12,58.37,12,12,0,0,0,21,11.69A144.14,144.14,0,0,0,80,128,48.08,48.08,0,0,1,96,92.23Zm10.1,64.1a12,12,0,0,0-14.46,8.9,158.61,158.61,0,0,1-18.88,45.86,12,12,0,0,0,20.5,12.48A182.86,182.86,0,0,0,115,170.79,12,12,0,0,0,106.1,156.33Zm76.73,24.07A12,12,0,0,0,168.19,189a241.5,241.5,0,0,1-8,24.87,12,12,0,0,0,6.91,15.49,11.76,11.76,0,0,0,4.29.8,12,12,0,0,0,11.21-7.71,260.2,260.2,0,0,0,8.79-27.37A12,12,0,0,0,182.83,180.4ZM128,16A112.12,112.12,0,0,0,16,127.44c0,.19,0,.38,0,.57a79.81,79.81,0,0,1-5,27.82,12,12,0,1,0,22.5,8.35A103.59,103.59,0,0,0,40,128.58c0-.19,0-.38,0-.57a88,88,0,0,1,176-.5c0,.16,0,.33,0,.5a282.12,282.12,0,0,1-6.74,61.38,12,12,0,0,0,9.09,14.33A11.84,11.84,0,0,0,221,204a12,12,0,0,0,11.7-9.38A305.87,305.87,0,0,0,240,128.55c0-.18,0-.36,0-.54A112.13,112.13,0,0,0,128,16Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M72,128a134.63,134.63,0,0,1-14.16,60.47,8,8,0,1,1-14.32-7.12A118.8,118.8,0,0,0,56,128,71.73,71.73,0,0,1,83,71.8,8,8,0,1,1,93,84.29,55.76,55.76,0,0,0,72,128Zm56-8a8,8,0,0,0-8,8,184.12,184.12,0,0,1-23,89.1,8,8,0,0,0,14,7.76A200.19,200.19,0,0,0,136,128,8,8,0,0,0,128,120Zm0-32a40,40,0,0,0-40,40,8,8,0,0,0,16,0,24,24,0,0,1,48,0,214.09,214.09,0,0,1-20.51,92A8,8,0,1,0,146,226.83,230,230,0,0,0,168,128,40,40,0,0,0,128,88Zm0-64A104.11,104.11,0,0,0,24,128a87.76,87.76,0,0,1-5,29.33,8,8,0,0,0,15.09,5.33A103.9,103.9,0,0,0,40,128a88,88,0,0,1,176,0,282.24,282.24,0,0,1-5.29,54.45,8,8,0,0,0,6.3,9.4,8.22,8.22,0,0,0,1.55.15,8,8,0,0,0,7.84-6.45A298.37,298.37,0,0,0,232,128,104.12,104.12,0,0,0,128,24ZM94.4,152.17A8,8,0,0,0,85,158.42a151,151,0,0,1-17.21,45.44,8,8,0,0,0,13.86,8,166.67,166.67,0,0,0,19-50.25A8,8,0,0,0,94.4,152.17ZM128,56a72.85,72.85,0,0,0-9,.56,8,8,0,0,0,2,15.87A56.08,56.08,0,0,1,184,128a252.12,252.12,0,0,1-1.92,31A8,8,0,0,0,189,168a8.39,8.39,0,0,0,1,.06,8,8,0,0,0,7.92-7,266.48,266.48,0,0,0,2-33A72.08,72.08,0,0,0,128,56Zm57.93,128.25a8,8,0,0,0-9.75,5.75c-1.46,5.69-3.15,11.4-5,17a8,8,0,0,0,5,10.13,7.88,7.88,0,0,0,2.55.42,8,8,0,0,0,7.58-5.46c2-5.92,3.79-12,5.35-18.05A8,8,0,0,0,185.94,184.26Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M126.42,24C70.73,24.85,25.21,70.09,24,125.81a103.53,103.53,0,0,0,13.52,53.54,4,4,0,0,0,7.1-.3,119.35,119.35,0,0,0,11.37-51A71.77,71.77,0,0,1,83,71.83a8,8,0,1,1,9.86,12.61A55.82,55.82,0,0,0,72,128.07a135.28,135.28,0,0,1-18.45,68.35,4,4,0,0,0,.61,4.85c2,2,4.09,4,6.25,5.82a4,4,0,0,0,6-1A151.18,151.18,0,0,0,85,158.49a8,8,0,1,1,15.68,3.19,167.33,167.33,0,0,1-21.07,53.64,4,4,0,0,0,1.6,5.63c2.47,1.25,5,2.41,7.57,3.47a4,4,0,0,0,5-1.61A183,183,0,0,0,120,128.28a8.16,8.16,0,0,1,7.44-8.21,8,8,0,0,1,8.56,8,198.94,198.94,0,0,1-25.21,97.16,4,4,0,0,0,2.95,5.92q4.55.63,9.21.86a4,4,0,0,0,3.67-2.1A214.88,214.88,0,0,0,152,128.8c.05-13.25-10.3-24.49-23.54-24.74A24,24,0,0,0,104,128a8.1,8.1,0,0,1-7.29,8,8,8,0,0,1-8.71-8,40,40,0,0,1,40.42-40c22,.23,39.68,19.17,39.57,41.16a231.37,231.37,0,0,1-20.52,94.57,4,4,0,0,0,4.62,5.51,103.49,103.49,0,0,0,10.26-3,4,4,0,0,0,2.35-2.22,243.76,243.76,0,0,0,11.48-34,8,8,0,1,1,15.5,4q-1.12,4.37-2.4,8.7a4,4,0,0,0,6.46,4.17A104,104,0,0,0,126.42,24ZM198,161.08a8,8,0,0,1-7.92,7,8.39,8.39,0,0,1-1-.06,8,8,0,0,1-6.95-8.93,252.57,252.57,0,0,0,1.92-31,56.08,56.08,0,0,0-56-56,56.78,56.78,0,0,0-7,.43,8,8,0,0,1-2-15.89,72.1,72.1,0,0,1,81,71.49A266.93,266.93,0,0,1,198,161.08Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M70,128a132.68,132.68,0,0,1-14,59.58,6,6,0,0,1-5.38,3.33,6,6,0,0,1-5.36-8.67A120.74,120.74,0,0,0,58,128,69.72,69.72,0,0,1,84.25,73.36a6,6,0,0,1,7.51,9.37A57.73,57.73,0,0,0,70,128Zm58-6a6,6,0,0,0-6,6,186.07,186.07,0,0,1-23.23,90.07,6,6,0,0,0,10.5,5.82A198.14,198.14,0,0,0,134,128,6,6,0,0,0,128,122Zm0-32a38,38,0,0,0-38,38,6,6,0,0,0,12,0,26,26,0,0,1,52,0,216.06,216.06,0,0,1-20.71,92.85A6,6,0,1,0,144.16,226,227.94,227.94,0,0,0,166,128,38,38,0,0,0,128,90Zm0-64A102.11,102.11,0,0,0,26,128a90,90,0,0,1-5.12,30,6,6,0,1,0,11.31,4A101.83,101.83,0,0,0,38,128a90,90,0,0,1,180,0,284.7,284.7,0,0,1-5.33,54.84,6,6,0,0,0,4.72,7.05,6.8,6.8,0,0,0,1.17.11,6,6,0,0,0,5.88-4.84A295.92,295.92,0,0,0,230,128,102.12,102.12,0,0,0,128,26ZM94,154.13a6,6,0,0,0-7.07,4.69,152.82,152.82,0,0,1-17.44,46,6,6,0,0,0,10.4,6,164.77,164.77,0,0,0,18.8-49.65A6,6,0,0,0,94,154.13ZM128,58a70.76,70.76,0,0,0-8.75.54,6,6,0,1,0,1.49,11.91A58,58,0,0,1,186,128a252.27,252.27,0,0,1-1.94,31.26,6,6,0,0,0,5.21,6.69,6.59,6.59,0,0,0,.75,0,6,6,0,0,0,5.95-5.26A266.46,266.46,0,0,0,198,128,70.08,70.08,0,0,0,128,58ZM185.44,186.2a6,6,0,0,0-7.31,4.31c-1.47,5.74-3.18,11.49-5.06,17.09a6,6,0,0,0,11.38,3.82c2-5.88,3.75-11.9,5.3-17.92A6,6,0,0,0,185.44,186.2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M72,128a134.63,134.63,0,0,1-14.16,60.47,8,8,0,1,1-14.32-7.12A118.8,118.8,0,0,0,56,128,71.73,71.73,0,0,1,83,71.8,8,8,0,1,1,93,84.29,55.76,55.76,0,0,0,72,128Zm56-8a8,8,0,0,0-8,8,184.12,184.12,0,0,1-23,89.1,8,8,0,0,0,14,7.76A200.19,200.19,0,0,0,136,128,8,8,0,0,0,128,120Zm0-32a40,40,0,0,0-40,40,8,8,0,0,0,16,0,24,24,0,0,1,48,0,214.09,214.09,0,0,1-20.51,92A8,8,0,1,0,146,226.83,230,230,0,0,0,168,128,40,40,0,0,0,128,88Zm0-64A104.11,104.11,0,0,0,24,128a87.76,87.76,0,0,1-5,29.33,8,8,0,0,0,15.09,5.33A103.9,103.9,0,0,0,40,128a88,88,0,0,1,176,0,282.24,282.24,0,0,1-5.29,54.45,8,8,0,0,0,6.3,9.4,8.22,8.22,0,0,0,1.55.15,8,8,0,0,0,7.84-6.45A298.37,298.37,0,0,0,232,128,104.12,104.12,0,0,0,128,24ZM94.4,152.17A8,8,0,0,0,85,158.42a151,151,0,0,1-17.21,45.44,8,8,0,0,0,13.86,8,166.67,166.67,0,0,0,19-50.25A8,8,0,0,0,94.4,152.17ZM128,56a72.85,72.85,0,0,0-9,.56,8,8,0,0,0,2,15.87A56.08,56.08,0,0,1,184,128a252.12,252.12,0,0,1-1.92,31A8,8,0,0,0,189,168a8.39,8.39,0,0,0,1,.06,8,8,0,0,0,7.92-7,266.48,266.48,0,0,0,2-33A72.08,72.08,0,0,0,128,56Zm57.93,128.25a8,8,0,0,0-9.75,5.75c-1.46,5.69-3.15,11.4-5,17a8,8,0,0,0,5,10.13,7.88,7.88,0,0,0,2.55.42,8,8,0,0,0,7.58-5.46c2-5.92,3.79-12,5.35-18.05A8,8,0,0,0,185.94,184.26Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M68,128A130.71,130.71,0,0,1,54.27,186.7a4,4,0,0,1-3.58,2.22,3.91,3.91,0,0,1-1.78-.42,4,4,0,0,1-1.8-5.36A122.71,122.71,0,0,0,60,128,67.74,67.74,0,0,1,85.5,74.92a4,4,0,0,1,5,6.25A59.74,59.74,0,0,0,68,128Zm60-4a4,4,0,0,0-4,4,188.1,188.1,0,0,1-23.48,91,4,4,0,0,0,7,3.88A196.22,196.22,0,0,0,132,128,4,4,0,0,0,128,124Zm0-32a36,36,0,0,0-36,36,4,4,0,0,0,8,0,28,28,0,0,1,56,0,218,218,0,0,1-20.9,93.7,4,4,0,1,0,7.24,3.41A226,226,0,0,0,164,128,36,36,0,0,0,128,92Zm0-64A100.11,100.11,0,0,0,28,128a91.66,91.66,0,0,1-5.24,30.67,4,4,0,1,0,7.54,2.66A99.66,99.66,0,0,0,36,128a92,92,0,0,1,184,0,286.37,286.37,0,0,1-5.37,55.23,4,4,0,0,0,3.15,4.69,4.13,4.13,0,0,0,.78.08,4,4,0,0,0,3.92-3.23A294.25,294.25,0,0,0,228,128,100.11,100.11,0,0,0,128,28ZM93.6,156.09a4,4,0,0,0-4.71,3.12,155,155,0,0,1-17.66,46.64,4,4,0,0,0,6.93,4,163.13,163.13,0,0,0,18.57-49A4,4,0,0,0,93.6,156.09ZM128,60a68.79,68.79,0,0,0-8.5.53,4,4,0,0,0,1,7.93A62.57,62.57,0,0,1,128,68a60.07,60.07,0,0,1,60,60,256.15,256.15,0,0,1-1.95,31.5,4,4,0,0,0,3.47,4.47l.5,0a4,4,0,0,0,4-3.51A264.37,264.37,0,0,0,196,128,68.08,68.08,0,0,0,128,60Zm56.93,128.12a4,4,0,0,0-4.87,2.88c-1.49,5.78-3.21,11.58-5.1,17.23a4,4,0,1,0,7.58,2.54c2-5.83,3.73-11.81,5.27-17.77A4,4,0,0,0,184.94,188.13Z"}))]]),W8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),G8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),q8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,84H180.2l7.61-41.85a12,12,0,0,0-23.62-4.3L155.8,84H116.2l7.61-41.85a12,12,0,1,0-23.62-4.3L91.8,84H48a12,12,0,0,0,0,24H87.44l-7.27,40H32a12,12,0,0,0,0,24H75.8l-7.61,41.85a12,12,0,0,0,9.66,14A11.43,11.43,0,0,0,80,228a12,12,0,0,0,11.8-9.86L100.2,172h39.6l-7.61,41.85a12,12,0,0,0,9.66,14,11.43,11.43,0,0,0,2.16.2,12,12,0,0,0,11.8-9.86L164.2,172H208a12,12,0,0,0,0-24H168.56l7.27-40H224a12,12,0,0,0,0-24Zm-79.83,64H104.56l7.27-40h39.61Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M165.82,96l-11.64,64h-64l11.64-64Z",opacity:"0.2"}),n.createElement("path",{d:"M224,88H175.4l8.47-46.57a8,8,0,0,0-15.74-2.86l-9,49.43H111.4l8.47-46.57a8,8,0,0,0-15.74-2.86L95.14,88H48a8,8,0,0,0,0,16H92.23L83.5,152H32a8,8,0,0,0,0,16H80.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,80,224a8,8,0,0,0,7.86-6.57l9-49.43H144.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,144,224a8,8,0,0,0,7.86-6.57l9-49.43H208a8,8,0,0,0,0-16H163.77l8.73-48H224a8,8,0,0,0,0-16Zm-76.5,64H99.77l8.73-48h47.73Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M116.25,112h31.5l-8,32h-31.5ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Zm-16,56a8,8,0,0,0-8-8H168.25l7.51-30.06a8,8,0,0,0-15.52-3.88L151.75,96h-31.5l7.51-30.06a8,8,0,0,0-15.52-3.88L103.75,96H64a8,8,0,0,0,0,16H99.75l-8,32H56a8,8,0,0,0,0,16H87.75l-7.51,30.06a8,8,0,0,0,5.82,9.7,8.13,8.13,0,0,0,2,.24,8,8,0,0,0,7.75-6.06L104.25,160h31.5l-7.51,30.06a8,8,0,0,0,5.82,9.7A8.13,8.13,0,0,0,136,200a8,8,0,0,0,7.75-6.06L152.25,160H192a8,8,0,0,0,0-16H156.25l8-32H200A8,8,0,0,0,208,104Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,90H173l8.89-48.93a6,6,0,1,0-11.8-2.14L160.81,90H109l8.89-48.93a6,6,0,0,0-11.8-2.14L96.81,90H48a6,6,0,0,0,0,12H94.63l-9.46,52H32a6,6,0,0,0,0,12H83L74.1,214.93a6,6,0,0,0,4.83,7A5.64,5.64,0,0,0,80,222a6,6,0,0,0,5.89-4.93L95.19,166H147l-8.89,48.93a6,6,0,0,0,4.83,7,5.64,5.64,0,0,0,1.08.1,6,6,0,0,0,5.89-4.93L159.19,166H208a6,6,0,0,0,0-12H161.37l9.46-52H224a6,6,0,0,0,0-12Zm-74.83,64H97.37l9.46-52h51.8Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,88H175.4l8.47-46.57a8,8,0,0,0-15.74-2.86l-9,49.43H111.4l8.47-46.57a8,8,0,0,0-15.74-2.86L95.14,88H48a8,8,0,0,0,0,16H92.23L83.5,152H32a8,8,0,0,0,0,16H80.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,80,224a8,8,0,0,0,7.86-6.57l9-49.43H144.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,144,224a8,8,0,0,0,7.86-6.57l9-49.43H208a8,8,0,0,0,0-16H163.77l8.73-48H224a8,8,0,0,0,0-16Zm-76.5,64H99.77l8.73-48h47.73Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,92H170.61l9.33-51.28a4,4,0,1,0-7.88-1.44L162.48,92H106.61l9.33-51.28a4,4,0,1,0-7.88-1.44L98.48,92H48a4,4,0,0,0,0,8H97L86.84,156H32a4,4,0,0,0,0,8H85.39l-9.33,51.28a4,4,0,0,0,3.22,4.65A3.65,3.65,0,0,0,80,220a4,4,0,0,0,3.94-3.29L93.52,164h55.87l-9.33,51.28a4,4,0,0,0,3.22,4.65,3.65,3.65,0,0,0,.72.07,4,4,0,0,0,3.94-3.29L157.52,164H208a4,4,0,0,0,0-8H159l10.19-56H224a4,4,0,0,0,0-8Zm-73.16,64H95l10.19-56H161Z"}))]]),K8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"}),n.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"}))]]),Y8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),Q8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"}),n.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"}))]]),J8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z",opacity:"0.2"}),n.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z"}))]]),X8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),n.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),ef=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),n.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),tf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),rf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,154.8l-47.09-21.11-.18-.08a19.94,19.94,0,0,0-19,1.75,13.08,13.08,0,0,0-1.12.84l-22.31,19c-13-7.05-26.43-20.37-33.49-33.21l19.06-22.66a11.76,11.76,0,0,0,.85-1.15,20,20,0,0,0,1.66-18.83,1.42,1.42,0,0,1-.08-.18L101.2,32A20.06,20.06,0,0,0,80.42,20.15,60.27,60.27,0,0,0,28,80c0,81.61,66.39,148,148,148a60.27,60.27,0,0,0,59.85-52.42A20.06,20.06,0,0,0,224,154.8ZM176,204A124.15,124.15,0,0,1,52,80,36.29,36.29,0,0,1,80.48,44.46l18.82,42L80.14,109.28a12,12,0,0,0-.86,1.16A20,20,0,0,0,78,130.08c9.42,19.28,28.83,38.56,48.31,48A20,20,0,0,0,146,176.63a11.63,11.63,0,0,0,1.11-.85l22.43-19.07,42,18.81A36.29,36.29,0,0,1,176,204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.94,174.08A48.33,48.33,0,0,1,176,216,136,136,0,0,1,40,80,48.33,48.33,0,0,1,81.92,32.06a8,8,0,0,1,8.3,4.8l21.13,47.2a8,8,0,0,1-.66,7.53L89.32,117a7.93,7.93,0,0,0-.54,7.81c8.27,16.93,25.77,34.22,42.75,42.41a7.92,7.92,0,0,0,7.83-.59l25-21.3a8,8,0,0,1,7.59-.69l47.16,21.13A8,8,0,0,1,223.94,174.08Z",opacity:"0.2"}),n.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.59,160.3l-47.24-21.17a14,14,0,0,0-13.28,1.22,4.81,4.81,0,0,0-.56.42l-24.69,21a1.88,1.88,0,0,1-1.68.06c-15.87-7.66-32.31-24-40-39.65a1.91,1.91,0,0,1,0-1.68l21.07-25a6.13,6.13,0,0,0,.42-.58,14,14,0,0,0,1.12-13.27L95.73,34.49a14,14,0,0,0-14.56-8.38A54.24,54.24,0,0,0,34,80c0,78.3,63.7,142,142,142a54.25,54.25,0,0,0,53.89-47.17A14,14,0,0,0,221.59,160.3ZM176,210C104.32,210,46,151.68,46,80A42.23,42.23,0,0,1,82.67,38h.23a2,2,0,0,1,1.84,1.31l21.1,47.11a2,2,0,0,1,0,1.67L84.73,113.15a4.73,4.73,0,0,0-.43.57,14,14,0,0,0-.91,13.73c8.87,18.16,27.17,36.32,45.53,45.19a14,14,0,0,0,13.77-1c.19-.13.38-.27.56-.42l24.68-21a1.92,1.92,0,0,1,1.6-.1l47.25,21.17a2,2,0,0,1,1.21,2A42.24,42.24,0,0,1,176,210Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220.78,162.13,173.56,141A12,12,0,0,0,162.18,142a3.37,3.37,0,0,0-.38.28L137,163.42a3.93,3.93,0,0,1-3.7.21c-16.24-7.84-33.05-24.52-40.89-40.57a3.9,3.9,0,0,1,.18-3.69l21.2-25.21c.1-.12.19-.25.28-.38a12,12,0,0,0,1-11.36L93.9,35.28a12,12,0,0,0-12.48-7.19A52.25,52.25,0,0,0,36,80c0,77.2,62.8,140,140,140a52.25,52.25,0,0,0,51.91-45.42A12,12,0,0,0,220.78,162.13ZM220,173.58A44.23,44.23,0,0,1,176,212C103.22,212,44,152.78,44,80A44.23,44.23,0,0,1,82.42,36a3.87,3.87,0,0,1,.48,0,4,4,0,0,1,3.67,2.49l21.11,47.14a4,4,0,0,1-.23,3.6l-21.19,25.2c-.1.13-.2.25-.29.39a12,12,0,0,0-.78,11.75c8.69,17.79,26.61,35.58,44.6,44.27a12,12,0,0,0,11.79-.87l.37-.28,24.83-21.12a3.93,3.93,0,0,1,3.57-.27l47.21,21.16A4,4,0,0,1,220,173.58Z"}))]]),af=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),nf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244,128a12,12,0,0,1-12,12H207.42l-36.69,73.37A12,12,0,0,1,160,220h-.6a12,12,0,0,1-10.61-7.72L95,71.15,66.92,133A12,12,0,0,1,56,140H24a12,12,0,0,1,0-24H48.27L85.08,35a12,12,0,0,1,22.13.7l54.28,142.46,27.78-55.56A12,12,0,0,1,200,116h32A12,12,0,0,1,244,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),n.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-8,96H188.64L159,188a8,8,0,0,1-6.95,4h-.46a8,8,0,0,1-6.89-4.84L103,89.92,79,132a8,8,0,0,1-7,4H48a8,8,0,0,1,0-16H67.36L97.05,68a8,8,0,0,1,14.3.82L153,166.08l24-42.05a8,8,0,0,1,6.95-4h24a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238,128a6,6,0,0,1-6,6H203.71l-38.34,76.68A6,6,0,0,1,160,214h-.3a6,6,0,0,1-5.31-3.85L95.51,55.57,61.46,130.48A6,6,0,0,1,56,134H24a6,6,0,0,1,0-12H52.14l38.4-84.48a6,6,0,0,1,11.07.34L160.74,193.1l33.89-67.78A6,6,0,0,1,200,122h32A6,6,0,0,1,238,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,128a4,4,0,0,1-4,4H202.47l-38.89,77.79A4,4,0,0,1,160,212h-.2a4,4,0,0,1-3.54-2.58l-60.59-159-36,79.28A4,4,0,0,1,56,132H24a4,4,0,0,1,0-8H53.42L92.36,38.35a4,4,0,0,1,7.38.23L160.5,198.06l35.92-71.85A4,4,0,0,1,200,124h32A4,4,0,0,1,236,128Z"}))]]),of=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),n.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),sf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"}),n.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"}))]]),cf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),n.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),lf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),n.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),df=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),n.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),uf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),pf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164,56a12,12,0,0,1,12-12h12V32a12,12,0,0,1,24,0V44h12a12,12,0,0,1,0,24H212V80a12,12,0,0,1-24,0V68H176A12,12,0,0,1,164,56Zm70.51,54A107.88,107.88,0,1,1,146,21.49a12,12,0,0,1-4,23.67A85,85,0,0,0,128,44,83.94,83.94,0,0,0,62.05,179.94a83.48,83.48,0,0,1,29-23.42,52,52,0,1,1,74,0,83.36,83.36,0,0,1,29,23.42A83.52,83.52,0,0,0,212,128a85.2,85.2,0,0,0-1.16-14,12,12,0,0,1,23.67-4ZM128,148a28,28,0,1,0-28-28A28,28,0,0,0,128,148Zm0,64a83.53,83.53,0,0,0,48.43-15.43,60,60,0,0,0-96.86,0A83.53,83.53,0,0,0,128,212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h16V32a8,8,0,0,1,16,0V48h16a8,8,0,0,1,0,16H208V80a8,8,0,0,1-16,0V64H176A8,8,0,0,1,168,56Zm62.56,54.68a103.92,103.92,0,1,1-85.24-85.24,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A87.62,87.62,0,0,0,216,128a88.85,88.85,0,0,0-1.22-14.68,8,8,0,1,1,15.78-2.64ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,76a44,44,0,1,1-44,44A44,44,0,0,1,128,76Zm48-12h16V80a8,8,0,0,0,16,0V64h16a8,8,0,0,0,0-16H208V32a8,8,0,0,0-16,0V48H176a8,8,0,0,0,0,16Zm45.35,40.11a8,8,0,0,0-6.57,9.21A88.85,88.85,0,0,1,216,128a87.62,87.62,0,0,1-22.24,58.41A79.86,79.86,0,0,0,172,165.1a4,4,0,0,0-4.84.32,59.81,59.81,0,0,1-78.27,0A4,4,0,0,0,84,165.1a79.71,79.71,0,0,0-21.79,21.31A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.92,103.92,0,1,0,85.24,85.24A8,8,0,0,0,221.35,104.11Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M170,56a6,6,0,0,1,6-6h18V32a6,6,0,0,1,12,0V50h18a6,6,0,0,1,0,12H206V80a6,6,0,0,1-12,0V62H176A6,6,0,0,1,170,56Zm58.59,55A101.9,101.9,0,1,1,145,27.41a6,6,0,1,1-2,11.83A91.66,91.66,0,0,0,128,38,89.95,89.95,0,0,0,62.49,189.64a77.53,77.53,0,0,1,40-31.38,46,46,0,1,1,51,0,77.53,77.53,0,0,1,40,31.38A89.65,89.65,0,0,0,218,128a91.76,91.76,0,0,0-1.24-15,6,6,0,1,1,11.83-2ZM128,154a34,34,0,1,0-34-34A34,34,0,0,0,128,154Zm0,64A89.58,89.58,0,0,0,184.56,198a66,66,0,0,0-113.12,0A89.58,89.58,0,0,0,128,218Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h16V32a8,8,0,0,1,16,0V48h16a8,8,0,0,1,0,16H208V80a8,8,0,0,1-16,0V64H176A8,8,0,0,1,168,56Zm62.56,54.68a103.92,103.92,0,1,1-85.24-85.24,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A87.62,87.62,0,0,0,216,128a88.85,88.85,0,0,0-1.22-14.68,8,8,0,1,1,15.78-2.64ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172,56a4,4,0,0,1,4-4h20V32a4,4,0,0,1,8,0V52h20a4,4,0,0,1,0,8H204V80a4,4,0,0,1-8,0V60H176A4,4,0,0,1,172,56Zm54.62,55.34a99.89,99.89,0,1,1-82-82,4,4,0,0,1-1.32,7.89A93.4,93.4,0,0,0,128,36,92,92,0,0,0,62.83,192.87a75.61,75.61,0,0,1,44.51-34,44,44,0,1,1,41.32,0,75.61,75.61,0,0,1,44.51,34A91.69,91.69,0,0,0,220,128a93.58,93.58,0,0,0-1.27-15.34,4,4,0,0,1,7.89-1.32ZM128,156a36,36,0,1,0-36-36A36,36,0,0,0,128,156Zm0,64a91.61,91.61,0,0,0,59.14-21.58,68,68,0,0,0-118.27,0A91.56,91.56,0,0,0,128,220Z"}))]]),hf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),n.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z"}))]]),ff=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),n.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),mf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),gf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),n.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),vf=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ve=n.forwardRef((e,r)=>{const{alt:a,color:o,size:s,weight:i,mirrored:h,children:d,weights:u,...f}=e,{color:p="currentColor",size:m,weight:g="regular",mirrored:x=!1,...b}=n.useContext(vf);return n.createElement("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",width:s??m,height:s??m,fill:o??p,viewBox:"0 0 256 256",transform:h||x?"scale(-1, 1)":void 0,...b,...f},!!a&&n.createElement("title",null,a),d,u.get(i??g))});ve.displayName="IconBase";const id=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:b8}));id.displayName="ArchiveIcon";const cd=id,ld=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:y8}));ld.displayName="ArrowCounterClockwiseIcon";const xf=ld,dd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:j8}));dd.displayName="ArrowSquareOutIcon";const wf=dd,ud=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:_8}));ud.displayName="ArrowsLeftRightIcon";const pd=ud,hd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:k8}));hd.displayName="BellIcon";const bf=hd,fd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:C8}));fd.displayName="BellSlashIcon";const Ei=fd,md=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:S8}));md.displayName="BuildingsIcon";const gd=md,vd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:E8}));vd.displayName="CameraIcon";const As=vd,xd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:A8}));xd.displayName="CaretDownIcon";const ur=xd,wd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:z8}));wd.displayName="CaretLeftIcon";const sa=wd,bd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:$8}));bd.displayName="CaretRightIcon";const Ea=bd,yd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:M8}));yd.displayName="CaretUpIcon";const jd=yd,_d=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:L8}));_d.displayName="CaretUpDownIcon";const yf=_d,kd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:R8}));kd.displayName="CheckIcon";const ct=kd,Cd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:P8}));Cd.displayName="CheckCircleIcon";const jf=Cd,Sd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:T8}));Sd.displayName="ChecksIcon";const _f=Sd,Ed=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:F8}));Ed.displayName="CircleIcon";const kf=Ed,Ad=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:Z8}));Ad.displayName="CircleNotchIcon";const yt=Ad,zd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:I8}));zd.displayName="CopyIcon";const Qr=zd,$d=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:O8}));$d.displayName="DeviceMobileIcon";const zs=$d,Md=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:H8}));Md.displayName="DotsThreeIcon";const Cf=Md,Ld=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:V8}));Ld.displayName="DownloadSimpleIcon";const Rd=Ld,Pd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:D8}));Pd.displayName="EnvelopeSimpleIcon";const In=Pd,Td=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:N8}));Td.displayName="EyeIcon";const io=Td,Fd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:U8}));Fd.displayName="EyeSlashIcon";const co=Fd,Zd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:B8}));Zd.displayName="FingerprintIcon";const cs=Zd,Id=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:W8}));Id.displayName="GearSixIcon";const zr=Id,Od=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:G8}));Od.displayName="GlobeIcon";const Sf=Od,Hd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:q8}));Hd.displayName="HashIcon";const Vd=Hd,Dd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:K8}));Dd.displayName="KeyIcon";const Ef=Dd,Nd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:Y8}));Nd.displayName="LightningIcon";const Af=Nd,Ud=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:Q8}));Ud.displayName="LinkIcon";const zf=Ud,Bd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:J8}));Bd.displayName="LockIcon";const Ai=Bd,Wd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:X8}));Wd.displayName="MagnifyingGlassIcon";const $f=Wd,Gd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:ef}));Gd.displayName="PaperPlaneTiltIcon";const qd=Gd,Kd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:tf}));Kd.displayName="PencilSimpleIcon";const ls=Kd,Yd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:rf}));Yd.displayName="PhoneIcon";const Mf=Yd,Qd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:af}));Qd.displayName="PlusIcon";const kt=Qd,Jd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:nf}));Jd.displayName="PulseIcon";const Lf=Jd,Xd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:of}));Xd.displayName="ShieldIcon";const Rt=Xd,e1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:sf}));e1.displayName="SignOutIcon";const $r=e1,t1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:cf}));t1.displayName="StarIcon";const Rf=t1,r1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:lf}));r1.displayName="TrashIcon";const $s=r1,a1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:df}));a1.displayName="UserIcon";const Aa=a1,n1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:uf}));n1.displayName="UserCircleIcon";const Pf=n1,o1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:pf}));o1.displayName="UserCirclePlusIcon";const Tf=o1,s1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:hf}));s1.displayName="UsersIcon";const kn=s1,i1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:ff}));i1.displayName="WarningIcon";const ia=i1,c1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:mf}));c1.displayName="WarningCircleIcon";const Mr=c1,l1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:gf}));l1.displayName="XIcon";const Ms=l1,Ff=l.div`
|
|
99
|
+
See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Da]+=1);const b8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V88a20,20,0,0,0,16,19.6V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V107.6A20,20,0,0,0,244,88V64A20,20,0,0,0,224,44ZM36,68H220V84H36ZM52,188V108H204v80Zm112-52a12,12,0,0,1-12,12H104a12,12,0,0,1,0-24h48A12,12,0,0,1,164,136Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm-72,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm72-56H32V64H224V88Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V88a14,14,0,0,0,14,14h2v90a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V102h2a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM210,192a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V102H210ZM226,88a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM98,136a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V88a12,12,0,0,0,12,12h4v92a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V100h4a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM212,192a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V100H212ZM228,88a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM100,136a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,136Z"}))]]),y8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),j8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),n.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),_8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80v96H48V80Z",opacity:"0.2"}),n.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"}))]]),k8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),n.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"}))]]),C8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.88,207.93l-160-176A12,12,0,1,0,39.12,48.07l14.8,16.29A83.58,83.58,0,0,0,44,104c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.68,186,19.75,19.75,0,0,0,48,196H84.19a44,44,0,0,0,87.62,0h1.79l25.52,28.07a12,12,0,0,0,17.76-16.14ZM68,104a59.84,59.84,0,0,1,3.52-20.29L151.78,172H54.68C63.52,154,68,131.14,68,104Zm60,108a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM88.89,42.35a12,12,0,0,1,6.37-15.73A84,84,0,0,1,212,104c0,18.68,2.38,34.93,7.07,48.28a12,12,0,1,1-22.64,8C190.83,144.32,188,125.4,188,104a60,60,0,0,0-83.38-55.28A12,12,0,0,1,88.89,42.35Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L58.82,63.8A79.59,79.59,0,0,0,48,104c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.8a40,40,0,0,0,78.4,0h15.44l19.44,21.38a8,8,0,1,0,11.84-10.76ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a63.65,63.65,0,0,1,6.26-27.62L168.09,184Zm166-4.73a8.13,8.13,0,0,1-2.93.55,8,8,0,0,1-7.44-5.08C196.35,156.19,192,129.75,192,104A64,64,0,0,0,96.43,48.31a8,8,0,0,1-7.9-13.91A80,80,0,0,1,208,104c0,35.35,8.05,58.59,10.52,64.88A8,8,0,0,1,214,179.25Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.84,192v0a1.85,1.85,0,0,1-3,.28L83.27,43.19a4,4,0,0,1,.8-6A79.55,79.55,0,0,1,129.17,24C173,24.66,207.8,61.1,208,104.92c.14,34.88,8.31,61.54,13.82,71A15.89,15.89,0,0,1,221.84,192Zm-7.92,18.62a8,8,0,0,1-11.85,10.76L182.62,200H167.16a40,40,0,0,1-78.41,0H47.91a15.78,15.78,0,0,1-13.59-7.59,16.42,16.42,0,0,1-.09-16.68c5.55-9.73,13.7-36.64,13.7-71.73A79.42,79.42,0,0,1,58.79,63.85L42,45.38A8,8,0,1,1,53.84,34.62ZM150.59,200H105.32a24,24,0,0,0,45.27,0Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L61.31,63.56A77.45,77.45,0,0,0,50,104c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198h42.5a38,38,0,0,0,75,0h18l20,22a6,6,0,0,0,8.88-8.08ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218ZM48,186a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.86,170,62,139.69,62,104a65.63,65.63,0,0,1,7.78-31.12L172.62,186Zm165.29-8.62a5.88,5.88,0,0,1-2.2.42,6,6,0,0,1-5.58-3.81c-7.2-18.31-11.49-44.48-11.49-70A66,66,0,0,0,95.45,46.57a6,6,0,1,1-5.93-10.43A78,78,0,0,1,206,104c0,35.7,8.16,59.24,10.66,65.61A6,6,0,0,1,213.27,177.38Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L58.82,63.8A79.59,79.59,0,0,0,48,104c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.8a40,40,0,0,0,78.4,0h15.44l19.44,21.38a8,8,0,1,0,11.84-10.76ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a63.65,63.65,0,0,1,6.26-27.62L168.09,184Zm166-4.73a8.13,8.13,0,0,1-2.93.55,8,8,0,0,1-7.44-5.08C196.35,156.19,192,129.75,192,104A64,64,0,0,0,96.43,48.31a8,8,0,0,1-7.9-13.91A80,80,0,0,1,208,104c0,35.35,8.05,58.59,10.52,64.88A8,8,0,0,1,214,179.25Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L63.8,63.32A75.52,75.52,0,0,0,52,104c0,36.13-8.58,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0h20.64L205,218.69a4,4,0,1,0,5.92-5.38ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220ZM48,188a3.89,3.89,0,0,1-3.43-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a67.58,67.58,0,0,1,9.4-34.51L177.14,188Zm164.55-12.48a3.94,3.94,0,0,1-1.46.28,4,4,0,0,1-3.72-2.54C200.24,155.17,196,129.28,196,104A68,68,0,0,0,94.46,44.83a4,4,0,1,1-4-6.95A76,76,0,0,1,204,104c0,36.05,8.26,59.89,10.79,66.34A4,4,0,0,1,212.53,175.52Z"}))]]),S8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,204H228V96a20,20,0,0,0-20-20H172V32a20,20,0,0,0-28.45-18.12l-104,48.54A20.06,20.06,0,0,0,28,80.55V204H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM204,100V204H172V100ZM52,83.09,148,38.3V204H52ZM132,112v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm-40,0v12a12,12,0,0,1-24,0V112a12,12,0,0,1,24,0Zm0,52v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Zm40,0v12a12,12,0,0,1-24,0V164a12,12,0,0,1,24,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,32V216H40V85.35a8,8,0,0,1,3.56-6.66l80-53.33A8,8,0,0,1,136,32Z",opacity:"0.2"}),n.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M239.73,208H224V96a16,16,0,0,0-16-16H164a4,4,0,0,0-4,4V208H144V32.41a16.43,16.43,0,0,0-6.16-13,16,16,0,0,0-18.72-.69L39.12,72A16,16,0,0,0,32,85.34V208H16.27A8.18,8.18,0,0,0,8,215.47,8,8,0,0,0,16,224H240a8,8,0,0,0,8-8.53A8.18,8.18,0,0,0,239.73,208ZM76,184a8,8,0,0,1-8.53,8A8.18,8.18,0,0,1,60,183.72V168.27A8.19,8.19,0,0,1,67.47,160,8,8,0,0,1,76,168Zm0-56a8,8,0,0,1-8.53,8A8.19,8.19,0,0,1,60,127.72V112.27A8.19,8.19,0,0,1,67.47,104,8,8,0,0,1,76,112Zm40,56a8,8,0,0,1-8.53,8,8.18,8.18,0,0,1-7.47-8.26V168.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Zm0-56a8,8,0,0,1-8.53,8,8.19,8.19,0,0,1-7.47-8.26V112.27a8.19,8.19,0,0,1,7.47-8.26,8,8,0,0,1,8.53,8Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,210H222V96a14,14,0,0,0-14-14H142V32a14,14,0,0,0-21.77-11.64l-80,53.33A14,14,0,0,0,34,85.34V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM208,94a2,2,0,0,1,2,2V210H142V94ZM46,85.34a2,2,0,0,1,.89-1.66l80-53.34A2,2,0,0,1,130,32V210H46ZM110,112v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm-32,0v16a6,6,0,0,1-12,0V112a6,6,0,0,1,12,0Zm0,56v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Zm32,0v16a6,6,0,0,1-12,0V168a6,6,0,0,1,12,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,208H224V96a16,16,0,0,0-16-16H144V32a16,16,0,0,0-24.88-13.32L39.12,72A16,16,0,0,0,32,85.34V208H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM208,96V208H144V96ZM48,85.34,128,32V208H48ZM112,112v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm-32,0v16a8,8,0,0,1-16,0V112a8,8,0,1,1,16,0Zm0,56v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Zm32,0v16a8,8,0,0,1-16,0V168a8,8,0,0,1,16,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,212H220V96a12,12,0,0,0-12-12H140V32a12,12,0,0,0-18.66-10l-80,53.33a12,12,0,0,0-5.34,10V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM208,92a4,4,0,0,1,4,4V212H140V92ZM44,85.34A4,4,0,0,1,45.78,82l80-53.33A4,4,0,0,1,132,32V212H44ZM108,112v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm-32,0v16a4,4,0,0,1-8,0V112a4,4,0,0,1,8,0Zm0,56v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Zm32,0v16a4,4,0,0,1-8,0V168a4,4,0,0,1,8,0Z"}))]]),E8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"}))]]),A8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),n.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),z8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),n.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),$8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),n.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),M8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),n.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),L8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"}),n.createElement("path",{d:"M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"}))]]),R8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),n.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),P8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),T8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M152.41,88.56l-89.6,88a12,12,0,0,1-16.82,0L7.59,138.85a12,12,0,0,1,16.82-17.13l30,29.46,81.19-79.74a12,12,0,0,1,16.82,17.12Zm96.15-17a12,12,0,0,0-17-.15L150.4,151.18l-7.88-7.74a12,12,0,0,0-16.82,17.12l16.29,16a12,12,0,0,0,16.82,0l89.6-88A12,12,0,0,0,248.56,71.59Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,64V192a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V64A16,16,0,0,1,32,48H224A16,16,0,0,1,240,64Z",opacity:"0.2"}),n.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM72,168a8,8,0,0,1-5.66-2.34l-24-24a8,8,0,0,1,11.32-11.32L72,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32l-64,64A8,8,0,0,1,72,168Zm141.66-66.34-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L144,148.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M148.2,84.28l-89.6,88a6,6,0,0,1-8.4,0L11.8,134.57A6,6,0,1,1,20.2,126l34.2,33.58,85.4-83.87a6,6,0,1,1,8.4,8.56Zm96.08-8.48a6,6,0,0,0-8.48-.08l-85.4,83.87-20.23-19.87a6,6,0,1,0-8.41,8.56l24.44,24a6,6,0,0,0,8.4,0l89.6-88A6,6,0,0,0,244.28,75.8Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M149.61,85.71l-89.6,88a8,8,0,0,1-11.22,0L10.39,136a8,8,0,1,1,11.22-11.41L54.4,156.79l84-82.5a8,8,0,1,1,11.22,11.42Zm96.1-11.32a8,8,0,0,0-11.32-.1l-84,82.5-18.83-18.5a8,8,0,0,0-11.21,11.42l24.43,24a8,8,0,0,0,11.22,0l89.6-88A8,8,0,0,0,245.71,74.39Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M146.8,82.85l-89.6,88a4,4,0,0,1-5.6,0L13.2,133.14a4,4,0,0,1,5.6-5.71l35.6,35,86.8-85.24a4,4,0,0,1,5.6,5.7Zm96-5.65a4,4,0,0,0-5.65,0l-86.8,85.24-21.63-21.24a4,4,0,1,0-5.61,5.7l24.44,24a4,4,0,0,0,5.6,0l89.6-88A4,4,0,0,0,242.85,77.2Z"}))]]),F8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]),Z8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),I8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),O8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,12H80A28,28,0,0,0,52,40V216a28,28,0,0,0,28,28h96a28,28,0,0,0,28-28V40A28,28,0,0,0,176,12ZM76,76H180V180H76Zm4-40h96a4,4,0,0,1,4,4V52H76V40A4,4,0,0,1,80,36Zm96,184H80a4,4,0,0,1-4-4V204H180v12A4,4,0,0,1,176,220Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,56V200H64V56Z",opacity:"0.2"}),n.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM72,64H184V192H72Zm8-32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM80,32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,18H80A22,22,0,0,0,58,40V216a22,22,0,0,0,22,22h96a22,22,0,0,0,22-22V40A22,22,0,0,0,176,18ZM70,62H186V194H70ZM80,30h96a10,10,0,0,1,10,10V50H70V40A10,10,0,0,1,80,30Zm96,196H80a10,10,0,0,1-10-10V206H186v10A10,10,0,0,1,176,226Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,16H80A24,24,0,0,0,56,40V216a24,24,0,0,0,24,24h96a24,24,0,0,0,24-24V40A24,24,0,0,0,176,16ZM72,64H184V192H72Zm8-32h96a8,8,0,0,1,8,8v8H72V40A8,8,0,0,1,80,32Zm96,192H80a8,8,0,0,1-8-8v-8H184v8A8,8,0,0,1,176,224Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,20H80A20,20,0,0,0,60,40V216a20,20,0,0,0,20,20h96a20,20,0,0,0,20-20V40A20,20,0,0,0,176,20ZM68,60H188V196H68ZM80,28h96a12,12,0,0,1,12,12V52H68V40A12,12,0,0,1,80,28Zm96,200H80a12,12,0,0,1-12-12V204H188v12A12,12,0,0,1,176,228Z"}))]]),H8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"}),n.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"}))]]),V8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),n.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),D8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"}),n.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"}))]]),N8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),U8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M52.44,36A6,6,0,0,0,43.56,44L64.44,67c-37.28,21.9-53.23,57-53.92,58.57a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206a124.91,124.91,0,0,0,52.57-11.25l23,25.29a6,6,0,0,0,8.88-8.08Zm48.62,71.32,45,49.52a34,34,0,0,1-45-49.52ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.57,134.57,0,0,1,22.69,128c4.29-8.2,20.1-35.18,50-51.91L92.89,98.3a46,46,0,0,0,61.35,67.48l17.81,19.6A113.47,113.47,0,0,1,128,194Zm6.4-99.4a6,6,0,0,1,2.25-11.79,46.17,46.17,0,0,1,37.15,40.87,6,6,0,0,1-5.42,6.53l-.56,0a6,6,0,0,1-6-5.45A34.1,34.1,0,0,0,134.4,94.6Zm111.08,35.85c-.41.92-10.37,23-32.86,43.12a6,6,0,1,1-8-8.94A134.07,134.07,0,0,0,233.31,128a134.67,134.67,0,0,0-23.86-32.07C186.78,73.42,159.38,62,128,62a120.19,120.19,0,0,0-19.69,1.6,6,6,0,1,1-2-11.83A131.12,131.12,0,0,1,128,50c43.38,0,73,20.54,90.24,37.76,18.58,18.58,26.9,37,27.24,37.81A6,6,0,0,1,245.48,130.45Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M51,37.31A4,4,0,0,0,45,42.69L67.59,67.5C29.34,89,13,124.81,12.34,126.38a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17a122.59,122.59,0,0,0,53.06-11.69l24,26.38a4,4,0,1,0,5.92-5.38ZM149.1,157.16A36,36,0,0,1,101,104.22ZM128,196c-32,0-59.89-11.65-83-34.62A135.81,135.81,0,0,1,20.44,128c3.65-7.23,20.09-36.81,52.68-54.43l22.45,24.7a44,44,0,0,0,59,64.83l20.89,23A114.94,114.94,0,0,1,128,196Zm6.78-103.36a4,4,0,0,1,1.49-7.86,44.15,44.15,0,0,1,35.54,39.09,4,4,0,0,1-3.61,4.35l-.38,0a4,4,0,0,1-4-3.63A36.1,36.1,0,0,0,134.78,92.64Zm108.88,37c-.41.91-10.2,22.58-32.38,42.45a4,4,0,0,1-2.67,1,4,4,0,0,1-2.67-7A136.71,136.71,0,0,0,235.56,128,136.07,136.07,0,0,0,211,94.62C187.89,71.65,160,60,128,60a122,122,0,0,0-20,1.63,4,4,0,0,1-1.32-7.89A129.3,129.3,0,0,1,128,52c42.7,0,71.87,20.22,88.83,37.18,18.31,18.31,26.49,36.44,26.83,37.2A4.08,4.08,0,0,1,243.66,129.63Z"}))]]),B8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M160,128a224.48,224.48,0,0,1-26.37,105.54,12,12,0,1,1-21.16-11.32A200.33,200.33,0,0,0,136,128a8,8,0,0,0-16,0,12,12,0,0,1-24,0,32,32,0,0,1,64,0ZM128,56a12,12,0,1,0,0,24,48.05,48.05,0,0,1,48,48c0,7.62-.36,15.32-1.07,22.87A12,12,0,0,0,185.74,164c.38,0,.76,0,1.14,0a12,12,0,0,0,11.93-10.87c.79-8.3,1.18-16.76,1.18-25.13A72.08,72.08,0,0,0,128,56ZM96,92.23A12,12,0,0,0,80,74.35,72.1,72.1,0,0,0,56,128a120.11,120.11,0,0,1-15.12,58.37,12,12,0,0,0,21,11.69A144.14,144.14,0,0,0,80,128,48.08,48.08,0,0,1,96,92.23Zm10.1,64.1a12,12,0,0,0-14.46,8.9,158.61,158.61,0,0,1-18.88,45.86,12,12,0,0,0,20.5,12.48A182.86,182.86,0,0,0,115,170.79,12,12,0,0,0,106.1,156.33Zm76.73,24.07A12,12,0,0,0,168.19,189a241.5,241.5,0,0,1-8,24.87,12,12,0,0,0,6.91,15.49,11.76,11.76,0,0,0,4.29.8,12,12,0,0,0,11.21-7.71,260.2,260.2,0,0,0,8.79-27.37A12,12,0,0,0,182.83,180.4ZM128,16A112.12,112.12,0,0,0,16,127.44c0,.19,0,.38,0,.57a79.81,79.81,0,0,1-5,27.82,12,12,0,1,0,22.5,8.35A103.59,103.59,0,0,0,40,128.58c0-.19,0-.38,0-.57a88,88,0,0,1,176-.5c0,.16,0,.33,0,.5a282.12,282.12,0,0,1-6.74,61.38,12,12,0,0,0,9.09,14.33A11.84,11.84,0,0,0,221,204a12,12,0,0,0,11.7-9.38A305.87,305.87,0,0,0,240,128.55c0-.18,0-.36,0-.54A112.13,112.13,0,0,0,128,16Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M72,128a134.63,134.63,0,0,1-14.16,60.47,8,8,0,1,1-14.32-7.12A118.8,118.8,0,0,0,56,128,71.73,71.73,0,0,1,83,71.8,8,8,0,1,1,93,84.29,55.76,55.76,0,0,0,72,128Zm56-8a8,8,0,0,0-8,8,184.12,184.12,0,0,1-23,89.1,8,8,0,0,0,14,7.76A200.19,200.19,0,0,0,136,128,8,8,0,0,0,128,120Zm0-32a40,40,0,0,0-40,40,8,8,0,0,0,16,0,24,24,0,0,1,48,0,214.09,214.09,0,0,1-20.51,92A8,8,0,1,0,146,226.83,230,230,0,0,0,168,128,40,40,0,0,0,128,88Zm0-64A104.11,104.11,0,0,0,24,128a87.76,87.76,0,0,1-5,29.33,8,8,0,0,0,15.09,5.33A103.9,103.9,0,0,0,40,128a88,88,0,0,1,176,0,282.24,282.24,0,0,1-5.29,54.45,8,8,0,0,0,6.3,9.4,8.22,8.22,0,0,0,1.55.15,8,8,0,0,0,7.84-6.45A298.37,298.37,0,0,0,232,128,104.12,104.12,0,0,0,128,24ZM94.4,152.17A8,8,0,0,0,85,158.42a151,151,0,0,1-17.21,45.44,8,8,0,0,0,13.86,8,166.67,166.67,0,0,0,19-50.25A8,8,0,0,0,94.4,152.17ZM128,56a72.85,72.85,0,0,0-9,.56,8,8,0,0,0,2,15.87A56.08,56.08,0,0,1,184,128a252.12,252.12,0,0,1-1.92,31A8,8,0,0,0,189,168a8.39,8.39,0,0,0,1,.06,8,8,0,0,0,7.92-7,266.48,266.48,0,0,0,2-33A72.08,72.08,0,0,0,128,56Zm57.93,128.25a8,8,0,0,0-9.75,5.75c-1.46,5.69-3.15,11.4-5,17a8,8,0,0,0,5,10.13,7.88,7.88,0,0,0,2.55.42,8,8,0,0,0,7.58-5.46c2-5.92,3.79-12,5.35-18.05A8,8,0,0,0,185.94,184.26Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M126.42,24C70.73,24.85,25.21,70.09,24,125.81a103.53,103.53,0,0,0,13.52,53.54,4,4,0,0,0,7.1-.3,119.35,119.35,0,0,0,11.37-51A71.77,71.77,0,0,1,83,71.83a8,8,0,1,1,9.86,12.61A55.82,55.82,0,0,0,72,128.07a135.28,135.28,0,0,1-18.45,68.35,4,4,0,0,0,.61,4.85c2,2,4.09,4,6.25,5.82a4,4,0,0,0,6-1A151.18,151.18,0,0,0,85,158.49a8,8,0,1,1,15.68,3.19,167.33,167.33,0,0,1-21.07,53.64,4,4,0,0,0,1.6,5.63c2.47,1.25,5,2.41,7.57,3.47a4,4,0,0,0,5-1.61A183,183,0,0,0,120,128.28a8.16,8.16,0,0,1,7.44-8.21,8,8,0,0,1,8.56,8,198.94,198.94,0,0,1-25.21,97.16,4,4,0,0,0,2.95,5.92q4.55.63,9.21.86a4,4,0,0,0,3.67-2.1A214.88,214.88,0,0,0,152,128.8c.05-13.25-10.3-24.49-23.54-24.74A24,24,0,0,0,104,128a8.1,8.1,0,0,1-7.29,8,8,8,0,0,1-8.71-8,40,40,0,0,1,40.42-40c22,.23,39.68,19.17,39.57,41.16a231.37,231.37,0,0,1-20.52,94.57,4,4,0,0,0,4.62,5.51,103.49,103.49,0,0,0,10.26-3,4,4,0,0,0,2.35-2.22,243.76,243.76,0,0,0,11.48-34,8,8,0,1,1,15.5,4q-1.12,4.37-2.4,8.7a4,4,0,0,0,6.46,4.17A104,104,0,0,0,126.42,24ZM198,161.08a8,8,0,0,1-7.92,7,8.39,8.39,0,0,1-1-.06,8,8,0,0,1-6.95-8.93,252.57,252.57,0,0,0,1.92-31,56.08,56.08,0,0,0-56-56,56.78,56.78,0,0,0-7,.43,8,8,0,0,1-2-15.89,72.1,72.1,0,0,1,81,71.49A266.93,266.93,0,0,1,198,161.08Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M70,128a132.68,132.68,0,0,1-14,59.58,6,6,0,0,1-5.38,3.33,6,6,0,0,1-5.36-8.67A120.74,120.74,0,0,0,58,128,69.72,69.72,0,0,1,84.25,73.36a6,6,0,0,1,7.51,9.37A57.73,57.73,0,0,0,70,128Zm58-6a6,6,0,0,0-6,6,186.07,186.07,0,0,1-23.23,90.07,6,6,0,0,0,10.5,5.82A198.14,198.14,0,0,0,134,128,6,6,0,0,0,128,122Zm0-32a38,38,0,0,0-38,38,6,6,0,0,0,12,0,26,26,0,0,1,52,0,216.06,216.06,0,0,1-20.71,92.85A6,6,0,1,0,144.16,226,227.94,227.94,0,0,0,166,128,38,38,0,0,0,128,90Zm0-64A102.11,102.11,0,0,0,26,128a90,90,0,0,1-5.12,30,6,6,0,1,0,11.31,4A101.83,101.83,0,0,0,38,128a90,90,0,0,1,180,0,284.7,284.7,0,0,1-5.33,54.84,6,6,0,0,0,4.72,7.05,6.8,6.8,0,0,0,1.17.11,6,6,0,0,0,5.88-4.84A295.92,295.92,0,0,0,230,128,102.12,102.12,0,0,0,128,26ZM94,154.13a6,6,0,0,0-7.07,4.69,152.82,152.82,0,0,1-17.44,46,6,6,0,0,0,10.4,6,164.77,164.77,0,0,0,18.8-49.65A6,6,0,0,0,94,154.13ZM128,58a70.76,70.76,0,0,0-8.75.54,6,6,0,1,0,1.49,11.91A58,58,0,0,1,186,128a252.27,252.27,0,0,1-1.94,31.26,6,6,0,0,0,5.21,6.69,6.59,6.59,0,0,0,.75,0,6,6,0,0,0,5.95-5.26A266.46,266.46,0,0,0,198,128,70.08,70.08,0,0,0,128,58ZM185.44,186.2a6,6,0,0,0-7.31,4.31c-1.47,5.74-3.18,11.49-5.06,17.09a6,6,0,0,0,11.38,3.82c2-5.88,3.75-11.9,5.3-17.92A6,6,0,0,0,185.44,186.2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M72,128a134.63,134.63,0,0,1-14.16,60.47,8,8,0,1,1-14.32-7.12A118.8,118.8,0,0,0,56,128,71.73,71.73,0,0,1,83,71.8,8,8,0,1,1,93,84.29,55.76,55.76,0,0,0,72,128Zm56-8a8,8,0,0,0-8,8,184.12,184.12,0,0,1-23,89.1,8,8,0,0,0,14,7.76A200.19,200.19,0,0,0,136,128,8,8,0,0,0,128,120Zm0-32a40,40,0,0,0-40,40,8,8,0,0,0,16,0,24,24,0,0,1,48,0,214.09,214.09,0,0,1-20.51,92A8,8,0,1,0,146,226.83,230,230,0,0,0,168,128,40,40,0,0,0,128,88Zm0-64A104.11,104.11,0,0,0,24,128a87.76,87.76,0,0,1-5,29.33,8,8,0,0,0,15.09,5.33A103.9,103.9,0,0,0,40,128a88,88,0,0,1,176,0,282.24,282.24,0,0,1-5.29,54.45,8,8,0,0,0,6.3,9.4,8.22,8.22,0,0,0,1.55.15,8,8,0,0,0,7.84-6.45A298.37,298.37,0,0,0,232,128,104.12,104.12,0,0,0,128,24ZM94.4,152.17A8,8,0,0,0,85,158.42a151,151,0,0,1-17.21,45.44,8,8,0,0,0,13.86,8,166.67,166.67,0,0,0,19-50.25A8,8,0,0,0,94.4,152.17ZM128,56a72.85,72.85,0,0,0-9,.56,8,8,0,0,0,2,15.87A56.08,56.08,0,0,1,184,128a252.12,252.12,0,0,1-1.92,31A8,8,0,0,0,189,168a8.39,8.39,0,0,0,1,.06,8,8,0,0,0,7.92-7,266.48,266.48,0,0,0,2-33A72.08,72.08,0,0,0,128,56Zm57.93,128.25a8,8,0,0,0-9.75,5.75c-1.46,5.69-3.15,11.4-5,17a8,8,0,0,0,5,10.13,7.88,7.88,0,0,0,2.55.42,8,8,0,0,0,7.58-5.46c2-5.92,3.79-12,5.35-18.05A8,8,0,0,0,185.94,184.26Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M68,128A130.71,130.71,0,0,1,54.27,186.7a4,4,0,0,1-3.58,2.22,3.91,3.91,0,0,1-1.78-.42,4,4,0,0,1-1.8-5.36A122.71,122.71,0,0,0,60,128,67.74,67.74,0,0,1,85.5,74.92a4,4,0,0,1,5,6.25A59.74,59.74,0,0,0,68,128Zm60-4a4,4,0,0,0-4,4,188.1,188.1,0,0,1-23.48,91,4,4,0,0,0,7,3.88A196.22,196.22,0,0,0,132,128,4,4,0,0,0,128,124Zm0-32a36,36,0,0,0-36,36,4,4,0,0,0,8,0,28,28,0,0,1,56,0,218,218,0,0,1-20.9,93.7,4,4,0,1,0,7.24,3.41A226,226,0,0,0,164,128,36,36,0,0,0,128,92Zm0-64A100.11,100.11,0,0,0,28,128a91.66,91.66,0,0,1-5.24,30.67,4,4,0,1,0,7.54,2.66A99.66,99.66,0,0,0,36,128a92,92,0,0,1,184,0,286.37,286.37,0,0,1-5.37,55.23,4,4,0,0,0,3.15,4.69,4.13,4.13,0,0,0,.78.08,4,4,0,0,0,3.92-3.23A294.25,294.25,0,0,0,228,128,100.11,100.11,0,0,0,128,28ZM93.6,156.09a4,4,0,0,0-4.71,3.12,155,155,0,0,1-17.66,46.64,4,4,0,0,0,6.93,4,163.13,163.13,0,0,0,18.57-49A4,4,0,0,0,93.6,156.09ZM128,60a68.79,68.79,0,0,0-8.5.53,4,4,0,0,0,1,7.93A62.57,62.57,0,0,1,128,68a60.07,60.07,0,0,1,60,60,256.15,256.15,0,0,1-1.95,31.5,4,4,0,0,0,3.47,4.47l.5,0a4,4,0,0,0,4-3.51A264.37,264.37,0,0,0,196,128,68.08,68.08,0,0,0,128,60Zm56.93,128.12a4,4,0,0,0-4.87,2.88c-1.49,5.78-3.21,11.58-5.1,17.23a4,4,0,1,0,7.58,2.54c2-5.83,3.73-11.81,5.27-17.77A4,4,0,0,0,184.94,188.13Z"}))]]),W8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),n.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"}))]]),G8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),q8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,84H180.2l7.61-41.85a12,12,0,0,0-23.62-4.3L155.8,84H116.2l7.61-41.85a12,12,0,1,0-23.62-4.3L91.8,84H48a12,12,0,0,0,0,24H87.44l-7.27,40H32a12,12,0,0,0,0,24H75.8l-7.61,41.85a12,12,0,0,0,9.66,14A11.43,11.43,0,0,0,80,228a12,12,0,0,0,11.8-9.86L100.2,172h39.6l-7.61,41.85a12,12,0,0,0,9.66,14,11.43,11.43,0,0,0,2.16.2,12,12,0,0,0,11.8-9.86L164.2,172H208a12,12,0,0,0,0-24H168.56l7.27-40H224a12,12,0,0,0,0-24Zm-79.83,64H104.56l7.27-40h39.61Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M165.82,96l-11.64,64h-64l11.64-64Z",opacity:"0.2"}),n.createElement("path",{d:"M224,88H175.4l8.47-46.57a8,8,0,0,0-15.74-2.86l-9,49.43H111.4l8.47-46.57a8,8,0,0,0-15.74-2.86L95.14,88H48a8,8,0,0,0,0,16H92.23L83.5,152H32a8,8,0,0,0,0,16H80.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,80,224a8,8,0,0,0,7.86-6.57l9-49.43H144.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,144,224a8,8,0,0,0,7.86-6.57l9-49.43H208a8,8,0,0,0,0-16H163.77l8.73-48H224a8,8,0,0,0,0-16Zm-76.5,64H99.77l8.73-48h47.73Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M116.25,112h31.5l-8,32h-31.5ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Zm-16,56a8,8,0,0,0-8-8H168.25l7.51-30.06a8,8,0,0,0-15.52-3.88L151.75,96h-31.5l7.51-30.06a8,8,0,0,0-15.52-3.88L103.75,96H64a8,8,0,0,0,0,16H99.75l-8,32H56a8,8,0,0,0,0,16H87.75l-7.51,30.06a8,8,0,0,0,5.82,9.7,8.13,8.13,0,0,0,2,.24,8,8,0,0,0,7.75-6.06L104.25,160h31.5l-7.51,30.06a8,8,0,0,0,5.82,9.7A8.13,8.13,0,0,0,136,200a8,8,0,0,0,7.75-6.06L152.25,160H192a8,8,0,0,0,0-16H156.25l8-32H200A8,8,0,0,0,208,104Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,90H173l8.89-48.93a6,6,0,1,0-11.8-2.14L160.81,90H109l8.89-48.93a6,6,0,0,0-11.8-2.14L96.81,90H48a6,6,0,0,0,0,12H94.63l-9.46,52H32a6,6,0,0,0,0,12H83L74.1,214.93a6,6,0,0,0,4.83,7A5.64,5.64,0,0,0,80,222a6,6,0,0,0,5.89-4.93L95.19,166H147l-8.89,48.93a6,6,0,0,0,4.83,7,5.64,5.64,0,0,0,1.08.1,6,6,0,0,0,5.89-4.93L159.19,166H208a6,6,0,0,0,0-12H161.37l9.46-52H224a6,6,0,0,0,0-12Zm-74.83,64H97.37l9.46-52h51.8Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,88H175.4l8.47-46.57a8,8,0,0,0-15.74-2.86l-9,49.43H111.4l8.47-46.57a8,8,0,0,0-15.74-2.86L95.14,88H48a8,8,0,0,0,0,16H92.23L83.5,152H32a8,8,0,0,0,0,16H80.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,80,224a8,8,0,0,0,7.86-6.57l9-49.43H144.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,144,224a8,8,0,0,0,7.86-6.57l9-49.43H208a8,8,0,0,0,0-16H163.77l8.73-48H224a8,8,0,0,0,0-16Zm-76.5,64H99.77l8.73-48h47.73Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,92H170.61l9.33-51.28a4,4,0,1,0-7.88-1.44L162.48,92H106.61l9.33-51.28a4,4,0,1,0-7.88-1.44L98.48,92H48a4,4,0,0,0,0,8H97L86.84,156H32a4,4,0,0,0,0,8H85.39l-9.33,51.28a4,4,0,0,0,3.22,4.65A3.65,3.65,0,0,0,80,220a4,4,0,0,0,3.94-3.29L93.52,164h55.87l-9.33,51.28a4,4,0,0,0,3.22,4.65,3.65,3.65,0,0,0,.72.07,4,4,0,0,0,3.94-3.29L157.52,164H208a4,4,0,0,0,0-8H159l10.19-56H224a4,4,0,0,0,0-8Zm-73.16,64H95l10.19-56H161Z"}))]]),K8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"}),n.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"}))]]),Y8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),Q8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"}),n.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"}))]]),J8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z",opacity:"0.2"}),n.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z"}))]]),X8=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),n.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),ef=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),n.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),tf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),rf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,154.8l-47.09-21.11-.18-.08a19.94,19.94,0,0,0-19,1.75,13.08,13.08,0,0,0-1.12.84l-22.31,19c-13-7.05-26.43-20.37-33.49-33.21l19.06-22.66a11.76,11.76,0,0,0,.85-1.15,20,20,0,0,0,1.66-18.83,1.42,1.42,0,0,1-.08-.18L101.2,32A20.06,20.06,0,0,0,80.42,20.15,60.27,60.27,0,0,0,28,80c0,81.61,66.39,148,148,148a60.27,60.27,0,0,0,59.85-52.42A20.06,20.06,0,0,0,224,154.8ZM176,204A124.15,124.15,0,0,1,52,80,36.29,36.29,0,0,1,80.48,44.46l18.82,42L80.14,109.28a12,12,0,0,0-.86,1.16A20,20,0,0,0,78,130.08c9.42,19.28,28.83,38.56,48.31,48A20,20,0,0,0,146,176.63a11.63,11.63,0,0,0,1.11-.85l22.43-19.07,42,18.81A36.29,36.29,0,0,1,176,204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M223.94,174.08A48.33,48.33,0,0,1,176,216,136,136,0,0,1,40,80,48.33,48.33,0,0,1,81.92,32.06a8,8,0,0,1,8.3,4.8l21.13,47.2a8,8,0,0,1-.66,7.53L89.32,117a7.93,7.93,0,0,0-.54,7.81c8.27,16.93,25.77,34.22,42.75,42.41a7.92,7.92,0,0,0,7.83-.59l25-21.3a8,8,0,0,1,7.59-.69l47.16,21.13A8,8,0,0,1,223.94,174.08Z",opacity:"0.2"}),n.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.59,160.3l-47.24-21.17a14,14,0,0,0-13.28,1.22,4.81,4.81,0,0,0-.56.42l-24.69,21a1.88,1.88,0,0,1-1.68.06c-15.87-7.66-32.31-24-40-39.65a1.91,1.91,0,0,1,0-1.68l21.07-25a6.13,6.13,0,0,0,.42-.58,14,14,0,0,0,1.12-13.27L95.73,34.49a14,14,0,0,0-14.56-8.38A54.24,54.24,0,0,0,34,80c0,78.3,63.7,142,142,142a54.25,54.25,0,0,0,53.89-47.17A14,14,0,0,0,221.59,160.3ZM176,210C104.32,210,46,151.68,46,80A42.23,42.23,0,0,1,82.67,38h.23a2,2,0,0,1,1.84,1.31l21.1,47.11a2,2,0,0,1,0,1.67L84.73,113.15a4.73,4.73,0,0,0-.43.57,14,14,0,0,0-.91,13.73c8.87,18.16,27.17,36.32,45.53,45.19a14,14,0,0,0,13.77-1c.19-.13.38-.27.56-.42l24.68-21a1.92,1.92,0,0,1,1.6-.1l47.25,21.17a2,2,0,0,1,1.21,2A42.24,42.24,0,0,1,176,210Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220.78,162.13,173.56,141A12,12,0,0,0,162.18,142a3.37,3.37,0,0,0-.38.28L137,163.42a3.93,3.93,0,0,1-3.7.21c-16.24-7.84-33.05-24.52-40.89-40.57a3.9,3.9,0,0,1,.18-3.69l21.2-25.21c.1-.12.19-.25.28-.38a12,12,0,0,0,1-11.36L93.9,35.28a12,12,0,0,0-12.48-7.19A52.25,52.25,0,0,0,36,80c0,77.2,62.8,140,140,140a52.25,52.25,0,0,0,51.91-45.42A12,12,0,0,0,220.78,162.13ZM220,173.58A44.23,44.23,0,0,1,176,212C103.22,212,44,152.78,44,80A44.23,44.23,0,0,1,82.42,36a3.87,3.87,0,0,1,.48,0,4,4,0,0,1,3.67,2.49l21.11,47.14a4,4,0,0,1-.23,3.6l-21.19,25.2c-.1.13-.2.25-.29.39a12,12,0,0,0-.78,11.75c8.69,17.79,26.61,35.58,44.6,44.27a12,12,0,0,0,11.79-.87l.37-.28,24.83-21.12a3.93,3.93,0,0,1,3.57-.27l47.21,21.16A4,4,0,0,1,220,173.58Z"}))]]),af=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),nf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M244,128a12,12,0,0,1-12,12H207.42l-36.69,73.37A12,12,0,0,1,160,220h-.6a12,12,0,0,1-10.61-7.72L95,71.15,66.92,133A12,12,0,0,1,56,140H24a12,12,0,0,1,0-24H48.27L85.08,35a12,12,0,0,1,22.13.7l54.28,142.46,27.78-55.56A12,12,0,0,1,200,116h32A12,12,0,0,1,244,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,40l33.52,88H56Zm104,88H129.52L160,208Z",opacity:"0.2"}),n.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-8,96H188.64L159,188a8,8,0,0,1-6.95,4h-.46a8,8,0,0,1-6.89-4.84L103,89.92,79,132a8,8,0,0,1-7,4H48a8,8,0,0,1,0-16H67.36L97.05,68a8,8,0,0,1,14.3.82L153,166.08l24-42.05a8,8,0,0,1,6.95-4h24a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M238,128a6,6,0,0,1-6,6H203.71l-38.34,76.68A6,6,0,0,1,160,214h-.3a6,6,0,0,1-5.31-3.85L95.51,55.57,61.46,130.48A6,6,0,0,1,56,134H24a6,6,0,0,1,0-12H52.14l38.4-84.48a6,6,0,0,1,11.07.34L160.74,193.1l33.89-67.78A6,6,0,0,1,200,122h32A6,6,0,0,1,238,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236,128a4,4,0,0,1-4,4H202.47l-38.89,77.79A4,4,0,0,1,160,212h-.2a4,4,0,0,1-3.54-2.58l-60.59-159-36,79.28A4,4,0,0,1,56,132H24a4,4,0,0,1,0-8H53.42L92.36,38.35a4,4,0,0,1,7.38.23L160.5,198.06l35.92-71.85A4,4,0,0,1,200,124h32A4,4,0,0,1,236,128Z"}))]]),of=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z",opacity:"0.2"}),n.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z"}))]]),sf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z",opacity:"0.2"}),n.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z"}))]]),cf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),n.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]),lf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),n.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),df=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),n.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]]),uf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),pf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164,56a12,12,0,0,1,12-12h12V32a12,12,0,0,1,24,0V44h12a12,12,0,0,1,0,24H212V80a12,12,0,0,1-24,0V68H176A12,12,0,0,1,164,56Zm70.51,54A107.88,107.88,0,1,1,146,21.49a12,12,0,0,1-4,23.67A85,85,0,0,0,128,44,83.94,83.94,0,0,0,62.05,179.94a83.48,83.48,0,0,1,29-23.42,52,52,0,1,1,74,0,83.36,83.36,0,0,1,29,23.42A83.52,83.52,0,0,0,212,128a85.2,85.2,0,0,0-1.16-14,12,12,0,0,1,23.67-4ZM128,148a28,28,0,1,0-28-28A28,28,0,0,0,128,148Zm0,64a83.53,83.53,0,0,0,48.43-15.43,60,60,0,0,0-96.86,0A83.53,83.53,0,0,0,128,212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h16V32a8,8,0,0,1,16,0V48h16a8,8,0,0,1,0,16H208V80a8,8,0,0,1-16,0V64H176A8,8,0,0,1,168,56Zm62.56,54.68a103.92,103.92,0,1,1-85.24-85.24,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A87.62,87.62,0,0,0,216,128a88.85,88.85,0,0,0-1.22-14.68,8,8,0,1,1,15.78-2.64ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,76a44,44,0,1,1-44,44A44,44,0,0,1,128,76Zm48-12h16V80a8,8,0,0,0,16,0V64h16a8,8,0,0,0,0-16H208V32a8,8,0,0,0-16,0V48H176a8,8,0,0,0,0,16Zm45.35,40.11a8,8,0,0,0-6.57,9.21A88.85,88.85,0,0,1,216,128a87.62,87.62,0,0,1-22.24,58.41A79.86,79.86,0,0,0,172,165.1a4,4,0,0,0-4.84.32,59.81,59.81,0,0,1-78.27,0A4,4,0,0,0,84,165.1a79.71,79.71,0,0,0-21.79,21.31A88,88,0,0,1,128,40a88.76,88.76,0,0,1,14.68,1.22,8,8,0,0,0,2.64-15.78,103.92,103.92,0,1,0,85.24,85.24A8,8,0,0,0,221.35,104.11Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M170,56a6,6,0,0,1,6-6h18V32a6,6,0,0,1,12,0V50h18a6,6,0,0,1,0,12H206V80a6,6,0,0,1-12,0V62H176A6,6,0,0,1,170,56Zm58.59,55A101.9,101.9,0,1,1,145,27.41a6,6,0,1,1-2,11.83A91.66,91.66,0,0,0,128,38,89.95,89.95,0,0,0,62.49,189.64a77.53,77.53,0,0,1,40-31.38,46,46,0,1,1,51,0,77.53,77.53,0,0,1,40,31.38A89.65,89.65,0,0,0,218,128a91.76,91.76,0,0,0-1.24-15,6,6,0,1,1,11.83-2ZM128,154a34,34,0,1,0-34-34A34,34,0,0,0,128,154Zm0,64A89.58,89.58,0,0,0,184.56,198a66,66,0,0,0-113.12,0A89.58,89.58,0,0,0,128,218Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,56a8,8,0,0,1,8-8h16V32a8,8,0,0,1,16,0V48h16a8,8,0,0,1,0,16H208V80a8,8,0,0,1-16,0V64H176A8,8,0,0,1,168,56Zm62.56,54.68a103.92,103.92,0,1,1-85.24-85.24,8,8,0,0,1-2.64,15.78A88.07,88.07,0,0,0,40,128a87.62,87.62,0,0,0,22.24,58.41A79.66,79.66,0,0,1,98.3,157.66a48,48,0,1,1,59.4,0,79.66,79.66,0,0,1,36.06,28.75A87.62,87.62,0,0,0,216,128a88.85,88.85,0,0,0-1.22-14.68,8,8,0,1,1,15.78-2.64ZM128,152a32,32,0,1,0-32-32A32,32,0,0,0,128,152Zm0,64a87.57,87.57,0,0,0,53.92-18.5,64,64,0,0,0-107.84,0A87.57,87.57,0,0,0,128,216Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M172,56a4,4,0,0,1,4-4h20V32a4,4,0,0,1,8,0V52h20a4,4,0,0,1,0,8H204V80a4,4,0,0,1-8,0V60H176A4,4,0,0,1,172,56Zm54.62,55.34a99.89,99.89,0,1,1-82-82,4,4,0,0,1-1.32,7.89A93.4,93.4,0,0,0,128,36,92,92,0,0,0,62.83,192.87a75.61,75.61,0,0,1,44.51-34,44,44,0,1,1,41.32,0,75.61,75.61,0,0,1,44.51,34A91.69,91.69,0,0,0,220,128a93.58,93.58,0,0,0-1.27-15.34,4,4,0,0,1,7.89-1.32ZM128,156a36,36,0,1,0-36-36A36,36,0,0,0,128,156Zm0,64a91.61,91.61,0,0,0,59.14-21.58,68,68,0,0,0-118.27,0A91.56,91.56,0,0,0,128,220Z"}))]]),hf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z",opacity:"0.2"}),n.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z"}))]]),ff=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),n.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),mf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),gf=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),n.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),vf=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ve=n.forwardRef((e,r)=>{const{alt:a,color:o,size:s,weight:i,mirrored:h,children:d,weights:u,...f}=e,{color:p="currentColor",size:m,weight:g="regular",mirrored:x=!1,...b}=n.useContext(vf);return n.createElement("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",width:s??m,height:s??m,fill:o??p,viewBox:"0 0 256 256",transform:h||x?"scale(-1, 1)":void 0,...b,...f},!!a&&n.createElement("title",null,a),d,u.get(i??g))});ve.displayName="IconBase";const id=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:b8}));id.displayName="ArchiveIcon";const cd=id,ld=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:y8}));ld.displayName="ArrowCounterClockwiseIcon";const xf=ld,dd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:j8}));dd.displayName="ArrowSquareOutIcon";const wf=dd,ud=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:_8}));ud.displayName="ArrowsLeftRightIcon";const pd=ud,hd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:k8}));hd.displayName="BellIcon";const bf=hd,fd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:C8}));fd.displayName="BellSlashIcon";const Ai=fd,md=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:S8}));md.displayName="BuildingsIcon";const gd=md,vd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:E8}));vd.displayName="CameraIcon";const zs=vd,xd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:A8}));xd.displayName="CaretDownIcon";const ur=xd,wd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:z8}));wd.displayName="CaretLeftIcon";const sa=wd,bd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:$8}));bd.displayName="CaretRightIcon";const Ea=bd,yd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:M8}));yd.displayName="CaretUpIcon";const jd=yd,_d=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:L8}));_d.displayName="CaretUpDownIcon";const yf=_d,kd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:R8}));kd.displayName="CheckIcon";const ct=kd,Cd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:P8}));Cd.displayName="CheckCircleIcon";const jf=Cd,Sd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:T8}));Sd.displayName="ChecksIcon";const _f=Sd,Ed=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:F8}));Ed.displayName="CircleIcon";const kf=Ed,Ad=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:Z8}));Ad.displayName="CircleNotchIcon";const yt=Ad,zd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:I8}));zd.displayName="CopyIcon";const Qr=zd,$d=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:O8}));$d.displayName="DeviceMobileIcon";const $s=$d,Md=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:H8}));Md.displayName="DotsThreeIcon";const Cf=Md,Ld=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:V8}));Ld.displayName="DownloadSimpleIcon";const Rd=Ld,Pd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:D8}));Pd.displayName="EnvelopeSimpleIcon";const In=Pd,Td=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:N8}));Td.displayName="EyeIcon";const io=Td,Fd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:U8}));Fd.displayName="EyeSlashIcon";const co=Fd,Zd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:B8}));Zd.displayName="FingerprintIcon";const ls=Zd,Id=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:W8}));Id.displayName="GearSixIcon";const zr=Id,Od=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:G8}));Od.displayName="GlobeIcon";const Sf=Od,Hd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:q8}));Hd.displayName="HashIcon";const Vd=Hd,Dd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:K8}));Dd.displayName="KeyIcon";const Ef=Dd,Nd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:Y8}));Nd.displayName="LightningIcon";const Af=Nd,Ud=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:Q8}));Ud.displayName="LinkIcon";const zf=Ud,Bd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:J8}));Bd.displayName="LockIcon";const zi=Bd,Wd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:X8}));Wd.displayName="MagnifyingGlassIcon";const $f=Wd,Gd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:ef}));Gd.displayName="PaperPlaneTiltIcon";const qd=Gd,Kd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:tf}));Kd.displayName="PencilSimpleIcon";const ds=Kd,Yd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:rf}));Yd.displayName="PhoneIcon";const Mf=Yd,Qd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:af}));Qd.displayName="PlusIcon";const kt=Qd,Jd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:nf}));Jd.displayName="PulseIcon";const Lf=Jd,Xd=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:of}));Xd.displayName="ShieldIcon";const Rt=Xd,e1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:sf}));e1.displayName="SignOutIcon";const $r=e1,t1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:cf}));t1.displayName="StarIcon";const Rf=t1,r1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:lf}));r1.displayName="TrashIcon";const Ms=r1,a1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:df}));a1.displayName="UserIcon";const Aa=a1,n1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:uf}));n1.displayName="UserCircleIcon";const Pf=n1,o1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:pf}));o1.displayName="UserCirclePlusIcon";const Tf=o1,s1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:hf}));s1.displayName="UsersIcon";const kn=s1,i1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:ff}));i1.displayName="WarningIcon";const ia=i1,c1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:mf}));c1.displayName="WarningCircleIcon";const Mr=c1,l1=n.forwardRef((e,r)=>n.createElement(ve,{ref:r,...e,weights:gf}));l1.displayName="XIcon";const Ls=l1,Ff=l.div`
|
|
100
100
|
display: contents;
|
|
101
101
|
|
|
102
102
|
/* Colors - Light Mode */
|
|
@@ -308,7 +308,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
308
308
|
background: var(--color-scrollbar-thumb-hover);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
`;function Zf(e){return e?/^(#([\da-f]{3,8})|rgba?\([^)]*\)|hsla?\([^)]*\)|oklch\([^)]*\)|oklab\([^)]*\)|lch\([^)]*\)|lab\([^)]*\)|transparent|currentColor)$/i.test(e.trim()):!1}function If(e){return e?/^(0|\d+(\.\d+)?(px|rem|em|%)?)$/i.test(e.trim()):!1}function Of(e){if(!e)return!1;const r=e.trim();return!r||/[;{}<>]/.test(r)?!1:/^(?!.*(?:url|expression)\s*\()[\w\s.,%#()\-+/]*$/i.test(r)}function Fe(e,r,a){Zf(a)&&(e[r]=a.trim())}function _e(e,r,a){If(a)&&(e[r]=a.trim())}function ua(e,r,a){Of(a)&&(e[r]=a.trim())}function Hf(e,r){return{...(r==null?void 0:r.token_overrides)??{},...(e==null?void 0:e.token_overrides)??{}}}function Vf(e,r){r&&(_e(e,"--theme-global-space-unit",r.space_unit),_e(e,"--theme-global-space-0u",r.space_0u),_e(e,"--theme-global-space-1u",r.space_1u),_e(e,"--theme-global-space-2u",r.space_2u),_e(e,"--theme-global-space-3u",r.space_3u),_e(e,"--theme-global-space-4u",r.space_4u),_e(e,"--theme-global-space-5u",r.space_5u),_e(e,"--theme-global-space-6u",r.space_6u),_e(e,"--theme-global-space-7u",r.space_7u),_e(e,"--theme-global-space-8u",r.space_8u),_e(e,"--theme-global-space-10u",r.space_10u),_e(e,"--theme-global-space-12u",r.space_12u),_e(e,"--theme-global-space-14u",r.space_14u),_e(e,"--theme-global-space-16u",r.space_16u),_e(e,"--theme-global-space-24u",r.space_24u),_e(e,"--theme-global-font-size-2xs",r.font_size_2xs),_e(e,"--theme-global-font-size-xs",r.font_size_xs),_e(e,"--theme-global-font-size-sm",r.font_size_sm),_e(e,"--theme-global-font-size-md",r.font_size_md),_e(e,"--theme-global-font-size-lg",r.font_size_lg),_e(e,"--theme-global-font-size-xl",r.font_size_xl),_e(e,"--theme-global-font-size-2xl",r.font_size_2xl),_e(e,"--theme-global-font-size-3xl",r.font_size_3xl),_e(e,"--theme-global-radius-2xs",r.radius_2xs),_e(e,"--theme-global-radius-xs",r.radius_xs),_e(e,"--theme-global-radius-md",r.radius_md),_e(e,"--theme-global-radius-lg",r.radius_lg),_e(e,"--theme-global-radius-xl",r.radius_xl),_e(e,"--theme-global-radius-2xl",r.radius_2xl),_e(e,"--theme-global-radius-full",r.radius_full),_e(e,"--theme-global-border-width-thin",r.border_width_thin),_e(e,"--theme-global-border-width-regular",r.border_width_regular),_e(e,"--theme-global-size-8u",r.size_8u),_e(e,"--theme-global-size-10u",r.size_10u),_e(e,"--theme-global-size-12u",r.size_12u),_e(e,"--theme-global-size-18u",r.size_18u),_e(e,"--theme-global-size-20u",r.size_20u),_e(e,"--theme-global-size-24u",r.size_24u),_e(e,"--theme-global-size-32u",r.size_32u),_e(e,"--theme-global-size-36u",r.size_36u),_e(e,"--theme-global-size-40u",r.size_40u),_e(e,"--theme-global-size-45u",r.size_45u),_e(e,"--theme-global-size-50u",r.size_50u),ua(e,"--theme-global-shadow-sm",r.shadow_sm),ua(e,"--theme-global-shadow-md",r.shadow_md),ua(e,"--theme-global-shadow-lg",r.shadow_lg),ua(e,"--theme-global-shadow-xl",r.shadow_xl),ua(e,"--theme-global-ring-primary",r.ring_primary),_e(e,"--theme-global-letter-spacing-tight",r.letter_spacing_tight))}function
|
|
311
|
+
`;function Zf(e){return e?/^(#([\da-f]{3,8})|rgba?\([^)]*\)|hsla?\([^)]*\)|oklch\([^)]*\)|oklab\([^)]*\)|lch\([^)]*\)|lab\([^)]*\)|transparent|currentColor)$/i.test(e.trim()):!1}function If(e){return e?/^(0|\d+(\.\d+)?(px|rem|em|%)?)$/i.test(e.trim()):!1}function Of(e){if(!e)return!1;const r=e.trim();return!r||/[;{}<>]/.test(r)?!1:/^(?!.*(?:url|expression)\s*\()[\w\s.,%#()\-+/]*$/i.test(r)}function Fe(e,r,a){Zf(a)&&(e[r]=a.trim())}function _e(e,r,a){If(a)&&(e[r]=a.trim())}function ua(e,r,a){Of(a)&&(e[r]=a.trim())}function Hf(e,r){return{...(r==null?void 0:r.token_overrides)??{},...(e==null?void 0:e.token_overrides)??{}}}function Vf(e,r){r&&(_e(e,"--theme-global-space-unit",r.space_unit),_e(e,"--theme-global-space-0u",r.space_0u),_e(e,"--theme-global-space-1u",r.space_1u),_e(e,"--theme-global-space-2u",r.space_2u),_e(e,"--theme-global-space-3u",r.space_3u),_e(e,"--theme-global-space-4u",r.space_4u),_e(e,"--theme-global-space-5u",r.space_5u),_e(e,"--theme-global-space-6u",r.space_6u),_e(e,"--theme-global-space-7u",r.space_7u),_e(e,"--theme-global-space-8u",r.space_8u),_e(e,"--theme-global-space-10u",r.space_10u),_e(e,"--theme-global-space-12u",r.space_12u),_e(e,"--theme-global-space-14u",r.space_14u),_e(e,"--theme-global-space-16u",r.space_16u),_e(e,"--theme-global-space-24u",r.space_24u),_e(e,"--theme-global-font-size-2xs",r.font_size_2xs),_e(e,"--theme-global-font-size-xs",r.font_size_xs),_e(e,"--theme-global-font-size-sm",r.font_size_sm),_e(e,"--theme-global-font-size-md",r.font_size_md),_e(e,"--theme-global-font-size-lg",r.font_size_lg),_e(e,"--theme-global-font-size-xl",r.font_size_xl),_e(e,"--theme-global-font-size-2xl",r.font_size_2xl),_e(e,"--theme-global-font-size-3xl",r.font_size_3xl),_e(e,"--theme-global-radius-2xs",r.radius_2xs),_e(e,"--theme-global-radius-xs",r.radius_xs),_e(e,"--theme-global-radius-md",r.radius_md),_e(e,"--theme-global-radius-lg",r.radius_lg),_e(e,"--theme-global-radius-xl",r.radius_xl),_e(e,"--theme-global-radius-2xl",r.radius_2xl),_e(e,"--theme-global-radius-full",r.radius_full),_e(e,"--theme-global-border-width-thin",r.border_width_thin),_e(e,"--theme-global-border-width-regular",r.border_width_regular),_e(e,"--theme-global-size-8u",r.size_8u),_e(e,"--theme-global-size-10u",r.size_10u),_e(e,"--theme-global-size-12u",r.size_12u),_e(e,"--theme-global-size-18u",r.size_18u),_e(e,"--theme-global-size-20u",r.size_20u),_e(e,"--theme-global-size-24u",r.size_24u),_e(e,"--theme-global-size-32u",r.size_32u),_e(e,"--theme-global-size-36u",r.size_36u),_e(e,"--theme-global-size-40u",r.size_40u),_e(e,"--theme-global-size-45u",r.size_45u),_e(e,"--theme-global-size-50u",r.size_50u),ua(e,"--theme-global-shadow-sm",r.shadow_sm),ua(e,"--theme-global-shadow-md",r.shadow_md),ua(e,"--theme-global-shadow-lg",r.shadow_lg),ua(e,"--theme-global-shadow-xl",r.shadow_xl),ua(e,"--theme-global-ring-primary",r.ring_primary),_e(e,"--theme-global-letter-spacing-tight",r.letter_spacing_tight))}function $i(e,r,a){if(!a)return;const o=`--theme-${r}`,s=a.token_overrides??void 0,i=a.text_color;Fe(e,`${o}-primary`,a.primary_color),Fe(e,`${o}-background`,a.background_color),Fe(e,`${o}-text`,i),Fe(e,`${o}-foreground`,(s==null?void 0:s.foreground)??i),Fe(e,`${o}-card`,s==null?void 0:s.card),Fe(e,`${o}-card-foreground`,s==null?void 0:s.card_foreground),Fe(e,`${o}-popover`,s==null?void 0:s.popover),Fe(e,`${o}-popover-foreground`,s==null?void 0:s.popover_foreground),Fe(e,`${o}-secondary-text`,s==null?void 0:s.secondary_text),Fe(e,`${o}-secondary`,s==null?void 0:s.secondary),Fe(e,`${o}-secondary-foreground`,s==null?void 0:s.secondary_foreground),Fe(e,`${o}-muted`,s==null?void 0:s.muted),Fe(e,`${o}-accent`,s==null?void 0:s.accent),Fe(e,`${o}-accent-foreground`,s==null?void 0:s.accent_foreground),Fe(e,`${o}-border`,s==null?void 0:s.border),Fe(e,`${o}-border-hover`,s==null?void 0:s.border_hover),Fe(e,`${o}-divider`,s==null?void 0:s.divider),Fe(e,`${o}-input-background`,s==null?void 0:s.input_background),Fe(e,`${o}-input-border`,s==null?void 0:s.input_border),Fe(e,`${o}-input-focus-border`,s==null?void 0:s.input_focus_border),Fe(e,`${o}-background-subtle`,s==null?void 0:s.background_subtle),Fe(e,`${o}-background-hover`,s==null?void 0:s.background_hover),Fe(e,`${o}-primary-foreground`,s==null?void 0:s.primary_foreground),Fe(e,`${o}-primary-hover`,s==null?void 0:s.primary_hover),Fe(e,`${o}-error`,s==null?void 0:s.error),Fe(e,`${o}-error-background`,s==null?void 0:s.error_background),Fe(e,`${o}-error-border`,s==null?void 0:s.error_border),Fe(e,`${o}-warning`,s==null?void 0:s.warning),Fe(e,`${o}-warning-background`,s==null?void 0:s.warning_background),Fe(e,`${o}-warning-border`,s==null?void 0:s.warning_border),Fe(e,`${o}-warning-text`,s==null?void 0:s.warning_text),Fe(e,`${o}-success`,s==null?void 0:s.success),Fe(e,`${o}-success-background`,s==null?void 0:s.success_background),Fe(e,`${o}-success-border`,s==null?void 0:s.success_border),Fe(e,`${o}-info`,s==null?void 0:s.info),Fe(e,`${o}-info-background`,s==null?void 0:s.info_background),Fe(e,`${o}-ring`,s==null?void 0:s.ring)}function Df(e,r){const a={};return Vf(a,Hf(e,r)),$i(a,"light",e),$i(a,"dark",r),a}function fe({children:e,style:r,...a}){var i,h,d,u;const o=c.useContext(ws),s=Df((h=(i=o==null?void 0:o.deployment)==null?void 0:i.ui_settings)==null?void 0:h.light_mode_settings,(u=(d=o==null?void 0:o.deployment)==null?void 0:d.ui_settings)==null?void 0:u.dark_mode_settings);return t.jsx(Ff,{...a,style:{...s,...r},children:e})}const Nf=gt`
|
|
312
312
|
from { opacity: 0; transform: translateY(6px); }
|
|
313
313
|
to { opacity: 1; transform: translateY(0); }
|
|
314
314
|
`,Uf=gt`
|
|
@@ -338,7 +338,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
338
338
|
border-radius: 9999px;
|
|
339
339
|
flex-shrink: 0;
|
|
340
340
|
margin: 0 var(--space-1u);
|
|
341
|
-
|
|
341
|
+
`,Mi=l.input`
|
|
342
342
|
width: var(--size-20u);
|
|
343
343
|
height: var(--size-20u);
|
|
344
344
|
border: var(--border-width-thin) solid
|
|
@@ -396,7 +396,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
396
396
|
color: var(--color-secondary-text);
|
|
397
397
|
cursor: not-allowed;
|
|
398
398
|
}
|
|
399
|
-
`;function pr({length:e=6,onComplete:r,onResend:a,error:o,isSubmitting:s=!1}){const[i,h]=c.useState(new Array(e).fill("")),[d,u]=c.useState(60),[f,p]=c.useState(!1),[m,g]=c.useState(!1),x=c.useRef([]),b=c.useCallback(()=>{const C=setInterval(()=>{u(_=>_<=1?(p(!0),clearInterval(C),0):_-1)},1e3);return C},[]);c.useEffect(()=>{const C=b();return()=>clearInterval(C)},[b]),c.useEffect(()=>{if(o){g(!0);const C=setTimeout(()=>g(!1),450);return()=>clearTimeout(C)}},[o]);const v=async()=>{var C;!f||s||!a||(await a(),p(!1),u(60),h(new Array(e).fill("")),(C=x.current[0])==null||C.focus(),b())},w=(C,_)=>{var
|
|
399
|
+
`;function pr({length:e=6,onComplete:r,onResend:a,error:o,isSubmitting:s=!1}){const[i,h]=c.useState(new Array(e).fill("")),[d,u]=c.useState(60),[f,p]=c.useState(!1),[m,g]=c.useState(!1),x=c.useRef([]),b=c.useCallback(()=>{const C=setInterval(()=>{u(_=>_<=1?(p(!0),clearInterval(C),0):_-1)},1e3);return C},[]);c.useEffect(()=>{const C=b();return()=>clearInterval(C)},[b]),c.useEffect(()=>{if(o){g(!0);const C=setTimeout(()=>g(!1),450);return()=>clearTimeout(C)}},[o]);const v=async()=>{var C;!f||s||!a||(await a(),p(!1),u(60),h(new Array(e).fill("")),(C=x.current[0])==null||C.focus(),b())},w=(C,_)=>{var $;if(s)return;const k=C.value,y=[...i];y[_]=k.replace(/[^0-9]/g,""),h(y);const L=y.join("");L.length===e&&r(L),k&&_<e-1&&(($=x.current[_+1])==null||$.focus())},E=(C,_)=>{var k;s||C.key==="Backspace"&&!i[_]&&_>0&&((k=x.current[_-1])==null||k.focus())},j=(C,_)=>{var $,H;if(s)return;C.preventDefault();const k=C.clipboardData.getData("text/plain").replace(/[^0-9]/g,"").slice(0,e);if(!k.length)return;const y=[...i];for(let F=0;F<k.length&&_+F<e;F++)y[_+F]=k[F];if(_===0&&k.length===e)for(let F=0;F<e;F++)y[F]=k[F];h(y);const L=y.join("");if(L.length===e)r(L),($=x.current[e-1])==null||$.focus();else{const F=y.findIndex((M,R)=>R>=_&&!M);F!==-1&&((H=x.current[F])==null||H.focus())}},S=Math.floor(e/2);return t.jsxs(Bf,{children:[t.jsxs(Wf,{$shake:m,children:[i.slice(0,S).map((C,_)=>t.jsx(Mi,{type:"text",inputMode:"numeric",maxLength:1,value:C,$hasError:!!o,onChange:k=>w(k.target,_),onKeyDown:k=>E(k,_),onPaste:k=>j(k,_),ref:k=>{x.current[_]=k},disabled:s,autoFocus:_===0},_)),t.jsx(Gf,{}),i.slice(S).map((C,_)=>{const k=S+_;return t.jsx(Mi,{type:"text",inputMode:"numeric",maxLength:1,value:C,$hasError:!!o,onChange:y=>w(y.target,k),onKeyDown:y=>E(y,k),onPaste:y=>j(y,k),ref:y=>{x.current[k]=y},disabled:s},k)})]}),t.jsxs(qf,{children:[o&&t.jsx(Kf,{children:o}),a&&(f?t.jsx(Qf,{type:"button",onClick:v,disabled:s,children:"Didn't receive a code? Resend"}):t.jsxs(Yf,{children:["Resend code in ",d,"s"]}))]})]})}const d1=e=>t.jsxs("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":"githubIconTitle",...e,children:[t.jsx("title",{id:"githubIconTitle",children:"GitHub"}),t.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.109-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.91 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})]}),u1=e=>t.jsxs("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",...e,children:[t.jsx("path",{fill:"#4285F4",d:"M14.9 8.161c0-.476-.039-.954-.121-1.422h-6.64v2.695h3.802a3.24 3.24 0 01-1.407 2.127v1.75h2.269c1.332-1.22 2.097-3.02 2.097-5.15z"}),t.jsx("path",{fill:"#34A853",d:"M8.14 15c1.898 0 3.499-.62 4.665-1.69l-2.268-1.749c-.631.427-1.446.669-2.395.669-1.836 0-3.393-1.232-3.952-2.888H1.85v1.803A7.044 7.044 0 008.14 15z"}),t.jsx("path",{fill:"#FBBC04",d:"M4.187 9.342a4.17 4.17 0 010-2.68V4.859H1.849a6.97 6.97 0 000 6.286l2.338-1.803z"}),t.jsx("path",{fill:"#EA4335",d:"M8.14 3.77a3.837 3.837 0 012.7 1.05l2.01-1.999a6.786 6.786 0 00-4.71-1.82 7.042 7.042 0 00-6.29 3.858L4.186 6.66c.556-1.658 2.116-2.89 3.952-2.89z"})]}),p1=e=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"50",height:"50",viewBox:"0 0 50 50",...e,children:t.jsx("path",{d:"M 6.9199219 6 L 21.136719 26.726562 L 6.2285156 44 L 9.40625 44 L 22.544922 28.777344 L 32.986328 44 L 43 44 L 28.123047 22.3125 L 42.203125 6 L 39.027344 6 L 26.716797 20.261719 L 16.933594 6 L 6.9199219 6 z"})}),Jf=()=>t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),h1=()=>t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:t.jsx("path",{fill:"#0A66C2",d:"M12.225 12.225h-1.778V9.44c0-.664-.012-1.519-.925-1.519-.926 0-1.068.724-1.068 1.47v2.834H6.676V6.498h1.707v.783h.024c.348-.594.996-.95 1.684-.925 1.802 0 2.135 1.185 2.135 2.728l-.001 3.14zM4.67 5.715a1.037 1.037 0 01-1.032-1.031c0-.566.466-1.032 1.032-1.032.566 0 1.031.466 1.032 1.032 0 .566-.466 1.032-1.032 1.032zm.889 6.51h-1.78V6.498h1.78v5.727zM13.11 2H2.885A.88.88 0 002 2.866v10.268a.88.88 0 00.885.866h10.226a.882.882 0 00.889-.866V2.865a.88.88 0 00-.889-.864z"})}),f1=()=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M12 21.42L15.54 10.86H8.46L12 21.42Z",fill:"#E24329"}),t.jsx("path",{d:"M12 21.42L8.46 10.86H2.28L12 21.42Z",fill:"#FC6D26"}),t.jsx("path",{d:"M2.28 10.86L0.86 15.14C0.72 15.54 0.86 15.98 1.18 16.24L12 21.42L2.28 10.86Z",fill:"#FCA326"}),t.jsx("path",{d:"M2.28 10.86H8.46L6.12 3.58C5.98 3.18 5.42 3.18 5.28 3.58L2.28 10.86Z",fill:"#E24329"}),t.jsx("path",{d:"M12 21.42L15.54 10.86H21.72L12 21.42Z",fill:"#FC6D26"}),t.jsx("path",{d:"M21.72 10.86L23.14 15.14C23.28 15.54 23.14 15.98 22.82 16.24L12 21.42L21.72 10.86Z",fill:"#FCA326"}),t.jsx("path",{d:"M21.72 10.86H15.54L17.88 3.58C18.02 3.18 18.58 3.18 18.72 3.58L21.72 10.86Z",fill:"#E24329"})]}),Xf=()=>t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"})}),m1=()=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("circle",{cx:"512",cy:"512",r:"512",style:{fill:"#5865f2"}}),t.jsx("path",{d:"M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z",style:{fill:"#fff"}})]}),em={google_oauth:{label:"Continue with Google",icon:t.jsx(u1,{})},github_oauth:{label:"Continue with GitHub",icon:t.jsx(d1,{})},x_oauth:{label:"Continue with X",icon:t.jsx(p1,{})},facebook_oauth:{label:"Continue with Facebook",icon:t.jsx(Jf,{})},linkedin_oauth:{label:"Continue with LinkedIn",icon:t.jsx(h1,{})},gitlab_oauth:{label:"Continue with GitLab",icon:t.jsx(f1,{})},apple_oauth:{label:"Continue with Apple",icon:t.jsx(Xf,{})},discord_oauth:{label:"Continue with Discord",icon:t.jsx(m1,{})}},tm=l.div`
|
|
400
400
|
display: flex;
|
|
401
401
|
flex-direction: column;
|
|
402
402
|
gap: var(--space-3u);
|
|
@@ -446,7 +446,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
446
446
|
opacity: 0;
|
|
447
447
|
transform: translateX(-4px);
|
|
448
448
|
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
449
|
-
`,
|
|
449
|
+
`,Rs=({connections:e,callback:r})=>t.jsx(tm,{children:e.map(a=>{const o=em[a.provider];return o?t.jsxs(rm,{type:"button",onClick:()=>r(a),children:[o.icon,t.jsx(am,{children:o.label}),t.jsx(nm,{className:"arrow"})]},a.provider):null})}),Pt=({to:e,replace:r,children:a,...o})=>{const{navigate:s}=jt(),i=c.useCallback(h=>{h.preventDefault(),s(e,{replace:r})},[e,r,s]);return t.jsx("a",{href:e,onClick:i,...o,children:a})},om={sm:"36rem"},le=l.input`
|
|
450
450
|
padding: var(--space-4u) var(--space-6u);
|
|
451
451
|
width: 100%;
|
|
452
452
|
height: var(--size-18u);
|
|
@@ -641,11 +641,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
641
641
|
to {
|
|
642
642
|
transform: rotate(360deg);
|
|
643
643
|
}
|
|
644
|
-
`,
|
|
644
|
+
`,Li=l(yt)`
|
|
645
645
|
animation: ${g1} 1s linear infinite;
|
|
646
646
|
`,Na=l.div`
|
|
647
647
|
${Et}
|
|
648
|
-
`,
|
|
648
|
+
`,Ri=l.div`
|
|
649
649
|
display: flex;
|
|
650
650
|
justify-content: center;
|
|
651
651
|
align-items: center;
|
|
@@ -665,7 +665,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
665
665
|
color: var(--color-card-foreground);
|
|
666
666
|
margin-bottom: var(--space-2u);
|
|
667
667
|
margin-top: 0;
|
|
668
|
-
`,
|
|
668
|
+
`,Pi=l.p`
|
|
669
669
|
color: var(--color-secondary-text);
|
|
670
670
|
font-size: var(--font-size-md);
|
|
671
671
|
margin: 0;
|
|
@@ -692,7 +692,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
692
692
|
font-weight: 600;
|
|
693
693
|
text-transform: uppercase;
|
|
694
694
|
letter-spacing: 0.1em;
|
|
695
|
-
`,
|
|
695
|
+
`,Ti=l.form`
|
|
696
696
|
display: flex;
|
|
697
697
|
flex-direction: column;
|
|
698
698
|
gap: var(--space-6u);
|
|
@@ -716,7 +716,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
716
716
|
color: var(--color-error);
|
|
717
717
|
margin: 0;
|
|
718
718
|
margin-top: var(--space-1u);
|
|
719
|
-
`,
|
|
719
|
+
`,Fi=l.button`
|
|
720
720
|
width: 100%;
|
|
721
721
|
padding: 0 var(--space-8u);
|
|
722
722
|
background: var(--color-primary);
|
|
@@ -743,14 +743,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
743
743
|
opacity: 0.7;
|
|
744
744
|
cursor: not-allowed;
|
|
745
745
|
}
|
|
746
|
-
`,
|
|
746
|
+
`,Zi=l.div`
|
|
747
747
|
margin-top: var(--space-8u);
|
|
748
748
|
padding-top: var(--space-6u);
|
|
749
749
|
border-top: var(--border-width-thin) solid var(--color-border);
|
|
750
750
|
text-align: center;
|
|
751
751
|
font-size: var(--font-size-sm);
|
|
752
752
|
color: var(--color-secondary-text);
|
|
753
|
-
`,
|
|
753
|
+
`,Ii=l.span`
|
|
754
754
|
color: var(--color-primary);
|
|
755
755
|
text-decoration: none;
|
|
756
756
|
font-weight: 400;
|
|
@@ -830,7 +830,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
830
830
|
border-color: var(--color-border-hover);
|
|
831
831
|
color: var(--color-card-foreground);
|
|
832
832
|
}
|
|
833
|
-
`;function Pm(){var W,Y,J,ie,he,ee,xe,te,B,Je,Te,Ue,Ge,me,Q,ce;const{loading:e,signUp:r,signupAttempt:a,discardSignupAttempt:o}=i0(),{signIn:s}=ya("oauth"),{deployment:i}=Se(),{navigate:h}=jt(),{session:d,refetch:u,loading:f}=at(),[p,m]=c.useState({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),[g,x]=c.useState({}),[b,v]=c.useState(!1),[w,E]=c.useState(void 0),[j,S]=c.useState(null),[C,_]=c.useState(null),[k,y]=c.useState(!1),L=((W=i==null?void 0:i.restrictions)==null?void 0:W.sign_up_mode)==="restricted",z=((Y=i==null?void 0:i.restrictions)==null?void 0:Y.sign_up_mode)==="waitlist",O=((ie=(J=i==null?void 0:i.auth_settings)==null?void 0:J.multi_session_support)==null?void 0:ie.enabled)??!1;c.useEffect(()=>{var ne;if(!f&&(d!=null&&d.active_signin)&&!O&&!k){y(!0);let q=ft(i,new URLSearchParams(window.location.search).get("redirect_uri"));q||(q=((ne=i==null?void 0:i.ui_settings)==null?void 0:ne.after_signin_redirect_url)||null),!q&&(i!=null&&i.frontend_host)&&(q=`https://${i.frontend_host}`),!q&&(i!=null&&i.frontend_host)&&(q=`https://${i.frontend_host}`),q&&h(q)}},[d,f,O,i,h,k]),c.useEffect(()=>{var ue;if(!i)return;const q=new URLSearchParams(window.location.search).get("invite_token");if(z&&!q){y(!0);const de=((ue=i.ui_settings)==null?void 0:ue.waitlist_page_url)||`https://${i.frontend_host}/waitlist`;h(de);return}q&&!j&&r&&(_(q),r.validateDeploymentInvitation(q).then(de=>{S(de),de.valid&&m(K=>({...K,first_name:de.first_name||K.first_name,last_name:de.last_name||K.last_name,email:de.email||K.email}))}).catch(()=>{x(de=>({...de,submit:"Failed to validate invitation."}))}))},[i,z,h,j,r]);const[R,M]=c.useState(!1),[T,A]=c.useState(""),$=ne=>{let{name:q,value:ue}=ne.target;q==="phone_number"?ue=ue.replace(/[^0-9-]/g,""):q==="email"&&(ue=ue.toLowerCase()),m(de=>({...de,[q]:ue})),x(de=>({...de,[q]:""}))},I=()=>{m({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),x({}),M(!1),A(""),o()},F=async ne=>{if(ne.preventDefault(),e||b)return;const q={},ue=/^[a-zA-Z]{3,30}$/,de=/^[a-zA-Z][a-zA-Z0-9_.]{2,29}$/,K=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,pe=/^\d{7,15}$/,qe=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,125}$/;if(P!=null&&P.first_name.enabled&&(P!=null&&P.first_name.required&&!p.first_name?q.first_name="First name is required":p.first_name&&!ue.test(p.first_name)&&(q.first_name="Invalid name")),P!=null&&P.last_name.enabled&&(P!=null&&P.last_name.required&&!p.last_name?q.last_name="Last name is required":p.last_name&&!ue.test(p.last_name)&&(q.last_name="Invalid last name")),P!=null&&P.username.enabled&&(P!=null&&P.username.required&&!p.username?q.username="Username is required":p.username&&!de.test(p.username)&&(q.username="Username must be 3-20 characters")),P!=null&&P.email_address.enabled&&(P!=null&&P.email_address.required&&!p.email?q.email="Email address is required":p.email&&!K.test(p.email)&&(q.email="Invalid email address")),P!=null&&P.phone_number.enabled&&(P!=null&&P.phone_number.required&&!p.phone_number?q.phone_number="Phone number is required":p.phone_number&&!pe.test(p.phone_number)&&(q.phone_number="Phone number must contain 7-15 digits")),P!=null&&P.password.enabled&&(p.password?qe.test(p.password)||(q.password="Password must be 8-125 characters and include uppercase, lowercase, number, and special character"):q.password="Password is required"),x(q),!(Object.keys(q).length>0)){v(!0);try{const Oe={...p};p.phone_number&&w&&(Oe.phone_country_code=w),C&&(Oe.invite_token=C),await r.create(Oe)}catch(Oe){x({submit:Oe.message})}finally{v(!1)}}},H=async ne=>{if(!(e||b)){v(!0);try{const q=new URLSearchParams(window.location.search),ue=ft(i,q.get("redirect_uri"))||void 0,{data:de}=await s.create({provider:ne.provider,redirectUri:ue});de&&typeof de=="object"&&"oauth_url"in de&&(window.location.href=de.oauth_url)}catch(q){x({submit:q.message})}finally{v(!1)}}},Z=(i==null?void 0:i.social_connections.filter(ne=>ne.enabled))||[],P=i==null?void 0:i.auth_settings,G=!!((he=P==null?void 0:P.first_name)!=null&&he.enabled&&((ee=P==null?void 0:P.last_name)!=null&&ee.enabled)),D=async ne=>{var ue;if(ne.preventDefault(),e||b)return;v(!0);const q={};if(!T){q.otp="OTP code is required",x(q),v(!1);return}x(q);try{const de=await r.completeVerification(T);"data"in de&&((ue=de.data)!=null&&ue.active_signin)&&await u()}catch{x(de=>({...de,submit:"Verification failed. Please try again."}))}finally{v(!1)}};return c.useEffect(()=>{var ne;if(a){if(a.completed){let q=ft(i,new URLSearchParams(window.location.search).get("redirect_uri"));if(q||(q=((ne=i==null?void 0:i.ui_settings)==null?void 0:ne.after_signup_redirect_url)||null),!q&&(i!=null&&i.frontend_host)&&(q=`https://${i.frontend_host}`),q){let ue;try{ue=new URL(q)}catch{ue=new URL(q,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&ue.searchParams.set("__dev_session__",mt(i.backend_host)||""),h(ue.toString())}return}if(!R){switch(a.current_step){case"verify_email":r.prepareVerification({strategy:"email_otp"});break;case"verify_phone":r.prepareVerification({strategy:"phone_otp"});break}M(!0)}}},[a,r,R,i,d,h]),f?t.jsx(fe,{children:t.jsxs(Na,{children:[t.jsx(Xe,{}),t.jsx(Li,{children:t.jsx(yt,{size:32})})]})}):k?t.jsx(fe,{children:t.jsxs(Na,{children:[t.jsx(Xe,{}),t.jsx(Li,{children:t.jsx(yt,{size:32})})]})}):L?t.jsx(fe,{children:t.jsxs(Na,{children:[t.jsx(Xe,{}),t.jsx(lo,{children:t.jsx(uo,{children:"Sign up Restricted!"})}),t.jsx(Sm,{children:t.jsx(Em,{children:"New account registration is currently restricted. Please check back later."})}),t.jsx(Am,{children:t.jsxs(zm,{children:["Need assistance?"," ",t.jsx($m,{href:(xe=i==null?void 0:i.ui_settings)!=null&&xe.sign_in_page_url?`${i.ui_settings.sign_in_page_url}?help=true`:"/contact",children:"Get help"})]})})]})}):t.jsx(fe,{children:t.jsx(Na,{children:R?t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsxs(lo,{children:[!((te=i==null?void 0:i.ui_settings)!=null&&te.logo_image_url)&&t.jsx(Mm,{children:(a==null?void 0:a.current_step)==="verify_phone"?t.jsx(zs,{weight:"light"}):t.jsx(In,{weight:"light"})}),t.jsx(uo,{children:(a==null?void 0:a.current_step)==="verify_phone"?"Check your phone":"Enter the code"}),t.jsx(Ri,{children:(a==null?void 0:a.current_step)==="verify_phone"?"We sent a verification code via SMS.":"We sent a 6-digit code to your email."}),t.jsx(Lm,{children:t.jsxs(Rm,{type:"button",onClick:I,children:[t.jsx(ls,{weight:"light"}),(a==null?void 0:a.current_step)==="verify_phone"?`+${p.phone_number}`:p.email]})})]}),t.jsxs(Pi,{onSubmit:D,noValidate:!0,children:[t.jsx(pr,{onComplete:async ne=>{A(ne)},onResend:async()=>{const ne=(a==null?void 0:a.current_step)==="verify_email"?"email_otp":"phone_otp";await r.prepareVerification({strategy:ne})},error:g.otp,isSubmitting:b}),t.jsx(Ti,{type:"submit",disabled:b||e||!T,children:b&&T?t.jsx(Mi,{size:16}):`Continue to ${(B=i==null?void 0:i.ui_settings)==null?void 0:B.app_name}`})]}),t.jsxs(Fi,{children:["Having trouble?"," ",t.jsx(Zi,{children:t.jsx(Pt,{to:i.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsxs(lo,{children:[t.jsx(uo,{children:"Create your account"}),t.jsx(Ri,{children:j!=null&&j.valid?"You've been invited! Complete your registration below.":"Welcome! Please fill in the details to get started."})]}),Z.length>0&&t.jsxs(t.Fragment,{children:[t.jsx(Ls,{connections:Z,callback:H}),t.jsx(jm,{children:t.jsx(_m,{children:"or"})})]}),t.jsxs(Pi,{onSubmit:F,noValidate:!0,children:[(((Je=P==null?void 0:P.first_name)==null?void 0:Je.enabled)||((Te=P==null?void 0:P.last_name)==null?void 0:Te.enabled))&&t.jsxs(km,{$isBothEnabled:G,children:[((Ue=P==null?void 0:P.first_name)==null?void 0:Ue.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"first_name",children:["First name",((Ge=P==null?void 0:P.first_name)==null?void 0:Ge.required)&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"text",id:"first_name",name:"first_name",required:!0,minLength:3,maxLength:30,value:p.first_name,onChange:$,placeholder:"First name","aria-invalid":!!g.first_name,pattern:"^[a-zA-Z]{3,30}$"}),g.first_name&&t.jsx(gr,{children:g.first_name})]}),((me=P==null?void 0:P.last_name)==null?void 0:me.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"last_name",children:["Last name",((Q=P==null?void 0:P.last_name)==null?void 0:Q.required)&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"text",id:"last_name",name:"last_name",required:!0,minLength:3,maxLength:30,value:p.last_name,onChange:$,placeholder:"Last name","aria-invalid":!!g.last_name,pattern:"^[a-zA-Z]{3,30}$"}),g.last_name&&t.jsx(gr,{children:g.last_name})]})]}),(P==null?void 0:P.username.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"username",children:["Username",P.username.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"text",id:"username",name:"username",minLength:3,maxLength:20,value:p.username,onChange:$,placeholder:"Choose a username","aria-invalid":!!g.username,required:!0,pattern:"^[a-zA-Z][a-zA-Z0-9_.]{2,29}$"}),g.username&&t.jsx(gr,{children:g.username})]}),(P==null?void 0:P.email_address.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"email",children:["Email address",P.email_address.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"email",id:"email",name:"email",maxLength:320,value:p.email,onChange:$,placeholder:"Enter your email address","aria-invalid":!!g.email,required:!0,readOnly:(j==null?void 0:j.valid)&&!!(j!=null&&j.email),pattern:"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"}),g.email&&t.jsx(gr,{children:g.email})]}),(P==null?void 0:P.phone_number.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"phone_number",children:["Phone number",P.phone_number.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(Ma,{value:p.phone_number,onChange:$,error:g.phone_number,countryCode:w,setCountryCode:E}),g.phone_number&&t.jsx(gr,{children:g.phone_number})]}),(P==null?void 0:P.password.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"password",children:["Password",P.password.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(Cm,{children:t.jsx(le,{type:"password",id:"password",name:"password",value:p.password,onChange:$,placeholder:"Enter your password","aria-invalid":!!g.password,required:!0,minLength:8,maxLength:128,pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,125}$"})}),g.password&&t.jsx(gr,{children:g.password})]}),g.submit&&t.jsx(gr,{children:g.submit}),t.jsx(Ti,{type:"submit",disabled:b||e,children:b?t.jsx(Mi,{size:16}):"Continue"})]}),t.jsxs(Fi,{children:["Already have an account?"," ",t.jsx(Zi,{children:t.jsx(Pt,{to:`${(ce=i.ui_settings)==null?void 0:ce.sign_in_page_url}${window.location.search}`,children:"Sign in"})})]})]})})})}const v1=c.createContext(void 0),x1=()=>{const e=c.useContext(v1);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},Tm=l.div`
|
|
833
|
+
`;function Pm(){var W,Y,J,ie,he,ee,xe,te,B,Je,Te,Ue,Ge,me,Q,ce;const{loading:e,signUp:r,signupAttempt:a,discardSignupAttempt:o}=c0(),{signIn:s}=ya("oauth"),{deployment:i}=Se(),{navigate:h}=jt(),{session:d,refetch:u,loading:f}=at(),[p,m]=c.useState({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),[g,x]=c.useState({}),[b,v]=c.useState(!1),[w,E]=c.useState(void 0),[j,S]=c.useState(null),[C,_]=c.useState(null),[k,y]=c.useState(!1),L=((W=i==null?void 0:i.restrictions)==null?void 0:W.sign_up_mode)==="restricted",$=((Y=i==null?void 0:i.restrictions)==null?void 0:Y.sign_up_mode)==="waitlist",H=((ie=(J=i==null?void 0:i.auth_settings)==null?void 0:J.multi_session_support)==null?void 0:ie.enabled)??!1;c.useEffect(()=>{var ne;if(!f&&(d!=null&&d.active_signin)&&!H&&!k){y(!0);let q=ft(i,new URLSearchParams(window.location.search).get("redirect_uri"));q||(q=((ne=i==null?void 0:i.ui_settings)==null?void 0:ne.after_signin_redirect_url)||null),!q&&(i!=null&&i.frontend_host)&&(q=`https://${i.frontend_host}`),!q&&(i!=null&&i.frontend_host)&&(q=`https://${i.frontend_host}`),q&&h(q)}},[d,f,H,i,h,k]),c.useEffect(()=>{var ue;if(!i)return;const q=new URLSearchParams(window.location.search).get("invite_token");if($&&!q){y(!0);const de=((ue=i.ui_settings)==null?void 0:ue.waitlist_page_url)||`https://${i.frontend_host}/waitlist`;h(de);return}q&&!j&&r&&(_(q),r.validateDeploymentInvitation(q).then(de=>{S(de),de.valid&&m(K=>({...K,first_name:de.first_name||K.first_name,last_name:de.last_name||K.last_name,email:de.email||K.email}))}).catch(()=>{x(de=>({...de,submit:"Failed to validate invitation."}))}))},[i,$,h,j,r]);const[F,M]=c.useState(!1),[R,A]=c.useState(""),z=ne=>{let{name:q,value:ue}=ne.target;q==="phone_number"?ue=ue.replace(/[^0-9-]/g,""):q==="email"&&(ue=ue.toLowerCase()),m(de=>({...de,[q]:ue})),x(de=>({...de,[q]:""}))},Z=()=>{m({first_name:"",last_name:"",email:"",password:"",username:"",phone_number:""}),x({}),M(!1),A(""),o()},P=async ne=>{if(ne.preventDefault(),e||b)return;const q={},ue=/^[a-zA-Z]{3,30}$/,de=/^[a-zA-Z][a-zA-Z0-9_.]{2,29}$/,K=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,pe=/^\d{7,15}$/,qe=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,125}$/;if(T!=null&&T.first_name.enabled&&(T!=null&&T.first_name.required&&!p.first_name?q.first_name="First name is required":p.first_name&&!ue.test(p.first_name)&&(q.first_name="Invalid name")),T!=null&&T.last_name.enabled&&(T!=null&&T.last_name.required&&!p.last_name?q.last_name="Last name is required":p.last_name&&!ue.test(p.last_name)&&(q.last_name="Invalid last name")),T!=null&&T.username.enabled&&(T!=null&&T.username.required&&!p.username?q.username="Username is required":p.username&&!de.test(p.username)&&(q.username="Username must be 3-20 characters")),T!=null&&T.email_address.enabled&&(T!=null&&T.email_address.required&&!p.email?q.email="Email address is required":p.email&&!K.test(p.email)&&(q.email="Invalid email address")),T!=null&&T.phone_number.enabled&&(T!=null&&T.phone_number.required&&!p.phone_number?q.phone_number="Phone number is required":p.phone_number&&!pe.test(p.phone_number)&&(q.phone_number="Phone number must contain 7-15 digits")),T!=null&&T.password.enabled&&(p.password?qe.test(p.password)||(q.password="Password must be 8-125 characters and include uppercase, lowercase, number, and special character"):q.password="Password is required"),x(q),!(Object.keys(q).length>0)){v(!0);try{const Oe={...p};p.phone_number&&w&&(Oe.phone_country_code=w),C&&(Oe.invite_token=C),await r.create(Oe)}catch(Oe){x({submit:Oe.message})}finally{v(!1)}}},O=async ne=>{if(!(e||b)){v(!0);try{const q=new URLSearchParams(window.location.search),ue=ft(i,q.get("redirect_uri"))||void 0,{data:de}=await s.create({provider:ne.provider,redirectUri:ue});de&&typeof de=="object"&&"oauth_url"in de&&(window.location.href=de.oauth_url)}catch(q){x({submit:q.message})}finally{v(!1)}}},I=(i==null?void 0:i.social_connections.filter(ne=>ne.enabled))||[],T=i==null?void 0:i.auth_settings,G=!!((he=T==null?void 0:T.first_name)!=null&&he.enabled&&((ee=T==null?void 0:T.last_name)!=null&&ee.enabled)),D=async ne=>{var ue;if(ne.preventDefault(),e||b)return;v(!0);const q={};if(!R){q.otp="OTP code is required",x(q),v(!1);return}x(q);try{const de=await r.completeVerification(R);"data"in de&&((ue=de.data)!=null&&ue.active_signin)&&await u()}catch{x(de=>({...de,submit:"Verification failed. Please try again."}))}finally{v(!1)}};return c.useEffect(()=>{var ne;if(a){if(a.completed){let q=ft(i,new URLSearchParams(window.location.search).get("redirect_uri"));if(q||(q=((ne=i==null?void 0:i.ui_settings)==null?void 0:ne.after_signup_redirect_url)||null),!q&&(i!=null&&i.frontend_host)&&(q=`https://${i.frontend_host}`),q){let ue;try{ue=new URL(q)}catch{ue=new URL(q,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&ue.searchParams.set("__dev_session__",mt(i.backend_host)||""),h(ue.toString())}return}if(!F){switch(a.current_step){case"verify_email":r.prepareVerification({strategy:"email_otp"});break;case"verify_phone":r.prepareVerification({strategy:"phone_otp"});break}M(!0)}}},[a,r,F,i,d,h]),f?t.jsx(fe,{children:t.jsxs(Na,{children:[t.jsx(Xe,{}),t.jsx(Ri,{children:t.jsx(yt,{size:32})})]})}):k?t.jsx(fe,{children:t.jsxs(Na,{children:[t.jsx(Xe,{}),t.jsx(Ri,{children:t.jsx(yt,{size:32})})]})}):L?t.jsx(fe,{children:t.jsxs(Na,{children:[t.jsx(Xe,{}),t.jsx(lo,{children:t.jsx(uo,{children:"Sign up Restricted!"})}),t.jsx(Sm,{children:t.jsx(Em,{children:"New account registration is currently restricted. Please check back later."})}),t.jsx(Am,{children:t.jsxs(zm,{children:["Need assistance?"," ",t.jsx($m,{href:(xe=i==null?void 0:i.ui_settings)!=null&&xe.sign_in_page_url?`${i.ui_settings.sign_in_page_url}?help=true`:"/contact",children:"Get help"})]})})]})}):t.jsx(fe,{children:t.jsx(Na,{children:F?t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsxs(lo,{children:[!((te=i==null?void 0:i.ui_settings)!=null&&te.logo_image_url)&&t.jsx(Mm,{children:(a==null?void 0:a.current_step)==="verify_phone"?t.jsx($s,{weight:"light"}):t.jsx(In,{weight:"light"})}),t.jsx(uo,{children:(a==null?void 0:a.current_step)==="verify_phone"?"Check your phone":"Enter the code"}),t.jsx(Pi,{children:(a==null?void 0:a.current_step)==="verify_phone"?"We sent a verification code via SMS.":"We sent a 6-digit code to your email."}),t.jsx(Lm,{children:t.jsxs(Rm,{type:"button",onClick:Z,children:[t.jsx(ds,{weight:"light"}),(a==null?void 0:a.current_step)==="verify_phone"?`+${p.phone_number}`:p.email]})})]}),t.jsxs(Ti,{onSubmit:D,noValidate:!0,children:[t.jsx(pr,{onComplete:async ne=>{A(ne)},onResend:async()=>{const ne=(a==null?void 0:a.current_step)==="verify_email"?"email_otp":"phone_otp";await r.prepareVerification({strategy:ne})},error:g.otp,isSubmitting:b}),t.jsx(Fi,{type:"submit",disabled:b||e||!R,children:b&&R?t.jsx(Li,{size:16}):`Continue to ${(B=i==null?void 0:i.ui_settings)==null?void 0:B.app_name}`})]}),t.jsxs(Zi,{children:["Having trouble?"," ",t.jsx(Ii,{children:t.jsx(Pt,{to:i.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsxs(lo,{children:[t.jsx(uo,{children:"Create your account"}),t.jsx(Pi,{children:j!=null&&j.valid?"You've been invited! Complete your registration below.":"Welcome! Please fill in the details to get started."})]}),I.length>0&&t.jsxs(t.Fragment,{children:[t.jsx(Rs,{connections:I,callback:O}),t.jsx(jm,{children:t.jsx(_m,{children:"or"})})]}),t.jsxs(Ti,{onSubmit:P,noValidate:!0,children:[(((Je=T==null?void 0:T.first_name)==null?void 0:Je.enabled)||((Te=T==null?void 0:T.last_name)==null?void 0:Te.enabled))&&t.jsxs(km,{$isBothEnabled:G,children:[((Ue=T==null?void 0:T.first_name)==null?void 0:Ue.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"first_name",children:["First name",((Ge=T==null?void 0:T.first_name)==null?void 0:Ge.required)&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"text",id:"first_name",name:"first_name",required:!0,minLength:3,maxLength:30,value:p.first_name,onChange:z,placeholder:"First name","aria-invalid":!!g.first_name,pattern:"^[a-zA-Z]{3,30}$"}),g.first_name&&t.jsx(gr,{children:g.first_name})]}),((me=T==null?void 0:T.last_name)==null?void 0:me.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"last_name",children:["Last name",((Q=T==null?void 0:T.last_name)==null?void 0:Q.required)&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"text",id:"last_name",name:"last_name",required:!0,minLength:3,maxLength:30,value:p.last_name,onChange:z,placeholder:"Last name","aria-invalid":!!g.last_name,pattern:"^[a-zA-Z]{3,30}$"}),g.last_name&&t.jsx(gr,{children:g.last_name})]})]}),(T==null?void 0:T.username.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"username",children:["Username",T.username.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"text",id:"username",name:"username",minLength:3,maxLength:20,value:p.username,onChange:z,placeholder:"Choose a username","aria-invalid":!!g.username,required:!0,pattern:"^[a-zA-Z][a-zA-Z0-9_.]{2,29}$"}),g.username&&t.jsx(gr,{children:g.username})]}),(T==null?void 0:T.email_address.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"email",children:["Email address",T.email_address.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(le,{type:"email",id:"email",name:"email",maxLength:320,value:p.email,onChange:z,placeholder:"Enter your email address","aria-invalid":!!g.email,required:!0,readOnly:(j==null?void 0:j.valid)&&!!(j!=null&&j.email),pattern:"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"}),g.email&&t.jsx(gr,{children:g.email})]}),(T==null?void 0:T.phone_number.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"phone_number",children:["Phone number",T.phone_number.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(Ma,{value:p.phone_number,onChange:z,error:g.phone_number,countryCode:w,setCountryCode:E}),g.phone_number&&t.jsx(gr,{children:g.phone_number})]}),(T==null?void 0:T.password.enabled)&&t.jsxs(Hr,{children:[t.jsxs(Vr,{htmlFor:"password",children:["Password",T.password.required&&t.jsx(Dr,{children:"*"})]}),t.jsx(Cm,{children:t.jsx(le,{type:"password",id:"password",name:"password",value:p.password,onChange:z,placeholder:"Enter your password","aria-invalid":!!g.password,required:!0,minLength:8,maxLength:128,pattern:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,125}$"})}),g.password&&t.jsx(gr,{children:g.password})]}),g.submit&&t.jsx(gr,{children:g.submit}),t.jsx(Fi,{type:"submit",disabled:b||e,children:b?t.jsx(Li,{size:16}):"Continue"})]}),t.jsxs(Zi,{children:["Already have an account?"," ",t.jsx(Ii,{children:t.jsx(Pt,{to:`${(ce=i.ui_settings)==null?void 0:ce.sign_in_page_url}${window.location.search}`,children:"Sign in"})})]})]})})})}const v1=c.createContext(void 0),x1=()=>{const e=c.useContext(v1);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},Tm=l.div`
|
|
834
834
|
position: fixed;
|
|
835
835
|
inset: 0;
|
|
836
836
|
background-color: var(--color-dialog-backdrop);
|
|
@@ -881,7 +881,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
881
881
|
gap: var(--space-4u);
|
|
882
882
|
padding: var(--space-8u);
|
|
883
883
|
border-top: var(--border-width-thin) solid var(--color-border);
|
|
884
|
-
`,Dm=({isOpen:e,onClose:r,children:a})=>{const[o,s]=c.useState(!1);return c.useEffect(()=>{s(!0);const i=h=>{h.key==="Escape"&&e&&(r==null||r())};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[e,r]),!e||!o?null:An.createPortal(t.jsx(fe,{children:t.jsx(v1.Provider,{value:{isOpen:e,onClose:r},children:a})}),document.body)},Nm=({children:e})=>{const{onClose:r}=x1(),a=c.useRef(null),o=s=>{a.current&&!a.current.contains(s.target)&&(r==null||r())};return t.jsx(Tm,{onClick:o,children:t.jsx("div",{ref:a,children:e})})},Um=({children:e,style:r,className:a})=>t.jsx(Fm,{style:r,className:a,children:e}),Bm=({children:e,showCloseButton:r=!0})=>{const{onClose:a}=x1();return t.jsxs(Zm,{children:[typeof e=="string"?t.jsx(Im,{children:e}):e,r&&t.jsx(Om,{onClick:a,children:t.jsx(
|
|
884
|
+
`,Dm=({isOpen:e,onClose:r,children:a})=>{const[o,s]=c.useState(!1);return c.useEffect(()=>{s(!0);const i=h=>{h.key==="Escape"&&e&&(r==null||r())};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[e,r]),!e||!o?null:An.createPortal(t.jsx(fe,{children:t.jsx(v1.Provider,{value:{isOpen:e,onClose:r},children:a})}),document.body)},Nm=({children:e})=>{const{onClose:r}=x1(),a=c.useRef(null),o=s=>{a.current&&!a.current.contains(s.target)&&(r==null||r())};return t.jsx(Tm,{onClick:o,children:t.jsx("div",{ref:a,children:e})})},Um=({children:e,style:r,className:a})=>t.jsx(Fm,{style:r,className:a,children:e}),Bm=({children:e,showCloseButton:r=!0})=>{const{onClose:a}=x1();return t.jsxs(Zm,{children:[typeof e=="string"?t.jsx(Im,{children:e}):e,r&&t.jsx(Om,{onClick:a,children:t.jsx(Ls,{size:18})})]})},Wm=({children:e,style:r,className:a})=>t.jsx(Hm,{style:r,className:a,children:e}),Gm=({children:e})=>t.jsx(Vm,{children:e}),Ve=Object.assign(Dm,{Overlay:Nm,Content:Um,Header:Bm,Body:Wm,Footer:Gm}),qm=({isOpen:e,onClose:r,title:a,children:o,showCloseButton:s=!0})=>t.jsx(Ve,{isOpen:e,onClose:r,children:t.jsx(Ve.Overlay,{children:t.jsxs(Ve.Content,{children:[a&&t.jsx(Ve.Header,{showCloseButton:s,children:a}),t.jsx(Ve.Body,{children:o})]})})}),Km=({trigger:e,renderDialog:r})=>{const[a,o]=c.useState(!1),s=()=>o(!0),i=()=>o(!1);return t.jsxs(t.Fragment,{children:[e({onClick:s}),r({isOpen:a,onClose:i})]})},Ym=l.div`
|
|
885
885
|
position: fixed;
|
|
886
886
|
background: var(--color-popover);
|
|
887
887
|
color: var(--color-popover-foreground);
|
|
@@ -1143,7 +1143,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1143
1143
|
color: var(--color-muted);
|
|
1144
1144
|
background: var(--color-secondary);
|
|
1145
1145
|
color: var(--color-secondary-foreground);
|
|
1146
|
-
`,On=({options:e,value:r,onChange:a,placeholder:o="Select an option",disabled:s=!1,searchable:i=!1,width:h,name:d,id:u,groupsEnabled:f=!1,className:p})=>{const[m,g]=c.useState(!1),[x,b]=c.useState(""),v=c.useRef(null),w=c.useRef(null),E=f&&"options"in e[0],S=(E?e.flatMap(y=>y.options):e).find(y=>y.value===r),C=x?E?e.map(y=>({...y,options:y.options.filter(L=>L.label.toLowerCase().includes(x.toLowerCase()))})).filter(y=>y.options.length>0):e.filter(y=>y.label.toLowerCase().includes(x.toLowerCase())):e,_=(y,L=!1)=>{L||(a(y),g(!1),b(""))},k=()=>{s||g(!m)};return c.useEffect(()=>{m&&i&&w.current&&setTimeout(()=>{var y;(y=w.current)==null||y.focus()},10)},[m,i]),c.useEffect(()=>{const y=L=>{v.current&&!v.current.contains(L.target)&&(g(!1),b(""))};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[]),t.jsxs(_1,{ref:v,style:{width:h},className:p,children:[t.jsxs(k1,{type:"button",onClick:k,disabled:s,"aria-haspopup":"listbox","aria-expanded":m,id:u,children:[S?S.label:t.jsx(E1,{children:o}),m?t.jsx(jd,{size:16}):t.jsx(ur,{size:16})]}),t.jsxs(C1,{isOpen:m,role:"listbox",children:[i&&t.jsx(S1,{ref:w,type:"text",placeholder:"MagnifyingGlass...",value:x,onChange:y=>b(y.target.value),onClick:y=>y.stopPropagation()}),E?C.map((y,L)=>t.jsxs(c.Fragment,{children:[t.jsx(A1,{children:y.label}),y.options.length===0?t.jsx(Sn,{children:"No options available"}):y.options.map(
|
|
1146
|
+
`,On=({options:e,value:r,onChange:a,placeholder:o="Select an option",disabled:s=!1,searchable:i=!1,width:h,name:d,id:u,groupsEnabled:f=!1,className:p})=>{const[m,g]=c.useState(!1),[x,b]=c.useState(""),v=c.useRef(null),w=c.useRef(null),E=f&&"options"in e[0],S=(E?e.flatMap(y=>y.options):e).find(y=>y.value===r),C=x?E?e.map(y=>({...y,options:y.options.filter(L=>L.label.toLowerCase().includes(x.toLowerCase()))})).filter(y=>y.options.length>0):e.filter(y=>y.label.toLowerCase().includes(x.toLowerCase())):e,_=(y,L=!1)=>{L||(a(y),g(!1),b(""))},k=()=>{s||g(!m)};return c.useEffect(()=>{m&&i&&w.current&&setTimeout(()=>{var y;(y=w.current)==null||y.focus()},10)},[m,i]),c.useEffect(()=>{const y=L=>{v.current&&!v.current.contains(L.target)&&(g(!1),b(""))};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[]),t.jsxs(_1,{ref:v,style:{width:h},className:p,children:[t.jsxs(k1,{type:"button",onClick:k,disabled:s,"aria-haspopup":"listbox","aria-expanded":m,id:u,children:[S?S.label:t.jsx(E1,{children:o}),m?t.jsx(jd,{size:16}):t.jsx(ur,{size:16})]}),t.jsxs(C1,{isOpen:m,role:"listbox",children:[i&&t.jsx(S1,{ref:w,type:"text",placeholder:"MagnifyingGlass...",value:x,onChange:y=>b(y.target.value),onClick:y=>y.stopPropagation()}),E?C.map((y,L)=>t.jsxs(c.Fragment,{children:[t.jsx(A1,{children:y.label}),y.options.length===0?t.jsx(Sn,{children:"No options available"}):y.options.map($=>t.jsxs(Cn,{isSelected:$.value===r,disabled:$.disabled,onClick:()=>_($.value,$.disabled),role:"option","aria-selected":$.value===r,children:[$.label,$.value===r&&t.jsx(ct,{size:16})]},$.value))]},`group-${L}`)):t.jsx(t.Fragment,{children:C.length===0?t.jsx(Sn,{children:"No options available"}):C.map(y=>t.jsxs(Cn,{isSelected:y.value===r,disabled:y.disabled,onClick:()=>_(y.value,y.disabled),role:"option","aria-selected":y.value===r,children:[y.label,y.value===r&&t.jsx(ct,{size:16})]},y.value))})]}),d&&t.jsx("input",{type:"hidden",name:d,value:r||""})]})},z1=({options:e,value:r,onChange:a,placeholder:o="Select options",disabled:s=!1,searchable:i=!1,width:h,name:d,id:u,groupsEnabled:f=!1,className:p})=>{const[m,g]=c.useState(!1),[x,b]=c.useState(""),v=c.useRef(null),w=c.useRef(null),E=f&&"options"in e[0],S=(E?e.flatMap(y=>y.options):e).filter(y=>r.includes(y.value)),C=x?E?e.map(y=>({...y,options:y.options.filter(L=>L.label.toLowerCase().includes(x.toLowerCase()))})).filter(y=>y.options.length>0):e.filter(y=>y.label.toLowerCase().includes(x.toLowerCase())):e,_=(y,L=!1)=>{L||(r.includes(y)?a(r.filter($=>$!==y)):a([...r,y]))},k=()=>{s||g(!m)};return c.useEffect(()=>{m&&i&&w.current&&setTimeout(()=>{var y;(y=w.current)==null||y.focus()},10)},[m,i]),c.useEffect(()=>{const y=L=>{v.current&&!v.current.contains(L.target)&&(g(!1),b(""))};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[]),t.jsxs(_1,{ref:v,style:{width:h},className:p,children:[t.jsxs(k1,{type:"button",onClick:k,disabled:s,"aria-haspopup":"listbox","aria-expanded":m,id:u,children:[S.length>0?S.map(y=>y.label).join(", "):t.jsx(E1,{children:o}),m?t.jsx(jd,{size:16}):t.jsx(ur,{size:16})]}),t.jsxs(C1,{isOpen:m,role:"listbox",children:[i&&t.jsx(S1,{ref:w,type:"text",placeholder:"MagnifyingGlass...",value:x,onChange:y=>b(y.target.value),onClick:y=>y.stopPropagation()}),E?C.map((y,L)=>t.jsxs(c.Fragment,{children:[t.jsx(A1,{children:y.label}),y.options.length===0?t.jsx(Sn,{children:"No options available"}):y.options.map($=>t.jsxs(Cn,{isSelected:r.includes($.value),disabled:$.disabled,onClick:()=>_($.value,$.disabled),role:"option","aria-selected":r.includes($.value),children:[$.label,r.includes($.value)&&t.jsx(ct,{size:16})]},$.value))]},`group-${L}`)):t.jsx(t.Fragment,{children:C.length===0?t.jsx(Sn,{children:"No options available"}):C.map(y=>t.jsxs(Cn,{isSelected:r.includes(y.value),disabled:y.disabled,onClick:()=>_(y.value,y.disabled),role:"option","aria-selected":r.includes(y.value),children:[y.label,r.includes(y.value)&&t.jsx(ct,{size:16})]},y.value))})]}),d&&t.jsx("input",{type:"hidden",name:d,value:r.join(",")})]})},i4=l.button`
|
|
1147
1147
|
display: flex;
|
|
1148
1148
|
align-items: center;
|
|
1149
1149
|
gap: var(--space-4u);
|
|
@@ -1228,7 +1228,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1228
1228
|
font-weight: 600;
|
|
1229
1229
|
text-transform: uppercase;
|
|
1230
1230
|
letter-spacing: 0.1em;
|
|
1231
|
-
`,g4=[{key:"email_magic_link",icon:t.jsx(Af,{}),label:"Magic link",description:"We'll email you a one-click sign-in link"},{key:"email_password",icon:t.jsx(Ef,{}),label:"Email and password",description:"Sign in with your email and password"},{key:"email_otp",icon:t.jsx(Vd,{}),label:"Email one-time code",description:"We'll send a verification code to your email"},{key:"phone_otp",icon:t.jsx(
|
|
1231
|
+
`,g4=[{key:"email_magic_link",icon:t.jsx(Af,{}),label:"Magic link",description:"We'll email you a one-click sign-in link"},{key:"email_password",icon:t.jsx(Ef,{}),label:"Email and password",description:"Sign in with your email and password"},{key:"email_otp",icon:t.jsx(Vd,{}),label:"Email one-time code",description:"We'll send a verification code to your email"},{key:"phone_otp",icon:t.jsx($s,{}),label:"Phone number",description:"We'll send a verification code via SMS"},{key:"username_password",icon:t.jsx(Aa,{}),label:"Username and password",description:"Sign in with your username and password"}];function R1(){const{deployment:e}=Se(),{signIn:r}=ya("oauth"),{setFirstFactor:a,firstFactor:o,setShowOtherOptions:s,setSignInStep:i}=L1(),[h,d]=c.useState(!1),u=e==null?void 0:e.auth_settings,f=(e==null?void 0:e.social_connections.filter(b=>b.enabled))||[],p=async b=>{if(!h){d(!0);try{const{data:v}=await r.create({provider:b.provider});v&&typeof v=="object"&&"oauth_url"in v&&(window.location.href=v.oauth_url)}catch{}finally{d(!1)}}},m=g4.filter(b=>{if(b.key===o)return!1;const v=u==null?void 0:u.auth_factors_enabled;return v?v[b.key]:!1}),g=f.length>0,x=m.length>0;return t.jsxs(t.Fragment,{children:[g&&t.jsx(Rs,{connections:f,callback:p}),g&&x&&t.jsx(f4,{children:t.jsx(m4,{children:"or"})}),x&&t.jsx(h4,{children:m.map(b=>t.jsx($1,{icon:b.icon,label:b.label,description:b.description,onClick:()=>{a(b.key),i("identifier"),s(!1)}},b.key))})]})}const v4=gt`
|
|
1232
1232
|
from { transform: rotate(0deg); }
|
|
1233
1233
|
to { transform: rotate(360deg); }
|
|
1234
1234
|
`,po=l(yt)`
|
|
@@ -1301,7 +1301,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1301
1301
|
&:hover {
|
|
1302
1302
|
text-decoration: underline;
|
|
1303
1303
|
}
|
|
1304
|
-
`;function j4({onBack:e}){const{deployment:r}=Se(),{navigate:a}=jt(),[o,s]=c.useState("start"),[i,h]=c.useState(""),[d,u]=c.useState(""),[f,p]=c.useState(""),[m,g]=c.useState(""),[x,b]=c.useState(""),{forgotPassword:v,verifyOtp:w,resetPassword:E}=
|
|
1304
|
+
`;function j4({onBack:e}){const{deployment:r}=Se(),{navigate:a}=jt(),[o,s]=c.useState("start"),[i,h]=c.useState(""),[d,u]=c.useState(""),[f,p]=c.useState(""),[m,g]=c.useState(""),[x,b]=c.useState(""),{forgotPassword:v,verifyOtp:w,resetPassword:E}=_0(),[j,S]=c.useState(!1),[C,_]=c.useState(null),k=async H=>{if(H.preventDefault(),!!i){S(!0),_(null);try{await v(i),s("otp")}catch(F){_(F)}finally{S(!1)}}},y=async H=>{if(H.preventDefault(),d.length===6){S(!0),_(null);try{const F=await w(i,d);F.data&&(p(F.data.token),s("reset"))}catch(F){_(F)}finally{S(!1)}}},L=async H=>{var F,M;if(H.preventDefault(),m===x&&!(m.length<8)){S(!0),_(null);try{const R=await E(f,m);if(R.data){const A=R.data,z=A.signin_attempts&&A.signin_attempts.length>0?A.signin_attempts[A.signin_attempts.length-1]:null;if(z&&!z.completed){const Z=(F=r==null?void 0:r.ui_settings)==null?void 0:F.sign_in_page_url;if(Z){const P=new URL(Z,window.location.origin);P.searchParams.set("signin_attempt_id",z.id),a(P.toString())}else e()}else{const Z=((M=r==null?void 0:r.ui_settings)==null?void 0:M.after_signin_redirect_url)||"/";a(Z)}}}catch(R){_(R)}finally{S(!1)}}},$=()=>t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsx(Ua,{children:t.jsx(Ba,{children:"Forgot Password"})}),t.jsx(w4,{onClick:()=>s("email"),disabled:j,children:"Reset your password"}),t.jsx(b4,{children:t.jsx(y4,{children:"Or, sign in with another method"})}),t.jsx(R1,{}),t.jsxs(Wa,{children:[t.jsxs(pa,{children:["Unable to reset password? ",t.jsx(ha,{href:"/contact",children:"Get help"})]}),t.jsx(pa,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ha,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})]})]});return t.jsx(fe,{children:t.jsxs(x4,{children:[o==="start"&&$(),o==="email"&&t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsxs(Ua,{children:[t.jsx(Ba,{children:"Forgot Password"}),t.jsx(ho,{children:"Enter your email address and we'll send you a code to reset your password."})]}),t.jsxs(Ot,{onSubmit:k,noValidate:!0,children:[t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"email",children:"Email Address"}),t.jsx(le,{type:"email",id:"email",value:i,onChange:H=>h(H.target.value),placeholder:"Enter your email",required:!0})]}),C&&t.jsx(fo,{children:C.message}),t.jsx(N,{type:"submit",$fullWidth:!0,disabled:j,style:{marginTop:"var(--space-6u)"},children:j?t.jsx(po,{size:16}):"Send Code"})]}),t.jsx(Wa,{children:t.jsx(pa,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ha,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})})]}),o==="otp"&&t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsxs(Ua,{children:[t.jsx(Ba,{children:"Enter Verification Code"}),t.jsxs(ho,{children:["We've sent a 6-digit code to ",i,". Please enter it below."]})]}),t.jsxs(Ot,{onSubmit:y,noValidate:!0,children:[t.jsx(pr,{onComplete:H=>u(H),isSubmitting:j,error:C==null?void 0:C.message,onResend:async()=>{await v(i)}}),C&&t.jsx(fo,{children:C.message}),t.jsx(N,{type:"submit",$fullWidth:!0,disabled:j||d.length!==6,style:{marginTop:"var(--space-6u)"},children:j?t.jsx(po,{size:16}):"Verify"})]}),t.jsx(Wa,{children:t.jsx(pa,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ha,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})})]}),o==="reset"&&t.jsxs(t.Fragment,{children:[t.jsx(Xe,{}),t.jsxs(Ua,{children:[t.jsx(Ba,{children:"Reset Password"}),t.jsx(ho,{children:"Create a new password for your account."})]}),t.jsxs(Ot,{onSubmit:L,noValidate:!0,children:[t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"password",children:"New Password"}),t.jsx(le,{type:"password",id:"password",value:m,onChange:H=>g(H.target.value),placeholder:"Enter new password",required:!0})]}),t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"confirmPassword",children:"Confirm New Password"}),t.jsx(le,{type:"password",id:"confirmPassword",value:x,onChange:H=>b(H.target.value),placeholder:"Confirm new password",required:!0})]}),C&&t.jsx(fo,{children:C.message}),t.jsx(N,{type:"submit",$fullWidth:!0,disabled:j,style:{marginTop:"var(--space-6u)"},children:j?t.jsx(po,{size:16}):"Reset Password"})]}),t.jsx(Wa,{children:t.jsx(pa,{style:{marginTop:"var(--space-4u)"},children:t.jsx(ha,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})})]})]})})}const _4=l.div`
|
|
1305
1305
|
${Et}
|
|
1306
1306
|
`,k4=l.div`
|
|
1307
1307
|
margin-bottom: var(--space-8u);
|
|
@@ -1496,20 +1496,20 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1496
1496
|
animation: ${F1} 1s linear infinite;
|
|
1497
1497
|
color: var(--color-primary);
|
|
1498
1498
|
}
|
|
1499
|
-
`,
|
|
1499
|
+
`,Oi=l.div`
|
|
1500
1500
|
text-align: center;
|
|
1501
1501
|
margin-bottom: var(--space-8u);
|
|
1502
1502
|
position: relative;
|
|
1503
|
-
`,
|
|
1503
|
+
`,Hi=l.h1`
|
|
1504
1504
|
font-size: var(--font-size-xl);
|
|
1505
1505
|
font-weight: 400;
|
|
1506
1506
|
color: var(--color-card-foreground);
|
|
1507
1507
|
margin-bottom: var(--space-2u);
|
|
1508
1508
|
margin-top: 0;
|
|
1509
|
-
`,
|
|
1509
|
+
`,Vi=l.p`
|
|
1510
1510
|
color: var(--color-secondary-text);
|
|
1511
1511
|
font-size: var(--font-size-md);
|
|
1512
|
-
`,
|
|
1512
|
+
`,Di=l.p`
|
|
1513
1513
|
font-size: var(--font-size-xs);
|
|
1514
1514
|
color: var(--color-error);
|
|
1515
1515
|
margin: 0;
|
|
@@ -1517,7 +1517,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1517
1517
|
`,a6=l(N)`
|
|
1518
1518
|
margin-top: var(--space-4u);
|
|
1519
1519
|
width: 100%;
|
|
1520
|
-
`,
|
|
1520
|
+
`,Ni=l.div`
|
|
1521
1521
|
margin-top: var(--space-8u);
|
|
1522
1522
|
text-align: center;
|
|
1523
1523
|
font-size: var(--font-size-md);
|
|
@@ -1534,24 +1534,24 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1534
1534
|
}
|
|
1535
1535
|
`,n6=l(le)`
|
|
1536
1536
|
padding: var(--space-4u) var(--space-6u);
|
|
1537
|
-
`;function Z1({onBack:e,attempt:r,completeVerification:a,prepareVerification:o}){const{deployment:s}=Se(),[i,h]=c.useState(""),[d,u]=c.useState({}),[f,p]=c.useState(!1),[m,g]=c.useState(null),[x,b]=c.useState(!0),[v,w]=c.useState(!1),[E,j]=c.useState(""),[S,C]=c.useState(!1),{navigate:_}=jt(),k=(r==null?void 0:r.available_2fa_methods)||[],y=[{id:"authenticator",name:"Authenticator app",description:"Use your authenticator app",icon:t.jsx(J4,{}),available:k.includes("authenticator")},{id:"phone_otp",name:"Text message",description:"Get a code via SMS",icon:t.jsx(X4,{}),available:k.includes("phone_otp"),phoneNumber:E},{id:"backup_code",name:"Backup code",description:"Use one of your backup codes",icon:t.jsx(e6,{}),available:k.includes("backup_code")}].filter(M=>M.available),L=async M=>{g(M),b(!1),M==="phone_otp"&&w(!0)}
|
|
1537
|
+
`;function Z1({onBack:e,attempt:r,completeVerification:a,prepareVerification:o}){const{deployment:s}=Se(),[i,h]=c.useState(""),[d,u]=c.useState({}),[f,p]=c.useState(!1),[m,g]=c.useState(null),[x,b]=c.useState(!0),[v,w]=c.useState(!1),[E,j]=c.useState(""),[S,C]=c.useState(!1),{navigate:_}=jt(),k=(r==null?void 0:r.available_2fa_methods)||[],y=[{id:"authenticator",name:"Authenticator app",description:"Use your authenticator app",icon:t.jsx(J4,{}),available:k.includes("authenticator")},{id:"phone_otp",name:"Text message",description:"Get a code via SMS",icon:t.jsx(X4,{}),available:k.includes("phone_otp"),phoneNumber:E},{id:"backup_code",name:"Backup code",description:"Use one of your backup codes",icon:t.jsx(e6,{}),available:k.includes("backup_code")}].filter(M=>M.available),L=async M=>{g(M),b(!1),M==="phone_otp"&&w(!0)},$=async M=>{var R,A;if(r){p(!0);try{const z=await o({strategy:"phone_otp",lastDigits:M});z&&"data"in z&&((R=z.data)!=null&&R.otp_sent)?((A=z.data)!=null&&A.masked_phone&&j(z.data.masked_phone),w(!1)):u({phone:"Phone number verification failed"})}catch(z){u({phone:z.message})}finally{p(!1)}}},H=async(M,R)=>{if(M.preventDefault(),f)return;const A=R||i,z={};if(A?m==="authenticator"&&A.length!==6?z.code="Authentication code must be 6 digits":m==="phone_otp"&&A.length!==6&&(z.code="SMS code must be 6 digits"):z.code="Verification code is required",u(z),!(Object.keys(z).length>0)){p(!0);try{await a(A)}catch(Z){u({submit:Z.message})}finally{p(!1)}}},F=M=>{let R=M.target.value;m!=="backup_code"&&(R=R.replace(/\D/g,"").slice(0,6)),h(R),u(A=>({...A,code:""}))};return c.useEffect(()=>{var M;if(r.completed){C(!0);let R=ft(s,new URLSearchParams(window.location.search).get("redirect_uri"));if(R||(R=((M=s==null?void 0:s.ui_settings)==null?void 0:M.after_signin_redirect_url)||null),!R&&(s!=null&&s.frontend_host)&&(R=`https://${s.frontend_host}`),R){let A;try{A=new URL(R)}catch{A=new URL(R,window.location.origin)}(s==null?void 0:s.mode)==="staging"&&A.searchParams.set("__dev_session__",mt(s.backend_host)||""),_(A.toString())}return}},[r,s]),S?t.jsx(fe,{children:t.jsxs(mo,{children:[t.jsx(Xe,{}),t.jsx(r6,{children:t.jsx(yt,{size:32})})]})}):x?y.length===0?t.jsx(fe,{children:t.jsxs(mo,{children:[t.jsx(Xe,{}),t.jsxs(Oi,{children:[t.jsx(Hi,{children:"Set Up Two-Factor Authentication"}),t.jsx(Vi,{children:"Your account requires two-factor authentication, but you haven't set up any methods yet. Please contact your administrator to set up 2FA."})]}),t.jsxs(Ni,{children:[e&&t.jsx("div",{children:t.jsx(fa,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})}),t.jsxs("div",{style:{marginTop:"var(--space-4u)"},children:["Having trouble?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:(s==null?void 0:s.ui_settings.support_page_url)||"#",children:"Get help"})})]})]})]})}):t.jsx(P1,{methods:y,onSelectMethod:L,onBack:e}):v&&m==="phone_otp"?t.jsx(T1,{onVerify:$,onBack:()=>{w(!1),b(!0),g(null)},loading:f}):t.jsx(fe,{children:t.jsxs(mo,{children:[t.jsx(Xe,{}),t.jsxs(Oi,{children:[t.jsx(Hi,{children:"Two-factor authentication"}),t.jsxs(Vi,{children:[m==="authenticator"&&"Enter the 6-digit code from your authenticator app",m==="phone_otp"&&`Enter the 6-digit code sent to your phone ${E}`,m==="backup_code"&&"Enter one of your backup codes"]})]}),t.jsxs(Ot,{onSubmit:H,noValidate:!0,children:[m==="backup_code"?t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"code",children:"Backup code"}),t.jsx(n6,{type:"text",id:"code",name:"code",value:i,onChange:F,placeholder:"Enter backup code",maxLength:20,autoComplete:"one-time-code","aria-invalid":!!d.code,autoFocus:!0}),d.code&&t.jsx(Di,{children:d.code})]}):t.jsx(pr,{onComplete:async M=>{if(h(M),m!=="backup_code"){const R=new Event("submit",{bubbles:!0,cancelable:!0});await H(R,M)}},onResend:m==="phone_otp"?async()=>{try{await o({strategy:"phone_otp",lastDigits:E.slice(-4)})}catch(M){u({submit:M.message})}}:void 0,error:d.code,isSubmitting:f}),t.jsxs("div",{children:[d.submit&&t.jsx(Di,{children:d.submit}),t.jsx(a6,{type:"submit",disabled:f||!i,children:f?t.jsx(t6,{size:16}):"Verify"})]})]}),t.jsxs(Ni,{children:[t.jsx(fa,{onClick:()=>{b(!0),g(null),h(""),u({})},style:{cursor:"pointer"},children:"Try another method"}),t.jsxs("div",{style:{marginTop:"var(--space-4u)"},children:["Having trouble?"," ",t.jsx(fa,{children:t.jsx(Pt,{to:(s==null?void 0:s.ui_settings.support_page_url)||"#",children:"Get help"})})]}),e&&t.jsx("div",{style:{marginTop:"var(--space-4u)"},children:t.jsx(fa,{onClick:e,style:{cursor:"pointer"},children:"Back to login"})})]})]})})}const o6=gt`
|
|
1538
1538
|
from { transform: rotate(0deg); }
|
|
1539
1539
|
to { transform: rotate(360deg); }
|
|
1540
1540
|
`,s6=l(yt)`
|
|
1541
1541
|
animation: ${o6} 1s linear infinite;
|
|
1542
1542
|
`,go=l.div`
|
|
1543
1543
|
${Et}
|
|
1544
|
-
`,
|
|
1544
|
+
`,Ui=l.div`
|
|
1545
1545
|
text-align: center;
|
|
1546
1546
|
margin-bottom: var(--space-8u);
|
|
1547
1547
|
position: relative;
|
|
1548
|
-
`,
|
|
1548
|
+
`,Bi=l.h1`
|
|
1549
1549
|
font-size: var(--font-size-2xl);
|
|
1550
1550
|
font-weight: 400;
|
|
1551
1551
|
color: var(--color-card-foreground);
|
|
1552
1552
|
margin-bottom: var(--space-2u);
|
|
1553
1553
|
margin-top: 0;
|
|
1554
|
-
`,
|
|
1554
|
+
`,Wi=l.p`
|
|
1555
1555
|
color: var(--color-secondary-text);
|
|
1556
1556
|
font-size: var(--font-size-md);
|
|
1557
1557
|
`,i6=l.div`
|
|
@@ -1565,7 +1565,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1565
1565
|
margin-top: var(--space-1u);
|
|
1566
1566
|
`,c6=l(N)`
|
|
1567
1567
|
margin-top: var(--space-4u);
|
|
1568
|
-
`,
|
|
1568
|
+
`,Gi=l.div`
|
|
1569
1569
|
margin-top: var(--space-8u);
|
|
1570
1570
|
text-align: center;
|
|
1571
1571
|
font-size: var(--font-size-md);
|
|
@@ -1599,7 +1599,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1599
1599
|
transform: rotate(360deg);
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
`;function I1({attempt:e,onBack:r,completeProfile:a,completeVerification:o,prepareVerification:s}){var
|
|
1602
|
+
`;function I1({attempt:e,onBack:r,completeProfile:a,completeVerification:o,prepareVerification:s}){var O,I,T,G,D,W,Y,J,ie;const{deployment:i}=Se(),{navigate:h}=jt(),[d,u]=c.useState({}),[f,p]=c.useState({}),[m,g]=c.useState("US"),[x,b]=c.useState(!1),[v,w]=c.useState(!1),[E,j]=c.useState(null),[S,C]=c.useState(!1),_=E,k=v,y=async he=>{var ee;w(!0),j(null);try{if(await a(he)){C(!0);let te=ft(i,new URLSearchParams(window.location.search).get("redirect_uri"));if(te||(te=((ee=i==null?void 0:i.ui_settings)==null?void 0:ee.after_signin_redirect_url)||null),!te&&(i!=null&&i.frontend_host)&&(te=`https://${i.frontend_host}`),te){let B;try{B=new URL(te)}catch{B=new URL(te,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&B.searchParams.set("__dev_session__",mt(i.backend_host)||""),h(B.toString())}}}catch(xe){const te=xe;throw j(te),te}finally{w(!1)}},L=async he=>{var ee;w(!0),j(null);try{if(await o(he)){C(!0);let te=ft(i,new URLSearchParams(window.location.search).get("redirect_uri"));if(te||(te=((ee=i==null?void 0:i.ui_settings)==null?void 0:ee.after_signin_redirect_url)||null),!te&&(i!=null&&i.frontend_host)&&(te=`https://${i.frontend_host}`),te){let B;try{B=new URL(te)}catch{B=new URL(te,window.location.origin)}(i==null?void 0:i.mode)==="staging"&&B.searchParams.set("__dev_session__",mt(i.backend_host)||""),h(B.toString())}}return!0}catch(xe){return j(xe),!1}finally{w(!1)}};if(S||!e)return t.jsx(fe,{children:t.jsxs(go,{children:[t.jsx(Xe,{}),t.jsx(l6,{children:t.jsx(yt,{size:32})})]})});const $=e.missing_fields||[],H="Complete Your Profile",F="Please provide the following information to continue",M=i==null?void 0:i.auth_settings,R=(e==null?void 0:e.current_step)==="verify_phone_otp"||(e==null?void 0:e.current_step)==="verify_email_otp"||x,A=he=>{const{name:ee,value:xe}=he.target;u(te=>({...te,[ee]:xe})),f[ee]&&p(te=>({...te,[ee]:""}))},z=()=>{const he={};return $.forEach(ee=>{var B,Je,Te,Ue,Ge;const xe=d[ee];let te=!1;switch(ee){case"first_name":te=((B=M==null?void 0:M.first_name)==null?void 0:B.enabled)||!1;break;case"last_name":te=((Je=M==null?void 0:M.last_name)==null?void 0:Je.enabled)||!1;break;case"username":te=((Te=M==null?void 0:M.username)==null?void 0:Te.enabled)||!1;break;case"phone_number":te=((Ue=M==null?void 0:M.phone_number)==null?void 0:Ue.enabled)||!1;break;case"email_address":te=((Ge=M==null?void 0:M.email_address)==null?void 0:Ge.enabled)||!1;break;default:te=!0}if(te&&(!xe||xe.trim()==="")){const me=ee.replace("_"," ").replace(/\b\w/g,Q=>Q.toUpperCase());he[ee]=`${me} is required`}}),d.username&&$.includes("username")&&(/^[a-zA-Z0-9_-]{3,30}$/.test(d.username)||(he.username="Username must be 3-30 characters and contain only letters, numbers, underscores, and hyphens")),d.phone_number&&$.includes("phone_number")&&(/^\d{7,15}$/.test(d.phone_number)||(he.phone_number="Phone number must contain 7-15 digits")),d.email&&$.includes("email_address")&&(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(d.email)||(he.email_address="Please enter a valid email address")),p(he),Object.keys(he).length===0},Z=async he=>{if(he.preventDefault(),!z())return;const ee={...d};d.phone_number&&m&&(ee.phone_country_code=m),await y(ee)},P=he=>{const ee=he.target.value;u(xe=>({...xe,phone_number:ee})),f.phone_number&&p(xe=>({...xe,phone_number:""}))};if(R){const he=e.current_step==="verify_phone_otp"?"Verify Your Phone Number":"Verify Your Email",ee=e.current_step==="verify_phone_otp"?"Enter the 6-digit code sent to your phone":"Enter the 6-digit code sent to your email",xe=e.current_step==="verify_phone_otp"?"phone_otp":"email_otp";return t.jsx(fe,{children:t.jsxs(go,{children:[t.jsx(Xe,{}),t.jsxs(Ui,{children:[t.jsx(Bi,{children:he}),t.jsx(Wi,{children:ee})]}),t.jsxs(Ot,{onSubmit:te=>te.preventDefault(),noValidate:!0,children:[t.jsx(pr,{onComplete:L,onResend:async()=>{await s({strategy:xe})},error:_==null?void 0:_.message,isSubmitting:k}),_&&t.jsx(vr,{style:{marginBottom:"var(--space-6u)"},children:_.message})]}),t.jsxs(Gi,{children:[t.jsx("div",{children:t.jsx(Ga,{onClick:()=>b(!1),style:{cursor:"pointer"},children:"Back to profile completion"})}),t.jsxs("div",{style:{marginTop:"var(--space-4u)"},children:["Having trouble?"," ",t.jsx(Ga,{children:t.jsx(Pt,{to:(i==null?void 0:i.ui_settings.support_page_url)||"#",children:"Get help"})})]})]})]})})}return t.jsx(fe,{children:t.jsxs(go,{children:[t.jsx(Xe,{}),t.jsxs(Ui,{children:[t.jsx(Bi,{children:H}),t.jsx(Wi,{children:F})]}),t.jsxs(Ot,{onSubmit:Z,noValidate:!0,children:[($.includes("first_name")||$.includes("last_name"))&&(((O=M==null?void 0:M.first_name)==null?void 0:O.enabled)||((I=M==null?void 0:M.last_name)==null?void 0:I.enabled))&&t.jsxs(i6,{$isBothEnabled:!!((T=M==null?void 0:M.first_name)!=null&&T.enabled&&((G=M==null?void 0:M.last_name)!=null&&G.enabled)&&$.includes("first_name")&&$.includes("last_name")),children:[$.includes("first_name")&&((D=M==null?void 0:M.first_name)==null?void 0:D.enabled)&&t.jsxs(ke,{children:[t.jsxs(be,{htmlFor:"first_name",children:["First name ",M.first_name.required&&"*"]}),t.jsx(le,{type:"text",id:"first_name",name:"first_name",value:d.first_name||"",onChange:A,placeholder:"Enter your first name","aria-invalid":!!f.first_name,disabled:k,autoComplete:"given-name"}),f.first_name&&t.jsx(vr,{children:f.first_name})]}),$.includes("last_name")&&((W=M==null?void 0:M.last_name)==null?void 0:W.enabled)&&t.jsxs(ke,{children:[t.jsxs(be,{htmlFor:"last_name",children:["Last name ",M.last_name.required&&"*"]}),t.jsx(le,{type:"text",id:"last_name",name:"last_name",value:d.last_name||"",onChange:A,placeholder:"Enter your last name","aria-invalid":!!f.last_name,disabled:k,autoComplete:"family-name"}),f.last_name&&t.jsx(vr,{children:f.last_name})]})]}),$.includes("username")&&((Y=M==null?void 0:M.username)==null?void 0:Y.enabled)&&t.jsxs(ke,{children:[t.jsxs(be,{htmlFor:"username",children:["Username ",M.username.required&&"*"]}),t.jsx(le,{type:"text",id:"username",name:"username",value:d.username||"",onChange:A,placeholder:"Choose a username","aria-invalid":!!f.username,disabled:k,autoComplete:"username"}),f.username&&t.jsx(vr,{children:f.username})]}),$.includes("phone_number")&&((J=M==null?void 0:M.phone_number)==null?void 0:J.enabled)&&t.jsxs(ke,{children:[t.jsxs(be,{htmlFor:"phone_number",children:["Phone number ",M.phone_number.required&&"*"]}),t.jsx(Ma,{value:d.phone_number||"",onChange:P,error:f.phone_number,countryCode:m,setCountryCode:g}),f.phone_number&&t.jsx(vr,{children:f.phone_number})]}),$.includes("email_address")&&((ie=M==null?void 0:M.email_address)==null?void 0:ie.enabled)&&t.jsxs(ke,{children:[t.jsxs(be,{htmlFor:"email",children:["Email address ",M.email_address.required&&"*"]}),t.jsx(le,{type:"email",id:"email",name:"email",value:d.email||"",onChange:A,placeholder:"Enter your email address","aria-invalid":!!f.email_address,disabled:k,autoComplete:"email"}),f.email_address&&t.jsx(vr,{children:f.email_address})]}),_&&t.jsx(vr,{style:{marginBottom:"var(--space-6u)"},children:_.message}),t.jsx(c6,{type:"submit",disabled:k,children:k?t.jsx(s6,{size:16}):"Continue"})]}),t.jsxs(Gi,{children:[r&&t.jsx("div",{children:t.jsx(Ga,{onClick:r,style:{cursor:"pointer"},children:"Back to login"})}),t.jsxs("div",{style:{marginTop:"var(--space-4u)"},children:["Having trouble?"," ",t.jsx(Ga,{children:t.jsx(Pt,{to:(i==null?void 0:i.ui_settings.support_page_url)||"#",children:"Get help"})})]})]})]})})}const d6=l.div`
|
|
1603
1603
|
text-align: center;
|
|
1604
1604
|
margin-bottom: var(--space-12u);
|
|
1605
1605
|
`,u6=l.div`
|
|
@@ -1646,7 +1646,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1646
1646
|
color: var(--color-error);
|
|
1647
1647
|
text-align: center;
|
|
1648
1648
|
margin: var(--space-4u) 0 0;
|
|
1649
|
-
`;function O1({onComplete:e,onSkip:r}){var p;const[a,o]=c.useState(!1),[s,i]=c.useState(null),{registerPasskey:h}=dr(),{deployment:d}=Se(),u=async()=>{o(!0),i(null);try{await h(),e==null||e()}catch(m){i(m instanceof Error?m.message:"Failed to register passkey")}finally{o(!1)}},f=((p=d==null?void 0:d.ui_settings)==null?void 0:p.app_name)||"this app";return t.jsxs(t.Fragment,{children:[t.jsxs(d6,{children:[t.jsx(u6,{children:t.jsx(
|
|
1649
|
+
`;function O1({onComplete:e,onSkip:r}){var p;const[a,o]=c.useState(!1),[s,i]=c.useState(null),{registerPasskey:h}=dr(),{deployment:d}=Se(),u=async()=>{o(!0),i(null);try{await h(),e==null||e()}catch(m){i(m instanceof Error?m.message:"Failed to register passkey")}finally{o(!1)}},f=((p=d==null?void 0:d.ui_settings)==null?void 0:p.app_name)||"this app";return t.jsxs(t.Fragment,{children:[t.jsxs(d6,{children:[t.jsx(u6,{children:t.jsx(ls,{})}),t.jsx(p6,{children:"Add a Passkey"}),t.jsxs(h6,{children:["Sign in faster and more securely with a passkey. Use your fingerprint, face, or screen lock to access ",f,"."]})]}),t.jsxs(f6,{children:[t.jsx(N,{$fullWidth:!0,onClick:u,disabled:a,children:a?t.jsxs(t.Fragment,{children:[t.jsx(g6,{size:16}),"Registering..."]}):t.jsxs(t.Fragment,{children:[t.jsx(ls,{size:16}),"Add Passkey"]})}),t.jsx(N,{$fullWidth:!0,$outline:!0,onClick:r,children:"Maybe Later"})]}),s&&t.jsx(v6,{children:s})]})}const H1=gt`
|
|
1650
1650
|
from {
|
|
1651
1651
|
transform: rotate(0deg);
|
|
1652
1652
|
}
|
|
@@ -1655,7 +1655,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1655
1655
|
}
|
|
1656
1656
|
`,qa=l.div`
|
|
1657
1657
|
${Et}
|
|
1658
|
-
`,
|
|
1658
|
+
`,qi=l.div`
|
|
1659
1659
|
display: flex;
|
|
1660
1660
|
justify-content: center;
|
|
1661
1661
|
align-items: center;
|
|
@@ -1665,20 +1665,20 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1665
1665
|
animation: ${H1} 1s linear infinite;
|
|
1666
1666
|
color: var(--color-primary);
|
|
1667
1667
|
}
|
|
1668
|
-
`,
|
|
1668
|
+
`,Ki=l.div`
|
|
1669
1669
|
text-align: center;
|
|
1670
1670
|
margin-bottom: var(--space-8u);
|
|
1671
1671
|
position: relative;
|
|
1672
|
-
`,
|
|
1672
|
+
`,Yi=l.h1`
|
|
1673
1673
|
font-size: var(--font-size-xl);
|
|
1674
1674
|
font-weight: 400;
|
|
1675
1675
|
color: var(--color-card-foreground);
|
|
1676
1676
|
margin-bottom: var(--space-2u);
|
|
1677
1677
|
margin-top: 0;
|
|
1678
|
-
`,
|
|
1678
|
+
`,Qi=l.p`
|
|
1679
1679
|
color: var(--color-secondary-text);
|
|
1680
1680
|
font-size: var(--font-size-md);
|
|
1681
|
-
`,
|
|
1681
|
+
`,Ji=l.div`
|
|
1682
1682
|
position: relative;
|
|
1683
1683
|
text-align: center;
|
|
1684
1684
|
margin: var(--space-8u) 0;
|
|
@@ -1692,7 +1692,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1692
1692
|
height: var(--border-width-thin);
|
|
1693
1693
|
background: var(--color-border);
|
|
1694
1694
|
}
|
|
1695
|
-
`,
|
|
1695
|
+
`,Xi=l.span`
|
|
1696
1696
|
position: relative;
|
|
1697
1697
|
background: var(--color-card);
|
|
1698
1698
|
padding: 0 var(--space-6u);
|
|
@@ -1703,7 +1703,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1703
1703
|
letter-spacing: 0.05em;
|
|
1704
1704
|
`,x6=l.div`
|
|
1705
1705
|
position: relative;
|
|
1706
|
-
`,
|
|
1706
|
+
`,ec=l.div`
|
|
1707
1707
|
display: flex;
|
|
1708
1708
|
align-items: center;
|
|
1709
1709
|
gap: var(--space-3u);
|
|
@@ -1714,7 +1714,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1714
1714
|
background: var(--color-secondary);
|
|
1715
1715
|
font-size: var(--font-size-md);
|
|
1716
1716
|
color: var(--color-card-foreground);
|
|
1717
|
-
`,
|
|
1717
|
+
`,tc=l.span`
|
|
1718
1718
|
color: var(--color-secondary-text);
|
|
1719
1719
|
display: flex;
|
|
1720
1720
|
flex-shrink: 0;
|
|
@@ -1723,12 +1723,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1723
1723
|
width: var(--size-8u);
|
|
1724
1724
|
height: var(--size-8u);
|
|
1725
1725
|
}
|
|
1726
|
-
`,
|
|
1726
|
+
`,rc=l.span`
|
|
1727
1727
|
flex: 1;
|
|
1728
1728
|
overflow: hidden;
|
|
1729
1729
|
text-overflow: ellipsis;
|
|
1730
1730
|
white-space: nowrap;
|
|
1731
|
-
`,
|
|
1731
|
+
`,ac=l.button`
|
|
1732
1732
|
background: transparent;
|
|
1733
1733
|
border: none;
|
|
1734
1734
|
padding: 0;
|
|
@@ -1749,14 +1749,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1749
1749
|
color: var(--color-error);
|
|
1750
1750
|
margin: 0;
|
|
1751
1751
|
margin-top: var(--space-1u);
|
|
1752
|
-
`,
|
|
1752
|
+
`,nc=l(N).withConfig({shouldForwardProp:e=>!["$fullWidth","$size"].includes(e)})`
|
|
1753
1753
|
margin-top: var(--space-6u);
|
|
1754
1754
|
height: var(--size-18u);
|
|
1755
1755
|
min-height: var(--size-18u);
|
|
1756
1756
|
padding-top: 0;
|
|
1757
1757
|
padding-bottom: 0;
|
|
1758
1758
|
line-height: 1;
|
|
1759
|
-
`,
|
|
1759
|
+
`,oc=l(yt)`
|
|
1760
1760
|
animation: ${H1} 1s linear infinite;
|
|
1761
1761
|
`,w6=l(N).withConfig({shouldForwardProp:e=>!["$fullWidth","$size","$outline"].includes(e)})`
|
|
1762
1762
|
display: flex;
|
|
@@ -1877,7 +1877,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1877
1877
|
border-bottom: var(--border-width-thin) solid var(--color-border);
|
|
1878
1878
|
font-size: var(--font-size-sm);
|
|
1879
1879
|
color: var(--color-secondary-text);
|
|
1880
|
-
`,
|
|
1880
|
+
`,us=l.button`
|
|
1881
1881
|
display: flex;
|
|
1882
1882
|
align-items: center;
|
|
1883
1883
|
gap: var(--space-4u);
|
|
@@ -1897,7 +1897,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1897
1897
|
&:hover {
|
|
1898
1898
|
background: var(--color-accent);
|
|
1899
1899
|
}
|
|
1900
|
-
`,
|
|
1900
|
+
`,sc=l.div`
|
|
1901
1901
|
width: var(--size-18u);
|
|
1902
1902
|
height: var(--size-18u);
|
|
1903
1903
|
border-radius: var(--radius-full);
|
|
@@ -1916,10 +1916,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1916
1916
|
height: 100%;
|
|
1917
1917
|
object-fit: cover;
|
|
1918
1918
|
}
|
|
1919
|
-
`,
|
|
1919
|
+
`,ic=l.div`
|
|
1920
1920
|
flex: 1;
|
|
1921
1921
|
min-width: 0;
|
|
1922
|
-
`,
|
|
1922
|
+
`,cc=l.div`
|
|
1923
1923
|
font-size: var(--font-size-md);
|
|
1924
1924
|
font-weight: 400;
|
|
1925
1925
|
color: var(--color-card-foreground);
|
|
@@ -1944,7 +1944,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1944
1944
|
transform: translateX(-4px);
|
|
1945
1945
|
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
1946
1946
|
|
|
1947
|
-
${
|
|
1947
|
+
${us}:hover & {
|
|
1948
1948
|
opacity: 1;
|
|
1949
1949
|
transform: translateX(0);
|
|
1950
1950
|
}
|
|
@@ -1964,13 +1964,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1964
1964
|
height: var(--size-12u);
|
|
1965
1965
|
color: var(--color-card-foreground);
|
|
1966
1966
|
}
|
|
1967
|
-
`,
|
|
1967
|
+
`,lc=l.div`
|
|
1968
1968
|
display: flex;
|
|
1969
1969
|
align-items: center;
|
|
1970
1970
|
justify-content: center;
|
|
1971
1971
|
gap: var(--space-2u);
|
|
1972
1972
|
margin-top: var(--space-3u);
|
|
1973
|
-
`,
|
|
1973
|
+
`,dc=l.button`
|
|
1974
1974
|
display: inline-flex;
|
|
1975
1975
|
align-items: center;
|
|
1976
1976
|
gap: var(--space-2u);
|
|
@@ -2046,12 +2046,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2046
2046
|
&:hover {
|
|
2047
2047
|
color: var(--color-primary-hover);
|
|
2048
2048
|
}
|
|
2049
|
-
`;function Z6(){return t.jsx(p4,{children:t.jsx(I6,{})})}function I6(){var De,ze,Qe,_t,er,tr,Wt,hr,fr,bt,se,ye,$e,Be,st,nt,xt,ae,Le,dt,He,Tt,Ft;const{deployment:e}=Se(),{navigate:r}=jt(),{session:a,loading:o,refetch:s,exchangeTicket:i,switchSignIn:h}=at(),d=((ze=(De=e==null?void 0:e.auth_settings)==null?void 0:De.multi_session_support)==null?void 0:ze.enabled)??!1,{setEmail:u,otpSent:f,setOtpSent:p,showForgotPassword:m,setShowForgotPassword:g,showOtherOptions:x,setShowOtherOptions:b,enabledSocialsProviders:v,firstFactor:w,setFirstFactor:E,signInStep:j,setSignInStep:S}=L1(),{loading:C,signIn:_,signinAttempt:k,discardSignInAttempt:y,setSignInAttempt:L}=ya("generic"),{signIn:z}=ya("oauth"),{signIn:O}=ya("passkey"),[R,M]=c.useState({email:"",username:"",password:"",phone:""}),[T,A]=c.useState({}),[$,I]=c.useState(!1),[F,H]=c.useState(""),[Z,P]=c.useState("US"),[G,D]=c.useState(!1),[W,Y]=c.useState(null),[J,ie]=c.useState(!1),[he,ee]=c.useState(!1),[xe,te]=c.useState(!1),[B,Je]=c.useState(60),[Te,Ue]=c.useState(!1),[Ge,me]=c.useState(null),Q=[...(a==null?void 0:a.signins)||[]].sort((U,re)=>{var ge,Re;return U.id===((ge=a==null?void 0:a.active_signin)==null?void 0:ge.id)?-1:re.id===((Re=a==null?void 0:a.active_signin)==null?void 0:Re.id)?1:0});c.useEffect(()=>{const U=new URLSearchParams(window.location.search),re=U.get("error"),ge=U.get("error_description");if(re==="access_denied"&&ge){Y(ge),U.delete("error"),U.delete("error_description");const Re=U.toString()?`${window.location.pathname}?${U.toString()}`:window.location.pathname;window.history.replaceState({},"",Re)}},[]),c.useEffect(()=>{if(w!=="email_magic_link"||!f)return;Je(60),Ue(!1);const U=setInterval(()=>{Je(re=>re<=1?(Ue(!0),clearInterval(U),0):re-1)},1e3);return()=>clearInterval(U)},[w,f]),c.useEffect(()=>{var U,re,ge,Re;if(!o&&(a!=null&&a.active_signin)&&!d&&!G&&!J){let Pe=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));Pe||(Pe=((U=e==null?void 0:e.ui_settings)==null?void 0:U.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`);const et=(re=e==null?void 0:e.auth_settings)==null?void 0:re.passkey;(et==null?void 0:et.enabled)&&(et==null?void 0:et.prompt_registration_on_auth)&&!((Re=(ge=a.active_signin)==null?void 0:ge.user)!=null&&Re.has_passkeys)?(me(Pe),ie(!0)):Pe&&(D(!0),r(Pe))}},[a,o,d,e,r,G]);const ce=U=>{let{name:re,value:ge}=U.target;re==="phone"?ge=ge.replace(/[^0-9]/g,""):re==="email"&&(u(ge),ge=ge.toLowerCase()),M(Re=>({...Re,[re]:ge})),A(Re=>({...Re,[re]:""}))},ne=()=>{M({email:"",username:"",password:"",phone:""}),A({}),P("US"),S("identifier")},q=async U=>{if(!U){A({email:"Email address is required"});return}I(!0),A({});try{const re=await _.identify(U);if(re.strategy==="sso"&&re.connection_id){const ge=new URLSearchParams(window.location.search),Re=ft(e,ge.get("redirect_uri"))||void 0,Pe=await _.initEnterpriseSso(re.connection_id,Re);if(Pe&&Pe.sso_url){D(!0),window.location.href=Pe.sso_url;return}}else if(re.strategy==="social"&&re.provider){const ge=v.find(Re=>Re.provider===re.provider);if(ge){const Re=new URLSearchParams(window.location.search),Pe=ft(e,Re.get("redirect_uri"))||void 0,{data:et}=await z.create({provider:ge.provider,redirectUri:Pe});if(et&&typeof et=="object"&&"oauth_url"in et){D(!0),window.location.href=et.oauth_url;return}}else S("password")}else S("password")}catch(re){A({submit:re.message})}finally{G||I(!1)}},ue=async U=>{if(U.preventDefault(),C||$)return;y();const re={};if(j==="identifier"&&w==="email_password"){if(!R.email){A({email:"Email address is required"});return}await q(R.email);return}if(j==="identifier"&&w==="username_password"){if(!R.username){A({username:"Username is required"});return}A({}),S("password");return}if(w==="email_password"?(R.email||(re.email="Email address is required"),R.password||(re.password="Password is required")):w==="username_password"?(R.username||(re.username="Username is required"),R.password||(re.password="Password is required")):w==="email_otp"||w==="email_magic_link"?R.email||(re.email="Email address is required"):w==="phone_otp"&&(R.phone?/^\d{7,15}$/.test(R.phone)||(re.phone="Phone number must contain 7-15 digits"):re.phone="Phone number is required"),A(re),Object.keys(re).length>0)return;let ge="";switch(w){case"email_password":ge="plain_email";break;case"username_password":ge="plain_username";break;case"email_otp":ge="email_otp";break;case"email_magic_link":ge="magic_link";break;case"phone_otp":ge="phone_otp";break}const Re=w==="email_otp"||w==="email_magic_link"||w==="phone_otp";I(!0);try{const Pe={...R,strategy:ge};w==="phone_otp"&&Z&&(Pe.phone_country_code=Z),await _.create(Pe),Re||I(!1)}catch(Pe){A({submit:Pe.message}),I(!1)}},de=async U=>{if(U.preventDefault(),C||$)return;const re={};if(!F){re.otp="OTP code is required",A(re);return}I(!0),A({});try{await _.completeVerification(F),p(!1),H("")}catch(ge){A({otp:ge.message||"Verification failed"})}finally{I(!1)}},K=async U=>{if(!(C||$)){I(!0);try{const re=new URLSearchParams(window.location.search),ge=ft(e,re.get("redirect_uri"))||void 0,{data:Re}=await z.create({provider:U.provider,redirectUri:ge});Re&&typeof Re=="object"&&"oauth_url"in Re&&(window.location.href=Re.oauth_url)}catch(re){A({submit:re.message})}finally{I(!1)}}},pe=async()=>{var U;if(!(C||$)){I(!0),A({});try{const re=await O.create();if("data"in re&&re.data){await s();let ge=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));ge||(ge=((U=e==null?void 0:e.ui_settings)==null?void 0:U.after_signin_redirect_url)||null),!ge&&(e!=null&&e.frontend_host)&&(ge=`https://${e.frontend_host}`),D(!0),ge&&r(ge)}}catch(re){A({submit:re.message||"Passkey sign-in failed"})}finally{I(!1)}}},qe=()=>{var ge;let U=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));if(U||(U=((ge=e==null?void 0:e.ui_settings)==null?void 0:ge.after_signin_redirect_url)||null),!U&&(e!=null&&e.frontend_host)&&(U=`https://${e.frontend_host}`),!U)return null;let re;try{re=new URL(U)}catch{re=new URL(U,window.location.origin)}return(e==null?void 0:e.mode)==="staging"&&re.searchParams.set("__dev_session__",mt(e.backend_host)||""),re.toString()},Oe=async U=>{if(!(C||$)){A({}),I(!0);try{await h(U);const re=qe();re&&(D(!0),r(re))}catch(re){A({submit:re.message||"Failed to continue with selected account"})}finally{I(!1)}}},Ke=(U,re)=>`${U||""} ${re||""}`.trim().split(" ").filter(Boolean).map(ge=>ge[0]).join("").toUpperCase().slice(0,2)||"?",ht=c.useRef(!1);if(c.useEffect(()=>{if(o)return;const U=new URLSearchParams(window.location.search),re=U.get("ticket");if(re&&!ht.current&&!C){ht.current=!0,U.delete("ticket");const Re=U.toString()?`${window.location.pathname}?${U.toString()}`:window.location.pathname;window.history.replaceState({},"",Re),(async()=>{var et;try{I(!0),await i(re),D(!0);let Zt=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));if(Zt||(Zt=((et=e==null?void 0:e.ui_settings)==null?void 0:et.after_signin_redirect_url)||null),!Zt&&(e!=null&&e.frontend_host)&&(Zt=`https://${e.frontend_host}`),Zt){let Ta;try{Ta=new URL(Zt)}catch{Ta=new URL(Zt,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&Ta.searchParams.set("__dev_session__",mt(e.backend_host)||""),r(Ta.toString())}return}catch(Zt){A({submit:Zt.message||"Failed to exchange ticket"}),ht.current=!1}finally{I(!1)}})();return}const ge=U.get("signin_attempt_id");if(ge&&(a!=null&&a.signin_attempts)&&!k){const Re=a.signin_attempts.find(Pe=>Pe.id===ge);if(Re){L(Re),U.delete("signin_attempt_id");const Pe=U.toString()?`${window.location.pathname}?${U.toString()}`:window.location.pathname;window.history.replaceState({},"",Pe)}}},[a,o,k,L,C]),c.useEffect(()=>{var Re;if(!k)return;if(k.completed){D(!0);let Pe=new URLSearchParams(window.location.search).get("redirect_uri");if(Pe||(Pe=((Re=e==null?void 0:e.ui_settings)==null?void 0:Re.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`),Pe){let et;try{et=new URL(Pe)}catch{et=new URL(Pe,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&et.searchParams.set("__dev_session__",mt(e.backend_host)||""),r(et.toString())}return}if(!_||f)return;const re={verify_email:"email_otp",verify_email_otp:"email_otp",verify_email_link:"magic_link",verify_phone:"phone_otp",verify_phone_otp:"phone_otp"}[k.current_step];if(!re)return;(async()=>{try{await _.prepareVerification({strategy:re}),I(!1),p(!0)}catch{A({submit:"Failed to send verification. Please try again."}),I(!1)}})()},[k,_,f,p,r,e]),x)return t.jsx(z4,{onBack:()=>b(!1)});if(m)return t.jsx(j4,{onBack:()=>g(!1)});if((k==null?void 0:k.current_step)==="verify_second_factor")return t.jsx(Z1,{attempt:k,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),ne(),p(!1)}});if((k==null?void 0:k.current_step)==="complete_profile")return t.jsx(I1,{attempt:k,completeProfile:_.completeProfile,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),ne(),p(!1)}});if(J){const U=()=>{ie(!1),Ge&&(D(!0),r(Ge))},re=()=>{ie(!1),Ge&&(D(!0),r(Ge))};return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),t.jsx(O1,{onComplete:U,onSkip:re})]})})}if(o)return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),t.jsx(Gi,{children:t.jsx(yt,{size:32})})]})});if(G)return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),t.jsx(Gi,{children:t.jsx(yt,{size:32})})]})});const oe=(k==null?void 0:k.current_step)&&["verify_email","verify_email_otp","verify_email_link","verify_phone","verify_phone_otp"].includes(k.current_step)&&f,we=d&&!oe&&Q.length>0&&!xe;return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),oe?t.jsxs(qi,{children:[!((Qe=e==null?void 0:e.ui_settings)!=null&&Qe.logo_image_url)&&t.jsx(z6,{children:w==="phone_otp"?t.jsx(zs,{weight:"light"}):t.jsx(In,{weight:"light"})}),t.jsx(Ki,{children:w==="phone_otp"?"Check your phone":w==="email_magic_link"?"Check your inbox":"Enter the code"}),t.jsx(Yi,{children:w==="email_magic_link"?"We sent a magic link to your email — click it to sign in instantly.":w==="phone_otp"?"We sent a verification code via SMS.":"We sent a 6-digit code to your email."}),(w==="email_otp"||w==="email_magic_link")&&R.email&&t.jsx(cc,{children:t.jsxs(lc,{type:"button",onClick:()=>{p(!1),y(),ne()},children:[t.jsx(ls,{weight:"light"}),R.email]})}),w==="phone_otp"&&R.phone&&t.jsx(cc,{children:t.jsxs(lc,{type:"button",onClick:()=>{p(!1),y(),ne()},children:[t.jsx(ls,{weight:"light"}),"+",R.phone]})})]}):t.jsxs(qi,{children:[t.jsx(Ki,{children:"Sign in to your account"}),t.jsxs(Yi,{children:["Please enter your details to continue to"," ",(e==null?void 0:e.ui_settings.app_name)||"App","!"]})]}),W&&t.jsxs(R6,{children:[t.jsx(P6,{children:"Access Denied"}),t.jsx(T6,{children:W}),t.jsx(F6,{onClick:()=>Y(null),children:"Try again"})]}),we&&(he?t.jsxs(S6,{children:[t.jsx(E6,{children:"Choose an account"}),Q.map(U=>{var re,ge,Re,Pe;return t.jsxs(ds,{type:"button",onClick:()=>Oe(U.id),disabled:$||C,children:[t.jsx(oc,{children:U.user.has_profile_picture?t.jsx("img",{src:U.user.profile_picture_url,alt:((re=U.user.primary_email_address)==null?void 0:re.email)||"account"}):Ke(U.user.first_name,U.user.last_name)}),t.jsxs(sc,{children:[t.jsx(ic,{children:U.user.first_name&&U.user.last_name?`${U.user.first_name} ${U.user.last_name}`:U.user.first_name||((Re=(ge=U.user.primary_email_address)==null?void 0:ge.email)==null?void 0:Re.split("@")[0])||"Account"}),t.jsx(A6,{children:(Pe=U.user.primary_email_address)==null?void 0:Pe.email})]}),t.jsx(xo,{})]},U.id)}),t.jsxs(ds,{type:"button",onClick:()=>{ee(!1),te(!0),ne()},children:[t.jsx(oc,{children:t.jsx(Tf,{size:16})}),t.jsx(sc,{children:t.jsx(ic,{children:"Use a different account"})}),t.jsx(xo,{})]})]}):t.jsxs(b6,{type:"button",onClick:()=>Oe(Q[0].id),disabled:$||C,children:[t.jsx(y6,{children:Q[0].user.has_profile_picture?t.jsx("img",{src:Q[0].user.profile_picture_url,alt:((_t=Q[0].user.primary_email_address)==null?void 0:_t.email)||"account"}):Ke(Q[0].user.first_name,Q[0].user.last_name)}),t.jsxs(j6,{children:[t.jsxs(_6,{children:["Welcome back,"," ",Q[0].user.first_name||((tr=(er=Q[0].user.primary_email_address)==null?void 0:er.email)==null?void 0:tr.split("@")[0])||"back"]}),t.jsx(k6,{children:(Wt=Q[0].user.primary_email_address)==null?void 0:Wt.email})]}),t.jsx(C6,{onClick:U=>{U.stopPropagation(),Q.length>1?ee(!0):(te(!0),ne())},children:"Not you?"})]})),oe?w==="email_magic_link"?t.jsxs(t.Fragment,{children:[t.jsx($6,{children:Te?t.jsx(L6,{type:"button",onClick:async()=>{Ue(!1),Je(60);try{await _.prepareVerification({strategy:"magic_link"})}catch{}},children:"Resend magic link"}):t.jsxs(M6,{children:["Resend in ",B,"s"]})}),t.jsxs(vo,{children:["Having trouble?"," ",t.jsx(Nr,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Ot,{style:{gap:"var(--space-7u)"},onSubmit:de,noValidate:!0,children:[t.jsx(pr,{onComplete:async U=>{if(H(U),U&&U.length===6){I(!0),A({});try{await _.completeVerification(U),p(!1)}catch(re){A({otp:re.message||"Verification failed"})}finally{I(!1)}}},onResend:async()=>{const U=w==="email_otp"?"email_otp":"phone_otp";await _.prepareVerification({strategy:U})},error:T.otp,isSubmitting:$}),t.jsx(ac,{type:"submit",$fullWidth:!0,$size:"md",disabled:$||C||!F,style:{margin:0},children:$&&F?t.jsx(nc,{size:16}):`Continue to ${(Ft=e==null?void 0:e.ui_settings)==null?void 0:Ft.app_name}`})]}),t.jsxs(vo,{children:["Having trouble?"," ",t.jsx(Nr,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[v.length>0&&t.jsx(t.Fragment,{children:t.jsx(Ls,{connections:v,callback:K})}),((fr=(hr=e==null?void 0:e.auth_settings)==null?void 0:hr.passkey)==null?void 0:fr.enabled)&&t.jsxs(w6,{type:"button",$fullWidth:!0,$outline:!0,$size:"md",onClick:pe,disabled:$,children:[t.jsx(cs,{size:16}),"Sign in with Passkey",t.jsx(xo,{})]}),(v.length>0||((se=(bt=e==null?void 0:e.auth_settings)==null?void 0:bt.passkey)==null?void 0:se.enabled))&&t.jsx(Qi,{children:t.jsx(Ji,{children:"or"})}),t.jsxs(Ot,{onSubmit:ue,noValidate:!0,children:[(w==="email_password"||w==="email_otp"||w==="email_magic_link")&&(($e=(ye=e==null?void 0:e.auth_settings)==null?void 0:ye.email_address)==null?void 0:$e.enabled)&&t.jsxs(ke,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"email",children:"Email address"}),j==="identifier"&&t.jsx(Nr,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>b(!0),children:"Other methods"})]}),j==="password"&&w==="email_password"&&R.email?t.jsxs(Xi,{children:[t.jsx(ec,{children:t.jsx(Ai,{})}),t.jsx(tc,{children:R.email}),t.jsx(rc,{type:"button",onClick:()=>S("identifier"),children:"Edit"})]}):t.jsx(le,{type:"email",id:"email",name:"email",value:R.email,onChange:ce,placeholder:"Enter your email address","aria-invalid":!!T.email}),T.email&&t.jsx(ma,{children:T.email})]}),w==="username_password"&&((st=(Be=e==null?void 0:e.auth_settings)==null?void 0:Be.username)==null?void 0:st.enabled)&&t.jsxs(ke,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"username",children:"Username"}),j==="identifier"&&t.jsx(Nr,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>b(!0),children:"Other methods"})]}),j==="password"&&R.username?t.jsxs(Xi,{children:[t.jsx(ec,{children:t.jsx(Ai,{})}),t.jsx(tc,{children:R.username}),t.jsx(rc,{type:"button",onClick:()=>{S("identifier"),M(U=>({...U,password:""}))},children:"Edit"})]}):t.jsx(le,{type:"text",id:"username",name:"username",value:R.username,onChange:ce,placeholder:"Enter your username","aria-invalid":!!T.username,autoComplete:"username"}),T.username&&t.jsx(ma,{children:T.username})]}),w==="phone_otp"&&((xt=(nt=e==null?void 0:e.auth_settings)==null?void 0:nt.phone_number)==null?void 0:xt.enabled)&&t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"phone",children:"Phone number"}),t.jsx(Ma,{value:R.phone,onChange:ce,error:T.phone,countryCode:Z,setCountryCode:P}),T.phone&&t.jsx(ma,{children:T.phone})]}),j==="password"&&(w==="email_password"||w==="username_password")&&((Le=(ae=e==null?void 0:e.auth_settings)==null?void 0:ae.password)==null?void 0:Le.enabled)&&t.jsxs(ke,{children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"password",children:"Password"}),t.jsx(Nr,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>g(!0),children:"Forgot password?"})]}),t.jsx(x6,{children:t.jsx(le,{type:"password",id:"password",name:"password",value:R.password,onChange:ce,placeholder:"Enter your password","aria-invalid":!!T.password})}),T.password&&t.jsx(ma,{children:T.password})]}),t.jsxs("div",{children:[T.submit&&t.jsx(ma,{children:T.submit}),t.jsx(ac,{type:"submit",$fullWidth:!0,$size:"md",disabled:$||C,children:$?t.jsx(nc,{size:16}):j==="identifier"?"Continue":"Sign in"}),j==="password"&&((He=(dt=e==null?void 0:e.auth_settings)==null?void 0:dt.auth_factors_enabled)==null?void 0:He.email_otp)&&t.jsxs(t.Fragment,{children:[t.jsx(Qi,{style:{margin:"var(--space-6u) 0 var(--space-5u)"},children:t.jsx(Ji,{children:"or"})}),t.jsx($1,{type:"button",icon:t.jsx(Vd,{}),label:"Sign in with a code",description:"We'll send a 6-digit code to your email",disabled:$,onClick:async()=>{I(!0),A({});try{await _.create({email:R.email,strategy:"email_otp"}),E("email_otp")}catch(U){A({submit:U.message}),I(!1)}}})]})]})]}),t.jsxs(vo,{children:["Don't have an account?"," ",t.jsx(Nr,{children:t.jsx(Pt,{to:`${(Tt=e.ui_settings)==null?void 0:Tt.sign_up_page_url}${window.location.search}`,children:"Sign up"})})]})]})]})})}const O6=gt`
|
|
2049
|
+
`;function Z6(){return t.jsx(p4,{children:t.jsx(I6,{})})}function I6(){var De,ze,Qe,_t,er,tr,Wt,hr,fr,bt,se,ye,$e,Be,st,nt,xt,ae,Le,dt,He,Tt,Ft;const{deployment:e}=Se(),{navigate:r}=jt(),{session:a,loading:o,refetch:s,exchangeTicket:i,switchSignIn:h}=at(),d=((ze=(De=e==null?void 0:e.auth_settings)==null?void 0:De.multi_session_support)==null?void 0:ze.enabled)??!1,{setEmail:u,otpSent:f,setOtpSent:p,showForgotPassword:m,setShowForgotPassword:g,showOtherOptions:x,setShowOtherOptions:b,enabledSocialsProviders:v,firstFactor:w,setFirstFactor:E,signInStep:j,setSignInStep:S}=L1(),{loading:C,signIn:_,signinAttempt:k,discardSignInAttempt:y,setSignInAttempt:L}=ya("generic"),{signIn:$}=ya("oauth"),{signIn:H}=ya("passkey"),[F,M]=c.useState({email:"",username:"",password:"",phone:""}),[R,A]=c.useState({}),[z,Z]=c.useState(!1),[P,O]=c.useState(""),[I,T]=c.useState("US"),[G,D]=c.useState(!1),[W,Y]=c.useState(null),[J,ie]=c.useState(!1),[he,ee]=c.useState(!1),[xe,te]=c.useState(!1),[B,Je]=c.useState(60),[Te,Ue]=c.useState(!1),[Ge,me]=c.useState(null),Q=[...(a==null?void 0:a.signins)||[]].sort((U,re)=>{var ge,Re;return U.id===((ge=a==null?void 0:a.active_signin)==null?void 0:ge.id)?-1:re.id===((Re=a==null?void 0:a.active_signin)==null?void 0:Re.id)?1:0});c.useEffect(()=>{const U=new URLSearchParams(window.location.search),re=U.get("error"),ge=U.get("error_description");if(re==="access_denied"&&ge){Y(ge),U.delete("error"),U.delete("error_description");const Re=U.toString()?`${window.location.pathname}?${U.toString()}`:window.location.pathname;window.history.replaceState({},"",Re)}},[]),c.useEffect(()=>{if(w!=="email_magic_link"||!f)return;Je(60),Ue(!1);const U=setInterval(()=>{Je(re=>re<=1?(Ue(!0),clearInterval(U),0):re-1)},1e3);return()=>clearInterval(U)},[w,f]),c.useEffect(()=>{var U,re,ge,Re;if(!o&&(a!=null&&a.active_signin)&&!d&&!G&&!J){let Pe=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));Pe||(Pe=((U=e==null?void 0:e.ui_settings)==null?void 0:U.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`);const et=(re=e==null?void 0:e.auth_settings)==null?void 0:re.passkey;(et==null?void 0:et.enabled)&&(et==null?void 0:et.prompt_registration_on_auth)&&!((Re=(ge=a.active_signin)==null?void 0:ge.user)!=null&&Re.has_passkeys)?(me(Pe),ie(!0)):Pe&&(D(!0),r(Pe))}},[a,o,d,e,r,G]);const ce=U=>{let{name:re,value:ge}=U.target;re==="phone"?ge=ge.replace(/[^0-9]/g,""):re==="email"&&(u(ge),ge=ge.toLowerCase()),M(Re=>({...Re,[re]:ge})),A(Re=>({...Re,[re]:""}))},ne=()=>{M({email:"",username:"",password:"",phone:""}),A({}),T("US"),S("identifier")},q=async U=>{if(!U){A({email:"Email address is required"});return}Z(!0),A({});try{const re=await _.identify(U);if(re.strategy==="sso"&&re.connection_id){const ge=new URLSearchParams(window.location.search),Re=ft(e,ge.get("redirect_uri"))||void 0,Pe=await _.initEnterpriseSso(re.connection_id,Re);if(Pe&&Pe.sso_url){D(!0),window.location.href=Pe.sso_url;return}}else if(re.strategy==="social"&&re.provider){const ge=v.find(Re=>Re.provider===re.provider);if(ge){const Re=new URLSearchParams(window.location.search),Pe=ft(e,Re.get("redirect_uri"))||void 0,{data:et}=await $.create({provider:ge.provider,redirectUri:Pe});if(et&&typeof et=="object"&&"oauth_url"in et){D(!0),window.location.href=et.oauth_url;return}}else S("password")}else S("password")}catch(re){A({submit:re.message})}finally{G||Z(!1)}},ue=async U=>{if(U.preventDefault(),C||z)return;y();const re={};if(j==="identifier"&&w==="email_password"){if(!F.email){A({email:"Email address is required"});return}await q(F.email);return}if(j==="identifier"&&w==="username_password"){if(!F.username){A({username:"Username is required"});return}A({}),S("password");return}if(w==="email_password"?(F.email||(re.email="Email address is required"),F.password||(re.password="Password is required")):w==="username_password"?(F.username||(re.username="Username is required"),F.password||(re.password="Password is required")):w==="email_otp"||w==="email_magic_link"?F.email||(re.email="Email address is required"):w==="phone_otp"&&(F.phone?/^\d{7,15}$/.test(F.phone)||(re.phone="Phone number must contain 7-15 digits"):re.phone="Phone number is required"),A(re),Object.keys(re).length>0)return;let ge="";switch(w){case"email_password":ge="plain_email";break;case"username_password":ge="plain_username";break;case"email_otp":ge="email_otp";break;case"email_magic_link":ge="magic_link";break;case"phone_otp":ge="phone_otp";break}const Re=w==="email_otp"||w==="email_magic_link"||w==="phone_otp";Z(!0);try{const Pe={...F,strategy:ge};w==="phone_otp"&&I&&(Pe.phone_country_code=I),await _.create(Pe),Re||Z(!1)}catch(Pe){A({submit:Pe.message}),Z(!1)}},de=async U=>{if(U.preventDefault(),C||z)return;const re={};if(!P){re.otp="OTP code is required",A(re);return}Z(!0),A({});try{await _.completeVerification(P),p(!1),O("")}catch(ge){A({otp:ge.message||"Verification failed"})}finally{Z(!1)}},K=async U=>{if(!(C||z)){Z(!0);try{const re=new URLSearchParams(window.location.search),ge=ft(e,re.get("redirect_uri"))||void 0,{data:Re}=await $.create({provider:U.provider,redirectUri:ge});Re&&typeof Re=="object"&&"oauth_url"in Re&&(window.location.href=Re.oauth_url)}catch(re){A({submit:re.message})}finally{Z(!1)}}},pe=async()=>{var U;if(!(C||z)){Z(!0),A({});try{const re=await H.create();if("data"in re&&re.data){await s();let ge=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));ge||(ge=((U=e==null?void 0:e.ui_settings)==null?void 0:U.after_signin_redirect_url)||null),!ge&&(e!=null&&e.frontend_host)&&(ge=`https://${e.frontend_host}`),D(!0),ge&&r(ge)}}catch(re){A({submit:re.message||"Passkey sign-in failed"})}finally{Z(!1)}}},qe=()=>{var ge;let U=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));if(U||(U=((ge=e==null?void 0:e.ui_settings)==null?void 0:ge.after_signin_redirect_url)||null),!U&&(e!=null&&e.frontend_host)&&(U=`https://${e.frontend_host}`),!U)return null;let re;try{re=new URL(U)}catch{re=new URL(U,window.location.origin)}return(e==null?void 0:e.mode)==="staging"&&re.searchParams.set("__dev_session__",mt(e.backend_host)||""),re.toString()},Oe=async U=>{if(!(C||z)){A({}),Z(!0);try{await h(U);const re=qe();re&&(D(!0),r(re))}catch(re){A({submit:re.message||"Failed to continue with selected account"})}finally{Z(!1)}}},Ke=(U,re)=>`${U||""} ${re||""}`.trim().split(" ").filter(Boolean).map(ge=>ge[0]).join("").toUpperCase().slice(0,2)||"?",ht=c.useRef(!1);if(c.useEffect(()=>{if(o)return;const U=new URLSearchParams(window.location.search),re=U.get("ticket");if(re&&!ht.current&&!C){ht.current=!0,U.delete("ticket");const Re=U.toString()?`${window.location.pathname}?${U.toString()}`:window.location.pathname;window.history.replaceState({},"",Re),(async()=>{var et;try{Z(!0),await i(re),D(!0);let Zt=ft(e,new URLSearchParams(window.location.search).get("redirect_uri"));if(Zt||(Zt=((et=e==null?void 0:e.ui_settings)==null?void 0:et.after_signin_redirect_url)||null),!Zt&&(e!=null&&e.frontend_host)&&(Zt=`https://${e.frontend_host}`),Zt){let Ta;try{Ta=new URL(Zt)}catch{Ta=new URL(Zt,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&Ta.searchParams.set("__dev_session__",mt(e.backend_host)||""),r(Ta.toString())}return}catch(Zt){A({submit:Zt.message||"Failed to exchange ticket"}),ht.current=!1}finally{Z(!1)}})();return}const ge=U.get("signin_attempt_id");if(ge&&(a!=null&&a.signin_attempts)&&!k){const Re=a.signin_attempts.find(Pe=>Pe.id===ge);if(Re){L(Re),U.delete("signin_attempt_id");const Pe=U.toString()?`${window.location.pathname}?${U.toString()}`:window.location.pathname;window.history.replaceState({},"",Pe)}}},[a,o,k,L,C]),c.useEffect(()=>{var Re;if(!k)return;if(k.completed){D(!0);let Pe=new URLSearchParams(window.location.search).get("redirect_uri");if(Pe||(Pe=((Re=e==null?void 0:e.ui_settings)==null?void 0:Re.after_signin_redirect_url)||null),!Pe&&(e!=null&&e.frontend_host)&&(Pe=`https://${e.frontend_host}`),Pe){let et;try{et=new URL(Pe)}catch{et=new URL(Pe,window.location.origin)}(e==null?void 0:e.mode)==="staging"&&et.searchParams.set("__dev_session__",mt(e.backend_host)||""),r(et.toString())}return}if(!_||f)return;const re={verify_email:"email_otp",verify_email_otp:"email_otp",verify_email_link:"magic_link",verify_phone:"phone_otp",verify_phone_otp:"phone_otp"}[k.current_step];if(!re)return;(async()=>{try{await _.prepareVerification({strategy:re}),Z(!1),p(!0)}catch{A({submit:"Failed to send verification. Please try again."}),Z(!1)}})()},[k,_,f,p,r,e]),x)return t.jsx(z4,{onBack:()=>b(!1)});if(m)return t.jsx(j4,{onBack:()=>g(!1)});if((k==null?void 0:k.current_step)==="verify_second_factor")return t.jsx(Z1,{attempt:k,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),ne(),p(!1)}});if((k==null?void 0:k.current_step)==="complete_profile")return t.jsx(I1,{attempt:k,completeProfile:_.completeProfile,completeVerification:_.completeVerification,prepareVerification:_.prepareVerification,onBack:()=>{y(),ne(),p(!1)}});if(J){const U=()=>{ie(!1),Ge&&(D(!0),r(Ge))},re=()=>{ie(!1),Ge&&(D(!0),r(Ge))};return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),t.jsx(O1,{onComplete:U,onSkip:re})]})})}if(o)return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),t.jsx(qi,{children:t.jsx(yt,{size:32})})]})});if(G)return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),t.jsx(qi,{children:t.jsx(yt,{size:32})})]})});const oe=(k==null?void 0:k.current_step)&&["verify_email","verify_email_otp","verify_email_link","verify_phone","verify_phone_otp"].includes(k.current_step)&&f,we=d&&!oe&&Q.length>0&&!xe;return t.jsx(fe,{children:t.jsxs(qa,{children:[t.jsx(Xe,{}),oe?t.jsxs(Ki,{children:[!((Qe=e==null?void 0:e.ui_settings)!=null&&Qe.logo_image_url)&&t.jsx(z6,{children:w==="phone_otp"?t.jsx($s,{weight:"light"}):t.jsx(In,{weight:"light"})}),t.jsx(Yi,{children:w==="phone_otp"?"Check your phone":w==="email_magic_link"?"Check your inbox":"Enter the code"}),t.jsx(Qi,{children:w==="email_magic_link"?"We sent a magic link to your email — click it to sign in instantly.":w==="phone_otp"?"We sent a verification code via SMS.":"We sent a 6-digit code to your email."}),(w==="email_otp"||w==="email_magic_link")&&F.email&&t.jsx(lc,{children:t.jsxs(dc,{type:"button",onClick:()=>{p(!1),y(),ne()},children:[t.jsx(ds,{weight:"light"}),F.email]})}),w==="phone_otp"&&F.phone&&t.jsx(lc,{children:t.jsxs(dc,{type:"button",onClick:()=>{p(!1),y(),ne()},children:[t.jsx(ds,{weight:"light"}),"+",F.phone]})})]}):t.jsxs(Ki,{children:[t.jsx(Yi,{children:"Sign in to your account"}),t.jsxs(Qi,{children:["Please enter your details to continue to"," ",(e==null?void 0:e.ui_settings.app_name)||"App","!"]})]}),W&&t.jsxs(R6,{children:[t.jsx(P6,{children:"Access Denied"}),t.jsx(T6,{children:W}),t.jsx(F6,{onClick:()=>Y(null),children:"Try again"})]}),we&&(he?t.jsxs(S6,{children:[t.jsx(E6,{children:"Choose an account"}),Q.map(U=>{var re,ge,Re,Pe;return t.jsxs(us,{type:"button",onClick:()=>Oe(U.id),disabled:z||C,children:[t.jsx(sc,{children:U.user.has_profile_picture?t.jsx("img",{src:U.user.profile_picture_url,alt:((re=U.user.primary_email_address)==null?void 0:re.email)||"account"}):Ke(U.user.first_name,U.user.last_name)}),t.jsxs(ic,{children:[t.jsx(cc,{children:U.user.first_name&&U.user.last_name?`${U.user.first_name} ${U.user.last_name}`:U.user.first_name||((Re=(ge=U.user.primary_email_address)==null?void 0:ge.email)==null?void 0:Re.split("@")[0])||"Account"}),t.jsx(A6,{children:(Pe=U.user.primary_email_address)==null?void 0:Pe.email})]}),t.jsx(xo,{})]},U.id)}),t.jsxs(us,{type:"button",onClick:()=>{ee(!1),te(!0),ne()},children:[t.jsx(sc,{children:t.jsx(Tf,{size:16})}),t.jsx(ic,{children:t.jsx(cc,{children:"Use a different account"})}),t.jsx(xo,{})]})]}):t.jsxs(b6,{type:"button",onClick:()=>Oe(Q[0].id),disabled:z||C,children:[t.jsx(y6,{children:Q[0].user.has_profile_picture?t.jsx("img",{src:Q[0].user.profile_picture_url,alt:((_t=Q[0].user.primary_email_address)==null?void 0:_t.email)||"account"}):Ke(Q[0].user.first_name,Q[0].user.last_name)}),t.jsxs(j6,{children:[t.jsxs(_6,{children:["Welcome back,"," ",Q[0].user.first_name||((tr=(er=Q[0].user.primary_email_address)==null?void 0:er.email)==null?void 0:tr.split("@")[0])||"back"]}),t.jsx(k6,{children:(Wt=Q[0].user.primary_email_address)==null?void 0:Wt.email})]}),t.jsx(C6,{onClick:U=>{U.stopPropagation(),Q.length>1?ee(!0):(te(!0),ne())},children:"Not you?"})]})),oe?w==="email_magic_link"?t.jsxs(t.Fragment,{children:[t.jsx($6,{children:Te?t.jsx(L6,{type:"button",onClick:async()=>{Ue(!1),Je(60);try{await _.prepareVerification({strategy:"magic_link"})}catch{}},children:"Resend magic link"}):t.jsxs(M6,{children:["Resend in ",B,"s"]})}),t.jsxs(vo,{children:["Having trouble?"," ",t.jsx(Nr,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Ot,{style:{gap:"var(--space-7u)"},onSubmit:de,noValidate:!0,children:[t.jsx(pr,{onComplete:async U=>{if(O(U),U&&U.length===6){Z(!0),A({});try{await _.completeVerification(U),p(!1)}catch(re){A({otp:re.message||"Verification failed"})}finally{Z(!1)}}},onResend:async()=>{const U=w==="email_otp"?"email_otp":"phone_otp";await _.prepareVerification({strategy:U})},error:R.otp,isSubmitting:z}),t.jsx(nc,{type:"submit",$fullWidth:!0,$size:"md",disabled:z||C||!P,style:{margin:0},children:z&&P?t.jsx(oc,{size:16}):`Continue to ${(Ft=e==null?void 0:e.ui_settings)==null?void 0:Ft.app_name}`})]}),t.jsxs(vo,{children:["Having trouble?"," ",t.jsx(Nr,{children:t.jsx(Pt,{to:e.ui_settings.support_page_url,children:"Get help"})})]})]}):t.jsxs(t.Fragment,{children:[v.length>0&&t.jsx(t.Fragment,{children:t.jsx(Rs,{connections:v,callback:K})}),((fr=(hr=e==null?void 0:e.auth_settings)==null?void 0:hr.passkey)==null?void 0:fr.enabled)&&t.jsxs(w6,{type:"button",$fullWidth:!0,$outline:!0,$size:"md",onClick:pe,disabled:z,children:[t.jsx(ls,{size:16}),"Sign in with Passkey",t.jsx(xo,{})]}),(v.length>0||((se=(bt=e==null?void 0:e.auth_settings)==null?void 0:bt.passkey)==null?void 0:se.enabled))&&t.jsx(Ji,{children:t.jsx(Xi,{children:"or"})}),t.jsxs(Ot,{onSubmit:ue,noValidate:!0,children:[(w==="email_password"||w==="email_otp"||w==="email_magic_link")&&(($e=(ye=e==null?void 0:e.auth_settings)==null?void 0:ye.email_address)==null?void 0:$e.enabled)&&t.jsxs(ke,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"email",children:"Email address"}),j==="identifier"&&t.jsx(Nr,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>b(!0),children:"Other methods"})]}),j==="password"&&w==="email_password"&&F.email?t.jsxs(ec,{children:[t.jsx(tc,{children:t.jsx(zi,{})}),t.jsx(rc,{children:F.email}),t.jsx(ac,{type:"button",onClick:()=>S("identifier"),children:"Edit"})]}):t.jsx(le,{type:"email",id:"email",name:"email",value:F.email,onChange:ce,placeholder:"Enter your email address","aria-invalid":!!R.email}),R.email&&t.jsx(ma,{children:R.email})]}),w==="username_password"&&((st=(Be=e==null?void 0:e.auth_settings)==null?void 0:Be.username)==null?void 0:st.enabled)&&t.jsxs(ke,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"username",children:"Username"}),j==="identifier"&&t.jsx(Nr,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>b(!0),children:"Other methods"})]}),j==="password"&&F.username?t.jsxs(ec,{children:[t.jsx(tc,{children:t.jsx(zi,{})}),t.jsx(rc,{children:F.username}),t.jsx(ac,{type:"button",onClick:()=>{S("identifier"),M(U=>({...U,password:""}))},children:"Edit"})]}):t.jsx(le,{type:"text",id:"username",name:"username",value:F.username,onChange:ce,placeholder:"Enter your username","aria-invalid":!!R.username,autoComplete:"username"}),R.username&&t.jsx(ma,{children:R.username})]}),w==="phone_otp"&&((xt=(nt=e==null?void 0:e.auth_settings)==null?void 0:nt.phone_number)==null?void 0:xt.enabled)&&t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"phone",children:"Phone number"}),t.jsx(Ma,{value:F.phone,onChange:ce,error:R.phone,countryCode:I,setCountryCode:T}),R.phone&&t.jsx(ma,{children:R.phone})]}),j==="password"&&(w==="email_password"||w==="username_password")&&((Le=(ae=e==null?void 0:e.auth_settings)==null?void 0:ae.password)==null?void 0:Le.enabled)&&t.jsxs(ke,{children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[t.jsx(be,{htmlFor:"password",children:"Password"}),t.jsx(Nr,{style:{fontSize:"var(--font-size-sm)"},onClick:()=>g(!0),children:"Forgot password?"})]}),t.jsx(x6,{children:t.jsx(le,{type:"password",id:"password",name:"password",value:F.password,onChange:ce,placeholder:"Enter your password","aria-invalid":!!R.password})}),R.password&&t.jsx(ma,{children:R.password})]}),t.jsxs("div",{children:[R.submit&&t.jsx(ma,{children:R.submit}),t.jsx(nc,{type:"submit",$fullWidth:!0,$size:"md",disabled:z||C,children:z?t.jsx(oc,{size:16}):j==="identifier"?"Continue":"Sign in"}),j==="password"&&((He=(dt=e==null?void 0:e.auth_settings)==null?void 0:dt.auth_factors_enabled)==null?void 0:He.email_otp)&&t.jsxs(t.Fragment,{children:[t.jsx(Ji,{style:{margin:"var(--space-6u) 0 var(--space-5u)"},children:t.jsx(Xi,{children:"or"})}),t.jsx($1,{type:"button",icon:t.jsx(Vd,{}),label:"Sign in with a code",description:"We'll send a 6-digit code to your email",disabled:z,onClick:async()=>{Z(!0),A({});try{await _.create({email:F.email,strategy:"email_otp"}),E("email_otp")}catch(U){A({submit:U.message}),Z(!1)}}})]})]})]}),t.jsxs(vo,{children:["Don't have an account?"," ",t.jsx(Nr,{children:t.jsx(Pt,{to:`${(Tt=e.ui_settings)==null?void 0:Tt.sign_up_page_url}${window.location.search}`,children:"Sign up"})})]})]})]})})}const O6=gt`
|
|
2050
2050
|
from { transform: rotate(0deg); }
|
|
2051
2051
|
to { transform: rotate(360deg); }
|
|
2052
2052
|
`,H6=l(yt)`
|
|
2053
2053
|
animation: ${O6} 1s linear infinite;
|
|
2054
|
-
`,
|
|
2054
|
+
`,uc=l.div`
|
|
2055
2055
|
${Et}
|
|
2056
2056
|
`,V6=l.div`
|
|
2057
2057
|
text-align: center;
|
|
@@ -2128,7 +2128,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2128
2128
|
color: var(--color-primary);
|
|
2129
2129
|
text-decoration: none;
|
|
2130
2130
|
cursor: pointer;
|
|
2131
|
-
`;function X6(){var w,E,j,S,C,_,k,y,L,
|
|
2131
|
+
`;function X6(){var w,E,j,S,C,_,k,y,L,$,H,F;const{deployment:e}=Se(),{loading:r,joinWaitlist:a}=b0(),[o,s]=c.useState({first_name:"",last_name:"",email:""}),[i,h]=c.useState(!1),[d,u]=c.useState(!1),[f,p]=c.useState(null),m=M=>{if(f)return f.message},g=e==null?void 0:e.auth_settings,x=!!((w=g==null?void 0:g.first_name)!=null&&w.enabled&&((E=g==null?void 0:g.last_name)!=null&&E.enabled)),b=M=>{const{name:R,value:A}=M.target;s(z=>({...z,[R]:A}))},v=async M=>{if(M.preventDefault(),!!g){u(!0),p(null);try{(await a(o)).data&&h(!0)}catch(R){p(R)}finally{u(!1)}}};return i?t.jsx(fe,{children:t.jsx(uc,{children:t.jsxs(W6,{children:[t.jsx(G6,{children:t.jsx(ct,{size:32})}),t.jsx(q6,{children:"You're on the waitlist!"}),t.jsxs(K6,{children:["Thanks for your interest! We'll notify you at ",o.email," ","when we're ready for you to join."]})]})})}):t.jsx(fe,{children:t.jsxs(uc,{children:[t.jsx(Xe,{}),t.jsxs(V6,{children:[t.jsx(D6,{children:"Join the waitlist"}),t.jsx(N6,{children:"Be the first to know when we launch!"})]}),t.jsxs(U6,{onSubmit:v,noValidate:!0,children:[(((j=g==null?void 0:g.first_name)==null?void 0:j.enabled)||((S=g==null?void 0:g.last_name)==null?void 0:S.enabled))&&t.jsxs(B6,{$isBothEnabled:x,children:[((C=g==null?void 0:g.first_name)==null?void 0:C.enabled)&&t.jsxs(wo,{children:[t.jsxs(bo,{htmlFor:"first_name",children:["First name",((_=g==null?void 0:g.first_name)==null?void 0:_.required)&&t.jsx(yo,{children:"*"})]}),t.jsx(le,{type:"text",id:"first_name",name:"first_name",required:(k=g==null?void 0:g.first_name)==null?void 0:k.required,minLength:2,maxLength:50,value:o.first_name,onChange:b,placeholder:"First name","aria-invalid":!!m()}),m()&&t.jsx(Ka,{children:m()})]}),((y=g==null?void 0:g.last_name)==null?void 0:y.enabled)&&t.jsxs(wo,{children:[t.jsxs(bo,{htmlFor:"last_name",children:["Last name",((L=g==null?void 0:g.last_name)==null?void 0:L.required)&&t.jsx(yo,{children:"*"})]}),t.jsx(le,{type:"text",id:"last_name",name:"last_name",required:($=g==null?void 0:g.last_name)==null?void 0:$.required,minLength:2,maxLength:50,value:o.last_name,onChange:b,placeholder:"Last name","aria-invalid":!!m()}),m()&&t.jsx(Ka,{children:m()})]})]}),t.jsxs(wo,{children:[t.jsxs(bo,{htmlFor:"email",children:["Email address",((H=g==null?void 0:g.email_address)==null?void 0:H.required)&&t.jsx(yo,{children:"*"})]}),t.jsx(le,{type:"email",id:"email",name:"email",required:(F=g==null?void 0:g.email_address)==null?void 0:F.required,value:o.email,onChange:b,placeholder:"Enter your email address","aria-invalid":!!m()}),m()&&t.jsx(Ka,{children:m()})]}),m()&&t.jsx(Ka,{children:m()}),t.jsx(N,{type:"submit",$primary:!0,$fullWidth:!0,disabled:d||r,children:d||r?t.jsx(H6,{size:16}):"Join waitlist"})]}),t.jsx(Y6,{children:t.jsxs(Q6,{children:["Need assistance? ",t.jsx(J6,{href:"/contact",children:"Get help"})]})})]})})}const ga=l.div`
|
|
2132
2132
|
${Et}
|
|
2133
2133
|
`,Ya=l.div`
|
|
2134
2134
|
text-align: center;
|
|
@@ -2158,7 +2158,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2158
2158
|
margin: 0 auto var(--space-8u) auto;
|
|
2159
2159
|
color: var(--color-error);
|
|
2160
2160
|
font-size: var(--font-size-3xl);
|
|
2161
|
-
`,
|
|
2161
|
+
`,pc=l.div`
|
|
2162
2162
|
width: calc(var(--space-14u) * 2);
|
|
2163
2163
|
height: calc(var(--space-14u) * 2);
|
|
2164
2164
|
border: var(--border-width-regular) solid var(--color-border);
|
|
@@ -2210,7 +2210,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2210
2210
|
color: var(--color-primary-hover);
|
|
2211
2211
|
text-decoration: underline;
|
|
2212
2212
|
}
|
|
2213
|
-
`;function ng(){const{deployment:e}=Se(),{navigate:r}=jt(),{error:a,session:o,processed:s,signinAttempt:i,redirectUri:h,loading:d}=
|
|
2213
|
+
`;function ng(){const{deployment:e}=Se(),{navigate:r}=jt(),{error:a,session:o,processed:s,signinAttempt:i,redirectUri:h,loading:d}=y0(),[u,f]=c.useState(!1),[p,m]=c.useState(null),g=()=>{window.location.reload()},x=()=>{var E;const w=((E=e==null?void 0:e.ui_settings)==null?void 0:E.sign_in_page_url)||"/sign-in";r(w)},b=()=>{f(!1),p&&r(p)},v=()=>{f(!1),p&&r(p)};if(c.useEffect(()=>{var w,E,j,S,C;if(!(!s||d||u)){if(i&&!i.completed){const _=(w=e==null?void 0:e.ui_settings)==null?void 0:w.sign_in_page_url;if(_){const k=new URL(_,window.location.origin);k.searchParams.set("signin_attempt_id",i.id),h&&k.searchParams.set("redirect_uri",h),r(k.toString())}return}if(i!=null&&i.completed){const k=ft(e,h)||((E=e==null?void 0:e.ui_settings)==null?void 0:E.after_signin_redirect_url)||(e==null?void 0:e.frontend_host)||"/";let y;try{y=new URL(k)}catch{y=new URL(k,window.location.origin)}if(y){(e==null?void 0:e.mode)==="staging"&&y.searchParams.set("__dev_session__",mt(e.backend_host)||"");const L=(j=e==null?void 0:e.auth_settings)==null?void 0:j.passkey;(L==null?void 0:L.enabled)&&(L==null?void 0:L.prompt_registration_on_auth)&&!((C=(S=o==null?void 0:o.active_signin)==null?void 0:S.user)!=null&&C.has_passkeys)?(m(y.toString()),f(!0)):r(y.toString())}}}},[o,s,d,h,e,i,r]),c.useEffect(()=>{a&&a.message.includes("No OAuth callback data found")&&setTimeout(()=>{var E;const w=((E=e==null?void 0:e.ui_settings)==null?void 0:E.sign_in_page_url)||(e==null?void 0:e.frontend_host);w&&r(w)},2e3)},[a,e,r]),d&&!s)return t.jsx(fe,{children:t.jsxs(ga,{children:[t.jsxs(Ya,{children:[t.jsx(Qa,{children:"Completing sign in"}),t.jsx(Ja,{children:"Please wait while we authenticate you"})]}),t.jsxs(Xa,{children:[t.jsx(pc,{}),t.jsx(en,{children:"Verifying your credentials..."}),t.jsx(tn,{children:"This will only take a moment."})]})]})});if(u)return t.jsx(fe,{children:t.jsxs(ga,{children:[t.jsx(Xe,{}),t.jsx(O1,{onComplete:b,onSkip:v})]})});if(o&&s&&!a)return t.jsx(fe,{children:t.jsxs(ga,{children:[t.jsxs(Ya,{children:[t.jsx(Qa,{children:"Success!"}),t.jsx(Ja,{children:"Authentication completed successfully"})]}),t.jsxs(Xa,{children:[t.jsx(tg,{children:"✓"}),t.jsx(en,{children:"Redirecting you now..."}),t.jsx(tn,{children:"You'll be redirected to your destination shortly."})]})]})});if(a){const w=a.message.includes("No OAuth callback data found");return t.jsx(fe,{children:t.jsxs(ga,{children:[t.jsxs(Ya,{children:[t.jsx(Qa,{children:"Something went wrong"}),t.jsx(Ja,{children:"We couldn't complete your sign in"})]}),t.jsxs(Xa,{children:[t.jsx(eg,{children:"✗"}),t.jsx(en,{children:"Authentication Failed"}),t.jsx(tn,{children:a.message||"An unexpected error occurred during authentication."}),!w&&t.jsx(N,{onClick:g,$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:"Try Again"})]}),!w&&t.jsx(rg,{children:t.jsxs("div",{children:["Having trouble?"," ",t.jsx(ag,{onClick:x,children:"Return to sign in"})]})})]})})}return t.jsx(fe,{children:t.jsxs(ga,{children:[t.jsxs(Ya,{children:[t.jsx(Qa,{children:"Completing sign in"}),t.jsx(Ja,{children:"Please wait while we authenticate you"})]}),t.jsxs(Xa,{children:[t.jsx(pc,{}),t.jsx(en,{children:"Verifying your credentials..."}),t.jsx(tn,{children:"This will only take a moment."})]})]})})}const og=l.div`
|
|
2214
2214
|
${Et}
|
|
2215
2215
|
`,sg=l.div`
|
|
2216
2216
|
text-align: center;
|
|
@@ -2270,7 +2270,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2270
2270
|
`,jo=l.p`
|
|
2271
2271
|
font-size: var(--font-size-md);
|
|
2272
2272
|
color: var(--color-secondary-text);
|
|
2273
|
-
`;function hg({onSuccess:e,onError:r}={}){const[a,o]=c.useState("loading"),[s,i]=c.useState(""),{token:h,attempt:d,redirectUri:u}=R2(),{verifyMagicLink:f}=
|
|
2273
|
+
`;function hg({onSuccess:e,onError:r}={}){const[a,o]=c.useState("loading"),[s,i]=c.useState(""),{token:h,attempt:d,redirectUri:u}=R2(),{verifyMagicLink:f}=j0(),{navigate:p}=jt(),{deployment:m}=Se(),g=c.useRef(!1);c.useEffect(()=>{(async()=>{if(!g.current){if(!h||!d){o("error"),i("The magic link appears to be malformed. Please try signing in again."),r==null||r("Invalid magic link parameters");return}g.current=!0,o("loading"),i("Please wait while we verify your magic link.");try{await f({token:h,attempt:d,redirectUri:u}),o("success"),i("You will be redirected to your account shortly."),e==null||e(),setTimeout(()=>{var w;let v=ft(m,u);if(v||(v=(w=m==null?void 0:m.ui_settings)==null?void 0:w.after_signin_redirect_url),!v&&(m!=null&&m.frontend_host)&&(v=`https://${m.frontend_host}`),v){const E=new URL(v);(m==null?void 0:m.mode)==="staging"&&E.searchParams.set("__dev_session__",mt(m.backend_host)||""),p(E.toString())}},2e3)}catch(v){o("error"),i("The magic link may have expired or already been used. Please try signing in again."),r==null||r(v.message)}}})()},[h,d]);const x=()=>{var b;(b=m==null?void 0:m.ui_settings)!=null&&b.sign_in_page_url&&p(m.ui_settings.sign_in_page_url)};return t.jsx(fe,{children:t.jsxs(og,{children:[t.jsxs(sg,{children:[t.jsx(ig,{children:"Magic Link Verification"}),t.jsx(cg,{children:"Verifying your magic link"})]}),t.jsxs(lg,{children:[a==="loading"&&t.jsxs(t.Fragment,{children:[t.jsx(pg,{}),t.jsx(jo,{children:s})]}),a==="success"&&t.jsxs(t.Fragment,{children:[t.jsx(dg,{children:"✓"}),t.jsx(jo,{children:s})]}),a==="error"&&t.jsxs(t.Fragment,{children:[t.jsx(ug,{children:"✗"}),t.jsx(jo,{children:s}),t.jsx(N,{onClick:x,$fullWidth:!0,style:{marginTop:"var(--space-10u)"},children:"Try Again"})]})]})]})})}function fg(e){var o,s;return e?((o=e.signin_attempts)==null?void 0:o.find(i=>i.requires_completion&&!i.completed))?!0:!!((s=e.signup_attempts)==null?void 0:s.find(i=>{var h,d;return((h=i.missing_fields)==null?void 0:h.length)>0||((d=i.remaining_steps)==null?void 0:d.length)>0&&!i.completed})):!1}function mg(e){const r=e?`/profile-completion?redirect_uri=${encodeURIComponent(e)}`:"/profile-completion";window.location.href=r}const xr=l.div`
|
|
2274
2274
|
${Et}
|
|
2275
2275
|
`,wr=l.div`
|
|
2276
2276
|
text-align: center;
|
|
@@ -2311,7 +2311,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2311
2311
|
margin: 0 auto var(--space-8u) auto;
|
|
2312
2312
|
color: var(--color-error);
|
|
2313
2313
|
font-size: var(--font-size-3xl);
|
|
2314
|
-
`,
|
|
2314
|
+
`,hc=l.div`
|
|
2315
2315
|
width: calc(var(--space-14u) * 2);
|
|
2316
2316
|
height: calc(var(--space-14u) * 2);
|
|
2317
2317
|
border-radius: 50%;
|
|
@@ -2347,7 +2347,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2347
2347
|
font-size: var(--font-size-md);
|
|
2348
2348
|
color: var(--color-secondary-text);
|
|
2349
2349
|
margin-bottom: var(--space-8u);
|
|
2350
|
-
`,
|
|
2350
|
+
`,fc=l.span`
|
|
2351
2351
|
color: var(--color-primary);
|
|
2352
2352
|
font-weight: 400;
|
|
2353
2353
|
`,xg=l.div`
|
|
@@ -2365,7 +2365,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2365
2365
|
&:hover {
|
|
2366
2366
|
color: var(--color-primary-hover);
|
|
2367
2367
|
}
|
|
2368
|
-
`;function bg({token:e,onSuccess:r,onError:a}){var v;const{acceptInvitation:o,invitationData:s,loading:i,error:h}=M0(),{navigate:d}=jt(),{deployment:u}=Se(),f=c.useRef(!1),p=()=>{var E;const w=new URLSearchParams(window.location.search);return{token:e||w.get("invite_token")||w.get("token"),redirectUri:ft(u,w.get("redirect_uri"))||((E=u==null?void 0:u.ui_settings)==null?void 0:E.after_signin_redirect_url)||"/"}};c.useEffect(()=>{if(f.current)return;const{token:w}=p();w&&(f.current=!0,o(w))},[o]),c.useEffect(()=>{var w;s&&(s.organization&&!s.requires_signin&&r&&r(s.organization.id,(w=s.workspace)==null?void 0:w.id),s.error_code&&a&&a(s.message||"Failed to accept invitation"))},[s,r,a]);const m=()=>{const{redirectUri:w}=p();d(w)},g=()=>{var y,L;const{token:w}=p(),E=((y=u==null?void 0:u.ui_settings)==null?void 0:y.sign_in_page_url)||"/sign-in",j=((L=u==null?void 0:u.ui_settings)==null?void 0:L.sign_up_page_url)||"/sign-up",S=new URLSearchParams;w&&S.set("invite_token",w),s!=null&&s.invited_email&&S.set("invited_email",s.invited_email);const _=`${window.location.pathname}?token=${w}`;S.set("redirect_uri",_),s!=null&&s.message&&S.set("message",s.message);const k=(s==null?void 0:s.error_code)==="INVITATION_REQUIRES_SIGNUP";d(`${k?j:E}?${S.toString()}`)},x=()=>{const{token:w}=p();w&&(f.current=!1,o(w))},{token:b}=p();if(!b&&!i)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Invalid Invitation"}),t.jsx(yr,{children:"No invitation token found"})]}),t.jsxs(jr,{children:[t.jsx(_o,{children:"✗"}),t.jsx(_r,{children:"Missing Invitation Token"}),t.jsx(kr,{children:"The invitation link appears to be invalid or incomplete."}),t.jsx(N,{onClick:()=>d("/"),$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:"Go to Home"})]})]})});if(i)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Processing Invitation"}),t.jsx(yr,{children:"Please wait while we verify your invitation"})]}),t.jsxs(jr,{children:[t.jsx(vg,{}),t.jsx(_r,{children:"Verifying invitation..."}),t.jsx(kr,{children:"This will only take a moment."})]})]})});if(s!=null&&s.organization&&!s.requires_signin)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Invitation Accepted!"}),t.jsx(yr,{children:"You've successfully joined the organization"})]}),t.jsxs(jr,{children:[t.jsx(gg,{children:"✓"}),t.jsxs(_r,{children:["Welcome to ",s.organization.name,"!"]}),s.workspace&&t.jsxs(kr,{children:["You've been added to the ",s.workspace.name," workspace."]}),t.jsx(N,{onClick:m,$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:"Continue to Application"})]})]})});if(s!=null&&s.already_member)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Already a Member"}),t.jsx(yr,{children:"You're already part of this organization"})]}),t.jsxs(jr,{children:[t.jsx(
|
|
2368
|
+
`;function bg({token:e,onSuccess:r,onError:a}){var v;const{acceptInvitation:o,invitationData:s,loading:i,error:h}=M0(),{navigate:d}=jt(),{deployment:u}=Se(),f=c.useRef(!1),p=()=>{var E;const w=new URLSearchParams(window.location.search);return{token:e||w.get("invite_token")||w.get("token"),redirectUri:ft(u,w.get("redirect_uri"))||((E=u==null?void 0:u.ui_settings)==null?void 0:E.after_signin_redirect_url)||"/"}};c.useEffect(()=>{if(f.current)return;const{token:w}=p();w&&(f.current=!0,o(w))},[o]),c.useEffect(()=>{var w;s&&(s.organization&&!s.requires_signin&&r&&r(s.organization.id,(w=s.workspace)==null?void 0:w.id),s.error_code&&a&&a(s.message||"Failed to accept invitation"))},[s,r,a]);const m=()=>{const{redirectUri:w}=p();d(w)},g=()=>{var y,L;const{token:w}=p(),E=((y=u==null?void 0:u.ui_settings)==null?void 0:y.sign_in_page_url)||"/sign-in",j=((L=u==null?void 0:u.ui_settings)==null?void 0:L.sign_up_page_url)||"/sign-up",S=new URLSearchParams;w&&S.set("invite_token",w),s!=null&&s.invited_email&&S.set("invited_email",s.invited_email);const _=`${window.location.pathname}?token=${w}`;S.set("redirect_uri",_),s!=null&&s.message&&S.set("message",s.message);const k=(s==null?void 0:s.error_code)==="INVITATION_REQUIRES_SIGNUP";d(`${k?j:E}?${S.toString()}`)},x=()=>{const{token:w}=p();w&&(f.current=!1,o(w))},{token:b}=p();if(!b&&!i)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Invalid Invitation"}),t.jsx(yr,{children:"No invitation token found"})]}),t.jsxs(jr,{children:[t.jsx(_o,{children:"✗"}),t.jsx(_r,{children:"Missing Invitation Token"}),t.jsx(kr,{children:"The invitation link appears to be invalid or incomplete."}),t.jsx(N,{onClick:()=>d("/"),$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:"Go to Home"})]})]})});if(i)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Processing Invitation"}),t.jsx(yr,{children:"Please wait while we verify your invitation"})]}),t.jsxs(jr,{children:[t.jsx(vg,{}),t.jsx(_r,{children:"Verifying invitation..."}),t.jsx(kr,{children:"This will only take a moment."})]})]})});if(s!=null&&s.organization&&!s.requires_signin)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Invitation Accepted!"}),t.jsx(yr,{children:"You've successfully joined the organization"})]}),t.jsxs(jr,{children:[t.jsx(gg,{children:"✓"}),t.jsxs(_r,{children:["Welcome to ",s.organization.name,"!"]}),s.workspace&&t.jsxs(kr,{children:["You've been added to the ",s.workspace.name," workspace."]}),t.jsx(N,{onClick:m,$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:"Continue to Application"})]})]})});if(s!=null&&s.already_member)return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Already a Member"}),t.jsx(yr,{children:"You're already part of this organization"})]}),t.jsxs(jr,{children:[t.jsx(hc,{children:"ℹ"}),t.jsxs(_r,{children:["You're already a member of ",((v=s.organization)==null?void 0:v.name)||"this organization"]}),t.jsx(kr,{children:"No action needed - you already have access."}),t.jsx(N,{onClick:m,$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:"Continue to Application"})]})]})});if(s!=null&&s.requires_signin){const w=s.error_code==="INVITATION_REQUIRES_SIGNUP";return t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:w?"Sign Up Required":"Sign In Required"}),t.jsx(yr,{children:"To accept this invitation"})]}),t.jsxs(jr,{children:[t.jsx(hc,{children:"ℹ"}),t.jsxs(_r,{children:["This invitation is for ",t.jsx(fc,{children:s.invited_email})]}),t.jsx(kr,{children:w?"You need to create an account with this email address to accept the invitation.":s.error_code==="INVITATION_EMAIL_MISMATCH"?"You're currently signed in with a different account. Please sign in with the invited email.":"Please sign in to accept this invitation."}),t.jsx(N,{onClick:g,$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:w?"Sign Up to Accept":"Sign In to Accept"})]})]})})}return(s==null?void 0:s.error_code)==="INVITATION_EXPIRED"?t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Invitation Expired"}),t.jsx(yr,{children:"This invitation is no longer valid"})]}),t.jsxs(jr,{children:[t.jsx(_o,{children:"⏱"}),t.jsxs(_r,{children:["Invitation for ",t.jsx(fc,{children:s.invited_email})," has expired"]}),t.jsx(kr,{children:"Invitations are valid for 10 days. Please request a new invitation from your organization administrator."})]})]})}):h||s!=null&&s.error_code?t.jsx(fe,{children:t.jsxs(xr,{children:[t.jsxs(wr,{children:[t.jsx(br,{children:"Invitation Error"}),t.jsx(yr,{children:"Unable to process invitation"})]}),t.jsxs(jr,{children:[t.jsx(_o,{children:"✗"}),t.jsx(_r,{children:"Something went wrong"}),t.jsx(kr,{children:(s==null?void 0:s.message)||h||"Failed to accept invitation"}),t.jsx(N,{onClick:x,$fullWidth:!0,style:{marginTop:"var(--space-8u)"},children:"Try Again"}),t.jsx(xg,{children:t.jsxs("div",{style:{marginTop:"var(--space-6u)"},children:["Having trouble?"," ",t.jsx(wg,{onClick:g,children:"Sign in manually"})]})})]})]})}):null}const Ps=c.createContext({screen:null,setScreen:()=>{},toast:(e,r)=>{}}),vt=()=>{const e=c.useContext(Ps);if(!e)throw new Error("useScreenContext must be used within a ScreenContextProvider");return e},yg=l.div`
|
|
2369
2369
|
display: flex;
|
|
2370
2370
|
height: 100%;
|
|
2371
2371
|
min-height: calc(var(--size-50u) * 4);
|
|
@@ -2460,9 +2460,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2460
2460
|
line-height: 1.4;
|
|
2461
2461
|
`,Mg=l.div`
|
|
2462
2462
|
flex: 1;
|
|
2463
|
-
`,
|
|
2463
|
+
`,mc=l.div`
|
|
2464
2464
|
margin-bottom: var(--space-10u);
|
|
2465
|
-
`,
|
|
2465
|
+
`,gc=l.label`
|
|
2466
2466
|
display: block;
|
|
2467
2467
|
margin-bottom: var(--space-3u);
|
|
2468
2468
|
font-size: var(--font-size-md);
|
|
@@ -2574,7 +2574,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2574
2574
|
color: var(--color-foreground-inverse);
|
|
2575
2575
|
font-size: var(--font-size-sm);
|
|
2576
2576
|
font-weight: 400;
|
|
2577
|
-
`,Hn=({onSuccess:e,onCancel:r})=>{const[a,o]=c.useState(""),[s,i]=c.useState(""),[h,d]=c.useState(),[u,f]=c.useState(null),[p,m]=c.useState(!1),g=c.useRef(null),{createOrganization:x}=Ht(),{refetch:b}=at(),{toast:v}=vt(),w=y=>{o(y)},E=y=>{if(y.target.files&&y.target.files[0]){const L=y.target.files[0];if(L.size>2*1024*1024){v("File size cannot exceed 2MB","error");return}if(!L.type.startsWith("image/")){v("Please select a valid image file","error");return}u&&URL.revokeObjectURL(u),d(L),f(URL.createObjectURL(L))}},j=()=>{var y;(y=g.current)==null||y.click()},S=y=>y.split(" ").map(L=>L[0]).join("").toUpperCase().slice(0,2)||"O";c.useEffect(()=>()=>{u&&URL.revokeObjectURL(u)},[u]);const C=y=>y.trim().replace(/[<>\"'&]/g,""),_=y=>y.length>=2&&y.length<=100&&/^[a-zA-Z0-9\s_.-]+$/.test(y),k=async()=>{const y=C(a),L=C(s);if(!y){v("Please enter an organization name","error");return}if(!_(y)){v("Organization name must be 2-100 characters and contain only letters, numbers, spaces, dots, underscores, and hyphens","error");return}if(L.length>500){v("Description must be less than 500 characters","error");return}m(!0);try{const
|
|
2577
|
+
`,Hn=({onSuccess:e,onCancel:r})=>{const[a,o]=c.useState(""),[s,i]=c.useState(""),[h,d]=c.useState(),[u,f]=c.useState(null),[p,m]=c.useState(!1),g=c.useRef(null),{createOrganization:x}=Ht(),{refetch:b}=at(),{toast:v}=vt(),w=y=>{o(y)},E=y=>{if(y.target.files&&y.target.files[0]){const L=y.target.files[0];if(L.size>2*1024*1024){v("File size cannot exceed 2MB","error");return}if(!L.type.startsWith("image/")){v("Please select a valid image file","error");return}u&&URL.revokeObjectURL(u),d(L),f(URL.createObjectURL(L))}},j=()=>{var y;(y=g.current)==null||y.click()},S=y=>y.split(" ").map(L=>L[0]).join("").toUpperCase().slice(0,2)||"O";c.useEffect(()=>()=>{u&&URL.revokeObjectURL(u)},[u]);const C=y=>y.trim().replace(/[<>\"'&]/g,""),_=y=>y.length>=2&&y.length<=100&&/^[a-zA-Z0-9\s_.-]+$/.test(y),k=async()=>{const y=C(a),L=C(s);if(!y){v("Please enter an organization name","error");return}if(!_(y)){v("Organization name must be 2-100 characters and contain only letters, numbers, spaces, dots, underscores, and hyphens","error");return}if(L.length>500){v("Description must be less than 500 characters","error");return}m(!0);try{const $=await x({name:y,description:L,image:h});await b(),e==null||e($)}catch($){const H=$.message||"Failed to create organization. Please try again.";v(H,"error")}finally{m(!1)}};return t.jsx(fe,{children:t.jsxs(yg,{children:[t.jsxs(jg,{children:[t.jsxs(V1,{hasImage:!!u,onClick:j,children:[u?t.jsx(kg,{src:u,alt:"Organization logo"}):t.jsx(Cg,{children:S(a||"O")}),t.jsx(Ig,{children:t.jsx(Og,{children:"Upload Logo"})})]}),t.jsx(Zg,{type:"file",ref:g,onChange:E,accept:"image/png, image/jpeg, image/gif",disabled:p}),t.jsx(Sg,{children:"Create new organization"}),t.jsx(Eg,{children:"Organizations help you manage all your team members for an org in one umbrella."})]}),t.jsxs(_g,{children:[t.jsxs(Ag,{children:[t.jsx(zg,{children:"Choose your organization name"}),t.jsx($g,{children:"This is the name of your company or team. You can always change it later."})]}),t.jsxs(Mg,{children:[t.jsxs(mc,{children:[t.jsx(gc,{children:"Organization name"}),t.jsx(Lg,{type:"text",value:a,onChange:y=>w(y.target.value),placeholder:"Acme Inc.",disabled:p})]}),t.jsxs(mc,{children:[t.jsx(gc,{children:"Description (optional)"}),t.jsx(Rg,{value:s,onChange:y=>i(y.target.value),placeholder:"What does your organization do?",disabled:p})]})]}),t.jsxs(Pg,{children:[r?t.jsxs(Tg,{onClick:r,disabled:p,children:[t.jsx(sa,{size:16}),"Back"]}):t.jsx("div",{}),t.jsx(Fg,{onClick:k,disabled:p||!a.trim(),children:p?"Creating...":"Create"})]})]})]})})},D1=({isOpen:e,onClose:r,onCreated:a})=>{const o=()=>{a==null||a(),r==null||r()};return t.jsx(fe,{children:t.jsx(Ve,{isOpen:e,onClose:r,children:t.jsx(Ve.Overlay,{children:t.jsx(Ve.Content,{style:{width:"900px",maxWidth:"90vw"},children:t.jsx(Ve.Body,{style:{padding:0},children:t.jsx(Hn,{onSuccess:o,onCancel:r})})})})})})},Hg=l.div`
|
|
2578
2578
|
text-align: left;
|
|
2579
2579
|
position: fixed;
|
|
2580
2580
|
background: var(--color-popover);
|
|
@@ -2651,7 +2651,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2651
2651
|
background: var(--color-input-background);
|
|
2652
2652
|
color: var(--color-card-foreground);
|
|
2653
2653
|
}
|
|
2654
|
-
`,
|
|
2654
|
+
`,vc=l.div`
|
|
2655
2655
|
padding: var(--space-6u) var(--space-8u);
|
|
2656
2656
|
background: var(--color-background-subtle);
|
|
2657
2657
|
border-radius: var(--radius-md);
|
|
@@ -2676,12 +2676,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2676
2676
|
outline: none;
|
|
2677
2677
|
border-color: var(--color-primary);
|
|
2678
2678
|
}
|
|
2679
|
-
`,
|
|
2679
|
+
`,xc=[{id:"okta",name:"Okta",logo:"https://www.okta.com/sites/default/files/Okta_Logo_BrightBlue_Medium.png",protocol:"saml",description:"SAML",docUrl:"https://help.okta.com/en-us/content/topics/apps/apps_app_integration_wizard_saml.htm",placeholders:{entityId:"http://www.okta.com/{yourOktaDomain}",ssoUrl:"https://{yourOktaDomain}.okta.com/app/{appId}/sso/saml"},attributeMapping:{first_name:"firstName",last_name:"lastName",email:"email"}},{id:"okta-oidc",name:"Okta",logo:"https://www.okta.com/sites/default/files/Okta_Logo_BrightBlue_Medium.png",protocol:"oidc",description:"OIDC",docUrl:"https://developer.okta.com/docs/guides/implement-oauth-for-okta/main/",placeholders:{issuerUrl:"https://{yourOktaDomain}.okta.com",scopes:"openid profile email"},attributeMapping:{first_name:"given_name",last_name:"family_name",email:"email"}},{id:"azure",name:"Azure AD",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Microsoft_Azure.svg/150px-Microsoft_Azure.svg.png",protocol:"saml",description:"SAML",docUrl:"https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/add-application-portal-setup-sso",placeholders:{entityId:"https://sts.windows.net/{tenantId}/",ssoUrl:"https://login.microsoftonline.com/{tenantId}/saml2"},attributeMapping:{first_name:"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname",last_name:"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",email:"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"}},{id:"azure-oidc",name:"Azure AD",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Microsoft_Azure.svg/150px-Microsoft_Azure.svg.png",protocol:"oidc",description:"OIDC",docUrl:"https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-protocols-oidc",placeholders:{issuerUrl:"https://login.microsoftonline.com/{tenantId}/v2.0",scopes:"openid profile email"},attributeMapping:{first_name:"given_name",last_name:"family_name",email:"email"}},{id:"google",name:"Google",logo:"https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png",protocol:"saml",description:"SAML",docUrl:"https://support.google.com/a/answer/6087519",placeholders:{entityId:"https://accounts.google.com/o/saml2?idpid={idpId}",ssoUrl:"https://accounts.google.com/o/saml2/idp?idpid={idpId}"},attributeMapping:{first_name:"FirstName",last_name:"LastName",email:"email"}},{id:"google-oidc",name:"Google",logo:"https://www.gstatic.com/images/branding/product/1x/googleg_48dp.png",protocol:"oidc",description:"OIDC",docUrl:"https://developers.google.com/identity/openid-connect/openid-connect",placeholders:{issuerUrl:"https://accounts.google.com",scopes:"openid profile email"},attributeMapping:{first_name:"given_name",last_name:"family_name",email:"email"}},{id:"auth0",name:"Auth0",logo:"https://cdn.auth0.com/styleguide/latest/lib/logos/img/badge.png",protocol:"oidc",description:"OIDC",docUrl:"https://auth0.com/docs/authenticate/protocols/openid-connect-protocol",placeholders:{issuerUrl:"https://{yourDomain}.auth0.com/",scopes:"openid profile email"},attributeMapping:{first_name:"given_name",last_name:"family_name",email:"email"}},{id:"onelogin",name:"OneLogin",logo:"",protocol:"saml",description:"SAML",docUrl:"https://onelogin.service-now.com/support?id=kb_article&sys_id=912bb23adbdc1cd0ca1c400e0b96197d",placeholders:{entityId:"https://app.onelogin.com/saml/metadata/{appId}",ssoUrl:"https://{subdomain}.onelogin.com/trust/saml2/http-post/sso/{appId}"}},{id:"ping",name:"PingOne",logo:"",protocol:"saml",description:"SAML",docUrl:"https://docs.pingidentity.com/pingone/latest/connector/configure-saml.html",placeholders:{entityId:"https://auth.pingone.com/{envId}",ssoUrl:"https://auth.pingone.com/{envId}/saml20/idp/sso"}},{id:"jumpcloud",name:"JumpCloud",logo:"",protocol:"saml",description:"SAML",docUrl:"https://support.jumpcloud.com/support/s/article/single-sign-on-sso-with-saml",placeholders:{entityId:"https://sso.jumpcloud.com/saml2/{appId}",ssoUrl:"https://sso.jumpcloud.com/saml2/{appId}"}},{id:"duo",name:"Duo",logo:"",protocol:"saml",description:"SAML",docUrl:"https://duo.com/docs/sso",placeholders:{entityId:"https://sso.duosecurity.com/saml2/sp/{appId}",ssoUrl:"https://sso.duosecurity.com/saml2/idp/{appId}/sso"}},{id:"keycloak",name:"Keycloak",logo:"https://www.keycloak.org/resources/images/icon.svg",protocol:"oidc",description:"OIDC",docUrl:"https://www.keycloak.org/docs/latest/securing_apps/",placeholders:{issuerUrl:"https://{host}/realms/{realm}",scopes:"openid profile email"}},{id:"adfs",name:"ADFS",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/Microsoft_logo.svg/100px-Microsoft_logo.svg.png",protocol:"saml",description:"SAML",docUrl:"https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/operations/create-a-relying-party-trust",placeholders:{entityId:"http://{adfsServer}/adfs/services/trust",ssoUrl:"https://{adfsServer}/adfs/ls/"}},{id:"custom-saml",name:"Custom",logo:"",protocol:"saml",description:"SAML",docUrl:"",placeholders:{}},{id:"custom-oidc",name:"Custom",logo:"",protocol:"oidc",description:"OIDC",docUrl:"",placeholders:{}}],wc=l.div`
|
|
2680
2680
|
display: grid;
|
|
2681
2681
|
grid-template-columns: repeat(4, 1fr);
|
|
2682
2682
|
gap: var(--space-4u);
|
|
2683
2683
|
margin-bottom: var(--space-8u);
|
|
2684
|
-
`,
|
|
2684
|
+
`,bc=l.button`
|
|
2685
2685
|
display: flex;
|
|
2686
2686
|
flex-direction: column;
|
|
2687
2687
|
align-items: center;
|
|
@@ -2706,12 +2706,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2706
2706
|
background: var(--color-input-background);
|
|
2707
2707
|
border-radius: var(--radius-2xs);
|
|
2708
2708
|
padding: var(--space-1u);
|
|
2709
|
-
`,
|
|
2709
|
+
`,yc=l.span`
|
|
2710
2710
|
font-size: var(--font-size-xs);
|
|
2711
2711
|
font-weight: 500;
|
|
2712
2712
|
color: var(--color-card-foreground);
|
|
2713
2713
|
text-align: center;
|
|
2714
|
-
`,
|
|
2714
|
+
`,jc=l.select`
|
|
2715
2715
|
width: 100%;
|
|
2716
2716
|
padding: var(--space-5u) var(--space-6u);
|
|
2717
2717
|
border: var(--border-width-thin) solid var(--color-border);
|
|
@@ -2741,17 +2741,17 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2741
2741
|
display: flex;
|
|
2742
2742
|
gap: var(--space-4u);
|
|
2743
2743
|
flex-wrap: wrap;
|
|
2744
|
-
`,ev=({connection:e,onDelete:r,connectionToDelete:a,onConfirmDelete:o,onCancelDelete:s,testConnection:i,generateSCIMToken:h,getSCIMToken:d,revokeSCIMToken:u,toast:f})=>{var
|
|
2744
|
+
`,ev=({connection:e,onDelete:r,connectionToDelete:a,onConfirmDelete:o,onCancelDelete:s,testConnection:i,generateSCIMToken:h,getSCIMToken:d,revokeSCIMToken:u,toast:f})=>{var H,F,M,R,A;const[p,m]=c.useState(null),[g,x]=c.useState(!1),[b,v]=c.useState(null),[w,E]=c.useState(null),[j,S]=c.useState(!1),[C,_]=c.useState(null);c.useEffect(()=>{d&&e.id&&d(e.id).then(m).catch(()=>{})},[e.id,d]);const k=async()=>{if(i){S(!0),_(null);try{const z=await i(e.id);_(z)}catch(z){_({success:!1,checks:{},errors:{general:z.message||"Test failed"}})}finally{S(!1)}}},y=async()=>{if(h){x(!0);try{const z=await h(e.id);v(z.token),m({exists:!0,token:z}),f("SCIM token generated. Copy it now - it won't be shown again!","info")}catch(z){f(z.message||"Failed to generate token","error")}finally{x(!1)}}},L=async()=>{if(u){x(!0);try{await u(e.id),m({exists:!1,scim_base_url:p==null?void 0:p.scim_base_url}),v(null),f("SCIM token revoked","info")}catch(z){f(z.message||"Failed to revoke token","error")}finally{x(!1)}}},$=(z,Z)=>{navigator.clipboard.writeText(z),E(Z),setTimeout(()=>E(null),2e3)};return t.jsxs(Bg,{children:[t.jsxs(Wg,{children:[t.jsxs(Gg,{children:[t.jsx(Rt,{size:16}),e.protocol==="oidc"?"OIDC SSO":"SAML SSO",t.jsx(qg,{children:e.protocol.toUpperCase()})]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(N,{onClick:k,disabled:j,style:{fontSize:"var(--font-size-sm)",padding:"var(--space-3u) var(--space-7u)",width:"var(--size-40u)"},children:j?t.jsx(Ee,{size:14}):"Test"}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$outline:!0,onClick:()=>r(e.id),style:{fontSize:"var(--font-size-sm)",padding:"var(--space-3u) var(--space-7u)",width:"var(--size-40u)",color:"var(--color-error)",borderColor:"var(--color-error)"},children:"Remove"}),a===e.id&&t.jsx(ta,{title:"Delete this SSO connection?",onConfirm:()=>o(e.id),onCancel:s})]})]})]}),C&&t.jsxs("div",{style:{marginBottom:"var(--space-6u)",padding:"var(--space-4u) var(--space-6u)",background:C.success?"var(--color-success-background)":"var(--color-error-background)",borderRadius:"var(--radius-xs)",fontSize:"var(--font-size-sm)",color:C.success?"var(--color-success)":"var(--color-error)",fontWeight:500},children:[C.success?"✓ Connection is valid":"✗ Connection failed",C.errors&&Object.entries(C.errors).map(([z,Z])=>t.jsxs("div",{style:{fontWeight:400,marginTop:"var(--space-2u)"},children:[z.replace(/_/g," "),": ",Z]},z))]}),t.jsxs("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr",gap:"var(--space-2u) var(--space-8u)",fontSize:"var(--font-size-sm)",marginBottom:"var(--space-8u)"},children:[e.protocol==="saml"?t.jsxs(t.Fragment,{children:[t.jsx("span",{style:{color:"var(--color-muted)"},children:"Entity ID"}),t.jsx("span",{style:{color:"var(--color-foreground)",wordBreak:"break-all"},children:e.idp_entity_id}),t.jsx("span",{style:{color:"var(--color-muted)"},children:"SSO URL"}),t.jsx("span",{style:{color:"var(--color-foreground)",wordBreak:"break-all"},children:e.idp_sso_url})]}):t.jsxs(t.Fragment,{children:[t.jsx("span",{style:{color:"var(--color-muted)"},children:"Issuer URL"}),t.jsx("span",{style:{color:"var(--color-foreground)",wordBreak:"break-all"},children:e.oidc_issuer_url}),t.jsx("span",{style:{color:"var(--color-muted)"},children:"Client ID"}),t.jsx("span",{style:{color:"var(--color-foreground)"},children:e.oidc_client_id}),t.jsx("span",{style:{color:"var(--color-muted)"},children:"Scopes"}),t.jsx("span",{style:{color:"var(--color-foreground)"},children:e.oidc_scopes||"openid profile email"})]}),t.jsx("span",{style:{color:"var(--color-muted)"},children:"Created"}),t.jsx("span",{style:{color:"var(--color-foreground)"},children:new Date(e.created_at).toLocaleDateString()})]}),t.jsxs(Qg,{children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--space-6u)"},children:[t.jsxs(Jg,{style:{marginBottom:0},children:[t.jsx(Rt,{size:14}),"SCIM Provisioning"]}),t.jsx(Xg,{children:!(p!=null&&p.exists)||!((H=p==null?void 0:p.token)!=null&&H.enabled)?t.jsx(N,{onClick:y,disabled:g,style:{fontSize:"var(--font-size-sm)",padding:"var(--space-3u) var(--space-7u)",width:"calc(var(--space-10u) * 6)"},children:g?t.jsx(Ee,{size:14}):"Generate Token"}):t.jsxs(t.Fragment,{children:[t.jsx(N,{onClick:y,disabled:g,style:{fontSize:"var(--font-size-sm)",padding:"var(--space-3u) var(--space-7u)",width:"var(--size-40u)"},children:g?t.jsx(Ee,{size:14}):"Rotate"}),t.jsx(N,{$outline:!0,onClick:L,disabled:g,style:{fontSize:"var(--font-size-sm)",padding:"var(--space-3u) var(--space-7u)",width:"var(--size-40u)",color:"var(--color-error)",borderColor:"var(--color-error)"},children:"Revoke"})]})})]}),(((F=p==null?void 0:p.token)==null?void 0:F.scim_base_url)||b)&&t.jsx("div",{style:{marginBottom:"var(--space-4u)"},children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-muted)",minWidth:"var(--size-40u)"},children:"Base URL:"}),t.jsx("code",{style:{fontSize:"var(--font-size-xs)",flex:1,wordBreak:"break-all",color:"var(--color-foreground)"},children:((M=p==null?void 0:p.token)==null?void 0:M.scim_base_url)||"Loading..."}),((R=p==null?void 0:p.token)==null?void 0:R.scim_base_url)&&t.jsx(ka,{onClick:()=>$(p.token.scim_base_url,"scim-url"),children:w==="scim-url"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]})}),b&&t.jsxs("div",{style:{marginBottom:"var(--space-4u)"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-muted)",minWidth:"var(--size-40u)"},children:"Token:"}),t.jsx("code",{style:{fontSize:"var(--font-size-xs)",flex:1,wordBreak:"break-all",color:"var(--color-foreground)",fontFamily:"monospace"},children:b}),t.jsx(ka,{onClick:()=>$(b,"scim-token"),children:w==="scim-token"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]}),t.jsx("div",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-warning)",marginTop:"var(--space-3u)"},children:"⚠️ Copy this token now. It won't be shown again."})]}),(p==null?void 0:p.exists)&&((A=p==null?void 0:p.token)==null?void 0:A.enabled)&&!b&&t.jsxs("div",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-muted)"},children:["Token:"," ",t.jsxs("code",{style:{color:"var(--color-foreground)",background:"var(--color-background-subtle)",padding:"var(--space-1u) var(--space-3u)",borderRadius:"var(--radius-2xs)"},children:[p.token.token_prefix,"..."]}),p.token.last_used_at&&t.jsxs("span",{children:[" ","· Last used:"," ",new Date(p.token.last_used_at).toLocaleDateString()]})]})]})]})},Co=l.h3`
|
|
2745
2745
|
margin: 0 0 var(--space-6u) 0;
|
|
2746
2746
|
font-size: var(--font-size-md);
|
|
2747
2747
|
font-weight: 600;
|
|
2748
2748
|
color: var(--color-card-foreground);
|
|
2749
2749
|
text-transform: uppercase;
|
|
2750
2750
|
letter-spacing: var(--letter-spacing-tight);
|
|
2751
|
-
`,tv=({onCreate:e,organization:r})=>{const{getOrganizationDomains:a,testEnterpriseConnectionConfig:o}=Ht(),{deployment:s}=Se(),{toast:i}=vt(),[h,d]=c.useState(!1),[u,f]=c.useState(null),[p,m]=c.useState("saml"),[g,x]=c.useState(null),[b,v]=c.useState(!1),[w,E]=c.useState({domain_id:"",idp_entity_id:"",idp_sso_url:"",idp_certificate:"",oidc_issuer_url:"",oidc_client_id:"",oidc_client_secret:"",oidc_scopes:"openid profile email",jit_enabled:!0,attr_first_name:"",attr_last_name:"",attr_email:""}),[j,S]=c.useState(!1),[C,_]=c.useState(null),{data:k=[],isLoading:y}=Ae("wacht-org-verified-domains-for-sso-screen",async()=>(await(a==null?void 0:a(r))||[]).filter(I=>I.verified),{revalidateOnFocus:!1}),L=$=>{f($),m($.protocol),$.protocol==="saml"?E(I=>{var F,H,Z;return{...I,idp_entity_id:$.placeholders.entityId||"",idp_sso_url:$.placeholders.ssoUrl||"",attr_first_name:((F=$.attributeMapping)==null?void 0:F.first_name)||"",attr_last_name:((H=$.attributeMapping)==null?void 0:H.last_name)||"",attr_email:((Z=$.attributeMapping)==null?void 0:Z.email)||""}}):E(I=>{var F,H,Z;return{...I,oidc_issuer_url:$.placeholders.issuerUrl||"",oidc_scopes:$.placeholders.scopes||"openid profile email",attr_first_name:((F=$.attributeMapping)==null?void 0:F.first_name)||"",attr_last_name:((H=$.attributeMapping)==null?void 0:H.last_name)||"",attr_email:((Z=$.attributeMapping)==null?void 0:Z.email)||""}})},z=s!=null&&s.backend_host?`${s.backend_host.startsWith("https://")?"":"https://"}${s.backend_host}/auth/sso/oidc/callback`:"",O=s!=null&&s.backend_host?`https://${s.backend_host}/auth/sso/metadata`:"",R=s!=null&&s.backend_host?`https://${s.backend_host}/auth/sso/callback`:"",M=($,I)=>{navigator.clipboard.writeText($),x(I),setTimeout(()=>x(null),2e3)},T=async $=>{$.preventDefault();const I=F=>F.includes("{")||F.includes("}");if(p==="saml"){if(!w.idp_entity_id||I(w.idp_entity_id)){i("Please enter a valid IdP Entity ID (no placeholders)","error");return}if(!w.idp_sso_url||I(w.idp_sso_url)){i("Please enter a valid IdP SSO URL (no placeholders)","error");return}if(!w.idp_certificate){i("Please provide the X.509 Certificate","error");return}}else{if(!w.oidc_issuer_url||I(w.oidc_issuer_url)){i("Please enter a valid Issuer URL (no placeholders)","error");return}if(!w.oidc_client_id||I(w.oidc_client_id)){i("Please enter a valid Client ID (no placeholders)","error");return}if(!w.oidc_client_secret){i("Please enter the Client Secret","error");return}}d(!0);try{const F={};w.attr_first_name&&(F.first_name=w.attr_first_name),w.attr_last_name&&(F.last_name=w.attr_last_name),w.attr_email&&(F.email=w.attr_email);const H=Object.keys(F).length>0;p==="saml"?await e({protocol:"saml",domain_id:w.domain_id||void 0,idp_entity_id:w.idp_entity_id,idp_sso_url:w.idp_sso_url,idp_certificate:w.idp_certificate,jit_enabled:w.jit_enabled,...H&&{attribute_mapping:F}}):await e({protocol:"oidc",domain_id:w.domain_id||void 0,oidc_issuer_url:w.oidc_issuer_url,oidc_client_id:w.oidc_client_id,oidc_client_secret:w.oidc_client_secret,oidc_scopes:w.oidc_scopes,jit_enabled:w.jit_enabled,...H&&{attribute_mapping:F}})}finally{d(!1)}},A=async()=>{S(!0),_(null);const $=H=>H.includes("{")||H.includes("}"),I={},F={};if(p==="saml"?(w.idp_entity_id?$(w.idp_entity_id)?(F.entity_id_valid=!1,I.entity_id_valid="IdP Entity ID contains placeholder values - please replace with actual values"):F.entity_id_valid=!0:(F.entity_id_valid=!1,I.entity_id_valid="IdP Entity ID is required"),w.idp_sso_url?$(w.idp_sso_url)?(F.sso_url_valid=!1,I.sso_url_valid="IdP SSO URL contains placeholder values - please replace with actual values"):F.sso_url_valid=!0:(F.sso_url_valid=!1,I.sso_url_valid="IdP SSO URL is required"),w.idp_certificate?F.certificate_provided=!0:(F.certificate_provided=!1,I.certificate_provided="X.509 Certificate is required")):(w.oidc_issuer_url?$(w.oidc_issuer_url)?(F.issuer_url_valid=!1,I.issuer_url_valid="Issuer URL contains placeholder values - please replace with actual values"):F.issuer_url_valid=!0:(F.issuer_url_valid=!1,I.issuer_url_valid="Issuer URL is required"),w.oidc_client_id?$(w.oidc_client_id)?(F.client_id_valid=!1,I.client_id_valid="Client ID contains placeholder values - please replace with actual values"):F.client_id_valid=!0:(F.client_id_valid=!1,I.client_id_valid="Client ID is required")),Object.keys(I).length>0){_({success:!1,checks:F,errors:I}),S(!1);return}try{const H=p==="saml"?{protocol:"saml",idp_entity_id:w.idp_entity_id,idp_sso_url:w.idp_sso_url,idp_certificate:w.idp_certificate}:{protocol:"oidc",oidc_issuer_url:w.oidc_issuer_url,oidc_client_id:w.oidc_client_id,oidc_client_secret:w.oidc_client_secret},Z=await(o==null?void 0:o(r,H));Z&&_(Z)}catch(H){_({success:!1,checks:{},errors:{general:"Test failed: "+H.message}})}finally{S(!1)}};return t.jsxs("form",{onSubmit:T,autoComplete:"off",children:[u?t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-6u)",padding:"var(--space-6u)",background:"var(--color-primary-background)",borderRadius:"var(--radius-md)",border:"var(--border-width-thin) solid var(--color-primary)",marginBottom:"var(--space-8u)"},children:[u.logo?t.jsx(ko,{src:u.logo,alt:u.name}):t.jsx("div",{style:{height:"var(--size-12u)",width:"var(--size-12u)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-background)",borderRadius:"var(--radius-2xs)",padding:"var(--space-1u)"},children:t.jsx(Rt,{size:18,color:"var(--color-muted)"})}),t.jsxs("div",{style:{flex:1},children:[t.jsx("div",{style:{fontWeight:500,fontSize:"var(--font-size-lg)",color:"var(--color-foreground)"},children:u.name}),t.jsx("div",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-muted)",textTransform:"uppercase"},children:u.protocol})]}),t.jsx("button",{type:"button",onClick:()=>f(null),style:{background:"none",border:"none",color:"var(--color-primary)",cursor:"pointer",fontSize:"var(--font-size-sm)",padding:"var(--space-2u) var(--space-4u)"},children:"Change"})]}):t.jsxs(t.Fragment,{children:[t.jsx(Co,{children:"SAML Providers"}),t.jsx(xc,{children:vc.filter($=>$.protocol==="saml").map($=>t.jsxs(wc,{type:"button",$selected:!1,onClick:()=>L($),children:[$.logo?t.jsx(ko,{src:$.logo,alt:$.name}):t.jsx("div",{style:{height:"var(--size-12u)",width:"var(--size-12u)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-background)",borderRadius:"var(--radius-2xs)",padding:"var(--space-1u)"},children:t.jsx(Rt,{size:18,color:"var(--color-muted)"})}),t.jsx(bc,{children:$.name})]},$.id))}),t.jsx(Co,{style:{marginTop:"var(--space-10u)"},children:"OIDC Providers"}),t.jsx(xc,{children:vc.filter($=>$.protocol==="oidc").map($=>t.jsxs(wc,{type:"button",$selected:!1,onClick:()=>L($),children:[$.logo?t.jsx(ko,{src:$.logo,alt:$.name}):t.jsx("div",{style:{height:"var(--size-12u)",width:"var(--size-12u)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-background)",borderRadius:"var(--radius-2xs)",padding:"var(--space-1u)"},children:t.jsx(Rt,{size:18,color:"var(--color-muted)"})}),t.jsx(bc,{children:$.name})]},$.id))})]}),u&&t.jsxs(t.Fragment,{children:[t.jsxs(gc,{style:{marginTop:"var(--space-8u)"},children:[t.jsx("div",{style:{marginBottom:"var(--space-6u)",fontWeight:500},children:"Service Provider Details"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-4u)"},children:p==="saml"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{minWidth:"var(--size-40u)",fontSize:"var(--font-size-sm)"},children:"ACS URL:"}),t.jsx("code",{style:{flex:1,fontSize:"var(--font-size-xs)"},children:R}),t.jsx(ka,{onClick:()=>M(R,"acs"),children:g==="acs"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{minWidth:"var(--size-40u)",fontSize:"var(--font-size-sm)"},children:"Metadata:"}),t.jsx("code",{style:{flex:1,fontSize:"var(--font-size-xs)"},children:O}),t.jsx(ka,{onClick:()=>M(O,"metadata"),children:g==="metadata"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]})]}):t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{minWidth:"var(--size-40u)",fontSize:"var(--font-size-sm)"},children:"Callback:"}),t.jsx("code",{style:{flex:1,fontSize:"var(--font-size-xs)"},children:z}),t.jsx(ka,{onClick:()=>M(z,"callback"),children:g==="callback"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]})})]}),t.jsxs("div",{style:{marginTop:"var(--space-12u)"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--space-6u)"},children:[t.jsx(Co,{style:{margin:0},children:u?`${u.name} Configuration`:"Configuration"}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-6u)"},children:[u&&u.docUrl&&t.jsxs("a",{href:u.docUrl,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"var(--font-size-sm)",color:"var(--color-primary)",textDecoration:"none",display:"flex",gap:"var(--space-1u)",alignItems:"center"},children:[t.jsx(wf,{size:12})," Docs"]}),t.jsx(N,{type:"button",$outline:!0,onClick:A,disabled:j||!u,style:{padding:"var(--space-4u) var(--space-8u)"},children:j?t.jsx(Ee,{size:16}):"Test Connection"}),t.jsx(N,{type:"submit",disabled:h||k.length===0||!u,style:{width:"auto",padding:"var(--space-4u) var(--space-8u)"},children:h?t.jsx(Ee,{size:16}):"Create Connection"})]})]}),C&&(()=>{const $={entity_id_valid:"IdP Entity ID",sso_url_valid:"IdP SSO URL",certificate_provided:"X.509 Certificate",issuer_url_valid:"Issuer URL",client_id_valid:"Client ID",certificate_valid:"Certificate Valid",sso_url_reachable:"SSO URL Reachable",discovery_reachable:"Discovery Endpoint",discovery_valid:"Discovery Valid",authorization_endpoint:"Authorization Endpoint",token_endpoint:"Token Endpoint",issuer_valid:"Issuer URL Valid"};return t.jsxs("div",{style:{padding:"var(--space-8u)",marginBottom:"var(--space-8u)",borderRadius:"var(--radius-md)",background:C.success?"var(--color-success-background)":"var(--color-error-background)",border:`var(--border-width-thin) solid ${C.success?"var(--color-success)":"var(--color-error)"}`},children:[t.jsx("div",{style:{fontWeight:600,marginBottom:"var(--space-6u)",fontSize:"var(--font-size-lg)",color:C.success?"var(--color-success)":"var(--color-error)"},children:C.success?"✓ All checks passed":"✗ Some checks failed"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-4u)"},children:Object.entries(C.checks).map(([I,F])=>{var H;return t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"var(--space-4u)",padding:"var(--space-4u) var(--space-6u)",background:"var(--color-background)",borderRadius:"var(--radius-xs)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsx("span",{style:{color:F?"var(--color-success)":"var(--color-error)",fontWeight:600,fontSize:"var(--font-size-lg)",minWidth:"var(--size-8u)"},children:F?"✓":"✗"}),t.jsxs("div",{style:{flex:1},children:[t.jsx("div",{style:{fontWeight:500,color:"var(--color-foreground)",fontSize:"var(--font-size-md)"},children:$[I]||I.replace(/_/g," ").replace(/\b\w/g,Z=>Z.toUpperCase())}),((H=C.errors)==null?void 0:H[I])&&t.jsx("div",{style:{color:"var(--color-error)",fontSize:"var(--font-size-sm)",marginTop:"var(--space-2u)"},children:C.errors[I]})]})]},I)})})]})})(),t.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"var(--space-8u)"},children:[!u&&t.jsxs(ke,{children:[t.jsx(be,{children:"Protocol *"}),t.jsxs(yc,{value:p,onChange:$=>m($.target.value),children:[t.jsx("option",{value:"saml",children:"SAML"}),t.jsx("option",{value:"oidc",children:"OpenID Connect (OIDC)"})]})]}),t.jsxs(ke,{style:{gridColumn:"1 / -1"},children:[t.jsx(be,{children:"Domain *"}),y?t.jsx("div",{style:{padding:"var(--space-5u)",color:"var(--color-muted)"},children:"Loading domains..."}):k.length===0?t.jsx(gc,{style:{marginBottom:0},children:"No verified domains found. Please add and verify a domain first."}):t.jsxs(yc,{value:w.domain_id,onChange:$=>E({...w,domain_id:$.target.value}),required:!0,children:[t.jsx("option",{value:"",children:"Select a verified domain"}),k.map($=>t.jsx("option",{value:$.id,children:$.fqdn},$.id))]})]}),p==="saml"?t.jsxs(t.Fragment,{children:[t.jsxs(ke,{children:[t.jsx(be,{children:"IdP Entity ID *"}),t.jsx(le,{type:"text",value:w.idp_entity_id,onChange:$=>E({...w,idp_entity_id:$.target.value}),placeholder:"https://idp.example.com/entity",required:!0})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"IdP SSO URL *"}),t.jsx(le,{type:"url",value:w.idp_sso_url,onChange:$=>E({...w,idp_sso_url:$.target.value}),placeholder:"https://idp.example.com/sso",required:!0})]}),t.jsxs(ke,{style:{gridColumn:"1 / -1"},children:[t.jsx(be,{children:"X.509 Certificate *"}),t.jsx(Kg,{value:w.idp_certificate,onChange:$=>E({...w,idp_certificate:$.target.value}),placeholder:"-----BEGIN CERTIFICATE-----...",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(ke,{children:[t.jsx(be,{children:"Issuer URL *"}),t.jsx(le,{type:"url",value:w.oidc_issuer_url,onChange:$=>E({...w,oidc_issuer_url:$.target.value}),placeholder:"https://login.example.com",required:!0})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Client ID *"}),t.jsx(le,{type:"text",value:w.oidc_client_id,onChange:$=>E({...w,oidc_client_id:$.target.value}),placeholder:"your-client-id",required:!0,autoComplete:"off","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Client Secret *"}),t.jsx(le,{type:"password",value:w.oidc_client_secret,onChange:$=>E({...w,oidc_client_secret:$.target.value}),placeholder:"your-client-secret",required:!0,autoComplete:"new-password","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Scopes"}),t.jsx(le,{type:"text",value:w.oidc_scopes,onChange:$=>E({...w,oidc_scopes:$.target.value}),placeholder:"openid profile email"})]})]}),t.jsx(ke,{style:{gridColumn:"1 / -1"},children:t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsxs("div",{children:[t.jsx("span",{style:{fontWeight:400,color:"var(--color-foreground)",display:"block"},children:"Enable JIT Provisioning"}),t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)",marginTop:"var(--space-2u)"},children:"When enabled, new users are automatically created on their first SSO login. When disabled, only pre-existing users can sign in via SSO."})]}),t.jsx(Tr,{checked:w.jit_enabled,onChange:()=>E({...w,jit_enabled:!w.jit_enabled})})]})}),t.jsxs("div",{style:{gridColumn:"1 / -1",marginTop:"var(--space-4u)",marginBottom:"var(--space-12u)"},children:[t.jsxs("div",{onClick:()=>v(!b),style:{display:"flex",alignItems:"center",gap:"var(--space-4u)",cursor:"pointer",color:"var(--color-primary)",fontSize:"var(--font-size-md)",fontWeight:500,marginBottom:b?"var(--space-8u)":"0"},children:[t.jsx("span",{style:{fontSize:"var(--font-size-2xs)"},children:b?"▼":"▶"}),"Advanced Options (Attribute Mapping)"]}),b&&t.jsxs("div",{style:{padding:"var(--space-8u)",background:"var(--color-background-subtle)",borderRadius:"var(--radius-md)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)",marginBottom:"var(--space-6u)"},children:"Map IdP attribute names to Wacht user fields. Leave empty to use default attribute names."}),t.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"var(--space-6u)"},children:[t.jsxs(ke,{children:[t.jsx(be,{children:"First Name Attribute"}),t.jsx(le,{type:"text",value:w.attr_first_name,onChange:$=>E({...w,attr_first_name:$.target.value}),placeholder:p==="saml"?"givenName":"given_name"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Last Name Attribute"}),t.jsx(le,{type:"text",value:w.attr_last_name,onChange:$=>E({...w,attr_last_name:$.target.value}),placeholder:p==="saml"?"surname":"family_name"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Email Attribute"}),t.jsx(le,{type:"text",value:w.attr_email,onChange:$=>E({...w,attr_email:$.target.value}),placeholder:"email"})]})]})]})]})]})]})]})]})};gt`
|
|
2751
|
+
`,tv=({onCreate:e,organization:r})=>{const{getOrganizationDomains:a,testEnterpriseConnectionConfig:o}=Ht(),{deployment:s}=Se(),{toast:i}=vt(),[h,d]=c.useState(!1),[u,f]=c.useState(null),[p,m]=c.useState("saml"),[g,x]=c.useState(null),[b,v]=c.useState(!1),[w,E]=c.useState({domain_id:"",idp_entity_id:"",idp_sso_url:"",idp_certificate:"",oidc_issuer_url:"",oidc_client_id:"",oidc_client_secret:"",oidc_scopes:"openid profile email",jit_enabled:!0,attr_first_name:"",attr_last_name:"",attr_email:""}),[j,S]=c.useState(!1),[C,_]=c.useState(null),{data:k=[],isLoading:y}=Ae("wacht-org-verified-domains-for-sso-screen",async()=>(await(a==null?void 0:a(r))||[]).filter(Z=>Z.verified),{revalidateOnFocus:!1}),L=z=>{f(z),m(z.protocol),z.protocol==="saml"?E(Z=>{var P,O,I;return{...Z,idp_entity_id:z.placeholders.entityId||"",idp_sso_url:z.placeholders.ssoUrl||"",attr_first_name:((P=z.attributeMapping)==null?void 0:P.first_name)||"",attr_last_name:((O=z.attributeMapping)==null?void 0:O.last_name)||"",attr_email:((I=z.attributeMapping)==null?void 0:I.email)||""}}):E(Z=>{var P,O,I;return{...Z,oidc_issuer_url:z.placeholders.issuerUrl||"",oidc_scopes:z.placeholders.scopes||"openid profile email",attr_first_name:((P=z.attributeMapping)==null?void 0:P.first_name)||"",attr_last_name:((O=z.attributeMapping)==null?void 0:O.last_name)||"",attr_email:((I=z.attributeMapping)==null?void 0:I.email)||""}})},$=s!=null&&s.backend_host?`${s.backend_host.startsWith("https://")?"":"https://"}${s.backend_host}/auth/sso/oidc/callback`:"",H=s!=null&&s.backend_host?`https://${s.backend_host}/auth/sso/metadata`:"",F=s!=null&&s.backend_host?`https://${s.backend_host}/auth/sso/callback`:"",M=(z,Z)=>{navigator.clipboard.writeText(z),x(Z),setTimeout(()=>x(null),2e3)},R=async z=>{z.preventDefault();const Z=P=>P.includes("{")||P.includes("}");if(p==="saml"){if(!w.idp_entity_id||Z(w.idp_entity_id)){i("Please enter a valid IdP Entity ID (no placeholders)","error");return}if(!w.idp_sso_url||Z(w.idp_sso_url)){i("Please enter a valid IdP SSO URL (no placeholders)","error");return}if(!w.idp_certificate){i("Please provide the X.509 Certificate","error");return}}else{if(!w.oidc_issuer_url||Z(w.oidc_issuer_url)){i("Please enter a valid Issuer URL (no placeholders)","error");return}if(!w.oidc_client_id||Z(w.oidc_client_id)){i("Please enter a valid Client ID (no placeholders)","error");return}if(!w.oidc_client_secret){i("Please enter the Client Secret","error");return}}d(!0);try{const P={};w.attr_first_name&&(P.first_name=w.attr_first_name),w.attr_last_name&&(P.last_name=w.attr_last_name),w.attr_email&&(P.email=w.attr_email);const O=Object.keys(P).length>0;p==="saml"?await e({protocol:"saml",domain_id:w.domain_id||void 0,idp_entity_id:w.idp_entity_id,idp_sso_url:w.idp_sso_url,idp_certificate:w.idp_certificate,jit_enabled:w.jit_enabled,...O&&{attribute_mapping:P}}):await e({protocol:"oidc",domain_id:w.domain_id||void 0,oidc_issuer_url:w.oidc_issuer_url,oidc_client_id:w.oidc_client_id,oidc_client_secret:w.oidc_client_secret,oidc_scopes:w.oidc_scopes,jit_enabled:w.jit_enabled,...O&&{attribute_mapping:P}})}finally{d(!1)}},A=async()=>{S(!0),_(null);const z=O=>O.includes("{")||O.includes("}"),Z={},P={};if(p==="saml"?(w.idp_entity_id?z(w.idp_entity_id)?(P.entity_id_valid=!1,Z.entity_id_valid="IdP Entity ID contains placeholder values - please replace with actual values"):P.entity_id_valid=!0:(P.entity_id_valid=!1,Z.entity_id_valid="IdP Entity ID is required"),w.idp_sso_url?z(w.idp_sso_url)?(P.sso_url_valid=!1,Z.sso_url_valid="IdP SSO URL contains placeholder values - please replace with actual values"):P.sso_url_valid=!0:(P.sso_url_valid=!1,Z.sso_url_valid="IdP SSO URL is required"),w.idp_certificate?P.certificate_provided=!0:(P.certificate_provided=!1,Z.certificate_provided="X.509 Certificate is required")):(w.oidc_issuer_url?z(w.oidc_issuer_url)?(P.issuer_url_valid=!1,Z.issuer_url_valid="Issuer URL contains placeholder values - please replace with actual values"):P.issuer_url_valid=!0:(P.issuer_url_valid=!1,Z.issuer_url_valid="Issuer URL is required"),w.oidc_client_id?z(w.oidc_client_id)?(P.client_id_valid=!1,Z.client_id_valid="Client ID contains placeholder values - please replace with actual values"):P.client_id_valid=!0:(P.client_id_valid=!1,Z.client_id_valid="Client ID is required")),Object.keys(Z).length>0){_({success:!1,checks:P,errors:Z}),S(!1);return}try{const O=p==="saml"?{protocol:"saml",idp_entity_id:w.idp_entity_id,idp_sso_url:w.idp_sso_url,idp_certificate:w.idp_certificate}:{protocol:"oidc",oidc_issuer_url:w.oidc_issuer_url,oidc_client_id:w.oidc_client_id,oidc_client_secret:w.oidc_client_secret},I=await(o==null?void 0:o(r,O));I&&_(I)}catch(O){_({success:!1,checks:{},errors:{general:"Test failed: "+O.message}})}finally{S(!1)}};return t.jsxs("form",{onSubmit:R,autoComplete:"off",children:[u?t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-6u)",padding:"var(--space-6u)",background:"var(--color-primary-background)",borderRadius:"var(--radius-md)",border:"var(--border-width-thin) solid var(--color-primary)",marginBottom:"var(--space-8u)"},children:[u.logo?t.jsx(ko,{src:u.logo,alt:u.name}):t.jsx("div",{style:{height:"var(--size-12u)",width:"var(--size-12u)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-background)",borderRadius:"var(--radius-2xs)",padding:"var(--space-1u)"},children:t.jsx(Rt,{size:18,color:"var(--color-muted)"})}),t.jsxs("div",{style:{flex:1},children:[t.jsx("div",{style:{fontWeight:500,fontSize:"var(--font-size-lg)",color:"var(--color-foreground)"},children:u.name}),t.jsx("div",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-muted)",textTransform:"uppercase"},children:u.protocol})]}),t.jsx("button",{type:"button",onClick:()=>f(null),style:{background:"none",border:"none",color:"var(--color-primary)",cursor:"pointer",fontSize:"var(--font-size-sm)",padding:"var(--space-2u) var(--space-4u)"},children:"Change"})]}):t.jsxs(t.Fragment,{children:[t.jsx(Co,{children:"SAML Providers"}),t.jsx(wc,{children:xc.filter(z=>z.protocol==="saml").map(z=>t.jsxs(bc,{type:"button",$selected:!1,onClick:()=>L(z),children:[z.logo?t.jsx(ko,{src:z.logo,alt:z.name}):t.jsx("div",{style:{height:"var(--size-12u)",width:"var(--size-12u)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-background)",borderRadius:"var(--radius-2xs)",padding:"var(--space-1u)"},children:t.jsx(Rt,{size:18,color:"var(--color-muted)"})}),t.jsx(yc,{children:z.name})]},z.id))}),t.jsx(Co,{style:{marginTop:"var(--space-10u)"},children:"OIDC Providers"}),t.jsx(wc,{children:xc.filter(z=>z.protocol==="oidc").map(z=>t.jsxs(bc,{type:"button",$selected:!1,onClick:()=>L(z),children:[z.logo?t.jsx(ko,{src:z.logo,alt:z.name}):t.jsx("div",{style:{height:"var(--size-12u)",width:"var(--size-12u)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-background)",borderRadius:"var(--radius-2xs)",padding:"var(--space-1u)"},children:t.jsx(Rt,{size:18,color:"var(--color-muted)"})}),t.jsx(yc,{children:z.name})]},z.id))})]}),u&&t.jsxs(t.Fragment,{children:[t.jsxs(vc,{style:{marginTop:"var(--space-8u)"},children:[t.jsx("div",{style:{marginBottom:"var(--space-6u)",fontWeight:500},children:"Service Provider Details"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-4u)"},children:p==="saml"?t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{minWidth:"var(--size-40u)",fontSize:"var(--font-size-sm)"},children:"ACS URL:"}),t.jsx("code",{style:{flex:1,fontSize:"var(--font-size-xs)"},children:F}),t.jsx(ka,{onClick:()=>M(F,"acs"),children:g==="acs"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{minWidth:"var(--size-40u)",fontSize:"var(--font-size-sm)"},children:"Metadata:"}),t.jsx("code",{style:{flex:1,fontSize:"var(--font-size-xs)"},children:H}),t.jsx(ka,{onClick:()=>M(H,"metadata"),children:g==="metadata"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]})]}):t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{minWidth:"var(--size-40u)",fontSize:"var(--font-size-sm)"},children:"Callback:"}),t.jsx("code",{style:{flex:1,fontSize:"var(--font-size-xs)"},children:$}),t.jsx(ka,{onClick:()=>M($,"callback"),children:g==="callback"?t.jsx(ct,{size:12}):t.jsx(Qr,{size:12})})]})})]}),t.jsxs("div",{style:{marginTop:"var(--space-12u)"},children:[t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"var(--space-6u)"},children:[t.jsx(Co,{style:{margin:0},children:u?`${u.name} Configuration`:"Configuration"}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-6u)"},children:[u&&u.docUrl&&t.jsxs("a",{href:u.docUrl,target:"_blank",rel:"noopener noreferrer",style:{fontSize:"var(--font-size-sm)",color:"var(--color-primary)",textDecoration:"none",display:"flex",gap:"var(--space-1u)",alignItems:"center"},children:[t.jsx(wf,{size:12})," Docs"]}),t.jsx(N,{type:"button",$outline:!0,onClick:A,disabled:j||!u,style:{padding:"var(--space-4u) var(--space-8u)"},children:j?t.jsx(Ee,{size:16}):"Test Connection"}),t.jsx(N,{type:"submit",disabled:h||k.length===0||!u,style:{width:"auto",padding:"var(--space-4u) var(--space-8u)"},children:h?t.jsx(Ee,{size:16}):"Create Connection"})]})]}),C&&(()=>{const z={entity_id_valid:"IdP Entity ID",sso_url_valid:"IdP SSO URL",certificate_provided:"X.509 Certificate",issuer_url_valid:"Issuer URL",client_id_valid:"Client ID",certificate_valid:"Certificate Valid",sso_url_reachable:"SSO URL Reachable",discovery_reachable:"Discovery Endpoint",discovery_valid:"Discovery Valid",authorization_endpoint:"Authorization Endpoint",token_endpoint:"Token Endpoint",issuer_valid:"Issuer URL Valid"};return t.jsxs("div",{style:{padding:"var(--space-8u)",marginBottom:"var(--space-8u)",borderRadius:"var(--radius-md)",background:C.success?"var(--color-success-background)":"var(--color-error-background)",border:`var(--border-width-thin) solid ${C.success?"var(--color-success)":"var(--color-error)"}`},children:[t.jsx("div",{style:{fontWeight:600,marginBottom:"var(--space-6u)",fontSize:"var(--font-size-lg)",color:C.success?"var(--color-success)":"var(--color-error)"},children:C.success?"✓ All checks passed":"✗ Some checks failed"}),t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-4u)"},children:Object.entries(C.checks).map(([Z,P])=>{var O;return t.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"var(--space-4u)",padding:"var(--space-4u) var(--space-6u)",background:"var(--color-background)",borderRadius:"var(--radius-xs)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsx("span",{style:{color:P?"var(--color-success)":"var(--color-error)",fontWeight:600,fontSize:"var(--font-size-lg)",minWidth:"var(--size-8u)"},children:P?"✓":"✗"}),t.jsxs("div",{style:{flex:1},children:[t.jsx("div",{style:{fontWeight:500,color:"var(--color-foreground)",fontSize:"var(--font-size-md)"},children:z[Z]||Z.replace(/_/g," ").replace(/\b\w/g,I=>I.toUpperCase())}),((O=C.errors)==null?void 0:O[Z])&&t.jsx("div",{style:{color:"var(--color-error)",fontSize:"var(--font-size-sm)",marginTop:"var(--space-2u)"},children:C.errors[Z]})]})]},Z)})})]})})(),t.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"var(--space-8u)"},children:[!u&&t.jsxs(ke,{children:[t.jsx(be,{children:"Protocol *"}),t.jsxs(jc,{value:p,onChange:z=>m(z.target.value),children:[t.jsx("option",{value:"saml",children:"SAML"}),t.jsx("option",{value:"oidc",children:"OpenID Connect (OIDC)"})]})]}),t.jsxs(ke,{style:{gridColumn:"1 / -1"},children:[t.jsx(be,{children:"Domain *"}),y?t.jsx("div",{style:{padding:"var(--space-5u)",color:"var(--color-muted)"},children:"Loading domains..."}):k.length===0?t.jsx(vc,{style:{marginBottom:0},children:"No verified domains found. Please add and verify a domain first."}):t.jsxs(jc,{value:w.domain_id,onChange:z=>E({...w,domain_id:z.target.value}),required:!0,children:[t.jsx("option",{value:"",children:"Select a verified domain"}),k.map(z=>t.jsx("option",{value:z.id,children:z.fqdn},z.id))]})]}),p==="saml"?t.jsxs(t.Fragment,{children:[t.jsxs(ke,{children:[t.jsx(be,{children:"IdP Entity ID *"}),t.jsx(le,{type:"text",value:w.idp_entity_id,onChange:z=>E({...w,idp_entity_id:z.target.value}),placeholder:"https://idp.example.com/entity",required:!0})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"IdP SSO URL *"}),t.jsx(le,{type:"url",value:w.idp_sso_url,onChange:z=>E({...w,idp_sso_url:z.target.value}),placeholder:"https://idp.example.com/sso",required:!0})]}),t.jsxs(ke,{style:{gridColumn:"1 / -1"},children:[t.jsx(be,{children:"X.509 Certificate *"}),t.jsx(Kg,{value:w.idp_certificate,onChange:z=>E({...w,idp_certificate:z.target.value}),placeholder:"-----BEGIN CERTIFICATE-----...",required:!0})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(ke,{children:[t.jsx(be,{children:"Issuer URL *"}),t.jsx(le,{type:"url",value:w.oidc_issuer_url,onChange:z=>E({...w,oidc_issuer_url:z.target.value}),placeholder:"https://login.example.com",required:!0})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Client ID *"}),t.jsx(le,{type:"text",value:w.oidc_client_id,onChange:z=>E({...w,oidc_client_id:z.target.value}),placeholder:"your-client-id",required:!0,autoComplete:"off","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Client Secret *"}),t.jsx(le,{type:"password",value:w.oidc_client_secret,onChange:z=>E({...w,oidc_client_secret:z.target.value}),placeholder:"your-client-secret",required:!0,autoComplete:"new-password","data-lpignore":"true","data-form-type":"other"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Scopes"}),t.jsx(le,{type:"text",value:w.oidc_scopes,onChange:z=>E({...w,oidc_scopes:z.target.value}),placeholder:"openid profile email"})]})]}),t.jsx(ke,{style:{gridColumn:"1 / -1"},children:t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsxs("div",{children:[t.jsx("span",{style:{fontWeight:400,color:"var(--color-foreground)",display:"block"},children:"Enable JIT Provisioning"}),t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)",marginTop:"var(--space-2u)"},children:"When enabled, new users are automatically created on their first SSO login. When disabled, only pre-existing users can sign in via SSO."})]}),t.jsx(Tr,{checked:w.jit_enabled,onChange:()=>E({...w,jit_enabled:!w.jit_enabled})})]})}),t.jsxs("div",{style:{gridColumn:"1 / -1",marginTop:"var(--space-4u)",marginBottom:"var(--space-12u)"},children:[t.jsxs("div",{onClick:()=>v(!b),style:{display:"flex",alignItems:"center",gap:"var(--space-4u)",cursor:"pointer",color:"var(--color-primary)",fontSize:"var(--font-size-md)",fontWeight:500,marginBottom:b?"var(--space-8u)":"0"},children:[t.jsx("span",{style:{fontSize:"var(--font-size-2xs)"},children:b?"▼":"▶"}),"Advanced Options (Attribute Mapping)"]}),b&&t.jsxs("div",{style:{padding:"var(--space-8u)",background:"var(--color-background-subtle)",borderRadius:"var(--radius-md)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)",marginBottom:"var(--space-6u)"},children:"Map IdP attribute names to Wacht user fields. Leave empty to use default attribute names."}),t.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"var(--space-6u)"},children:[t.jsxs(ke,{children:[t.jsx(be,{children:"First Name Attribute"}),t.jsx(le,{type:"text",value:w.attr_first_name,onChange:z=>E({...w,attr_first_name:z.target.value}),placeholder:p==="saml"?"givenName":"given_name"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Last Name Attribute"}),t.jsx(le,{type:"text",value:w.attr_last_name,onChange:z=>E({...w,attr_last_name:z.target.value}),placeholder:p==="saml"?"surname":"family_name"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Email Attribute"}),t.jsx(le,{type:"text",value:w.attr_email,onChange:z=>E({...w,attr_email:z.target.value}),placeholder:"email"})]})]})]})]})]})]})]})]})};gt`
|
|
2752
2752
|
0% { transform: rotate(0deg); }
|
|
2753
2753
|
100% { transform: rotate(360deg); }
|
|
2754
|
-
`;const
|
|
2754
|
+
`;const _c=l.div`
|
|
2755
2755
|
* {
|
|
2756
2756
|
box-sizing: border-box;
|
|
2757
2757
|
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
@@ -2769,7 +2769,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2769
2769
|
transform: translateY(0);
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
|
-
`,
|
|
2772
|
+
`,ps=l.div`
|
|
2773
2773
|
width: 100%;
|
|
2774
2774
|
height: calc(calc(var(--size-50u) * 4) + calc(var(--size-50u) * 2));
|
|
2775
2775
|
min-height: calc(calc(var(--size-50u) * 4) + calc(var(--size-50u) * 2));
|
|
@@ -2912,7 +2912,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2912
2912
|
@media (max-width: 768px) {
|
|
2913
2913
|
margin-bottom: var(--space-6u);
|
|
2914
2914
|
}
|
|
2915
|
-
`;const
|
|
2915
|
+
`;const kc=l.div`
|
|
2916
2916
|
display: flex;
|
|
2917
2917
|
align-items: center;
|
|
2918
2918
|
justify-content: space-between;
|
|
@@ -2924,14 +2924,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2924
2924
|
align-items: flex-start;
|
|
2925
2925
|
gap: var(--space-6u);
|
|
2926
2926
|
}
|
|
2927
|
-
`,
|
|
2927
|
+
`,Cc=l.div`
|
|
2928
2928
|
flex: 1;
|
|
2929
2929
|
min-width: 0;
|
|
2930
2930
|
|
|
2931
2931
|
@media (max-width: 600px) {
|
|
2932
2932
|
width: 100%;
|
|
2933
2933
|
}
|
|
2934
|
-
`,
|
|
2934
|
+
`,Sc=l.div`
|
|
2935
2935
|
display: flex;
|
|
2936
2936
|
align-items: center;
|
|
2937
2937
|
gap: var(--space-6u);
|
|
@@ -3126,7 +3126,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3126
3126
|
background: currentColor;
|
|
3127
3127
|
flex-shrink: 0;
|
|
3128
3128
|
}
|
|
3129
|
-
`,
|
|
3129
|
+
`,Ec=l.div`
|
|
3130
3130
|
font-size: var(--font-size-md);
|
|
3131
3131
|
font-weight: 600;
|
|
3132
3132
|
color: var(--color-secondary-text);
|
|
@@ -3160,10 +3160,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3160
3160
|
color: var(--color-secondary-text);
|
|
3161
3161
|
margin-top: 2px;
|
|
3162
3162
|
line-height: 1.4;
|
|
3163
|
-
`,hv=({organization:e})=>{var
|
|
3164
|
-
`).filter(
|
|
3165
|
-
`))||"",ip_restrictions:e.enable_ip_restriction||!1,mfa_required:e.enforce_mfa||!1,default_workspace_id:e.auto_assigned_workspace_id||""}))},[e]);const
|
|
3166
|
-
10.0.0.0/24`,style:{minHeight:"var(--size-40u)",fontFamily:"monospace"}})]})]})]}),((
|
|
3163
|
+
`,hv=({organization:e})=>{var F,M,R,A,z,Z;const{switchOrganization:r,refetch:a}=at(),{workspaces:o}=lr(),{deployment:s}=Se(),{deleteOrganization:i,updateOrganization:h}=Ht(),{toast:d}=vt(),[u,f]=c.useState((e==null?void 0:e.name)||""),[p,m]=c.useState((e==null?void 0:e.description)||""),[g,x]=c.useState(!1),[b,v]=c.useState({mfa_required:!1,ip_restrictions:!1,allowed_ips:"",default_workspace_id:""}),[w,E]=c.useState(""),[j,S]=c.useState(!1),[C,_]=c.useState(!1),k=c.useRef({name:u,description:p,security:b,isSaving:g});c.useEffect(()=>{k.current={name:u,description:p,security:b,isSaving:g}},[u,p,b,g]);const y=c.useCallback(async()=>{if(!e)return;const P=k.current;try{x(!0),await h(e,{name:P.name,description:P.description,whitelisted_ips:P.security.allowed_ips.split(`
|
|
3164
|
+
`).filter(O=>O.trim()),enable_ip_restriction:P.security.ip_restrictions,enforce_mfa:P.security.mfa_required,auto_assigned_workspace_id:P.security.default_workspace_id||"0"}),d("Changes saved","info")}catch(O){d(O.message||"Failed to save changes","error")}finally{x(!1)}},[e,h,d]),L=c.useCallback(()=>{k.current.isSaving||y()},[y]);c.useEffect(()=>{var P;e&&(f(e.name||""),m(e.description||""),v({allowed_ips:((P=e.whitelisted_ips)==null?void 0:P.join(`
|
|
3165
|
+
`))||"",ip_restrictions:e.enable_ip_restriction||!1,mfa_required:e.enforce_mfa||!1,default_workspace_id:e.auto_assigned_workspace_id||""}))},[e]);const $=c.useMemo(()=>o.filter(P=>P.organization.id===(e==null?void 0:e.id)),[o,e==null?void 0:e.id]),H=async()=>{if(!(!e||w!==e.name))try{S(!0),await r(""),await i(e),await a(),d("Organization deleted","info")}catch{d("Failed to delete organization","error")}finally{S(!1),E("")}};return e?t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8u)",paddingBottom:"var(--size-20u)"},children:[t.jsxs(So,{children:[t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"name",children:"Organization name"}),t.jsx(le,{id:"name",value:u,onChange:P=>f(P.target.value),onBlur:L,placeholder:"Organization name",required:!0})]}),t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"description",children:"Description"}),t.jsx(le,{id:"description",as:"textarea",value:p,onChange:P=>m(P.target.value),onBlur:L,placeholder:"Optional description",style:{minHeight:"var(--size-40u)",resize:"vertical"}})]}),((F=s==null?void 0:s.b2b_settings)==null?void 0:F.workspaces_enabled)&&$.length>0&&t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"default_workspace",children:"Default workspace"}),t.jsx(On,{options:$.map(P=>({value:P.id,label:P.name})),value:b.default_workspace_id,onChange:P=>{v(O=>({...O,default_workspace_id:P})),setTimeout(L,0)},placeholder:"Select default workspace"})]})]}),(((M=s==null?void 0:s.b2b_settings)==null?void 0:M.enforce_mfa_per_org_enabled)||((R=s==null?void 0:s.b2b_settings)==null?void 0:R.ip_allowlist_per_org_enabled))&&t.jsxs(So,{children:[t.jsx(Ec,{children:"Security"}),((A=s==null?void 0:s.b2b_settings)==null?void 0:A.enforce_mfa_per_org_enabled)&&t.jsxs(kc,{style:{padding:0},children:[t.jsxs(Cc,{children:[t.jsx(be,{style:{fontSize:13,fontWeight:500,marginBottom:4,display:"block"},children:"Multi-factor authentication"}),t.jsx("p",{style:{fontSize:12,color:"var(--color-secondary-text)",margin:0},children:"Require all members to set up MFA for added security."})]}),t.jsx(Sc,{children:t.jsx(Tr,{checked:b.mfa_required,onChange:()=>{const P=!b.mfa_required;v(O=>({...O,mfa_required:P})),setTimeout(L,0)}})})]}),((z=s==null?void 0:s.b2b_settings)==null?void 0:z.ip_allowlist_per_org_enabled)&&t.jsxs(t.Fragment,{children:[t.jsxs(kc,{style:{padding:0},children:[t.jsxs(Cc,{children:[t.jsx(be,{style:{fontSize:13,fontWeight:500,marginBottom:4,display:"block"},children:"IP restrictions"}),t.jsx("p",{style:{fontSize:12,color:"var(--color-secondary-text)",margin:0},children:"Only allow access from specific IP addresses."})]}),t.jsx(Sc,{children:t.jsx(Tr,{checked:b.ip_restrictions,onChange:()=>{const P=!b.ip_restrictions;v(O=>({...O,ip_restrictions:P})),setTimeout(L,0)}})})]}),b.ip_restrictions&&t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"allowed_ips",children:"Allowed IP addresses"}),t.jsx(le,{id:"allowed_ips",as:"textarea",value:b.allowed_ips,onChange:P=>v(O=>({...O,allowed_ips:P.target.value})),onBlur:L,placeholder:`192.168.1.1
|
|
3166
|
+
10.0.0.0/24`,style:{minHeight:"var(--size-40u)",fontFamily:"monospace"}})]})]})]}),((Z=s==null?void 0:s.b2b_settings)==null?void 0:Z.allow_org_deletion)&&t.jsxs(So,{children:[t.jsx(Ec,{children:"Danger zone"}),t.jsxs(lv,{children:[t.jsxs(dv,{children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx(uv,{children:"Delete organization"}),t.jsx(pv,{children:"Once you delete this organization, there is no going back."})]}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,onClick:()=>{_(!C),E("")},children:C?"Cancel":"Delete organization"})]}),C&&t.jsxs("div",{style:{marginTop:14,display:"flex",flexDirection:"column",gap:10},children:[t.jsxs(ke,{children:[t.jsxs(be,{htmlFor:"confirm_org_name",children:["Type"," ",t.jsx("strong",{children:e.name})," ","to confirm"]}),t.jsx(le,{id:"confirm_org_name",type:"text",value:w,onChange:P=>E(P.target.value),placeholder:e.name})]}),t.jsx(N,{$size:"sm",$destructive:!0,onClick:H,disabled:w!==e.name||j,children:j?t.jsx(Ee,{size:12}):"Delete forever"})]})]})]})]}):t.jsx(Ee,{})},Dt=l.table`
|
|
3167
3167
|
width: 100%;
|
|
3168
3168
|
border-collapse: separate;
|
|
3169
3169
|
border-spacing: 0;
|
|
@@ -3252,7 +3252,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3252
3252
|
margin: 0;
|
|
3253
3253
|
max-width: calc(calc(var(--size-50u) * 3) + var(--space-10u));
|
|
3254
3254
|
line-height: 1.5;
|
|
3255
|
-
`,At=({title:e,description:r,action:a})=>t.jsxs(fv,{children:[t.jsx(mv,{children:e}),t.jsx(gv,{children:r}),a&&t.jsx("div",{style:{marginTop:"var(--space-12u)"},children:a})]}),wt=({triggerRef:e,isOpen:r,minWidth:a=300,defaultMaxHeight:o=400,offset:s=8})=>{const[i,h]=c.useState();return c.useEffect(()=>{if(!r||!e.current){h(void 0);return}const d=()=>{if(!e.current)return;const u=e.current.getBoundingClientRect(),f=window.innerWidth,p=window.innerHeight,m=p-u.bottom,g=u.top;let x={};m>=g?(x.top=u.bottom+s,x.maxHeight=Math.min(o,m-s*2)):(x.bottom=p-u.top+s,x.maxHeight=Math.min(o,g-s*2));const b=f-u.left,v=u.right;b>=v?x.left=Math.max(s,Math.min(f-a-s,u.left)):x.left=Math.max(s,Math.min(f-a-s,u.right-a)),h(x)};return d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}},[r,a,o,s]),i},
|
|
3255
|
+
`,At=({title:e,description:r,action:a})=>t.jsxs(fv,{children:[t.jsx(mv,{children:e}),t.jsx(gv,{children:r}),a&&t.jsx("div",{style:{marginTop:"var(--space-12u)"},children:a})]}),wt=({triggerRef:e,isOpen:r,minWidth:a=300,defaultMaxHeight:o=400,offset:s=8})=>{const[i,h]=c.useState();return c.useEffect(()=>{if(!r||!e.current){h(void 0);return}const d=()=>{if(!e.current)return;const u=e.current.getBoundingClientRect(),f=window.innerWidth,p=window.innerHeight,m=p-u.bottom,g=u.top;let x={};m>=g?(x.top=u.bottom+s,x.maxHeight=Math.min(o,m-s*2)):(x.bottom=p-u.top+s,x.maxHeight=Math.min(o,g-s*2));const b=f-u.left,v=u.right;b>=v?x.left=Math.max(s,Math.min(f-a-s,u.left)):x.left=Math.max(s,Math.min(f-a-s,u.right-a)),h(x)};return d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0)}},[r,a,o,s]),i},Ac=l.div`
|
|
3256
3256
|
position: fixed;
|
|
3257
3257
|
background: var(--color-popover);
|
|
3258
3258
|
border-radius: 10px;
|
|
@@ -3270,11 +3270,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3270
3270
|
@media (max-width: 600px) {
|
|
3271
3271
|
width: calc(100vw - 24px);
|
|
3272
3272
|
}
|
|
3273
|
-
`,
|
|
3273
|
+
`,zc=l.div`
|
|
3274
3274
|
font-size: 13px;
|
|
3275
3275
|
font-weight: 600;
|
|
3276
3276
|
color: var(--color-popover-foreground);
|
|
3277
|
-
|
|
3277
|
+
`,$c=l.div`
|
|
3278
3278
|
font-size: 12px;
|
|
3279
3279
|
color: var(--color-secondary-text);
|
|
3280
3280
|
line-height: 1.4;
|
|
@@ -3286,19 +3286,19 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3286
3286
|
font-size: 11px;
|
|
3287
3287
|
font-weight: 500;
|
|
3288
3288
|
color: var(--color-secondary-text);
|
|
3289
|
-
|
|
3289
|
+
`,Mc=l.div`
|
|
3290
3290
|
display: grid;
|
|
3291
3291
|
grid-template-columns: 1fr 1fr;
|
|
3292
3292
|
gap: 6px;
|
|
3293
3293
|
& > button { width: 100%; }
|
|
3294
|
-
`,
|
|
3294
|
+
`,Lc=({onClose:e,domain:r,triggerRef:a})=>{const o=c.useRef(null),[s,i]=c.useState(),[h,d]=c.useState(""),[u,f]=c.useState(!1),[p,m]=c.useState(!1),{addDomain:g,verifyDomain:x}=cr(),{toast:b}=vt(),v=wt({triggerRef:a??{current:null},isOpen:p,minWidth:360,defaultMaxHeight:420}),w=_=>/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\.[a-zA-Z]{2,}$/.test(_),E=_=>_.trim().toLowerCase().replace(/^https?:\/\//,""),j=async()=>{const _=E(h);if(!_){b("Please enter a domain name","error");return}if(!w(_)){b("Please enter a valid domain (e.g., example.com)","error");return}if(_.length>253){b("Domain name is too long","error");return}f(!0);try{const k=await g({fqdn:_});b("Domain added","info"),i(k.data)}catch(k){b(k.message||"Failed to add domain. Please try again.","error")}finally{f(!1)}},S=async()=>{if(!(!s||u)){f(!0);try{await x(s),e==null||e(),b("Domain verified","info")}catch(_){b(_.message||"Failed to verify domain. Check DNS records and try again.","error")}finally{f(!1)}}};if(c.useEffect(()=>{m(!0);const _=y=>{o.current&&!o.current.contains(y.target)&&(e==null||e())},k=y=>{y.key==="Escape"&&(e==null||e())};return document.addEventListener("mousedown",_),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("keydown",k)}},[e]),c.useEffect(()=>{r&&i(r)},[r]),!p)return null;const C={top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,visibility:v?"visible":"hidden"};return s?t.jsxs(Ac,{ref:o,style:C,onClick:_=>_.stopPropagation(),role:"dialog","aria-labelledby":"verify-domain-title","aria-modal":"true",children:[t.jsx(zc,{id:"verify-domain-title",children:"Verify domain"}),t.jsx($c,{children:"Add the following DNS record to your provider, then verify."}),t.jsxs(rn,{children:[t.jsx(an,{children:"Type"}),t.jsx(le,{value:s==null?void 0:s.verification_dns_record_type,disabled:!0})]}),t.jsxs(rn,{children:[t.jsx(an,{children:"Name"}),t.jsx(le,{value:s==null?void 0:s.verification_dns_record_name,disabled:!0})]}),t.jsxs(rn,{children:[t.jsx(an,{children:"Value"}),t.jsx(le,{value:s==null?void 0:s.verification_dns_record_data,disabled:!0})]}),t.jsxs(Mc,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:S,disabled:u,children:u?t.jsx(Ee,{size:12}):"Verify"})]})]}):t.jsxs(Ac,{ref:o,style:C,onClick:_=>_.stopPropagation(),role:"dialog","aria-labelledby":"add-domain-title","aria-modal":"true",children:[t.jsx(zc,{id:"add-domain-title",children:"Add domain"}),t.jsx($c,{children:"Add a corporate domain so verified users auto-join this organization."}),t.jsxs(rn,{children:[t.jsx(an,{children:"Domain"}),t.jsx(le,{type:"text",placeholder:"example.com",value:h,onChange:_=>d(_.target.value),onKeyDown:_=>{_.key==="Enter"&&h&&j()},autoFocus:!0,"aria-label":"Domain name"})]}),t.jsxs(Mc,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:j,disabled:!h||u,children:u?t.jsx(Ee,{size:12}):"Continue"})]})]})},vv=l.div`
|
|
3295
3295
|
display: flex;
|
|
3296
3296
|
align-items: center;
|
|
3297
3297
|
gap: 6px;
|
|
3298
3298
|
justify-content: flex-end;
|
|
3299
3299
|
flex-wrap: nowrap;
|
|
3300
3300
|
white-space: nowrap;
|
|
3301
|
-
`,xv=({organization:e})=>{const{getOrganizationDomains:r,removeOrganizationDomain:a}=Ht(),[o,s]=c.useState(null),[i,h]=c.useState(!1),[d,u]=c.useState(null),[f,p]=c.useState(new Set),m=c.useRef(null),g=c.useRef({}),{data:x=[],isLoading:b,mutate:v}=Ae(e!=null&&e.id?`wacht-org-domains:${e.id}`:null,async()=>(await(r==null?void 0:r(e))||[]).map(S=>({...S,verified:S.verified!==void 0?S.verified:!1}))),w=(j,S)=>{p(C=>{const _=new Set(C);return S?_.add(j):_.delete(j),_})},E=async j=>{w(j.id,!0);try{await a(e,j),v()}finally{w(j.id,!1),s(null)}};return b?t.jsx(Ee,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Vn,{style:{marginBottom:"var(--space-6u)"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:14,fontWeight:500,color:"var(--color-card-foreground)"},children:"Domains"}),t.jsx("div",{style:{fontSize:12,color:"var(--color-secondary-text)",marginTop:2},children:"Users with verified domain emails auto-join this organization."})]}),t.jsx(N,{ref:m,onClick:()=>h(!0),$size:"sm",children:"Add domain"}),i&&t.jsx(
|
|
3301
|
+
`,xv=({organization:e})=>{const{getOrganizationDomains:r,removeOrganizationDomain:a}=Ht(),[o,s]=c.useState(null),[i,h]=c.useState(!1),[d,u]=c.useState(null),[f,p]=c.useState(new Set),m=c.useRef(null),g=c.useRef({}),{data:x=[],isLoading:b,mutate:v}=Ae(e!=null&&e.id?`wacht-org-domains:${e.id}`:null,async()=>(await(r==null?void 0:r(e))||[]).map(S=>({...S,verified:S.verified!==void 0?S.verified:!1}))),w=(j,S)=>{p(C=>{const _=new Set(C);return S?_.add(j):_.delete(j),_})},E=async j=>{w(j.id,!0);try{await a(e,j),v()}finally{w(j.id,!1),s(null)}};return b?t.jsx(Ee,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Vn,{style:{marginBottom:"var(--space-6u)"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:14,fontWeight:500,color:"var(--color-card-foreground)"},children:"Domains"}),t.jsx("div",{style:{fontSize:12,color:"var(--color-secondary-text)",marginTop:2},children:"Users with verified domain emails auto-join this organization."})]}),t.jsx(N,{ref:m,onClick:()=>h(!0),$size:"sm",children:"Add domain"}),i&&t.jsx(Lc,{onClose:()=>{h(!1),v()},triggerRef:m})]}),x!=null&&x.length?t.jsx(Dn,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Domain"}),t.jsx(Ie,{children:"Status"}),t.jsx(Ie,{children:"Added"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:x.map(j=>{const S=f.has(j.id);return t.jsxs(lt,{children:[t.jsx(Ye,{children:j.fqdn}),t.jsx(Ye,{children:j.verified?t.jsx(or,{$variant:"success",children:"Verified"}):t.jsx(or,{$variant:"warning",children:"Pending"})}),t.jsx(Ye,{style:{color:"var(--color-secondary-text)"},children:new Date(j.created_at).toLocaleDateString()}),t.jsx(Bt,{children:t.jsxs(vv,{children:[t.jsx(N,{ref:C=>{C&&(g.current[j.id]=C)},$size:"sm",$outline:!0,disabled:S,onClick:()=>u(j.id),children:j.verified?"View DNS":"Verify"}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,disabled:S,onClick:()=>s(j.id),children:S?t.jsx(Ee,{size:12}):"Remove"})]})})]},j.id)})})]})}):t.jsx(At,{title:"No domains added",description:"Users with verified domain emails automatically join this organization."}),o&&t.jsx(ta,{title:"Remove domain?",description:"Active users aren't affected, but new users with this domain won't auto-join.",onConfirm:()=>{const j=x.find(S=>S.id===o);j&&E(j)},onCancel:()=>s(null)}),d&&t.jsx(Lc,{domain:x.find(j=>j.id===d),onClose:()=>u(null),triggerRef:{current:g.current[d]}})]})},wv=l.div`
|
|
3302
3302
|
position: fixed;
|
|
3303
3303
|
background: var(--color-popover);
|
|
3304
3304
|
border-radius: 10px;
|
|
@@ -3320,11 +3320,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3320
3320
|
font-size: 13px;
|
|
3321
3321
|
font-weight: 600;
|
|
3322
3322
|
color: var(--color-popover-foreground);
|
|
3323
|
-
`,
|
|
3323
|
+
`,Rc=l.div`
|
|
3324
3324
|
display: flex;
|
|
3325
3325
|
flex-direction: column;
|
|
3326
3326
|
gap: 4px;
|
|
3327
|
-
`,
|
|
3327
|
+
`,Pc=l.label`
|
|
3328
3328
|
font-size: 11px;
|
|
3329
3329
|
font-weight: 500;
|
|
3330
3330
|
color: var(--color-secondary-text);
|
|
@@ -3333,7 +3333,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3333
3333
|
grid-template-columns: 1fr 1fr;
|
|
3334
3334
|
gap: 6px;
|
|
3335
3335
|
& > button { width: 100%; }
|
|
3336
|
-
`,N1=({onClose:e,onSuccess:r,roles:a,triggerRef:o})=>{const s=c.useRef(null),[i,h]=c.useState(""),[d,u]=c.useState(null),[f,p]=c.useState(!1),[m,g]=c.useState(!1),{inviteMember:x}=cr(),{toast:b}=vt(),v=wt({triggerRef:o??{current:null},isOpen:m,minWidth:360,defaultMaxHeight:360}),w=a.map(S=>({value:S.id,label:S.name})),E=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=i.trim().toLowerCase();if(!(!S||!d)){if(!E(S)){b("Please enter a valid email address","error");return}if(S.length>320){b("Email address is too long","error");return}p(!0);try{await x({email:S,organizationRole:d}),r==null||r()}catch(C){b(C.message||"Failed to send invitation. Please try again.","error")}finally{p(!1)}}};return c.useEffect(()=>{g(!0);const S=_=>{s.current&&!s.current.contains(_.target)&&(e==null||e())},C=_=>{_.key==="Escape"&&(e==null||e())};return document.addEventListener("mousedown",S),document.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",S),document.removeEventListener("keydown",C)}},[e]),m?t.jsxs(wv,{ref:s,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,visibility:v?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-member-title","aria-modal":"true",children:[t.jsx(bv,{id:"invite-member-title",children:"Invite member"}),t.jsxs(
|
|
3336
|
+
`,N1=({onClose:e,onSuccess:r,roles:a,triggerRef:o})=>{const s=c.useRef(null),[i,h]=c.useState(""),[d,u]=c.useState(null),[f,p]=c.useState(!1),[m,g]=c.useState(!1),{inviteMember:x}=cr(),{toast:b}=vt(),v=wt({triggerRef:o??{current:null},isOpen:m,minWidth:360,defaultMaxHeight:360}),w=a.map(S=>({value:S.id,label:S.name})),E=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=i.trim().toLowerCase();if(!(!S||!d)){if(!E(S)){b("Please enter a valid email address","error");return}if(S.length>320){b("Email address is too long","error");return}p(!0);try{await x({email:S,organizationRole:d}),r==null||r()}catch(C){b(C.message||"Failed to send invitation. Please try again.","error")}finally{p(!1)}}};return c.useEffect(()=>{g(!0);const S=_=>{s.current&&!s.current.contains(_.target)&&(e==null||e())},C=_=>{_.key==="Escape"&&(e==null||e())};return document.addEventListener("mousedown",S),document.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",S),document.removeEventListener("keydown",C)}},[e]),m?t.jsxs(wv,{ref:s,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,visibility:v?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-member-title","aria-modal":"true",children:[t.jsx(bv,{id:"invite-member-title",children:"Invite member"}),t.jsxs(Rc,{children:[t.jsx(Pc,{children:"Email"}),t.jsx(le,{type:"email",placeholder:"colleague@company.com",value:i,onChange:S=>h(S.target.value),onKeyDown:S=>{S.key==="Enter"&&i&&d&&j()},autoFocus:!0,"aria-label":"Email address for invitation"})]}),t.jsxs(Rc,{children:[t.jsx(Pc,{children:"Role"}),t.jsx(On,{options:w,value:d==null?void 0:d.id,onChange:S=>u(a.find(C=>C.id===S)),placeholder:"Select a role","aria-label":"Select role for invited member"})]}),t.jsxs(yv,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:j,disabled:!i||!d||f,children:f?t.jsx(Ee,{size:12}):"Send invite"})]})]}):null},jv=l.div`
|
|
3337
3337
|
width: 32px;
|
|
3338
3338
|
height: 32px;
|
|
3339
3339
|
min-width: 32px;
|
|
@@ -3355,7 +3355,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3355
3355
|
justify-content: flex-end;
|
|
3356
3356
|
flex-wrap: nowrap;
|
|
3357
3357
|
white-space: nowrap;
|
|
3358
|
-
`,kv=({organization:e})=>{const{getOrganizationMembers:r,getOrganizationRoles:a,addRoleToOrganizationMember:o,removeRoleFromOrganizationMember:s,removeOrganizationMember:i}=Ht(),{session:h}=at(),{toast:d}=vt(),[u,f]=c.useState(""),[p,m]=c.useState(1),[g]=c.useState(10),[x,b]=c.useState(!1),[v,w]=c.useState(new Set),E=c.useRef(null),[j,S]=c.useState(u);c.useEffect(()=>{const A=setTimeout(()=>{S(u),m(1)},500);return()=>clearTimeout(A)},[u]);const{data:C,mutate:_}=Ae(e?`wacht-api-organizations:${e.id}:members:${p}:${g}:${j}`:null,()=>r==null?void 0:r(e,{page:p,limit:g,search:j}),{keepPreviousData:!0}),k=(C==null?void 0:C.data)||[],y=(C==null?void 0:C.meta)||{total:0,limit:10},L=Math.ceil(y.total/(y.limit||10)),{data
|
|
3358
|
+
`,kv=({organization:e})=>{const{getOrganizationMembers:r,getOrganizationRoles:a,addRoleToOrganizationMember:o,removeRoleFromOrganizationMember:s,removeOrganizationMember:i}=Ht(),{session:h}=at(),{toast:d}=vt(),[u,f]=c.useState(""),[p,m]=c.useState(1),[g]=c.useState(10),[x,b]=c.useState(!1),[v,w]=c.useState(new Set),E=c.useRef(null),[j,S]=c.useState(u);c.useEffect(()=>{const A=setTimeout(()=>{S(u),m(1)},500);return()=>clearTimeout(A)},[u]);const{data:C,mutate:_}=Ae(e?`wacht-api-organizations:${e.id}:members:${p}:${g}:${j}`:null,()=>r==null?void 0:r(e,{page:p,limit:g,search:j}),{keepPreviousData:!0}),k=(C==null?void 0:C.data)||[],y=(C==null?void 0:C.meta)||{total:0,limit:10},L=Math.ceil(y.total/(y.limit||10)),{data:$=[]}=Ae(e?`wacht-api-organizations:${e.id}:roles`:null,()=>(a==null?void 0:a(e))||[]),H=$,F=(A,z)=>{w(Z=>{const P=new Set(Z);return z?P.add(A):P.delete(A),P})},M=async(A,z,Z)=>{F(A.id,!0);try{Z?(await s(e,A,z),d("Role removed","info")):(await o(e,A,z),d("Role added","info")),_()}catch(P){d(P.message||"Failed to update role","error")}finally{F(A.id,!1)}},R=async A=>{F(A.id,!0);try{await i(e,A),_(),d("Member removed","info")}catch(z){d(z.message||"Failed to remove member","error")}finally{F(A.id,!1)}};return C?t.jsxs(t.Fragment,{children:[t.jsxs(Vn,{children:[t.jsx("div",{style:{flex:1},children:t.jsx(j1,{value:u,onChange:f,placeholder:"Search members..."})}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",alignItems:"center"},children:[y.total>0&&t.jsxs("div",{style:{fontSize:13,color:"var(--color-secondary-text)"},children:[y.total," member",y.total!==1?"s":""]}),t.jsx(N,{ref:E,onClick:()=>b(!0),$size:"sm",children:"Invite"})]})]}),x&&t.jsx(N1,{onClose:()=>b(!1),onSuccess:()=>{_(),b(!1)},roles:H,triggerRef:E}),k.length===0?t.jsx(At,{title:u?"No members match":"No members yet",description:"Invite someone or connect a corporate domain to auto-join."}):t.jsx(Dn,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Member"}),t.jsx(Ie,{children:"Joined"}),t.jsx(Ie,{children:"Roles"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:k.map(A=>{var P,O;const z=((P=A.user)==null?void 0:P.id)===((O=h==null?void 0:h.active_signin)==null?void 0:O.user_id),Z=v.has(A.id);return t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsx(Cv,{member:A,isCurrentUser:z})}),t.jsx(Ye,{style:{color:"var(--color-secondary-text)"},children:new Date(A.created_at).toLocaleDateString()}),t.jsx(Ye,{children:t.jsx(Sv,{member:A,roles:H,onToggle:M,disabled:Z})}),t.jsx(Bt,{children:t.jsx(_v,{children:t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,disabled:Z||z,onClick:()=>R(A),title:z?"You cannot remove yourself":"Remove member",children:Z?t.jsx(Ee,{size:12}):"Remove"})})})]},A.id)})})]})}),L>1&&t.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"var(--space-8u)",marginTop:"var(--space-12u)"},children:[t.jsx(N,{onClick:()=>m(A=>Math.max(1,A-1)),disabled:p===1,$size:"sm",$outline:!0,children:"Previous"}),t.jsxs("span",{style:{fontSize:13,color:"var(--color-secondary-text)"},children:[p," / ",L]}),t.jsx(N,{onClick:()=>m(A=>Math.min(L,A+1)),disabled:p===L,$size:"sm",$outline:!0,children:"Next"})]})]}):t.jsx(Ee,{})},Cv=({member:e,isCurrentUser:r})=>{var i,h;const a=e.user,o=(d="",u="")=>`${d[0]||""}${u[0]||""}`.toUpperCase()||"?",s=a?`${a.first_name||""} ${a.last_name||""}`.trim()||((i=a.primary_email_address)==null?void 0:i.email):"Unknown";return t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,minWidth:0},children:[t.jsx(jv,{children:a!=null&&a.profile_picture_url?t.jsx("img",{src:a.profile_picture_url,alt:s}):o(a==null?void 0:a.first_name,a==null?void 0:a.last_name)}),t.jsxs("div",{style:{minWidth:0,display:"flex",flexDirection:"column",gap:2},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[t.jsx("span",{style:{fontSize:13,fontWeight:500,color:"var(--color-card-foreground)"},children:s}),r&&t.jsx(or,{$variant:"neutral",children:"You"})]}),t.jsx("span",{style:{fontSize:12,color:"var(--color-secondary-text)"},children:(h=a==null?void 0:a.primary_email_address)==null?void 0:h.email})]})]})},Sv=({member:e,roles:r,onToggle:a,disabled:o})=>{var d;const s=e.roles||[],i=u=>s.some(f=>f.id===u),h=s.length===0?"No role":s.length===1?(d=s[0])==null?void 0:d.name:`${s.length} roles`;return t.jsxs(La,{children:[t.jsx(Pa,{children:t.jsxs(N,{$size:"sm",$outline:!0,disabled:o,style:{minWidth:150,justifyContent:"space-between"},children:[h,t.jsx(ur,{size:12,style:{marginLeft:6}})]})}),t.jsx(Ra,{style:{minWidth:180},children:r.length===0?t.jsx("div",{style:{padding:"10px 14px",fontSize:12,color:"var(--color-secondary-text)"},children:"No roles configured"}):r.map(u=>{const f=i(u.id);return t.jsx(ir,{onClick:()=>a(e,u,f),children:t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",gap:10},children:[t.jsx("span",{children:u.name}),f&&t.jsx(ct,{size:13,color:"var(--color-primary)"})]})},u.id)})})]})},Ev=l.div`
|
|
3359
3359
|
display: flex;
|
|
3360
3360
|
align-items: center;
|
|
3361
3361
|
gap: 6px;
|
|
@@ -3385,11 +3385,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3385
3385
|
font-size: 13px;
|
|
3386
3386
|
font-weight: 600;
|
|
3387
3387
|
color: var(--color-popover-foreground);
|
|
3388
|
-
`,
|
|
3388
|
+
`,Tc=l.div`
|
|
3389
3389
|
display: flex;
|
|
3390
3390
|
flex-direction: column;
|
|
3391
3391
|
gap: 4px;
|
|
3392
|
-
`,
|
|
3392
|
+
`,Fc=l.label`
|
|
3393
3393
|
font-size: 11px;
|
|
3394
3394
|
font-weight: 500;
|
|
3395
3395
|
color: var(--color-secondary-text);
|
|
@@ -3398,7 +3398,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3398
3398
|
grid-template-columns: 1fr 1fr;
|
|
3399
3399
|
gap: 6px;
|
|
3400
3400
|
& > button { width: 100%; }
|
|
3401
|
-
`,
|
|
3401
|
+
`,Zc=({onClose:e,onSuccess:r,role:a,triggerRef:o})=>{var _;const s=c.useRef(null),[i,h]=c.useState((a==null?void 0:a.name)||""),[d,u]=c.useState((a==null?void 0:a.permissions)||[]),[f,p]=c.useState(!1),[m,g]=c.useState(!1),{deployment:x}=Se(),{toast:b}=vt(),v=wt({triggerRef:o??{current:null},isOpen:m,minWidth:400,defaultMaxHeight:500}),w=!!a,E=Array.isArray((_=x==null?void 0:x.b2b_settings)==null?void 0:_.organization_permissions)?x.b2b_settings.organization_permissions.map(k=>({value:k,label:k})):[];c.useEffect(()=>{g(!0);const k=$=>{s.current&&!s.current.contains($.target)&&(e==null||e())},y=$=>{$.key==="Escape"&&(e==null||e())},L=setTimeout(()=>{document.addEventListener("mousedown",k),document.addEventListener("keydown",y)},100);return()=>{clearTimeout(L),document.removeEventListener("mousedown",k),document.removeEventListener("keydown",y)}},[e]);const j=k=>k.trim().replace(/[<>"'&]/g,""),S=k=>k.length>=2&&k.length<=50&&/^[a-zA-Z0-9\s_-]+$/.test(k),C=async()=>{const k=j(i);if(!k){b("Please enter a role name","error");return}if(!S(k)){b("Role name must be 2–50 characters, letters/numbers/spaces only.","error");return}if(d.length===0){b("Please select at least one permission","error");return}p(!0);try{const y={id:a==null?void 0:a.id,name:k,permissions:d};r==null||r(y)}catch(y){b(y.message||`Failed to ${w?"update":"create"} role. Please try again.`,"error")}finally{p(!1)}};return m?t.jsxs($v,{ref:s,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,visibility:v?"visible":"hidden"},onClick:k=>k.stopPropagation(),role:"dialog","aria-labelledby":"role-dialog-title","aria-modal":"true",children:[t.jsx(Mv,{id:"role-dialog-title",children:w?"Edit role":"New role"}),t.jsxs(Tc,{children:[t.jsx(Fc,{children:"Name"}),t.jsx(le,{type:"text",placeholder:"e.g. Admin, Editor, Viewer",value:i,onChange:k=>h(k.target.value),autoFocus:!0,"aria-label":"Role name"})]}),t.jsxs(Tc,{children:[t.jsx(Fc,{children:"Permissions"}),t.jsx(z1,{options:E,value:d,onChange:u,placeholder:"Select permissions","aria-label":"Select permissions for role"})]}),t.jsxs(Lv,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:C,disabled:!i||f,children:f?t.jsx(Ee,{size:12}):w?"Update":"Create"})]})]}):null};function Ts(e){return typeof e=="object"&&e!==null}function U1(e,r){const a=e[r];return typeof a=="string"?a.length>0&&a!=="0":typeof a=="number"?Number.isFinite(a)&&a>0:!1}function Rv(e,r){const a=e[r];return typeof a=="boolean"?a:null}function B1(e){if(!Ts(e))return!1;const r=Rv(e,"is_deployment_level");return r!==null?r:!1}function Pv(e){return!Ts(e)||B1(e)?!1:U1(e,"organization_id")}function hs(e){return!Ts(e)||B1(e)?!1:U1(e,"workspace_id")}const Tv=l.div`
|
|
3402
3402
|
margin-bottom: var(--space-8u);
|
|
3403
3403
|
padding: var(--space-4u) var(--space-6u);
|
|
3404
3404
|
background: ${e=>e.$type==="success"?"color-mix(in srgb, var(--color-success, #10b981) 12%, transparent)":"color-mix(in srgb, var(--color-error) 12%, transparent)"};
|
|
@@ -3430,7 +3430,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3430
3430
|
text-overflow: ellipsis;
|
|
3431
3431
|
white-space: nowrap;
|
|
3432
3432
|
max-width: 340px;
|
|
3433
|
-
`,Ov=({organization:e})=>{var _;const{getOrganizationRoles:r,removeOrganizationRoles:a}=Ht(),{deployment:o}=Se(),[s,i]=c.useState({isOpen:!1}),[h,d]=c.useState(null),[u,f]=c.useState(null),[p,m]=c.useState(new Set),g=c.useRef(null),x=c.useRef(new Map),{data:b=[],isLoading:v,mutate:w}=Ae(e?`wacht-api-organizations:${e.id}:roles`:null,()=>(r==null?void 0:r(e))||[]),E=(k,y)=>{m(L=>{const
|
|
3433
|
+
`,Ov=({organization:e})=>{var _;const{getOrganizationRoles:r,removeOrganizationRoles:a}=Ht(),{deployment:o}=Se(),[s,i]=c.useState({isOpen:!1}),[h,d]=c.useState(null),[u,f]=c.useState(null),[p,m]=c.useState(new Set),g=c.useRef(null),x=c.useRef(new Map),{data:b=[],isLoading:v,mutate:w}=Ae(e?`wacht-api-organizations:${e.id}:roles`:null,()=>(r==null?void 0:r(e))||[]),E=(k,y)=>{m(L=>{const $=new Set(L);return y?$.add(k):$.delete(k),$})},j=async k=>{try{await new Promise(y=>setTimeout(y,500)),d({text:`Role ${k.id?"updated":"created"} successfully`,type:"success"}),i({isOpen:!1}),w()}catch(y){const L=y instanceof Error?y.message:"Failed to save role";d({text:L,type:"error"})}finally{setTimeout(()=>d(null),3e3)}},S=async k=>{E(k.id,!0);try{await a(e,k),w()}finally{E(k.id,!1),f(null)}};if(v&&b.length===0)return t.jsx(Ee,{});const C=k=>{const y=Pv(k),L=p.has(k.id),$=k.permissions.length;return t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs(Fv,{children:[k.name,!y&&t.jsx(or,{$variant:"neutral",children:"Default"})]})}),t.jsx(Ye,{children:$===0?t.jsx(or,{$variant:"neutral",children:"No permissions"}):t.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[t.jsxs(or,{$variant:"primary",children:[$," ",$===1?"permission":"permissions"]}),t.jsx(Iv,{children:k.permissions.join(", ")})]})}),t.jsx(Bt,{children:y?t.jsxs(Zv,{children:[t.jsx(N,{ref:H=>{H&&x.current.set(k.id,H)},$size:"sm",$outline:!0,disabled:L,onClick:()=>i({isOpen:!0,role:k,triggerElement:x.current.get(k.id)??null}),children:"Edit"}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,disabled:L,onClick:()=>f(k.id),children:L?t.jsx(Ee,{size:12}):"Delete"})]}):t.jsx("span",{style:{fontSize:12,color:"var(--color-secondary-text)"},children:"Read-only"})})]},k.id)};return t.jsxs(t.Fragment,{children:[h&&t.jsxs(Tv,{$type:h.type,children:[h.type==="success"?"✓":t.jsx(ia,{size:13}),h.text]}),t.jsxs(Vn,{style:{marginBottom:"var(--space-6u)"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:14,fontWeight:500,color:"var(--color-card-foreground)"},children:"Roles"}),t.jsx("div",{style:{fontSize:12,color:"var(--color-secondary-text)",marginTop:2},children:"Define granular permissions for members."})]}),((_=o==null?void 0:o.b2b_settings)==null?void 0:_.custom_org_role_enabled)&&t.jsx(N,{ref:g,onClick:()=>i({isOpen:!0,triggerElement:g.current}),$size:"sm",children:"Add role"})]}),s.isOpen&&!s.role&&t.jsx(Zc,{onClose:()=>i({isOpen:!1}),onSuccess:j,triggerRef:{current:s.triggerElement||g.current}}),b.length===0?t.jsx(At,{title:"No roles yet",description:"Define custom roles to manage granular permissions."}):t.jsx(t.Fragment,{children:t.jsx(Dn,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Role"}),t.jsx(Ie,{children:"Permissions"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:b.map(C)})]})})}),u&&t.jsx(ta,{title:"Delete role?",description:"This action cannot be undone. Users with this role might lose access to certain features.",onConfirm:()=>{const k=b.find(y=>y.id===u);k&&S(k)},onCancel:()=>f(null)}),s.isOpen&&s.role&&t.jsx(Zc,{role:s.role,onClose:()=>i({isOpen:!1}),onSuccess:j,triggerRef:{current:s.triggerElement||null}})]})},Hv=()=>{const{activeOrganization:e,loading:r}=cr(),[a,o]=c.useState(null);return c.useEffect(()=>{e?o(e):!r&&!e&&a&&o(null)},[e,r,a]),{activeOrganization:a||e,loading:r}},Vv=l(ps)`
|
|
3434
3434
|
display: flex;
|
|
3435
3435
|
justify-content: center;
|
|
3436
3436
|
align-items: center;
|
|
@@ -3517,7 +3517,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3517
3517
|
`,qv=l.span`
|
|
3518
3518
|
font-size: var(--font-size-lg);
|
|
3519
3519
|
color: var(--color-popover-foreground);
|
|
3520
|
-
`,W1=()=>{var v,w,E;const{loading:e,activeOrganization:r}=Hv(),{updateOrganization:a}=cr(),{deployment:o}=Se(),[s,i]=c.useState("general"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),x=c.useCallback((j,S="info")=>{d(j),f(S),setTimeout(()=>d(null),3e3)},[]),b=async j=>{var C;const S=(C=j.target.files)==null?void 0:C[0];if(S){if(S.size>2*1024*1024){x("File size cannot exceed 2MB","error");return}if(!S.type.startsWith("image/")){x("Please select a valid image file","error");return}try{m(!0),await a({image:S}),x("Logo updated","info")}catch(_){x((_==null?void 0:_.message)||"Failed to update logo","error")}finally{m(!1),g.current&&(g.current.value="")}}};return e&&!r?t.jsx(fe,{children:t.jsx(Vv,{children:t.jsx(Ee,{})})}):r?t.jsx(fe,{children:t.jsx(
|
|
3520
|
+
`,W1=()=>{var v,w,E;const{loading:e,activeOrganization:r}=Hv(),{updateOrganization:a}=cr(),{deployment:o}=Se(),[s,i]=c.useState("general"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),x=c.useCallback((j,S="info")=>{d(j),f(S),setTimeout(()=>d(null),3e3)},[]),b=async j=>{var C;const S=(C=j.target.files)==null?void 0:C[0];if(S){if(S.size>2*1024*1024){x("File size cannot exceed 2MB","error");return}if(!S.type.startsWith("image/")){x("Please select a valid image file","error");return}try{m(!0),await a({image:S}),x("Logo updated","info")}catch(_){x((_==null?void 0:_.message)||"Failed to update logo","error")}finally{m(!1),g.current&&(g.current.value="")}}};return e&&!r?t.jsx(fe,{children:t.jsx(Vv,{children:t.jsx(Ee,{})})}):r?t.jsx(fe,{children:t.jsx(_c,{children:t.jsx(Ps.Provider,{value:{screen:null,setScreen:()=>{},toast:x},children:t.jsxs(ps,{children:[t.jsxs(ov,{children:[t.jsxs(Bv,{type:"button",onClick:()=>{var j;return(j=g.current)==null?void 0:j.click()},disabled:p,title:"Change logo","aria-label":"Change organization logo",children:[r.image_url?t.jsx("img",{src:r.image_url,alt:r.name}):((v=r.name)==null?void 0:v.slice(0,2).toUpperCase())||"O",t.jsx("span",{className:"hover-overlay",children:p?t.jsx(Ee,{size:14}):t.jsx(zs,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(sv,{children:[t.jsx(iv,{children:r.name}),t.jsx(cv,{children:r.member_count!=null?`${r.member_count} members`:"Organization settings"})]})]}),t.jsx(rv,{children:t.jsxs(av,{children:[t.jsx(Ur,{$isActive:s==="general",onClick:()=>i("general"),children:t.jsxs(Br,{children:[t.jsx(zr,{size:16})," General"]})}),t.jsx(Ur,{$isActive:s==="domains",onClick:()=>i("domains"),children:t.jsxs(Br,{children:[t.jsx(Sf,{size:16})," Domains"]})}),t.jsx(Ur,{$isActive:s==="members",onClick:()=>i("members"),children:t.jsxs(Br,{children:[t.jsx(kn,{size:16})," Members"]})}),t.jsx(Ur,{$isActive:s==="invitations",onClick:()=>i("invitations"),children:t.jsxs(Br,{children:[t.jsx(In,{size:16})," Invitations"]})}),((w=o==null?void 0:o.b2b_settings)==null?void 0:w.custom_org_role_enabled)&&t.jsx(Ur,{$isActive:s==="roles",onClick:()=>i("roles"),children:t.jsxs(Br,{children:[t.jsx(Rt,{size:16})," Roles"]})}),((E=o==null?void 0:o.b2b_settings)==null?void 0:E.enterprise_sso_enabled)&&t.jsx(Ur,{$isActive:s==="sso",onClick:()=>i("sso"),children:t.jsxs(Br,{children:[t.jsx(Rt,{size:16})," SSO"]})})]})}),t.jsxs(nv,{children:[s==="general"&&t.jsx(hv,{organization:r}),s==="domains"&&t.jsx(xv,{organization:r}),s==="members"&&t.jsx(kv,{organization:r}),s==="invitations"&&t.jsx(zv,{organization:r}),s==="roles"&&t.jsx(Ov,{organization:r}),s==="sso"&&t.jsx(Yg,{organization:r})]}),h&&t.jsx(Wv,{children:t.jsxs(Gv,{children:[u==="error"?t.jsx(ia,{size:16,color:"var(--color-error)"}):t.jsx(ct,{size:16,color:"var(--color-success)"}),t.jsx(qv,{children:h})]})})]})})})}):t.jsx(fe,{children:t.jsx(_c,{children:t.jsx(ps,{children:t.jsxs(Dv,{children:[t.jsx(Nv,{children:t.jsx(gd,{size:32,color:"var(--color-muted)"})}),t.jsx(Uv,{children:"No Organization Selected"}),t.jsx(ru,{})]})})})})},G1=({isOpen:e,onClose:r,title:a,showHeader:o,headerContent:s,footerContent:i,customContent:h,children:d,showCloseButton:u})=>t.jsx(Ve,{isOpen:e,onClose:r,children:t.jsx(Ve.Overlay,{children:t.jsxs(Ve.Content,{style:{width:"900px",maxWidth:"90vw"},children:[o&&t.jsx(Ve.Header,{showCloseButton:u,children:s||a}),h||d||t.jsx(W1,{}),i&&t.jsx(Ve.Footer,{children:i})]})})}),Kv=l.div`
|
|
3521
3521
|
display: flex;
|
|
3522
3522
|
height: 100%;
|
|
3523
3523
|
min-height: calc(var(--size-50u) * 4);
|
|
@@ -3791,7 +3791,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3791
3791
|
cursor: not-allowed;
|
|
3792
3792
|
opacity: 0.5;
|
|
3793
3793
|
}
|
|
3794
|
-
`,
|
|
3794
|
+
`,Ic=l.div`
|
|
3795
3795
|
width: var(--size-10u);
|
|
3796
3796
|
height: var(--size-10u);
|
|
3797
3797
|
border-radius: 50%;
|
|
@@ -3804,7 +3804,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3804
3804
|
font-weight: 600;
|
|
3805
3805
|
color: var(--color-secondary-text);
|
|
3806
3806
|
flex-shrink: 0;
|
|
3807
|
-
`,
|
|
3807
|
+
`,Oc=l.img`
|
|
3808
3808
|
width: 100%;
|
|
3809
3809
|
height: 100%;
|
|
3810
3810
|
object-fit: cover;
|
|
@@ -3826,7 +3826,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3826
3826
|
align-items: center;
|
|
3827
3827
|
justify-content: center;
|
|
3828
3828
|
color: var(--color-primary);
|
|
3829
|
-
`,
|
|
3829
|
+
`,Fs=({organizationId:e,onSuccess:r,onCancel:a,onCreateOrganization:o})=>{var z;const[s,i]=c.useState(""),[h,d]=c.useState(""),[u,f]=c.useState(),[p,m]=c.useState(null),[g,x]=c.useState(!1),[b,v]=c.useState(!1),[w,E]=c.useState(e),j=c.useRef(null),S=c.useRef(null),{toast:C}=vt(),{createWorkspace:_}=lr(),{refetch:k}=at(),{organizationMemberships:y}=Jt(),L=(z=y==null?void 0:y.find(Z=>Z.organization.id===w))==null?void 0:z.organization,$=Z=>{if(Z.target.files&&Z.target.files[0]){const P=Z.target.files[0];if(P.size>2*1024*1024){C("File size cannot exceed 2MB","error");return}if(!P.type.startsWith("image/")){C("Please select a valid image file","error");return}p&&URL.revokeObjectURL(p),f(P),m(URL.createObjectURL(P))}},H=()=>{var Z;(Z=j.current)==null||Z.click()},F=Z=>Z.split(" ").map(P=>P[0]).join("").toUpperCase().slice(0,2)||"W",M=Z=>Z.trim().replace(/[<>\"'&]/g,""),R=Z=>Z.length>=2&&Z.length<=100&&/^[a-zA-Z0-9\s_.-]+$/.test(Z),A=async()=>{const Z=M(s),P=M(h);if(!Z||!w){C("Please enter a workspace name","error");return}if(!R(Z)){C("Workspace name must be 2-100 characters and contain only letters, numbers, spaces, dots, underscores, and hyphens","error");return}if(P.length>500){C("Description must be less than 500 characters","error");return}x(!0);try{const O=await _(w,Z,u,P);await k(),r==null||r(O)}catch(O){const I=O.message||"Failed to create workspace. Please try again.";C(I,"error")}finally{x(!1)}};return c.useEffect(()=>()=>{p&&URL.revokeObjectURL(p)},[p]),c.useEffect(()=>{const Z=P=>{S.current&&!S.current.contains(P.target)&&v(!1)};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[]),t.jsx(fe,{children:t.jsxs(Kv,{children:[t.jsxs(Yv,{children:[t.jsxs(q1,{hasImage:!!p,onClick:H,children:[p?t.jsx(Jv,{src:p,alt:"Workspace logo"}):t.jsx(Xv,{children:F(s||"W")}),t.jsx(p3,{children:t.jsx(h3,{children:"Upload Logo"})})]}),t.jsx(u3,{type:"file",ref:j,onChange:$,accept:"image/png, image/jpeg, image/gif",disabled:g}),t.jsx(e3,{children:"Create new workspace"}),t.jsx(t3,{children:"Workspaces are used to organize your projects and team members into logical groups."})]}),t.jsxs(Qv,{children:[t.jsxs(r3,{children:[t.jsx(a3,{children:"Choose your workspace name"}),t.jsx(n3,{children:"Enter a name for your new workspace. This will be visible to all members."})]}),t.jsxs(o3,{children:[t.jsxs(Eo,{children:[t.jsx(Ao,{children:"Organization"}),t.jsxs(f3,{ref:S,children:[t.jsxs(m3,{type:"button",onClick:()=>v(!b),disabled:g,children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(Ic,{children:L!=null&&L.image_url?t.jsx(Oc,{src:L.image_url,alt:L.name}):F((L==null?void 0:L.name)||"O").charAt(0)}),t.jsx("span",{children:(L==null?void 0:L.name)||"Select organization"})]}),t.jsx(ur,{size:16,style:{color:"var(--color-secondary-text)"}})]}),b&&t.jsxs(g3,{children:[y==null?void 0:y.map(Z=>{var O,I,T;const P=((O=Z.eligibility_restriction)==null?void 0:O.type)&&((I=Z.eligibility_restriction)==null?void 0:I.type)!=="none";return t.jsxs(K1,{onClick:()=>{P||(E(Z.organization.id),v(!1))},disabled:P,style:{opacity:P?.6:1,cursor:P?"not-allowed":"pointer"},title:P?(T=Z.eligibility_restriction)==null?void 0:T.message:void 0,children:[t.jsx(Ic,{children:Z.organization.image_url?t.jsx(Oc,{src:Z.organization.image_url,alt:Z.organization.name}):F(Z.organization.name).charAt(0)}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-1u)"},children:[t.jsx("span",{children:Z.organization.name}),P&&t.jsx("span",{style:{fontSize:"var(--font-size-2xs)",color:"var(--color-error)"},children:"Restricted"})]})]},Z.organization.id)}),t.jsxs(v3,{onClick:()=>{v(!1),o==null||o()},children:[t.jsx(x3,{children:t.jsx(kt,{size:12})}),t.jsx("span",{children:"Create new organization"})]})]})]})]}),t.jsxs(Eo,{children:[t.jsx(Ao,{children:"Workspace name"}),t.jsx(s3,{type:"text",value:s,onChange:Z=>i(Z.target.value),placeholder:"Workspace Name",disabled:g})]}),t.jsxs(Eo,{children:[t.jsx(Ao,{children:"Description (optional)"}),t.jsx(i3,{value:h,onChange:Z=>d(Z.target.value),placeholder:"What is this workspace for?",disabled:g})]})]}),t.jsxs(c3,{children:[a?t.jsxs(l3,{onClick:a,disabled:g,children:[t.jsx(sa,{size:16}),"Back"]}):t.jsx("div",{}),t.jsx(d3,{onClick:A,disabled:g||!s.trim(),children:g?"Creating...":"Create"})]})]})]})})},Zs=({isOpen:e,onClose:r,onCreated:a,organizationId:o})=>{const[s,i]=c.useState(!1),[h,d]=c.useState(o),{refetch:u,organizationMemberships:f}=Jt(),p=()=>{a==null||a(),r==null||r()},m=()=>{i(!0)},g=async()=>{await u(),setTimeout(()=>{if(f&&f.length>0){const x=f[f.length-1];d(x.organization.id)}i(!1)},500)};return t.jsx(fe,{children:t.jsx(Ve,{isOpen:e,onClose:r,children:t.jsx(Ve.Overlay,{children:t.jsx(Ve.Content,{style:{width:"calc(calc(var(--size-50u) * 8) - var(--space-8u))",maxWidth:"90vw"},children:t.jsx(Ve.Body,{style:{padding:0},children:s?t.jsx(Hn,{onSuccess:g,onCancel:()=>i(!1)}):t.jsx(Fs,{organizationId:h||o,onSuccess:p,onCancel:r,onCreateOrganization:m})})})})})})};gt`
|
|
3830
3830
|
0% { transform: rotate(0deg); }
|
|
3831
3831
|
100% { transform: rotate(360deg); }
|
|
3832
3832
|
`;const w3=l.div`
|
|
@@ -3847,7 +3847,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3847
3847
|
transform: translateY(0);
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
3850
|
-
`,
|
|
3850
|
+
`,Hc=l.div`
|
|
3851
3851
|
width: 100%;
|
|
3852
3852
|
height: calc(calc(var(--size-50u) * 4) + calc(var(--size-50u) * 2));
|
|
3853
3853
|
min-height: calc(calc(var(--size-50u) * 4) + calc(var(--size-50u) * 2));
|
|
@@ -3951,7 +3951,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3951
3951
|
@media (max-width: 768px) {
|
|
3952
3952
|
padding: var(--space-10u) var(--space-10u) 0 var(--space-10u);
|
|
3953
3953
|
}
|
|
3954
|
-
`,
|
|
3954
|
+
`,fs=l.button`
|
|
3955
3955
|
background: none;
|
|
3956
3956
|
border: none;
|
|
3957
3957
|
padding: var(--space-2u);
|
|
@@ -3967,7 +3967,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3967
3967
|
background: var(--color-accent);
|
|
3968
3968
|
color: var(--color-accent-foreground);
|
|
3969
3969
|
}
|
|
3970
|
-
`,
|
|
3970
|
+
`,Is=l.div`
|
|
3971
3971
|
display: flex;
|
|
3972
3972
|
align-items: center;
|
|
3973
3973
|
flex-wrap: wrap;
|
|
@@ -4001,7 +4001,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4001
4001
|
@media (max-width: 768px) {
|
|
4002
4002
|
margin-bottom: var(--space-6u);
|
|
4003
4003
|
}
|
|
4004
|
-
`;const
|
|
4004
|
+
`;const Vc=l.div`
|
|
4005
4005
|
display: flex;
|
|
4006
4006
|
align-items: center;
|
|
4007
4007
|
justify-content: space-between;
|
|
@@ -4013,14 +4013,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4013
4013
|
align-items: flex-start;
|
|
4014
4014
|
gap: var(--space-6u);
|
|
4015
4015
|
}
|
|
4016
|
-
`,
|
|
4016
|
+
`,Dc=l.div`
|
|
4017
4017
|
flex: 1;
|
|
4018
4018
|
min-width: 0;
|
|
4019
4019
|
|
|
4020
4020
|
@media (max-width: 600px) {
|
|
4021
4021
|
width: 100%;
|
|
4022
4022
|
}
|
|
4023
|
-
`,
|
|
4023
|
+
`,Nc=l.div`
|
|
4024
4024
|
display: flex;
|
|
4025
4025
|
align-items: center;
|
|
4026
4026
|
gap: var(--space-6u);
|
|
@@ -4047,7 +4047,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4047
4047
|
width: 100%;
|
|
4048
4048
|
}
|
|
4049
4049
|
}
|
|
4050
|
-
`;const
|
|
4050
|
+
`;const Os=l.div`
|
|
4051
4051
|
display: block;
|
|
4052
4052
|
overflow-x: auto;
|
|
4053
4053
|
-webkit-overflow-scrolling: touch;
|
|
@@ -4202,7 +4202,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4202
4202
|
background: currentColor;
|
|
4203
4203
|
flex-shrink: 0;
|
|
4204
4204
|
}
|
|
4205
|
-
`;const
|
|
4205
|
+
`;const Uc=l.div`
|
|
4206
4206
|
font-size: var(--font-size-sm);
|
|
4207
4207
|
text-transform: uppercase;
|
|
4208
4208
|
color: var(--color-secondary-text);
|
|
@@ -4243,10 +4243,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4243
4243
|
color: var(--color-secondary-text);
|
|
4244
4244
|
margin-top: 2px;
|
|
4245
4245
|
line-height: 1.4;
|
|
4246
|
-
`,M3=()=>{var L
|
|
4246
|
+
`,M3=()=>{var L,$;const{activeWorkspace:e,loading:r,updateWorkspace:a}=Vt(),{deleteWorkspace:o}=lr(),{deployment:s}=Se(),{toast:i}=vt(),[h,d]=c.useState((e==null?void 0:e.name)||""),[u,f]=c.useState((e==null?void 0:e.description)||""),[p,m]=c.useState({mfa_required:!1,ip_restrictions:!1,allowed_ips:""}),[g,x]=c.useState(!1),[b,v]=c.useState(""),[w,E]=c.useState(!1),[j,S]=c.useState(!1);c.useEffect(()=>{var H;e&&(d(e.name||""),f(e.description||""),m({mfa_required:e.enforce_2fa||!1,ip_restrictions:e.enable_ip_restriction||!1,allowed_ips:((H=e.whitelisted_ips)==null?void 0:H.join(`
|
|
4247
4247
|
`))||""}))},[e]);const C=async()=>{if(!(!e||g))try{x(!0),await a({name:h,description:u,enforce_2fa:p.mfa_required,enable_ip_restriction:p.ip_restrictions,whitelisted_ips:p.allowed_ips.split(`
|
|
4248
|
-
`).filter(
|
|
4249
|
-
10.0.0.0/24`,style:{minHeight:"var(--size-40u)",fontFamily:"monospace"}})]})]})]}),t.jsxs(zo,{children:[t.jsx(
|
|
4248
|
+
`).filter(H=>H.trim())}),i("Changes saved","info")}catch(H){i(H.message||"Failed to save changes","error")}finally{x(!1)}},_=async()=>{if(!(!e||b!==e.name))try{E(!0),await o(e),i("Workspace deleted","info")}catch{i("Failed to delete workspace","error")}finally{E(!1),v("")}};if(r&&!e)return t.jsx(Ee,{});if(!e)return null;const k=(L=s==null?void 0:s.b2b_settings)==null?void 0:L.enforce_mfa_per_workspace_enabled,y=($=s==null?void 0:s.b2b_settings)==null?void 0:$.ip_allowlist_per_workspace_enabled;return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8u)",paddingBottom:"var(--size-20u)"},children:[t.jsxs(zo,{children:[t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"name",children:"Workspace name"}),t.jsx(le,{id:"name",value:h,onChange:H=>d(H.target.value),onBlur:C,placeholder:"Workspace name",required:!0})]}),t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"description",children:"Description"}),t.jsx(le,{id:"description",as:"textarea",value:u,onChange:H=>f(H.target.value),onBlur:C,placeholder:"Optional description",style:{minHeight:"var(--size-40u)",resize:"vertical"}})]})]}),(k||y)&&t.jsxs(zo,{children:[t.jsx(Uc,{children:"Security"}),k&&t.jsxs(Vc,{style:{padding:0},children:[t.jsxs(Dc,{children:[t.jsx(be,{style:{fontSize:13,fontWeight:500,marginBottom:4,display:"block"},children:"Multi-factor authentication"}),t.jsx("p",{style:{fontSize:12,color:"var(--color-secondary-text)",margin:0},children:"Require all workspace members to set up MFA."})]}),t.jsx(Nc,{children:t.jsx(Tr,{checked:p.mfa_required,onChange:()=>{m(H=>({...H,mfa_required:!H.mfa_required})),setTimeout(C,0)}})})]}),y&&t.jsxs(t.Fragment,{children:[t.jsxs(Vc,{style:{padding:0},children:[t.jsxs(Dc,{children:[t.jsx(be,{style:{fontSize:13,fontWeight:500,marginBottom:4,display:"block"},children:"IP restrictions"}),t.jsx("p",{style:{fontSize:12,color:"var(--color-secondary-text)",margin:0},children:"Only allow access from specific IP addresses."})]}),t.jsx(Nc,{children:t.jsx(Tr,{checked:p.ip_restrictions,onChange:()=>{m(H=>({...H,ip_restrictions:!H.ip_restrictions})),setTimeout(C,0)}})})]}),p.ip_restrictions&&t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"allowed_ips",children:"Allowed IP addresses"}),t.jsx(le,{id:"allowed_ips",as:"textarea",value:p.allowed_ips,onChange:H=>m(F=>({...F,allowed_ips:H.target.value})),onBlur:C,placeholder:`192.168.1.1
|
|
4249
|
+
10.0.0.0/24`,style:{minHeight:"var(--size-40u)",fontFamily:"monospace"}})]})]})]}),t.jsxs(zo,{children:[t.jsx(Uc,{children:"Danger zone"}),t.jsxs(E3,{children:[t.jsxs(A3,{children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx(z3,{children:"Delete workspace"}),t.jsx($3,{children:"Once you delete this workspace, there is no going back."})]}),t.jsx(N,{$size:"sm",$outline:!0,$destructive:!0,onClick:()=>{S(!j),v("")},children:j?"Cancel":"Delete workspace"})]}),j&&t.jsxs("div",{style:{marginTop:14,display:"flex",flexDirection:"column",gap:10},children:[t.jsxs(ke,{children:[t.jsxs(be,{htmlFor:"confirm_workspace_name",children:["Type ",t.jsx("strong",{children:e.name})," to confirm"]}),t.jsx(le,{id:"confirm_workspace_name",type:"text",value:b,onChange:H=>v(H.target.value),placeholder:e.name})]}),t.jsx(N,{$size:"sm",$destructive:!0,onClick:_,disabled:b!==e.name||w,children:w?t.jsx(Ee,{size:12}):"Delete forever"})]})]})]})]})},L3=l.div`
|
|
4250
4250
|
position: fixed;
|
|
4251
4251
|
width: calc(var(--space-10u) * 18);
|
|
4252
4252
|
max-width: calc(100vw - var(--space-24u));
|
|
@@ -4299,7 +4299,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4299
4299
|
display: flex;
|
|
4300
4300
|
flex-direction: column;
|
|
4301
4301
|
gap: var(--space-4u);
|
|
4302
|
-
`,O3=({onClose:e,onSuccess:r,roles:a,triggerRef:o})=>{const s=c.useRef(null),[i,h]=c.useState(""),[d,u]=c.useState(null),[f,p]=c.useState(!1),[m,g]=c.useState(!1),{toast:x}=vt(),{inviteMember:b}=Vt(),v=wt({triggerRef:o??{current:null},isOpen:m,minWidth:360,defaultMaxHeight:320}),w=a.map(S=>({value:S.id,label:S.name}));c.useEffect(()=>{g(!0);const S=k=>{s.current&&!s.current.contains(k.target)&&(e==null||e())},C=k=>{k.key==="Escape"&&(e==null||e())},_=setTimeout(()=>{document.addEventListener("mousedown",S),document.addEventListener("keydown",C)},100);return()=>{clearTimeout(_),document.removeEventListener("mousedown",S),document.removeEventListener("keydown",C)}},[e]);const E=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=i.trim().toLowerCase();if(!(!S||!d)){if(!E(S)){x("Please enter a valid email address","error");return}if(S.length>320){x("Email address is too long","error");return}p(!0);try{await b({email:S,workspaceRoleId:d.id}),r==null||r()}catch(C){const _=C.message||"Failed to send invitation. Please try again.";x(_,"error")}finally{p(!1)}}};return m?t.jsxs(L3,{ref:s,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,maxHeight:v!=null&&v.maxHeight?`${v.maxHeight}px`:void 0,visibility:v?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-workspace-member-title","aria-modal":"true",children:[t.jsxs(R3,{children:[t.jsx(P3,{id:"invite-workspace-member-title",children:"Invite Member"}),t.jsx(Z3,{onClick:e,"aria-label":"Close invite member dialog",children:t.jsx(
|
|
4302
|
+
`,O3=({onClose:e,onSuccess:r,roles:a,triggerRef:o})=>{const s=c.useRef(null),[i,h]=c.useState(""),[d,u]=c.useState(null),[f,p]=c.useState(!1),[m,g]=c.useState(!1),{toast:x}=vt(),{inviteMember:b}=Vt(),v=wt({triggerRef:o??{current:null},isOpen:m,minWidth:360,defaultMaxHeight:320}),w=a.map(S=>({value:S.id,label:S.name}));c.useEffect(()=>{g(!0);const S=k=>{s.current&&!s.current.contains(k.target)&&(e==null||e())},C=k=>{k.key==="Escape"&&(e==null||e())},_=setTimeout(()=>{document.addEventListener("mousedown",S),document.addEventListener("keydown",C)},100);return()=>{clearTimeout(_),document.removeEventListener("mousedown",S),document.removeEventListener("keydown",C)}},[e]);const E=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=i.trim().toLowerCase();if(!(!S||!d)){if(!E(S)){x("Please enter a valid email address","error");return}if(S.length>320){x("Email address is too long","error");return}p(!0);try{await b({email:S,workspaceRoleId:d.id}),r==null||r()}catch(C){const _=C.message||"Failed to send invitation. Please try again.";x(_,"error")}finally{p(!1)}}};return m?t.jsxs(L3,{ref:s,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,maxHeight:v!=null&&v.maxHeight?`${v.maxHeight}px`:void 0,visibility:v?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-workspace-member-title","aria-modal":"true",children:[t.jsxs(R3,{children:[t.jsx(P3,{id:"invite-workspace-member-title",children:"Invite Member"}),t.jsx(Z3,{onClick:e,"aria-label":"Close invite member dialog",children:t.jsx(Ls,{size:16})})]}),t.jsx(T3,{children:t.jsxs(I3,{children:[t.jsxs(ke,{children:[t.jsx(be,{children:"Email Address"}),t.jsx(le,{type:"email",placeholder:"colleague@company.com",value:i,onChange:S=>h(S.target.value),autoFocus:!0,"aria-label":"Email address for workspace invitation","aria-describedby":"workspace-email-help"})]}),t.jsxs(ke,{children:[t.jsx(be,{children:"Role"}),t.jsx(On,{options:w,value:d==null?void 0:d.id,onChange:S=>u(a.find(C=>C.id===S)),placeholder:"Select a role","aria-label":"Select role for invited workspace member"})]})]})}),t.jsxs(F3,{children:[t.jsx(N,{$outline:!0,onClick:e,style:{width:"auto"},children:"Cancel"}),t.jsx(N,{onClick:j,disabled:!i||!d||f,style:{width:"auto"},children:f?t.jsxs(t.Fragment,{children:[t.jsx(Ee,{size:14})," Sending..."]}):"PaperPlaneTilt Invitation"})]})]}):null},H3=l.div`
|
|
4303
4303
|
width: var(--size-20u);
|
|
4304
4304
|
height: var(--size-20u);
|
|
4305
4305
|
border-radius: 50%;
|
|
@@ -4312,7 +4312,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4312
4312
|
font-weight: 400;
|
|
4313
4313
|
font-size: var(--font-size-lg);
|
|
4314
4314
|
overflow: hidden;
|
|
4315
|
-
`,V3=()=>{const{activeWorkspace:e,getMembers:r,getRoles:a,removeMember:o,addMemberRole:s,removeMemberRole:i}=Vt(),{session:h}=at(),{toast:d}=vt(),[u,f]=c.useState(""),[p,m]=c.useState(1),[g]=c.useState(10),[x,b]=c.useState(""),[v,w]=c.useState(!1),E=c.useRef(null);c.useEffect(()=>{const
|
|
4315
|
+
`,V3=()=>{const{activeWorkspace:e,getMembers:r,getRoles:a,removeMember:o,addMemberRole:s,removeMemberRole:i}=Vt(),{session:h}=at(),{toast:d}=vt(),[u,f]=c.useState(""),[p,m]=c.useState(1),[g]=c.useState(10),[x,b]=c.useState(""),[v,w]=c.useState(!1),E=c.useRef(null);c.useEffect(()=>{const F=setTimeout(()=>{b(u),m(1)},500);return()=>clearTimeout(F)},[u]);const{data:j,mutate:S}=Ae(e?`wacht - api - workspaces:${e.id}: members:${p}:${g}:${x} `:null,()=>r==null?void 0:r({page:p,limit:g,search:x}),{keepPreviousData:!0}),C=(j==null?void 0:j.data)||[],_=(j==null?void 0:j.meta)||{total:0,limit:10},k=Math.ceil(_.total/(_.limit||10)),{data:y=[]}=Ae(e?`wacht - api - workspaces:${e.id}: roles`:null,()=>a()||[]),L=y,$=async(F,M,R)=>{try{R?(await i(F,M),d("Role removed","info")):(await s(F,M),d("Role added","info")),S()}catch{d("Failed to update role","error")}},H=async F=>{try{await o(F),d("Member removed","info"),S()}catch{d("Failed to remove member","error")}};return j?t.jsxs(t.Fragment,{children:[t.jsxs(Is,{children:[t.jsx("div",{style:{flex:1},children:t.jsx(j1,{value:u,onChange:f,placeholder:"Search members..."})}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",alignItems:"center"},children:[_.total>0&&t.jsxs("div",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-muted)"},children:[_.total," member",_.total!==1?"s":""]}),t.jsx(N,{ref:E,onClick:()=>w(!0),children:"Invite"})]})]}),v&&t.jsx(O3,{onClose:()=>w(!1),onSuccess:()=>{S(),w(!1)},roles:L,triggerRef:E}),C.length===0?t.jsx(At,{title:u?"No members match":"No members yet",description:"Members added to the organization can be invited here."}):t.jsx(t.Fragment,{children:t.jsx(Os,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Member"}),t.jsx(Ie,{children:"Joined"}),t.jsx(Ie,{children:"Role"})]})}),t.jsx(Ut,{children:C.map(F=>t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsx(D3,{member:F,session:h})}),t.jsx(Ye,{children:new Date(F.created_at).toLocaleDateString()}),t.jsx(Bt,{children:t.jsx(N3,{member:F,roles:L,onToggle:(M,R)=>$(F.id,M,R),onRemove:()=>H(F.id)})})]},F.id))})]})})}),k>1&&t.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"var(--space-8u)",marginTop:"var(--space-12u)"},children:[t.jsx(N,{onClick:()=>m(F=>Math.max(1,F-1)),disabled:p===1,$size:"sm",children:"Previous"}),t.jsxs("span",{style:{fontSize:"var(--font-size-md)"},children:[p," / ",k]}),t.jsx(N,{onClick:()=>m(F=>Math.min(k,F+1)),disabled:p===k,$size:"sm",children:"Next"})]})]}):t.jsx(Ee,{})},D3=({member:e,session:r,subtitle:a})=>{var h,d,u;const o=e.public_user_data||e.user,s=(o==null?void 0:o.id)===((h=r==null?void 0:r.active_signin)==null?void 0:h.user_id),i=(f="",p="")=>`${f[0]||""}${p[0]||""} `.toUpperCase();return t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-6u)"},children:[t.jsx(H3,{children:o!=null&&o.profile_picture_url?t.jsx("img",{src:o.profile_picture_url,alt:"Avatar",style:{width:"100%",height:"100%",objectFit:"cover"}}):i(o==null?void 0:o.first_name,o==null?void 0:o.last_name)||"?"}),t.jsxs("div",{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx("span",{style:{fontSize:"var(--font-size-lg)",fontWeight:"400"},children:o?`${o.first_name||""} ${o.last_name||""} `.trim()||((d=o.primary_email_address)==null?void 0:d.email):"Unknown"}),s&&t.jsx("span",{style:{fontSize:"var(--font-size-2xs)",padding:"var(--space-1u) var(--space-2u)",background:"var(--color-background-subtle)",color:"var(--color-muted)",borderRadius:"calc(var(--radius-2xs) - var(--border-width-thin))",fontWeight:"400"},children:"You"})]}),t.jsxs("div",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-secondary-text)",fontWeight:"400",display:"flex",flexWrap:"wrap",gap:"var(--space-2u) var(--space-4u)"},children:[t.jsx("span",{children:(u=o==null?void 0:o.primary_email_address)==null?void 0:u.email}),a&&t.jsxs("span",{style:{color:"var(--color-muted)"},children:["• ",a]})]})]})]})},N3=({member:e,roles:r,onToggle:a,onRemove:o})=>{var d;const s=e.roles||[],i=u=>s.some(f=>f.id===u),h="calc(var(--size-50u) + var(--size-40u))";return t.jsxs(La,{children:[t.jsx(Pa,{children:t.jsxs(N,{$outline:!0,style:{color:"var(--color-foreground)",minWidth:h,justifyContent:"space-between"},children:[s.length>0?(d=s==null?void 0:s[0])==null?void 0:d.name:"No role"," ",t.jsx(ur,{size:14,style:{marginLeft:"var(--space-2u)"}})]})}),t.jsxs(Ra,{style:{minWidth:h},children:[r.map(u=>{const f=i(u.id);return t.jsx(ir,{onClick:()=>a(u.id,f),children:t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",gap:"var(--space-6u)"},children:[t.jsx("span",{children:u.name}),f&&t.jsx(ct,{size:14,color:"var(--color-success)"})]})},u.id)}),t.jsx(y1,{}),t.jsx(ir,{$destructive:!0,onClick:o,children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(Ms,{size:14})," Remove Member"]})})]})]})},U3=l.div`
|
|
4316
4316
|
position: fixed;
|
|
4317
4317
|
background: var(--color-popover);
|
|
4318
4318
|
border-radius: 10px;
|
|
@@ -4334,11 +4334,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4334
4334
|
font-size: 13px;
|
|
4335
4335
|
font-weight: 600;
|
|
4336
4336
|
color: var(--color-popover-foreground);
|
|
4337
|
-
`,
|
|
4337
|
+
`,Bc=l.div`
|
|
4338
4338
|
display: flex;
|
|
4339
4339
|
flex-direction: column;
|
|
4340
4340
|
gap: 4px;
|
|
4341
|
-
`,
|
|
4341
|
+
`,Wc=l.label`
|
|
4342
4342
|
font-size: 11px;
|
|
4343
4343
|
font-weight: 500;
|
|
4344
4344
|
color: var(--color-secondary-text);
|
|
@@ -4347,7 +4347,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4347
4347
|
grid-template-columns: 1fr 1fr;
|
|
4348
4348
|
gap: 6px;
|
|
4349
4349
|
& > button { width: 100%; }
|
|
4350
|
-
`,G3=({onClose:e,onSuccess:r,roles:a,createInvitation:o,triggerRef:s})=>{const i=c.useRef(null),[h,d]=c.useState(""),[u,f]=c.useState(a[0]||null),[p,m]=c.useState(!1),[g,x]=c.useState(!1),{toast:b}=vt(),v=wt({triggerRef:s,isOpen:g,minWidth:360,defaultMaxHeight:320}),w=a.map(S=>({value:S.id,label:S.name})),E=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=h.trim().toLowerCase();if(!(!S||!u)){if(!E(S)){b("Please enter a valid email address","error");return}if(S.length>320){b("Email address is too long","error");return}m(!0);try{await o({email:S,role_id:u.id}),r()}catch(C){b(C.message||"Failed to send invitation. Please try again.","error")}finally{m(!1)}}};return c.useEffect(()=>{x(!0);const S=_=>{i.current&&!i.current.contains(_.target)&&(e==null||e())},C=_=>{_.key==="Escape"&&(e==null||e())};return document.addEventListener("mousedown",S),document.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",S),document.removeEventListener("keydown",C)}},[e]),g?t.jsxs(U3,{ref:i,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,visibility:v?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-member-title","aria-modal":"true",children:[t.jsx(B3,{id:"invite-member-title",children:"Invite member"}),t.jsxs(
|
|
4350
|
+
`,G3=({onClose:e,onSuccess:r,roles:a,createInvitation:o,triggerRef:s})=>{const i=c.useRef(null),[h,d]=c.useState(""),[u,f]=c.useState(a[0]||null),[p,m]=c.useState(!1),[g,x]=c.useState(!1),{toast:b}=vt(),v=wt({triggerRef:s,isOpen:g,minWidth:360,defaultMaxHeight:320}),w=a.map(S=>({value:S.id,label:S.name})),E=S=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S),j=async()=>{const S=h.trim().toLowerCase();if(!(!S||!u)){if(!E(S)){b("Please enter a valid email address","error");return}if(S.length>320){b("Email address is too long","error");return}m(!0);try{await o({email:S,role_id:u.id}),r()}catch(C){b(C.message||"Failed to send invitation. Please try again.","error")}finally{m(!1)}}};return c.useEffect(()=>{x(!0);const S=_=>{i.current&&!i.current.contains(_.target)&&(e==null||e())},C=_=>{_.key==="Escape"&&(e==null||e())};return document.addEventListener("mousedown",S),document.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",S),document.removeEventListener("keydown",C)}},[e]),g?t.jsxs(U3,{ref:i,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,visibility:v?"visible":"hidden"},onClick:S=>S.stopPropagation(),role:"dialog","aria-labelledby":"invite-member-title","aria-modal":"true",children:[t.jsx(B3,{id:"invite-member-title",children:"Invite member"}),t.jsxs(Bc,{children:[t.jsx(Wc,{children:"Email"}),t.jsx(le,{type:"email",placeholder:"colleague@company.com",value:h,onChange:S=>d(S.target.value),onKeyDown:S=>{S.key==="Enter"&&h&&u&&j()},autoFocus:!0,"aria-label":"Email address for invitation"})]}),t.jsxs(Bc,{children:[t.jsx(Wc,{children:"Role"}),t.jsx(On,{options:w,value:u==null?void 0:u.id,onChange:S=>f(a.find(C=>C.id===S)),placeholder:"Select a role","aria-label":"Select role for invited member"})]}),t.jsxs(W3,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:j,disabled:!h||!u||p,children:p?t.jsx(Ee,{size:12}):"Send invite"})]})]}):null},q3=()=>{const{activeWorkspace:e,loading:r,getRoles:a,getInvitations:o,inviteMember:s,discardInvitation:i,resendInvitation:h}=Vt(),{toast:d}=vt(),[u,f]=c.useState(!0),[p,m]=c.useState(!0),[g,x]=c.useState([]),[b,v]=c.useState([]),[w,E]=c.useState(!1),j=c.useRef(null),S=async()=>{if(e){f(!0),m(!0);try{const[k,y]=await Promise.all([a(),o()]);v(k),x(y)}catch{}finally{f(!1),m(!1)}}};c.useEffect(()=>{S()},[e==null?void 0:e.id]);const C=async k=>{try{await i(k),S(),d("Invitation cancelled","info")}catch{d("Failed to cancel invitation","error")}},_=async k=>{try{await h(k),S(),d("Invitation resent","info")}catch{d("Failed to resend invitation","error")}};return r||u||p?t.jsx(Ee,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Is,{style:{marginBottom:"var(--space-6u)"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:14,fontWeight:500,color:"var(--color-card-foreground)"},children:"Invitations"}),t.jsx("div",{style:{fontSize:12,color:"var(--color-secondary-text)",marginTop:2},children:"Pending invites to join this workspace."})]}),t.jsx(N,{ref:j,onClick:()=>E(!0),$size:"sm",children:"Invite"})]}),w&&t.jsx(G3,{onClose:()=>E(!1),onSuccess:()=>{S(),E(!1),d("Invitation sent","info")},roles:b,createInvitation:k=>s({email:k.email,workspaceRoleId:k.role_id}),triggerRef:j}),g.length===0?t.jsx(At,{title:"No pending invitations",description:"Invite members to your workspace."}):t.jsx(t.Fragment,{children:t.jsx(Os,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Email"}),t.jsx(Ie,{children:"Role"}),t.jsx(Ie,{children:"Invited"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:g.map(k=>{var y,L;return t.jsxs(lt,{children:[t.jsx(Ye,{children:k.email}),t.jsx(Ye,{children:((y=k.initial_workspace_role)==null?void 0:y.name)||((L=k.initial_organization_role)==null?void 0:L.name)||"No role"}),t.jsx(Ye,{children:new Date(k.created_at).toLocaleDateString()}),t.jsx(Bt,{children:t.jsx(K3,{onResend:()=>_(k.id),onCancel:()=>C(k.id)})})]},k.id)})})]})})})]})},K3=({onResend:e,onCancel:r})=>t.jsxs(La,{children:[t.jsx(Pa,{children:t.jsx(fs,{children:"•••"})}),t.jsxs(Ra,{children:[t.jsxs(ir,{onClick:e,children:[t.jsx(qd,{size:16})," Resend"]}),t.jsxs(ir,{$destructive:!0,onClick:r,children:[t.jsx(Ms,{size:16})," Cancel"]})]})]}),Y3=l.div`
|
|
4351
4351
|
position: fixed;
|
|
4352
4352
|
background: var(--color-popover);
|
|
4353
4353
|
border-radius: 10px;
|
|
@@ -4370,11 +4370,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4370
4370
|
font-size: 13px;
|
|
4371
4371
|
font-weight: 600;
|
|
4372
4372
|
color: var(--color-popover-foreground);
|
|
4373
|
-
`,
|
|
4373
|
+
`,Gc=l.div`
|
|
4374
4374
|
display: flex;
|
|
4375
4375
|
flex-direction: column;
|
|
4376
4376
|
gap: 4px;
|
|
4377
|
-
`,
|
|
4377
|
+
`,qc=l.label`
|
|
4378
4378
|
font-size: 11px;
|
|
4379
4379
|
font-weight: 500;
|
|
4380
4380
|
color: var(--color-secondary-text);
|
|
@@ -4383,7 +4383,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4383
4383
|
grid-template-columns: 1fr 1fr;
|
|
4384
4384
|
gap: 6px;
|
|
4385
4385
|
& > button { width: 100%; }
|
|
4386
|
-
`,
|
|
4386
|
+
`,Kc=({onClose:e,onSuccess:r,role:a,triggerRef:o})=>{var k,y;const s=c.useRef(null),[i,h]=c.useState((a==null?void 0:a.name)||""),[d,u]=c.useState((a==null?void 0:a.permissions)||[]),[f,p]=c.useState(!1),[m,g]=c.useState(!1),{deployment:x}=Se(),{toast:b}=vt(),v=wt({triggerRef:o??{current:null},isOpen:m,minWidth:400,defaultMaxHeight:500}),w=!!a,E=((k=x==null?void 0:x.b2b_settings)==null?void 0:k.workspace_permissions)||((y=x==null?void 0:x.b2b_settings)==null?void 0:y.organization_permissions)||[],j=Array.isArray(E)?E.map(L=>({value:L,label:L})):[];c.useEffect(()=>{g(!0);const L=F=>{s.current&&!s.current.contains(F.target)&&(e==null||e())},$=F=>{F.key==="Escape"&&(e==null||e())},H=setTimeout(()=>{document.addEventListener("mousedown",L),document.addEventListener("keydown",$)},100);return()=>{clearTimeout(H),document.removeEventListener("mousedown",L),document.removeEventListener("keydown",$)}},[e]);const S=L=>L.trim().replace(/[<>"'&]/g,""),C=L=>L.length>=2&&L.length<=50&&/^[a-zA-Z0-9\s_-]+$/.test(L),_=async()=>{const L=S(i);if(!L){b("Please enter a role name","error");return}if(!C(L)){b("Role name must be 2–50 characters, letters/numbers/spaces only.","error");return}if(d.length===0){b("Please select at least one permission","error");return}p(!0);try{const $={id:a==null?void 0:a.id,name:L,permissions:d};r==null||r($)}catch($){b($.message||`Failed to ${w?"update":"create"} role. Please try again.`,"error")}finally{p(!1)}};return m?t.jsxs(Y3,{ref:s,style:{top:(v==null?void 0:v.top)!==void 0?`${v.top}px`:void 0,bottom:(v==null?void 0:v.bottom)!==void 0?`${v.bottom}px`:void 0,left:(v==null?void 0:v.left)!==void 0?`${v.left}px`:void 0,right:(v==null?void 0:v.right)!==void 0?`${v.right}px`:void 0,visibility:v?"visible":"hidden"},onClick:L=>L.stopPropagation(),role:"dialog","aria-labelledby":"role-dialog-title","aria-modal":"true",children:[t.jsx(Q3,{id:"role-dialog-title",children:w?"Edit role":"New role"}),t.jsxs(Gc,{children:[t.jsx(qc,{children:"Name"}),t.jsx(le,{type:"text",placeholder:"e.g. Admin, Editor, Viewer",value:i,onChange:L=>h(L.target.value),autoFocus:!0,"aria-label":"Role name"})]}),t.jsxs(Gc,{children:[t.jsx(qc,{children:"Permissions"}),t.jsx(z1,{options:j,value:d,onChange:u,placeholder:"Select permissions","aria-label":"Select permissions for role"})]}),t.jsxs(J3,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:_,disabled:!i||f,children:f?t.jsx(Ee,{size:12}):w?"Update":"Create"})]})]}):null},X3=l.div`
|
|
4387
4387
|
display: flex;
|
|
4388
4388
|
align-items: center;
|
|
4389
4389
|
gap: var(--space-4u);
|
|
@@ -4401,7 +4401,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4401
4401
|
line-height: 1;
|
|
4402
4402
|
`,rx=l.div`
|
|
4403
4403
|
color: var(--color-secondary-text);
|
|
4404
|
-
`,ax=()=>{var C;const{activeWorkspace:e,loading:r,getRoles:a,createRole:o,deleteRole:s}=Vt(),{deployment:i}=Se(),{toast:h}=vt(),[d,u]=c.useState({isOpen:!1}),[f,p]=c.useState(null),[m,g]=c.useState(null),x=c.useRef(null),b=c.useRef(new Map),{data:v=[],isLoading:w,mutate:E}=Ae(e?`wacht-api-workspaces:${e.id}:roles`:null,()=>a()||[]),j=async _=>{try{await o(_.name,_.permissions||[]),h("Role saved successfully","info"),u({isOpen:!1}),E()}catch{h("Failed to save role","error")}},S=async _=>{try{await s(_),h("Role deleted","info"),p(null),E()}catch{h("Failed to delete role","error")}};return r||w?t.jsx(Ee,{}):t.jsxs(t.Fragment,{children:[t.jsxs(
|
|
4404
|
+
`,ax=()=>{var C;const{activeWorkspace:e,loading:r,getRoles:a,createRole:o,deleteRole:s}=Vt(),{deployment:i}=Se(),{toast:h}=vt(),[d,u]=c.useState({isOpen:!1}),[f,p]=c.useState(null),[m,g]=c.useState(null),x=c.useRef(null),b=c.useRef(new Map),{data:v=[],isLoading:w,mutate:E}=Ae(e?`wacht-api-workspaces:${e.id}:roles`:null,()=>a()||[]),j=async _=>{try{await o(_.name,_.permissions||[]),h("Role saved successfully","info"),u({isOpen:!1}),E()}catch{h("Failed to save role","error")}},S=async _=>{try{await s(_),h("Role deleted","info"),p(null),E()}catch{h("Failed to delete role","error")}};return r||w?t.jsx(Ee,{}):t.jsxs(t.Fragment,{children:[t.jsxs(Is,{style:{marginBottom:"var(--space-6u)"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:14,fontWeight:500,color:"var(--color-card-foreground)"},children:"Roles"}),t.jsx("div",{style:{fontSize:12,color:"var(--color-secondary-text)",marginTop:2},children:"Define granular permissions for this workspace."})]}),((C=i==null?void 0:i.b2b_settings)==null?void 0:C.custom_workspace_role_enabled)&&t.jsx(N,{ref:x,onClick:()=>u({isOpen:!0,triggerElement:x.current}),$size:"sm",children:"Add role"})]}),d.isOpen&&!d.role&&t.jsx(Kc,{triggerRef:{current:d.triggerElement||null},onClose:()=>u({isOpen:!1}),onSuccess:j}),v.length===0?t.jsx(At,{title:"No roles yet",description:"Create workspace-specific roles to manage access."}):t.jsx(t.Fragment,{children:t.jsx(Os,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Role"}),t.jsx(Ie,{children:"Permissions"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:v.map(_=>{var k;return t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs(X3,{children:[t.jsx(ex,{children:_.name}),!hs(_)&&t.jsx(tx,{children:"Default"})]})}),t.jsx(Ye,{children:t.jsxs(rx,{children:[(k=_.permissions)==null?void 0:k.join(", "),!hs(_)&&" • Cannot be edited or deleted"]})}),t.jsx(Bt,{children:t.jsx(nx,{role:_,onEdit:y=>u({isOpen:!0,role:_,triggerElement:y}),onDelete:()=>p(_.id),open:m===_.id,onOpenChange:y=>g(y?_.id:null),dropdownButtonRefs:b})})]},_.id)})})]})})}),f&&t.jsx(ta,{title:"Delete role?",description:"Are you sure? This will remove the role from all workspace members.",onConfirm:()=>{const _=v.find(k=>k.id===f);_&&S(_)},onCancel:()=>p(null)}),d.isOpen&&d.role&&t.jsx(Kc,{role:d.role,triggerRef:{current:d.triggerElement||null},onClose:()=>u({isOpen:!1}),onSuccess:j})]})},nx=({role:e,onEdit:r,onDelete:a,open:o,onOpenChange:s,dropdownButtonRefs:i})=>hs(e)?t.jsxs(La,{open:o,openChange:s,children:[t.jsx(Pa,{children:t.jsx(fs,{ref:d=>{d&&i.current.set(e.id,d)},children:"•••"})}),t.jsxs(Ra,{children:[t.jsx(ir,{onClick:()=>r(i.current.get(e.id)??null),children:"Edit Role"}),t.jsxs(ir,{$destructive:!0,onClick:a,children:[t.jsx(Ms,{size:16})," Remove Role"]})]})]}):t.jsx(fs,{disabled:!0,title:"Deployment roles cannot be edited","aria-label":"Deployment roles cannot be edited",children:"•••"}),ox=l.button`
|
|
4405
4405
|
position: relative;
|
|
4406
4406
|
width: 44px;
|
|
4407
4407
|
height: 44px;
|
|
@@ -4452,7 +4452,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4452
4452
|
padding: 12px 16px;
|
|
4453
4453
|
box-shadow: var(--shadow-md);
|
|
4454
4454
|
z-index: 100;
|
|
4455
|
-
`,ix=e=>(e||"").slice(0,2).toUpperCase()||"W",Y1=()=>{var w,E;const{activeWorkspace:e,loading:r,updateWorkspace:a}=Vt(),{deployment:o}=Se(),[s,i]=c.useState("general"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),x=c.useCallback((j,S="info")=>{d(j),f(S),setTimeout(()=>d(null),3e3)},[]),b=async j=>{var C;const S=(C=j.target.files)==null?void 0:C[0];if(S){if(S.size>2*1024*1024){x("File size cannot exceed 2MB","error");return}if(!S.type.startsWith("image/")){x("Please select a valid image file","error");return}try{m(!0),await a({image:S}),x("Logo updated","info")}catch(_){x((_==null?void 0:_.message)||"Failed to update logo","error")}finally{m(!1),g.current&&(g.current.value="")}}};if(r&&!e)return t.jsx(fe,{children:t.jsx(
|
|
4455
|
+
`,ix=e=>(e||"").slice(0,2).toUpperCase()||"W",Y1=()=>{var w,E;const{activeWorkspace:e,loading:r,updateWorkspace:a}=Vt(),{deployment:o}=Se(),[s,i]=c.useState("general"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),x=c.useCallback((j,S="info")=>{d(j),f(S),setTimeout(()=>d(null),3e3)},[]),b=async j=>{var C;const S=(C=j.target.files)==null?void 0:C[0];if(S){if(S.size>2*1024*1024){x("File size cannot exceed 2MB","error");return}if(!S.type.startsWith("image/")){x("Please select a valid image file","error");return}try{m(!0),await a({image:S}),x("Logo updated","info")}catch(_){x((_==null?void 0:_.message)||"Failed to update logo","error")}finally{m(!1),g.current&&(g.current.value="")}}};if(r&&!e)return t.jsx(fe,{children:t.jsx(Hc,{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:t.jsx(Ee,{})})});if(!e)return null;const v=(w=e.organization)==null?void 0:w.name;return t.jsx(fe,{children:t.jsx(w3,{children:t.jsx(Ps.Provider,{value:{screen:null,setScreen:()=>{},toast:x},children:t.jsxs(Hc,{children:[t.jsxs(_3,{children:[t.jsxs(ox,{type:"button",onClick:()=>{var j;return(j=g.current)==null?void 0:j.click()},disabled:p,title:"Change logo","aria-label":"Change workspace logo",children:[e.image_url?t.jsx("img",{src:e.image_url,alt:e.name}):ix(e.name),t.jsx("span",{className:"hover-overlay",children:p?t.jsx(Ee,{size:14}):t.jsx(zs,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(k3,{children:[t.jsx(C3,{children:e.name}),t.jsx(S3,{children:v?`${v} · Workspace settings`:"Workspace settings"})]})]}),t.jsx(b3,{children:t.jsxs(y3,{children:[t.jsx(nn,{$isActive:s==="general",onClick:()=>i("general"),children:t.jsxs(on,{children:[t.jsx(zr,{size:14})," General"]})}),t.jsx(nn,{$isActive:s==="members",onClick:()=>i("members"),children:t.jsxs(on,{children:[t.jsx(kn,{size:14})," Members"]})}),t.jsx(nn,{$isActive:s==="invitations",onClick:()=>i("invitations"),children:t.jsxs(on,{children:[t.jsx(qd,{size:14})," Invitations"]})}),((E=o==null?void 0:o.b2b_settings)==null?void 0:E.custom_workspace_role_enabled)&&t.jsx(nn,{$isActive:s==="roles",onClick:()=>i("roles"),children:t.jsxs(on,{children:[t.jsx(Rt,{size:14})," Roles"]})})]})}),t.jsxs(j3,{children:[s==="general"&&t.jsx(M3,{}),s==="members"&&t.jsx(V3,{}),s==="invitations"&&t.jsx(q3,{}),s==="roles"&&t.jsx(ax,{})]}),h&&t.jsx(sx,{children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[u==="error"?t.jsx(ia,{size:14,color:"var(--color-error)"}):t.jsx(ct,{size:14,color:"var(--color-success, #10b981)"}),t.jsx("span",{style:{fontSize:13,color:"var(--color-popover-foreground)"},children:h})]})})]})})})})},Hs=({isOpen:e,onClose:r,title:a,showHeader:o,headerContent:s,footerContent:i,customContent:h,children:d,showCloseButton:u})=>t.jsx(Ve,{isOpen:e,onClose:r,children:t.jsx(Ve.Overlay,{children:t.jsxs(Ve.Content,{style:{width:"900px",maxWidth:"90vw"},children:[o&&t.jsx(Ve.Header,{showCloseButton:u,children:s||a}),h||d||t.jsx(Y1,{}),i&&t.jsx(Ve.Footer,{children:i})]})})}),Q1=["organization:admin"],J1=["organization:admin","organization:manage"],X1=["workspace:admin"],eu=["workspace:admin","workspace:manage"];function Vs(e,r){return e!=null&&e.roles?e.roles.some(a=>{var o;return(o=a.permissions)==null?void 0:o.some(s=>r.includes(s))}):!1}function Ds(e){return Vs(e,J1)}function cx(e){return Vs(e,Q1)}function Ns(e,r){return e!=null&&e.roles?e.roles.some(a=>{var o;return(o=a.permissions)==null?void 0:o.some(s=>r.includes(s))}):!1}function Us(e){return Ns(e,eu)}function lx(e){return Ns(e,X1)}const Yc=l.div`
|
|
4456
4456
|
position: relative;
|
|
4457
4457
|
display: block;
|
|
4458
4458
|
width: 100%;
|
|
@@ -4554,13 +4554,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4554
4554
|
opacity: 0.5;
|
|
4555
4555
|
cursor: not-allowed;
|
|
4556
4556
|
}
|
|
4557
|
-
`,
|
|
4557
|
+
`,Qc=l.div`
|
|
4558
4558
|
display: flex;
|
|
4559
4559
|
align-items: center;
|
|
4560
4560
|
gap: var(--space-3u);
|
|
4561
4561
|
padding: var(--space-1u) var(--space-1u) 0;
|
|
4562
4562
|
min-width: 0;
|
|
4563
|
-
`,
|
|
4563
|
+
`,Jc=l.div`
|
|
4564
4564
|
width: 24px;
|
|
4565
4565
|
height: 24px;
|
|
4566
4566
|
min-width: 24px;
|
|
@@ -4575,13 +4575,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4575
4575
|
font-weight: 500;
|
|
4576
4576
|
flex-shrink: 0;
|
|
4577
4577
|
img { width: 100%; height: 100%; object-fit: cover; }
|
|
4578
|
-
`,
|
|
4578
|
+
`,Xc=l.div`
|
|
4579
4579
|
display: flex;
|
|
4580
4580
|
flex-direction: column;
|
|
4581
4581
|
gap: 1px;
|
|
4582
4582
|
min-width: 0;
|
|
4583
4583
|
flex: 1;
|
|
4584
|
-
`,
|
|
4584
|
+
`,el=l.div`
|
|
4585
4585
|
font-size: var(--font-size-md);
|
|
4586
4586
|
font-weight: 400;
|
|
4587
4587
|
color: var(--color-popover-foreground);
|
|
@@ -4589,7 +4589,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4589
4589
|
white-space: nowrap;
|
|
4590
4590
|
overflow: hidden;
|
|
4591
4591
|
text-overflow: ellipsis;
|
|
4592
|
-
`,
|
|
4592
|
+
`,tl=l.div`
|
|
4593
4593
|
display: flex;
|
|
4594
4594
|
align-items: center;
|
|
4595
4595
|
gap: 2px;
|
|
@@ -4646,7 +4646,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4646
4646
|
`}
|
|
4647
4647
|
|
|
4648
4648
|
&:disabled { cursor: default; }
|
|
4649
|
-
`,
|
|
4649
|
+
`,rl=l.button`${tu}`,al=l.button`
|
|
4650
4650
|
${tu}
|
|
4651
4651
|
padding-left: 30px;
|
|
4652
4652
|
position: relative;
|
|
@@ -4659,7 +4659,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4659
4659
|
width: 1px;
|
|
4660
4660
|
background: var(--color-border);
|
|
4661
4661
|
}
|
|
4662
|
-
`,
|
|
4662
|
+
`,nl=l.div`
|
|
4663
4663
|
width: 20px;
|
|
4664
4664
|
height: 20px;
|
|
4665
4665
|
min-width: 20px;
|
|
@@ -4674,7 +4674,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4674
4674
|
font-weight: 500;
|
|
4675
4675
|
flex-shrink: 0;
|
|
4676
4676
|
img { width: 100%; height: 100%; object-fit: cover; }
|
|
4677
|
-
`,
|
|
4677
|
+
`,ol=l.div`
|
|
4678
4678
|
width: 18px;
|
|
4679
4679
|
height: 18px;
|
|
4680
4680
|
min-width: 18px;
|
|
@@ -4689,7 +4689,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4689
4689
|
font-weight: 500;
|
|
4690
4690
|
flex-shrink: 0;
|
|
4691
4691
|
img { width: 100%; height: 100%; object-fit: cover; }
|
|
4692
|
-
`,
|
|
4692
|
+
`,ms=l.span`
|
|
4693
4693
|
flex: 1;
|
|
4694
4694
|
min-width: 0;
|
|
4695
4695
|
font-size: var(--font-size-md);
|
|
@@ -4697,7 +4697,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4697
4697
|
overflow: hidden;
|
|
4698
4698
|
text-overflow: ellipsis;
|
|
4699
4699
|
white-space: nowrap;
|
|
4700
|
-
`,
|
|
4700
|
+
`,sl=l(ms)`
|
|
4701
4701
|
font-size: var(--font-size-sm);
|
|
4702
4702
|
`,$o=l.div`
|
|
4703
4703
|
display: flex;
|
|
@@ -4712,11 +4712,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4712
4712
|
`,Mo=l(ct)`
|
|
4713
4713
|
color: var(--color-primary);
|
|
4714
4714
|
flex-shrink: 0;
|
|
4715
|
-
`,
|
|
4715
|
+
`,il=l.div`
|
|
4716
4716
|
border-top: var(--border-width-thin) solid var(--color-border);
|
|
4717
4717
|
padding: var(--space-2u);
|
|
4718
4718
|
flex-shrink: 0;
|
|
4719
|
-
`,
|
|
4719
|
+
`,cl=l.button`
|
|
4720
4720
|
display: flex;
|
|
4721
4721
|
align-items: center;
|
|
4722
4722
|
gap: var(--space-3u);
|
|
@@ -4734,7 +4734,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4734
4734
|
transition: background 0.1s ease, color 0.1s ease;
|
|
4735
4735
|
&:hover:not(:disabled) { background: var(--color-accent); color: var(--color-popover-foreground); }
|
|
4736
4736
|
&:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
4737
|
-
`,
|
|
4737
|
+
`,ll=l.div`
|
|
4738
4738
|
width: 20px;
|
|
4739
4739
|
height: 20px;
|
|
4740
4740
|
min-width: 20px;
|
|
@@ -4778,7 +4778,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4778
4778
|
display: flex;
|
|
4779
4779
|
align-items: center;
|
|
4780
4780
|
gap: 8px;
|
|
4781
|
-
`,ru=({showPersonal:e=!0})=>{var Te,Ue,Ge;const[r,a]=c.useState(!1),[o,s]=c.useState(!1),[i,h]=c.useState(new Set),d=c.useRef(null),u=c.useRef(null),f=wt({triggerRef:d,isOpen:r,minWidth:300}),p=qt(!1),m=qt(!1),g=qt(!1),x=qt(!1),[b,v]=c.useState(null),[w,E]=c.useState(null),[j,S]=c.useState(null),[C,_]=c.useState("org"),{organizationMemberships:k,loading:y,refetch:L}=Jt(),{activeOrganization
|
|
4781
|
+
`,ru=({showPersonal:e=!0})=>{var Te,Ue,Ge;const[r,a]=c.useState(!1),[o,s]=c.useState(!1),[i,h]=c.useState(new Set),d=c.useRef(null),u=c.useRef(null),f=wt({triggerRef:d,isOpen:r,minWidth:300}),p=qt(!1),m=qt(!1),g=qt(!1),x=qt(!1),[b,v]=c.useState(null),[w,E]=c.useState(null),[j,S]=c.useState(null),[C,_]=c.useState("org"),{organizationMemberships:k,loading:y,refetch:L}=Jt(),{activeOrganization:$,activeMembership:H,leave:F}=cr(),{activeWorkspace:M,activeMembership:R,leave:A}=Vt(),{workspaces:z,loading:Z}=lr(),{session:P,switchOrganization:O,switchWorkspace:I}=at(),{deployment:T}=Se(),G=T==null?void 0:T.b2b_settings.organizations_enabled,D=T==null?void 0:T.b2b_settings.workspaces_enabled,W=T==null?void 0:T.b2b_settings.allow_users_to_create_orgs,Y=!H,J=c.useMemo(()=>{var Q,ce;return Y?{name:"Personal account",image_url:(ce=(Q=P==null?void 0:P.active_signin)==null?void 0:Q.user)==null?void 0:ce.profile_picture_url,isPersonal:!0}:{name:D&&M?`${$==null?void 0:$.name} / ${M.name}`:($==null?void 0:$.name)||"",image_url:$==null?void 0:$.image_url,isPersonal:!1}},[Y,$,M,P,D]);if(c.useEffect(()=>{$&&D&&h(me=>{if(me.has($.id))return me;const Q=new Set(me);return Q.add($.id),Q})},[$,D]),c.useEffect(()=>{_(D&&M?"ws":"org")},[D,M==null?void 0:M.id]),c.useEffect(()=>{if(!r)return;let me=null;const Q=setTimeout(()=>{const ce=ne=>{var ue,de;const q=ne.target;(ue=d.current)!=null&&ue.contains(q)||(de=u.current)!=null&&de.contains(q)||(a(!1),E(null))};document.addEventListener("mousedown",ce),me=()=>document.removeEventListener("mousedown",ce)},50);return()=>{clearTimeout(Q),me==null||me()}},[r]),c.useEffect(()=>{if(!w)return;const me=setTimeout(()=>E(null),5e3);return()=>clearTimeout(me)},[w]),!G)return null;const ie=me=>me.split(" ").map(Q=>Q[0]).join("").toUpperCase().slice(0,2),he=me=>{s(!0),O(me).finally(()=>s(!1))},ee=me=>{s(!0),I(me).finally(()=>s(!1))},xe=me=>{h(Q=>{const ce=new Set(Q);return ce.has(me)?ce.delete(me):ce.add(me),ce})},te=!!((Te=H==null?void 0:H.eligibility_restriction)!=null&&Te.type)&&H.eligibility_restriction.type!=="none";return!!!P||y||D&&Z?t.jsx(fe,{children:t.jsx(Yc,{children:t.jsxs(xx,{children:[t.jsx(cn,{w:"20px",h:"20px",r:"5px"}),t.jsx(cn,{w:"120px",h:"12px"})]})})}):t.jsx(fe,{children:t.jsxs(Yc,{children:[t.jsxs(dx,{ref:d,onClick:()=>{a(!r),r||E(null)},disabled:o,children:[t.jsx(ux,{$personal:J.isPersonal,children:J.image_url?t.jsx("img",{src:J.image_url,alt:J.name}):J.isPersonal?t.jsx(Aa,{size:11}):ie(J.name)}),t.jsx(px,{children:J.name}),t.jsx(yf,{size:13,color:"var(--color-secondary-text)"})]}),typeof window<"u"&&An.createPortal(t.jsx(fe,{children:t.jsxs(hx,{ref:u,$isOpen:r,$position:f,children:[(()=>{const me=D&&!!M,Q=!!$&&!te&&Ds(H),ce=me&&!te&&Us(R),ne=()=>{m.open(),a(!1)},q=()=>{x.open(),a(!1)},ue=async()=>{if(F){S("org"),E(null);try{await F(),await L(),a(!1)}catch(Oe){E(Oe instanceof Error?Oe.message:"Failed to leave organization")}finally{S(null)}}},de=async()=>{if(A){S("ws"),E(null);try{await A(),a(!1)}catch(Oe){E(Oe instanceof Error?Oe.message:"Failed to leave workspace")}finally{S(null)}}};if(Y)return null;const K=me,pe=K?C:"org",qe=()=>{if(!K)return null;const Oe=pe==="org"?"ws":"org",Ke=Oe==="ws"?"Switch to workspace context":"Switch to organization context";return t.jsx(gx,{type:"button",onClick:()=>_(Oe),title:Ke,"aria-label":Ke,children:t.jsx(pd,{size:12})})};return t.jsxs(mx,{children:[pe==="org"&&$&&t.jsxs(Qc,{children:[qe(),t.jsx(Jc,{children:$.image_url?t.jsx("img",{src:$.image_url,alt:$.name}):ie($.name)}),t.jsx(Xc,{children:t.jsx(el,{children:$.name})}),t.jsxs(tl,{children:[Q&&t.jsx(sn,{onClick:ne,title:"Organization settings","aria-label":"Organization settings",children:t.jsx(zr,{size:14})}),t.jsx(sn,{$destructive:!0,onClick:ue,disabled:j==="org",title:"Leave organization","aria-label":"Leave organization",children:t.jsx($r,{size:14})})]})]}),pe==="ws"&&me&&t.jsxs(Qc,{children:[qe(),t.jsx(Jc,{children:M.image_url?t.jsx("img",{src:M.image_url,alt:M.name}):ie(M.name)}),t.jsx(Xc,{children:t.jsx(el,{children:M.name})}),t.jsxs(tl,{children:[ce&&t.jsx(sn,{onClick:q,title:"Workspace settings","aria-label":"Workspace settings",children:t.jsx(zr,{size:14})}),t.jsx(sn,{$destructive:!0,onClick:de,disabled:j==="ws",title:"Leave workspace","aria-label":"Leave workspace",children:t.jsx($r,{size:14})})]})]})]})})(),w&&t.jsxs(bx,{children:[t.jsx(Mr,{size:13}),w]}),t.jsx(fx,{children:y||Z?t.jsx(t.Fragment,{children:[1,2,3].map(me=>t.jsxs(wx,{children:[t.jsx(cn,{w:"22px",h:"22px",r:"5px"}),t.jsx(cn,{w:me===2?"60%":"80%",h:"11px"})]},me))}):t.jsxs(t.Fragment,{children:[e&&t.jsxs(rl,{$active:Y,onClick:()=>{Y||he()},disabled:o||Y,children:[t.jsx(nl,{$personal:!0,children:(Ge=(Ue=P==null?void 0:P.active_signin)==null?void 0:Ue.user)!=null&&Ge.profile_picture_url?t.jsx("img",{src:P.active_signin.user.profile_picture_url,alt:"Personal"}):t.jsx(Aa,{size:12})}),t.jsx(ms,{children:"Personal account"}),Y&&t.jsx($o,{children:t.jsx("span",{className:"row-check",style:{display:"inline-flex"},children:t.jsx(Mo,{size:13})})})]}),k==null?void 0:k.map(me=>{var de,K;const Q=me.organization,ce=Q.id===($==null?void 0:$.id),ne=i.has(Q.id),q=D?(z==null?void 0:z.filter(pe=>pe.organization.id===Q.id))||[]:[],ue=!!((de=me.eligibility_restriction)!=null&&de.type)&&me.eligibility_restriction.type!=="none";return t.jsxs(c.Fragment,{children:[t.jsxs(rl,{$active:ce,onClick:()=>{ue||(D?xe(Q.id):ce||he(Q.id))},disabled:o,style:ue?{opacity:.55,cursor:"not-allowed"}:ce&&!D?{cursor:"default"}:void 0,title:(K=me.eligibility_restriction)==null?void 0:K.message,children:[t.jsx(nl,{children:Q.image_url?t.jsx("img",{src:Q.image_url,alt:Q.name}):ie(Q.name)}),t.jsx(ms,{children:Q.name}),t.jsxs($o,{children:[ue&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),ce&&!D&&t.jsx(Mo,{size:13}),D&&t.jsx(vx,{size:11,$open:ne})]})]}),D&&ne&&t.jsxs(t.Fragment,{children:[q.map(pe=>{var Ke,ht;const qe=ce&&(M==null?void 0:M.id)===pe.id,Oe=((Ke=pe.eligibility_restriction)==null?void 0:Ke.type)&&pe.eligibility_restriction.type!=="none";return t.jsxs(al,{$active:qe,onClick:()=>{!qe&&!Oe&&ee(pe.id)},disabled:o,style:Oe||ue?{opacity:.55,cursor:"not-allowed"}:qe?{cursor:"default"}:void 0,title:(ht=pe.eligibility_restriction)==null?void 0:ht.message,children:[t.jsx(ol,{children:pe.image_url?t.jsx("img",{src:pe.image_url,alt:pe.name}):ie(pe.name).charAt(0)}),t.jsx(sl,{children:pe.name}),t.jsxs($o,{children:[Oe&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),qe&&t.jsx(Mo,{size:12})]})]},pe.id)}),!ue&&t.jsxs(al,{onClick:()=>{v(Q.id),g.open()},disabled:o,children:[t.jsx(ol,{style:{background:"transparent",border:"1px dashed var(--color-border)"},children:t.jsx(kt,{size:10})}),t.jsx(sl,{children:"New workspace"})]})]})]},Q.id)})]})}),D?t.jsx(il,{children:t.jsxs(cl,{onClick:()=>{v($&&!te?$.id:null),g.open()},disabled:o||!$||te,children:[t.jsx(ll,{children:t.jsx(kt,{size:12})}),"New workspace"]})}):W&&t.jsx(il,{children:t.jsxs(cl,{onClick:()=>p.open(),disabled:o,children:[t.jsx(ll,{children:t.jsx(kt,{size:12})}),"New organization"]})})]})}),document.body),G&&W&&t.jsx(D1,{isOpen:p.isOpen,onClose:p.close,onCreated:L}),t.jsx(G1,{isOpen:m.isOpen,onClose:m.close}),D&&t.jsxs(t.Fragment,{children:[t.jsx(Hs,{isOpen:x.isOpen,onClose:x.close}),t.jsx(Zs,{isOpen:g.isOpen,onClose:()=>{g.close(),v(null)},organizationId:b||void 0})]})]})})},au=c.createContext(void 0),Xt=()=>{const e=c.useContext(au);if(!e)throw new Error("useScreenContext must be used within a ScreenProvider");return e},yx=gt`
|
|
4782
4782
|
0% { transform: rotate(0deg); }
|
|
4783
4783
|
100% { transform: rotate(360deg); }
|
|
4784
4784
|
`,jx=l.div`
|
|
@@ -4982,7 +4982,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4982
4982
|
width: 100%;
|
|
4983
4983
|
}
|
|
4984
4984
|
}
|
|
4985
|
-
`,
|
|
4985
|
+
`,Bs=l.div`
|
|
4986
4986
|
display: block;
|
|
4987
4987
|
overflow-x: auto;
|
|
4988
4988
|
-webkit-overflow-scrolling: touch;
|
|
@@ -5330,7 +5330,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5330
5330
|
color: var(--color-secondary-text);
|
|
5331
5331
|
text-transform: uppercase;
|
|
5332
5332
|
letter-spacing: 0.07em;
|
|
5333
|
-
`;const Zx=()=>{var M,
|
|
5333
|
+
`;const Zx=()=>{var M,R;const{deployment:e}=Se(),{refetch:r}=at(),{user:a,updateProfile:o,deleteAccount:s}=dr(),{toast:i}=Xt(),[h,d]=c.useState(""),[u,f]=c.useState(""),[p,m]=c.useState(""),[g,x]=c.useState(!1),[b,v]=c.useState(!1),[w,E]=c.useState(!1),[j,S]=c.useState("");c.useEffect(()=>{a&&!g&&(d(a.first_name||""),f(a.last_name||""),m(a.username||""),x(!0))},[a,g]);const C=c.useCallback(async()=>{if(a)try{const A={};h!==a.first_name&&(A.first_name=h),u!==a.last_name&&(A.last_name=u),p!==a.username&&(A.username=p),Object.keys(A).length>0&&await o(A)}catch(A){i(A.message||"Failed to save profile changes","error")}},[a,o,h,u,p,i]),_=A=>{d(A.target.value)},k=A=>{f(A.target.value)},y=A=>{m(A.target.value)},L=()=>{C()},$=()=>{C()},H=()=>{C()};if(!a)return t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--size-20u) 0"},children:t.jsx(Ee,{})});const F=async()=>{if(!(!a||j!=="delete this account")){E(!0);try{await s(""),i("Account deleted successfully","info"),await r()}catch(A){i(A.message||"Failed to delete account","error")}finally{E(!1),S(""),v(!1)}}};return t.jsx(t.Fragment,{children:t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-12u)"},children:[t.jsxs("div",{children:[t.jsx("div",{style:{marginBottom:"var(--space-6u)"},children:t.jsx("p",{style:{fontSize:"var(--font-size-md)",color:"var(--color-secondary-text)",margin:0},children:"Basic information about your profile"})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-8u)"},children:[t.jsxs($x,{children:[t.jsxs(ke,{style:{flex:1},children:[t.jsx(be,{htmlFor:"firstName",children:"First Name"}),t.jsx(le,{id:"firstName",type:"text",value:h,onChange:_,onBlur:L,placeholder:"Enter your first name",required:!0})]}),t.jsxs(ke,{style:{flex:1},children:[t.jsx(be,{htmlFor:"lastName",children:"Last Name"}),t.jsx(le,{id:"lastName",type:"text",value:u,onChange:k,onBlur:$,placeholder:"Enter your last name",required:!0})]})]}),((R=(M=e==null?void 0:e.auth_settings)==null?void 0:M.username)==null?void 0:R.enabled)&&t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"username",children:"Username"}),t.jsx(le,{id:"username",type:"text",value:p,onChange:y,onBlur:H,placeholder:"Enter your username",required:!0})]})]})]}),t.jsx("div",{style:{position:"relative",height:"var(--border-width-thin)",background:"var(--color-divider)",margin:"0"}}),t.jsxs("div",{children:[t.jsxs("div",{style:{marginBottom:"var(--space-8u)"},children:[t.jsx("h3",{style:{fontSize:"var(--font-size-xl)",color:"var(--color-foreground)",margin:"0 0 var(--space-2u) 0"},children:"Danger Zone"}),t.jsx("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-muted)",margin:0},children:"Irreversible and destructive actions"})]}),t.jsxs("div",{style:{padding:"var(--space-10u)",border:"var(--border-width-thin) solid var(--color-error)",borderRadius:"var(--radius-md)"},children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:b?"var(--space-10u)":"0"},children:[t.jsxs("div",{children:[t.jsx("div",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-foreground)",marginBottom:"var(--space-2u)",fontWeight:"500"},children:"Delete Account"}),t.jsx("div",{style:{fontSize:"var(--font-size-md)",color:"var(--color-muted)"},children:"Once you delete your account, there is no going back. Please be certain."})]}),t.jsx(N,{onClick:()=>{b?(v(!1),S("")):v(!0)},style:{background:"var(--color-error)",color:"var(--color-foreground-inverse)",border:"none",padding:"var(--space-3u) var(--space-6u)",fontSize:"var(--font-size-md)",height:"calc(var(--size-8u) * 2)",width:"auto"},children:b?"Cancel":"Delete"})]}),b&&t.jsxs("div",{style:{width:"100%",marginTop:"var(--space-8u)"},children:[t.jsxs(ke,{children:[t.jsx(be,{htmlFor:"confirm_username",children:'Type "delete this account" to confirm'}),t.jsx(le,{id:"confirm_username",type:"text",value:j,onChange:A=>S(A.target.value),placeholder:"delete this account",style:{width:"100%"}})]}),t.jsx(N,{onClick:F,disabled:j!=="delete this account"||w,style:{background:j==="delete this account"?"var(--color-error)":"transparent",color:j==="delete this account"?"var(--color-foreground-inverse)":"var(--color-muted)",border:"var(--border-width-thin) solid var(--color-border)",padding:"var(--space-4u) var(--space-8u)",fontSize:"var(--font-size-lg)",height:"var(--size-18u)",cursor:j==="delete this account"?"pointer":"not-allowed",opacity:j==="delete this account"?1:.6,marginTop:"var(--space-6u)",width:"100%"},children:w?t.jsx(Ee,{size:12}):"Delete Forever"})]})]})]})]})})},Ix=l.div`
|
|
5334
5334
|
position: fixed;
|
|
5335
5335
|
background: var(--color-popover);
|
|
5336
5336
|
border-radius: 10px;
|
|
@@ -5348,12 +5348,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5348
5348
|
@media (max-width: 600px) {
|
|
5349
5349
|
width: calc(100vw - 24px);
|
|
5350
5350
|
}
|
|
5351
|
-
`,
|
|
5351
|
+
`,dl=l.div`
|
|
5352
5352
|
display: flex;
|
|
5353
5353
|
align-items: center;
|
|
5354
5354
|
justify-content: space-between;
|
|
5355
5355
|
gap: 8px;
|
|
5356
|
-
`,
|
|
5356
|
+
`,ul=l.div`
|
|
5357
5357
|
font-size: 13px;
|
|
5358
5358
|
font-weight: 600;
|
|
5359
5359
|
color: var(--color-popover-foreground);
|
|
@@ -5379,12 +5379,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5379
5379
|
color: var(--color-popover-foreground);
|
|
5380
5380
|
font-weight: 500;
|
|
5381
5381
|
}
|
|
5382
|
-
`,
|
|
5382
|
+
`,pl=l.div`
|
|
5383
5383
|
display: grid;
|
|
5384
5384
|
grid-template-columns: 1fr 1fr;
|
|
5385
5385
|
gap: 6px;
|
|
5386
5386
|
& > button { width: 100%; }
|
|
5387
|
-
`,
|
|
5387
|
+
`,hl=({onClose:e,onAddEmail:r,onAttemptVerification:a,onPrepareVerification:o,existingEmail:s,triggerRef:i})=>{const h=c.useRef(null),[d,u]=c.useState(!1),{toast:f}=Xt(),p=wt({triggerRef:i??{current:null},isOpen:d,minWidth:340,defaultMaxHeight:360});c.useEffect(()=>{u(!0);const _=y=>{h.current&&!h.current.contains(y.target)&&e()},k=y=>{y.key==="Escape"&&e()};return document.addEventListener("mousedown",_),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",_),document.removeEventListener("keydown",k)}},[e]);const[m,g]=c.useState(s?"otp":"email"),[x,b]=c.useState(s||""),[v,w]=c.useState(""),[E,j]=c.useState(!1),S=async()=>{if(!(!x||E)){j(!0);try{await r(x),g("otp")}catch(_){f(_.message||"Failed to add email. Please try again.","error")}finally{j(!1)}}},C=async()=>{j(!0);try{await a(v),e()}catch(_){f(_.message||"Failed to verify email. Check the code and try again.","error")}finally{j(!1)}};return d?t.jsx(Ix,{ref:h,style:{top:(p==null?void 0:p.top)!==void 0?`${p.top}px`:void 0,bottom:(p==null?void 0:p.bottom)!==void 0?`${p.bottom}px`:void 0,left:(p==null?void 0:p.left)!==void 0?`${p.left}px`:void 0,right:(p==null?void 0:p.right)!==void 0?`${p.right}px`:void 0,visibility:p?"visible":"hidden"},onClick:_=>_.stopPropagation(),children:m==="email"?t.jsxs(t.Fragment,{children:[t.jsx(dl,{children:t.jsx(ul,{children:"Add email address"})}),t.jsx(le,{id:"email-input",type:"email",placeholder:"you@company.com",value:x,onChange:_=>b(_.target.value),onKeyDown:_=>{_.key==="Enter"&&S()},autoFocus:!0}),t.jsxs(pl,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:S,disabled:!x||E,children:E?"Sending…":"Send code"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(dl,{children:s?t.jsx("span",{}):t.jsxs(Ox,{onClick:()=>g("email"),children:[t.jsx(sa,{size:11})," Back"]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx(ul,{children:"Verify your email"}),t.jsxs(Hx,{children:["Enter the 6-digit code sent to ",t.jsx("strong",{children:x})]})]}),t.jsx(pr,{onComplete:async _=>w(_),onResend:o,isSubmitting:E}),t.jsxs(pl,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:C,disabled:v.length<6||E,children:E?"Verifying…":"Verify"})]})]})}):null},Vx=l.div`
|
|
5388
5388
|
display: flex;
|
|
5389
5389
|
align-items: center;
|
|
5390
5390
|
gap: 6px;
|
|
@@ -5395,7 +5395,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5395
5395
|
`,Dx=l.span`
|
|
5396
5396
|
font-size: 12px;
|
|
5397
5397
|
color: var(--color-secondary-text);
|
|
5398
|
-
`,Nx=()=>{var
|
|
5398
|
+
`,Nx=()=>{var $,H,F,M;const{deployment:e}=Se(),{toast:r}=Xt(),[a,o]=c.useState(""),[s,i]=c.useState(!1),[h,d]=c.useState(null),[u,f]=c.useState(new Set),p=c.useRef(null),m=c.useRef({}),{user:g,createEmailAddress:x,deleteEmailAddress:b,prepareEmailVerification:v,attemptEmailVerification:w,makeEmailPrimary:E}=dr();if(!((H=($=e==null?void 0:e.auth_settings)==null?void 0:$.email_address)!=null&&H.enabled))return null;const j=(R,A)=>{f(z=>{const Z=new Set(z);return A?Z.add(R):Z.delete(R),Z})},S=async R=>{j(R,!0);try{await E(R),await g.refetch(),r("Primary email updated","info")}catch(A){r(A.message||"Failed to update primary email","error")}finally{j(R,!1)}},C=async R=>{if(R===(g==null?void 0:g.primary_email_address_id)){r("Cannot delete primary email. Set another email as primary first.","error");return}j(R,!0);try{await b(R),await g.refetch(),r("Email removed","info")}catch(A){r(A.message||"Failed to delete email address. Please try again.","error")}finally{j(R,!1)}},_=async R=>{j(R,!0);try{await v(R),await g.refetch(),d(R)}catch(A){r(A.message||"Failed to send verification","error")}finally{j(R,!1)}},k=(g==null?void 0:g.user_email_addresses)||[],y=R=>R.id===(g==null?void 0:g.primary_email_address_id)?t.jsx(Jr,{$variant:"success",children:"Primary"}):R.verified?t.jsx(Jr,{$variant:"neutral",children:"Backup"}):t.jsx(Jr,{$variant:"warning",children:"Pending verification"}),L=R=>{const A=R.id===(g==null?void 0:g.primary_email_address_id),z=u.has(R.id);return A?t.jsx(Dx,{children:"Cannot remove"}):t.jsxs(Vx,{children:[R.verified&&t.jsx(N,{$size:"sm",$outline:!0,disabled:z,onClick:()=>S(R.id),children:"Make primary"}),!R.verified&&t.jsx(N,{ref:Z=>{Z&&(m.current[R.id]=Z)},$size:"sm",$outline:!0,disabled:z,onClick:()=>_(R.id),children:"Resend"}),t.jsx(N,{$size:"sm",$destructive:!0,disabled:z,onClick:()=>C(R.id),children:z?t.jsx(Ee,{size:12}):"Remove"})]})};return t.jsxs(t.Fragment,{children:[t.jsxs(ou,{style:{marginBottom:"var(--space-6u)"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:14,fontWeight:500,color:"var(--color-card-foreground)"},children:"Email addresses"}),t.jsx("div",{style:{fontSize:12,color:"var(--color-secondary-text)",marginTop:2},children:"Sign in and receive notifications at these addresses."})]}),t.jsxs("div",{style:{position:"relative",flexShrink:0},children:[t.jsx(N,{ref:p,$size:"sm",onClick:()=>i(!0),children:"Add email"}),s&&t.jsx(hl,{triggerRef:p,onClose:()=>i(!1),onAddEmail:async R=>{const A=await x(R);o(A.data.id),await v(A.data.id),g.refetch()},onPrepareVerification:async()=>{await v(a),g.refetch()},onAttemptVerification:async R=>{await w(a,R),g.refetch(),i(!1),o(""),r("Email added and verified","info")}})]})]}),k.length?t.jsx(t.Fragment,{children:t.jsx(Bs,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Email address"}),t.jsx(Ie,{children:"Status"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:k.map(R=>t.jsxs(lt,{children:[t.jsx(Ye,{children:R.email}),t.jsx(Ye,{children:y(R)}),t.jsx(Bt,{children:L(R)})]},R.id))})]})})}):t.jsx(At,{title:"No email addresses",description:"Add an email address to get started."}),h&&t.jsx(hl,{existingEmail:(M=(F=g==null?void 0:g.user_email_addresses)==null?void 0:F.find(R=>R.id===h))==null?void 0:M.email,triggerRef:{current:m.current[h]},onClose:()=>d(null),onAddEmail:async()=>{},onPrepareVerification:async()=>{await v(h),g.refetch()},onAttemptVerification:async R=>{await w(h,R),g.refetch(),d(null),r("Email verified","info")}})]})},Ux=l.div`
|
|
5399
5399
|
position: fixed;
|
|
5400
5400
|
background: var(--color-popover);
|
|
5401
5401
|
border-radius: 10px;
|
|
@@ -5413,12 +5413,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5413
5413
|
@media (max-width: 600px) {
|
|
5414
5414
|
width: calc(100vw - 24px);
|
|
5415
5415
|
}
|
|
5416
|
-
`,
|
|
5416
|
+
`,fl=l.div`
|
|
5417
5417
|
display: flex;
|
|
5418
5418
|
align-items: center;
|
|
5419
5419
|
justify-content: space-between;
|
|
5420
5420
|
gap: 8px;
|
|
5421
|
-
`,
|
|
5421
|
+
`,ml=l.div`
|
|
5422
5422
|
font-size: 13px;
|
|
5423
5423
|
font-weight: 600;
|
|
5424
5424
|
color: var(--color-popover-foreground);
|
|
@@ -5444,12 +5444,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5444
5444
|
color: var(--color-popover-foreground);
|
|
5445
5445
|
font-weight: 500;
|
|
5446
5446
|
}
|
|
5447
|
-
`,
|
|
5447
|
+
`,gl=l.div`
|
|
5448
5448
|
display: grid;
|
|
5449
5449
|
grid-template-columns: 1fr 1fr;
|
|
5450
5450
|
gap: 6px;
|
|
5451
5451
|
& > button { width: 100%; }
|
|
5452
|
-
`,
|
|
5452
|
+
`,vl=({onClose:e,onAddPhone:r,onAttemptVerification:a,existingPhone:o,onPrepareVerification:s,triggerRef:i})=>{var y;const h=c.useRef(null),[d,u]=c.useState(!1),{toast:f}=Xt(),p=wt({triggerRef:i??{current:null},isOpen:d,minWidth:340,defaultMaxHeight:360});c.useEffect(()=>{u(!0);const L=H=>{h.current&&!h.current.contains(H.target)&&e()},$=H=>{H.key==="Escape"&&e()};return document.addEventListener("mousedown",L),document.addEventListener("keydown",$),()=>{document.removeEventListener("mousedown",L),document.removeEventListener("keydown",$)}},[e]);const[m,g]=c.useState(o?"otp":"phone"),[x,b]=c.useState((o==null?void 0:o.replace(/^\+\d+/,""))||""),[v,w]=c.useState((y=Intl.DateTimeFormat().resolvedOptions().locale.split("-"))==null?void 0:y.pop()),[E,j]=c.useState(""),[S,C]=c.useState(!1),_=async()=>{if(!(!x||S)){C(!0);try{await r(x,v||""),g("otp")}catch(L){f(L.message||"Failed to add phone number. Please try again.","error")}finally{C(!1)}}},k=async()=>{C(!0);try{await a(E),e()}catch(L){f(L.message||"Failed to verify phone. Check the code and try again.","error")}finally{C(!1)}};return d?t.jsx(Ux,{ref:h,style:{top:(p==null?void 0:p.top)!==void 0?`${p.top}px`:void 0,bottom:(p==null?void 0:p.bottom)!==void 0?`${p.bottom}px`:void 0,left:(p==null?void 0:p.left)!==void 0?`${p.left}px`:void 0,right:(p==null?void 0:p.right)!==void 0?`${p.right}px`:void 0,visibility:p?"visible":"hidden"},onClick:L=>L.stopPropagation(),children:m==="phone"?t.jsxs(t.Fragment,{children:[t.jsx(fl,{children:t.jsx(ml,{children:"Add phone number"})}),t.jsx(Ma,{value:x,onChange:L=>b(L.target.value),error:"",countryCode:v,setCountryCode:w}),t.jsxs(gl,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:_,disabled:!x||S,children:S?"Sending…":"Send code"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(fl,{children:o?t.jsx("span",{}):t.jsxs(Bx,{onClick:()=>g("phone"),children:[t.jsx(sa,{size:11})," Back"]})}),t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsx(ml,{children:"Verify phone number"}),t.jsxs(Wx,{children:["Enter the 6-digit code sent to ",t.jsx("strong",{children:o||x})]})]}),t.jsx(pr,{onComplete:L=>j(L),onResend:async()=>s(),isSubmitting:S}),t.jsxs(gl,{children:[t.jsx(N,{$size:"sm",$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{$size:"sm",onClick:k,disabled:E.length!==6||S,children:S?"Verifying…":"Verify"})]})]})}):null},Gx=l.div`
|
|
5453
5453
|
display: flex;
|
|
5454
5454
|
align-items: center;
|
|
5455
5455
|
gap: 6px;
|
|
@@ -5467,7 +5467,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5467
5467
|
font-size: 13px;
|
|
5468
5468
|
& .flag { font-size: 14px; line-height: 1; }
|
|
5469
5469
|
& .code { color: var(--color-secondary-text); }
|
|
5470
|
-
`,Yx=()=>{var
|
|
5470
|
+
`,Yx=()=>{var H,F,M,R;const{deployment:e}=Se(),{toast:r}=Xt(),[a,o]=c.useState(""),[s,i]=c.useState(!1),[h,d]=c.useState(null),[u,f]=c.useState(new Set),p=c.useRef(null),m=c.useRef({}),{user:g,createPhoneNumber:x,deletePhoneNumber:b,preparePhoneVerification:v,attemptPhoneVerification:w,makePhonePrimary:E}=dr();if(!((F=(H=e==null?void 0:e.auth_settings)==null?void 0:H.phone_number)!=null&&F.enabled))return null;const j=(A,z)=>{f(Z=>{const P=new Set(Z);return z?P.add(A):P.delete(A),P})},S=A=>{const z=bn.find(Z=>Z.dialCode===A);return(z==null?void 0:z.flag)||"🌍"},C=async A=>{j(A,!0);try{await E(A),await g.refetch(),r("Primary phone updated","info")}catch(z){r(z.message||"Failed to update primary phone","error")}finally{j(A,!1)}},_=async A=>{if(A===(g==null?void 0:g.primary_phone_number_id)){r("Cannot delete primary phone. Set another phone as primary first.","error");return}j(A,!0);try{await b(A),await g.refetch(),r("Phone removed","info")}catch(z){r(z.message||"Failed to delete phone. Please try again.","error")}finally{j(A,!1)}},k=async A=>{j(A,!0);try{await v(A),await g.refetch(),d(A)}catch(z){r(z.message||"Failed to send verification","error")}finally{j(A,!1)}},y=(g==null?void 0:g.user_phone_numbers)||[],L=A=>A.id===(g==null?void 0:g.primary_phone_number_id)?t.jsx(Jr,{$variant:"success",children:"Primary"}):A.verified?t.jsx(Jr,{$variant:"neutral",children:"Backup"}):t.jsx(Jr,{$variant:"warning",children:"Pending verification"}),$=A=>{const z=A.id===(g==null?void 0:g.primary_phone_number_id),Z=u.has(A.id);return z?t.jsx(qx,{children:"Cannot remove"}):t.jsxs(Gx,{children:[A.verified&&t.jsx(N,{$size:"sm",$outline:!0,disabled:Z,onClick:()=>C(A.id),children:"Make primary"}),!A.verified&&t.jsx(N,{ref:P=>{P&&(m.current[A.id]=P)},$size:"sm",$outline:!0,disabled:Z,onClick:()=>k(A.id),children:"Resend"}),t.jsx(N,{$size:"sm",$destructive:!0,disabled:Z,onClick:()=>_(A.id),children:Z?t.jsx(Ee,{size:12}):"Remove"})]})};return t.jsxs(t.Fragment,{children:[t.jsxs(ou,{style:{marginBottom:"var(--space-6u)"},children:[t.jsxs("div",{style:{flex:1,minWidth:0},children:[t.jsx("div",{style:{fontSize:14,fontWeight:500,color:"var(--color-card-foreground)"},children:"Phone numbers"}),t.jsx("div",{style:{fontSize:12,color:"var(--color-secondary-text)",marginTop:2},children:"Used for sign-in and two-factor authentication."})]}),t.jsxs("div",{style:{position:"relative",flexShrink:0},children:[t.jsx(N,{ref:p,$size:"sm",onClick:()=>i(!0),children:"Add phone"}),s&&t.jsx(vl,{triggerRef:p,onClose:()=>i(!1),onAddPhone:async(A,z)=>{const Z=await x(A,z);o(Z.data.id),await v(Z.data.id)},onPrepareVerification:async()=>{await v(a),g.refetch()},onAttemptVerification:async A=>{await w(a,A),g.refetch(),i(!1),o(""),r("Phone added and verified","info")}}),h&&t.jsx(vl,{existingPhone:(R=(M=g==null?void 0:g.user_phone_numbers)==null?void 0:M.find(A=>A.id===h))==null?void 0:R.phone_number,triggerRef:{current:m.current[h]},onClose:()=>d(null),onAddPhone:async()=>{},onPrepareVerification:async()=>{await v(h),g.refetch()},onAttemptVerification:async A=>{await w(h,A),g.refetch(),d(null),r("Phone verified","info")}})]})]}),y.length?t.jsx(t.Fragment,{children:t.jsx(Bs,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Phone number"}),t.jsx(Ie,{children:"Status"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:y.map(A=>t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs(Kx,{children:[t.jsx("span",{className:"flag",children:S(A.country_code)}),t.jsx("span",{className:"code",children:A.country_code}),t.jsx("span",{children:A.phone_number})]})}),t.jsx(Ye,{children:L(A)}),t.jsx(Bt,{children:$(A)})]},A.id))})]})})}):t.jsx(At,{title:"No phone numbers",description:"Add a phone number to get started."})]})},Qx=e=>t.jsxs("svg",{width:"800px",height:"800px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"none",...e,children:[t.jsx("path",{fill:"#F35325",d:"M1 1h6.5v6.5H1V1z"}),t.jsx("path",{fill:"#81BC06",d:"M8.5 1H15v6.5H8.5V1z"}),t.jsx("path",{fill:"#05A6F0",d:"M1 8.5h6.5V15H1V8.5z"}),t.jsx("path",{fill:"#FFBA08",d:"M8.5 8.5H15V15H8.5V8.5z"})]}),Jx={google_oauth:{icon:t.jsx(u1,{}),label:"Google"},microsoft_oauth:{icon:t.jsx(Qx,{}),label:"Microsoft"},github_oauth:{icon:t.jsx(d1,{}),label:"GitHub"},gitlab_oauth:{icon:t.jsx(f1,{}),label:"GitLab"},linkedin_oauth:{icon:t.jsx(h1,{}),label:"LinkedIn"},discord_oauth:{icon:t.jsx(m1,{}),label:"Discord"},x_oauth:{icon:t.jsx(p1,{}),label:"X"}},Xx=l.div`
|
|
5471
5471
|
display: flex;
|
|
5472
5472
|
align-items: center;
|
|
5473
5473
|
gap: var(--space-4u);
|
|
@@ -5582,7 +5582,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5582
5582
|
width: 100%;
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
5585
|
-
`,f5=()=>{const{user:e,disconnectSocialConnection:r,connectSocialAccount:a}=dr(),{deployment:o}=Se(),s=(o==null?void 0:o.social_connections.filter(d=>d.enabled))||[],i=d=>{a({provider:d,redirectUri:window.location.href})},h=async d=>{await r(d.toString()),e.refetch()};return s.length===0?t.jsx(At,{title:"No providers available",description:"Social sign-in providers have not been configured for this app."}):t.jsxs(t.Fragment,{children:[t.jsx(Xx,{children:t.jsxs(e5,{children:[t.jsx(t5,{children:"Connected accounts"}),t.jsx(r5,{children:"Sign in faster by linking third-party accounts."})]})}),t.jsx(a5,{children:s.map(d=>{var m;const u=Jx[d.provider];if(!u)return null;const f=((m=e==null?void 0:e.social_connections)==null?void 0:m.filter(g=>g.provider===d.provider))||[],p=f.length>0;return t.jsxs(n5,{children:[t.jsx(o5,{children:u.icon}),t.jsxs(s5,{children:[t.jsx(i5,{children:u.label}),p?t.jsx(c5,{children:f.map(g=>t.jsxs(l5,{children:[t.jsx(d5,{children:g.email_address}),t.jsx(u5,{onClick:()=>h(g.id),title:"Remove connection","aria-label":"Remove connection",children:t.jsx(
|
|
5585
|
+
`,f5=()=>{const{user:e,disconnectSocialConnection:r,connectSocialAccount:a}=dr(),{deployment:o}=Se(),s=(o==null?void 0:o.social_connections.filter(d=>d.enabled))||[],i=d=>{a({provider:d,redirectUri:window.location.href})},h=async d=>{await r(d.toString()),e.refetch()};return s.length===0?t.jsx(At,{title:"No providers available",description:"Social sign-in providers have not been configured for this app."}):t.jsxs(t.Fragment,{children:[t.jsx(Xx,{children:t.jsxs(e5,{children:[t.jsx(t5,{children:"Connected accounts"}),t.jsx(r5,{children:"Sign in faster by linking third-party accounts."})]})}),t.jsx(a5,{children:s.map(d=>{var m;const u=Jx[d.provider];if(!u)return null;const f=((m=e==null?void 0:e.social_connections)==null?void 0:m.filter(g=>g.provider===d.provider))||[],p=f.length>0;return t.jsxs(n5,{children:[t.jsx(o5,{children:u.icon}),t.jsxs(s5,{children:[t.jsx(i5,{children:u.label}),p?t.jsx(c5,{children:f.map(g=>t.jsxs(l5,{children:[t.jsx(d5,{children:g.email_address}),t.jsx(u5,{onClick:()=>h(g.id),title:"Remove connection","aria-label":"Remove connection",children:t.jsx(Ls,{size:10,weight:"bold"})})]},g.id))}):t.jsx(p5,{children:"Not linked"})]}),t.jsx(h5,{children:t.jsx(N,{$size:"sm",$outline:!0,onClick:()=>i(d.provider),children:p?"Link another":"Link"})})]},d.provider)})})]})};var m5=Object.defineProperty,En=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,xl=(e,r,a)=>r in e?m5(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,gs=(e,r)=>{for(var a in r||(r={}))su.call(r,a)&&xl(e,a,r[a]);if(En)for(var a of En(r))iu.call(r,a)&&xl(e,a,r[a]);return e},vs=(e,r)=>{var a={};for(var o in e)su.call(e,o)&&r.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&En)for(var o of En(e))r.indexOf(o)<0&&iu.call(e,o)&&(a[o]=e[o]);return a};/**
|
|
5586
5586
|
* @license QR Code generator library (TypeScript)
|
|
5587
5587
|
* Copyright (c) Project Nayuki.
|
|
5588
5588
|
* SPDX-License-Identifier: MIT
|
|
@@ -5590,7 +5590,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5590
5590
|
* @license qrcode.react
|
|
5591
5591
|
* Copyright (c) Paul O'Shannessy
|
|
5592
5592
|
* SPDX-License-Identifier: ISC
|
|
5593
|
-
*/var g5={L:Kr.QrCode.Ecc.LOW,M:Kr.QrCode.Ecc.MEDIUM,Q:Kr.QrCode.Ecc.QUARTILE,H:Kr.QrCode.Ecc.HIGH},cu=128,lu="L",du="#FFFFFF",uu="#000000",pu=!1,hu=1,v5=4,x5=0,w5=.1;function fu(e,r=0){const a=[];return e.forEach(function(o,s){let i=null;o.forEach(function(h,d){if(!h&&i!==null){a.push(`M${i+r} ${s+r}h${d-i}v1H${i+r}z`),i=null;return}if(d===o.length-1){if(!h)return;i===null?a.push(`M${d+r},${s+r} h1v1H${d+r}z`):a.push(`M${i+r},${s+r} h${d+1-i}v1H${i+r}z`);return}h&&i===null&&(i=d)})}),a.join("")}function mu(e,r){return e.slice().map((a,o)=>o<r.y||o>=r.y+r.h?a:a.map((s,i)=>i<r.x||i>=r.x+r.w?s:!1))}function b5(e,r,a,o){if(o==null)return null;const s=e.length+a*2,i=Math.floor(r*w5),h=s/r,d=(o.width||i)*h,u=(o.height||i)*h,f=o.x==null?e.length/2-d/2:o.x*h,p=o.y==null?e.length/2-u/2:o.y*h,m=o.opacity==null?1:o.opacity;let g=null;if(o.excavate){let b=Math.floor(f),v=Math.floor(p),w=Math.ceil(d+f-b),E=Math.ceil(u+p-v);g={x:b,y:v,w,h:E}}const x=o.crossOrigin;return{x:f,y:p,h:u,w:d,excavation:g,opacity:m,crossOrigin:x}}function y5(e,r){return r!=null?Math.max(Math.floor(r),0):e?v5:x5}function gu({value:e,level:r,minVersion:a,includeMargin:o,marginSize:s,imageSettings:i,size:h,boostLevel:d}){let u=c.useMemo(()=>{const b=(Array.isArray(e)?e:[e]).reduce((v,w)=>(v.push(...Kr.QrSegment.makeSegments(w)),v),[]);return Kr.QrCode.encodeSegments(b,g5[r],a,void 0,void 0,d)},[e,r,a,d]);const{cells:f,margin:p,numCells:m,calculatedImageSettings:g}=c.useMemo(()=>{let x=u.getModules();const b=y5(o,s),v=x.length+b*2,w=b5(x,h,b,i);return{cells:x,margin:b,numCells:v,calculatedImageSettings:w}},[u,h,i,o,s]);return{qrcode:u,margin:p,cells:f,numCells:m,calculatedImageSettings:g}}var j5=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),_5=c.forwardRef(function(r,a){const o=r,{value:s,size:i=cu,level:h=lu,bgColor:d=du,fgColor:u=uu,includeMargin:f=pu,minVersion:p=hu,boostLevel:m,marginSize:g,imageSettings:x}=o,v=
|
|
5593
|
+
*/var g5={L:Kr.QrCode.Ecc.LOW,M:Kr.QrCode.Ecc.MEDIUM,Q:Kr.QrCode.Ecc.QUARTILE,H:Kr.QrCode.Ecc.HIGH},cu=128,lu="L",du="#FFFFFF",uu="#000000",pu=!1,hu=1,v5=4,x5=0,w5=.1;function fu(e,r=0){const a=[];return e.forEach(function(o,s){let i=null;o.forEach(function(h,d){if(!h&&i!==null){a.push(`M${i+r} ${s+r}h${d-i}v1H${i+r}z`),i=null;return}if(d===o.length-1){if(!h)return;i===null?a.push(`M${d+r},${s+r} h1v1H${d+r}z`):a.push(`M${i+r},${s+r} h${d+1-i}v1H${i+r}z`);return}h&&i===null&&(i=d)})}),a.join("")}function mu(e,r){return e.slice().map((a,o)=>o<r.y||o>=r.y+r.h?a:a.map((s,i)=>i<r.x||i>=r.x+r.w?s:!1))}function b5(e,r,a,o){if(o==null)return null;const s=e.length+a*2,i=Math.floor(r*w5),h=s/r,d=(o.width||i)*h,u=(o.height||i)*h,f=o.x==null?e.length/2-d/2:o.x*h,p=o.y==null?e.length/2-u/2:o.y*h,m=o.opacity==null?1:o.opacity;let g=null;if(o.excavate){let b=Math.floor(f),v=Math.floor(p),w=Math.ceil(d+f-b),E=Math.ceil(u+p-v);g={x:b,y:v,w,h:E}}const x=o.crossOrigin;return{x:f,y:p,h:u,w:d,excavation:g,opacity:m,crossOrigin:x}}function y5(e,r){return r!=null?Math.max(Math.floor(r),0):e?v5:x5}function gu({value:e,level:r,minVersion:a,includeMargin:o,marginSize:s,imageSettings:i,size:h,boostLevel:d}){let u=c.useMemo(()=>{const b=(Array.isArray(e)?e:[e]).reduce((v,w)=>(v.push(...Kr.QrSegment.makeSegments(w)),v),[]);return Kr.QrCode.encodeSegments(b,g5[r],a,void 0,void 0,d)},[e,r,a,d]);const{cells:f,margin:p,numCells:m,calculatedImageSettings:g}=c.useMemo(()=>{let x=u.getModules();const b=y5(o,s),v=x.length+b*2,w=b5(x,h,b,i);return{cells:x,margin:b,numCells:v,calculatedImageSettings:w}},[u,h,i,o,s]);return{qrcode:u,margin:p,cells:f,numCells:m,calculatedImageSettings:g}}var j5=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),_5=c.forwardRef(function(r,a){const o=r,{value:s,size:i=cu,level:h=lu,bgColor:d=du,fgColor:u=uu,includeMargin:f=pu,minVersion:p=hu,boostLevel:m,marginSize:g,imageSettings:x}=o,v=vs(o,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:w}=v,E=vs(v,["style"]),j=x==null?void 0:x.src,S=c.useRef(null),C=c.useRef(null),_=c.useCallback(A=>{S.current=A,typeof a=="function"?a(A):a&&(a.current=A)},[a]),[k,y]=c.useState(!1),{margin:L,cells:$,numCells:H,calculatedImageSettings:F}=gu({value:s,level:h,minVersion:p,boostLevel:m,includeMargin:f,marginSize:g,imageSettings:x,size:i});c.useEffect(()=>{if(S.current!=null){const A=S.current,z=A.getContext("2d");if(!z)return;let Z=$;const P=C.current,O=F!=null&&P!==null&&P.complete&&P.naturalHeight!==0&&P.naturalWidth!==0;O&&F.excavation!=null&&(Z=mu($,F.excavation));const I=window.devicePixelRatio||1;A.height=A.width=i*I;const T=i/H*I;z.scale(T,T),z.fillStyle=d,z.fillRect(0,0,H,H),z.fillStyle=u,j5?z.fill(new Path2D(fu(Z,L))):$.forEach(function(G,D){G.forEach(function(W,Y){W&&z.fillRect(Y+L,D+L,1,1)})}),F&&(z.globalAlpha=F.opacity),O&&z.drawImage(P,F.x+L,F.y+L,F.w,F.h)}}),c.useEffect(()=>{y(!1)},[j]);const M=gs({height:i,width:i},w);let R=null;return j!=null&&(R=c.createElement("img",{src:j,key:j,style:{display:"none"},onLoad:()=>{y(!0)},ref:C,crossOrigin:F==null?void 0:F.crossOrigin})),c.createElement(c.Fragment,null,c.createElement("canvas",gs({style:M,height:i,width:i,ref:_,role:"img"},E)),R)});_5.displayName="QRCodeCanvas";var Ws=c.forwardRef(function(r,a){const o=r,{value:s,size:i=cu,level:h=lu,bgColor:d=du,fgColor:u=uu,includeMargin:f=pu,minVersion:p=hu,boostLevel:m,title:g,marginSize:x,imageSettings:b}=o,v=vs(o,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:w,cells:E,numCells:j,calculatedImageSettings:S}=gu({value:s,level:h,minVersion:p,boostLevel:m,includeMargin:f,marginSize:x,imageSettings:b,size:i});let C=E,_=null;b!=null&&S!=null&&(S.excavation!=null&&(C=mu(E,S.excavation)),_=c.createElement("image",{href:b.src,height:S.h,width:S.w,x:S.x+w,y:S.y+w,preserveAspectRatio:"none",opacity:S.opacity,crossOrigin:S.crossOrigin}));const k=fu(C,w);return c.createElement("svg",gs({height:i,width:i,viewBox:`0 0 ${j} ${j}`,ref:a,role:"img"},v),!!g&&c.createElement("title",null,g),c.createElement("path",{fill:d,d:`M0,0 h${j}v${j}H0z`,shapeRendering:"crispEdges"}),c.createElement("path",{fill:u,d:k,shapeRendering:"crispEdges"}),_)});Ws.displayName="QRCodeSVG";const k5=l.div`
|
|
5594
5594
|
position: fixed;
|
|
5595
5595
|
background: var(--color-popover);
|
|
5596
5596
|
border-radius: var(--radius-md);
|
|
@@ -5641,7 +5641,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5641
5641
|
color: var(--color-error);
|
|
5642
5642
|
font-size: var(--font-size-sm);
|
|
5643
5643
|
margin-top: var(--space-2u);
|
|
5644
|
-
`,
|
|
5644
|
+
`,wl=({onClose:e,onChangePassword:r,triggerRef:a,isSetup:o=!1})=>{const s=c.useRef(null),[i,h]=c.useState(!1),[d,u]=c.useState(""),[f,p]=c.useState(""),[m,g]=c.useState(""),[x,b]=c.useState(!1),[v,w]=c.useState(!1),[E,j]=c.useState(!1),[S,C]=c.useState(!1),[_,k]=c.useState({}),y=wt({triggerRef:a??{current:null},isOpen:i,minWidth:380,defaultMaxHeight:420});c.useEffect(()=>{h(!0);const $=F=>{s.current&&!s.current.contains(F.target)&&e()},H=F=>{F.key==="Escape"&&e()};return document.addEventListener("mousedown",$),document.addEventListener("keydown",H),()=>{document.removeEventListener("mousedown",$),document.removeEventListener("keydown",H)}},[e]);const L=async()=>{if(S)return;const $={};if(!o&&!d&&($.currentPassword="Current password is required"),f?f.length<8&&($.newPassword="Password must be at least 8 characters"):$.newPassword="New password is required",f!==m&&($.confirmPassword="Passwords do not match"),Object.keys($).length>0){k($);return}C(!0);try{await r(o?"":d,f),e()}catch(H){k({form:H.message||"Failed to update password"})}finally{C(!1)}};return i?t.jsxs(k5,{ref:s,style:{top:(y==null?void 0:y.top)!==void 0?`${y.top}px`:void 0,bottom:(y==null?void 0:y.bottom)!==void 0?`${y.bottom}px`:void 0,left:(y==null?void 0:y.left)!==void 0?`${y.left}px`:void 0,right:(y==null?void 0:y.right)!==void 0?`${y.right}px`:void 0,maxHeight:y!=null&&y.maxHeight?`${y.maxHeight}px`:void 0,visibility:y?"visible":"hidden"},onClick:$=>$.stopPropagation(),children:[t.jsx(S5,{children:o?"Set Password":"Change Password"}),t.jsx("div",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-muted)",marginBottom:"var(--space-8u)"},children:o?"Set a password for your account to enable password authentication.":"Update your account password to keep it secure."}),!o&&t.jsxs(Lo,{children:[t.jsx(be,{children:"Current Password"}),t.jsxs(Ro,{children:[t.jsx(le,{type:x?"text":"password",placeholder:"Enter your current password",value:d,onChange:$=>u($.target.value),style:{paddingRight:"var(--size-20u)"}}),t.jsx("button",{type:"button",onClick:()=>b(!x),"aria-label":x?"Hide current password":"Show current password",children:x?t.jsx(co,{size:16}):t.jsx(io,{size:16})})]}),_.currentPassword&&t.jsx(ln,{children:_.currentPassword})]}),t.jsxs(Lo,{children:[t.jsx(be,{children:o?"Password":"New Password"}),t.jsxs(Ro,{children:[t.jsx(le,{type:v?"text":"password",placeholder:o?"Enter your password":"Enter your new password",value:f,onChange:$=>p($.target.value),style:{paddingRight:"var(--size-20u)"}}),t.jsx("button",{type:"button",onClick:()=>w(!v),"aria-label":v?"Hide new password":"Show new password",children:v?t.jsx(co,{size:16}):t.jsx(io,{size:16})})]}),_.newPassword&&t.jsx(ln,{children:_.newPassword})]}),t.jsxs(Lo,{children:[t.jsx(be,{children:"Confirm New Password"}),t.jsxs(Ro,{children:[t.jsx(le,{type:E?"text":"password",placeholder:"Confirm your new password",value:m,onChange:$=>g($.target.value),style:{paddingRight:"var(--size-20u)"}}),t.jsx("button",{type:"button",onClick:()=>j(!E),"aria-label":E?"Hide confirm password":"Show confirm password",children:E?t.jsx(co,{size:16}):t.jsx(io,{size:16})})]}),_.confirmPassword&&t.jsx(ln,{children:_.confirmPassword})]}),_.form&&t.jsx(ln,{children:_.form}),t.jsxs(C5,{children:[t.jsx(N,{$outline:!0,onClick:e,children:"Cancel"}),t.jsx(N,{onClick:L,disabled:S,children:S?o?"Setting...":"Updating...":o?"Set Password":"Update Password"})]})]}):null},E5=l.div`
|
|
5645
5645
|
position: fixed;
|
|
5646
5646
|
background: var(--color-popover);
|
|
5647
5647
|
border-radius: var(--radius-md);
|
|
@@ -5693,17 +5693,17 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5693
5693
|
@media (max-width: 600px) {
|
|
5694
5694
|
width: calc(100vw - var(--space-24u));
|
|
5695
5695
|
}
|
|
5696
|
-
`,
|
|
5696
|
+
`,bl=l.div`
|
|
5697
5697
|
display: flex;
|
|
5698
5698
|
gap: var(--space-4u);
|
|
5699
5699
|
justify-content: flex-end;
|
|
5700
5700
|
margin-top: var(--space-8u);
|
|
5701
|
-
`,
|
|
5701
|
+
`,yl=l.div`
|
|
5702
5702
|
font-size: var(--font-size-lg);
|
|
5703
5703
|
font-weight: 400;
|
|
5704
5704
|
color: var(--color-popover-foreground);
|
|
5705
5705
|
margin-bottom: var(--space-4u);
|
|
5706
|
-
`,P5=({onClose:e,onSetupTOTP:r,onVerifyTOTP:a,triggerRef:o})=>{const s=c.useRef(null),[i,h]=c.useState("qr"),[d,u]=c.useState(""),[f,p]=c.useState(""),[m,g]=c.useState(["",""]),[x,b]=c.useState(!1),[v,w]=c.useState(!1),{toast:E}=Xt(),j=wt({triggerRef:o??{current:null},isOpen:v,minWidth:380,defaultMaxHeight:460});c.useEffect(()=>{w(!0);const C=k=>{s.current&&!s.current.contains(k.target)&&e()},_=k=>{k.key==="Escape"&&e()};return document.addEventListener("mousedown",C),document.addEventListener("keydown",_),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("keydown",_)}},[e]),c.useEffect(()=>{(async()=>{b(!0);try{const _=await r();u(_.otp_url||""),p(_.totp_secret||"")}catch(_){const k=_.message||"Failed to setup two-factor authentication. Please try again.";E(k,"error")}finally{b(!1)}})()},[]);const S=async()=>{if(!m.some(C=>C.length!==6)){b(!0);try{await a(m),e()}catch(C){const _=C.message||"Failed to verify codes. Please check your authenticator app and try again.";E(_,"error")}finally{b(!1)}}};return v?t.jsx(R5,{ref:s,style:{top:(j==null?void 0:j.top)!==void 0?`${j.top}px`:void 0,bottom:(j==null?void 0:j.bottom)!==void 0?`${j.bottom}px`:void 0,left:(j==null?void 0:j.left)!==void 0?`${j.left}px`:void 0,right:(j==null?void 0:j.right)!==void 0?`${j.right}px`:void 0,maxHeight:j!=null&&j.maxHeight?`${j.maxHeight}px`:void 0,visibility:j?"visible":"hidden"},onClick:C=>C.stopPropagation(),children:i==="qr"?t.jsxs(t.Fragment,{children:[t.jsx(
|
|
5706
|
+
`,P5=({onClose:e,onSetupTOTP:r,onVerifyTOTP:a,triggerRef:o})=>{const s=c.useRef(null),[i,h]=c.useState("qr"),[d,u]=c.useState(""),[f,p]=c.useState(""),[m,g]=c.useState(["",""]),[x,b]=c.useState(!1),[v,w]=c.useState(!1),{toast:E}=Xt(),j=wt({triggerRef:o??{current:null},isOpen:v,minWidth:380,defaultMaxHeight:460});c.useEffect(()=>{w(!0);const C=k=>{s.current&&!s.current.contains(k.target)&&e()},_=k=>{k.key==="Escape"&&e()};return document.addEventListener("mousedown",C),document.addEventListener("keydown",_),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("keydown",_)}},[e]),c.useEffect(()=>{(async()=>{b(!0);try{const _=await r();u(_.otp_url||""),p(_.totp_secret||"")}catch(_){const k=_.message||"Failed to setup two-factor authentication. Please try again.";E(k,"error")}finally{b(!1)}})()},[]);const S=async()=>{if(!m.some(C=>C.length!==6)){b(!0);try{await a(m),e()}catch(C){const _=C.message||"Failed to verify codes. Please check your authenticator app and try again.";E(_,"error")}finally{b(!1)}}};return v?t.jsx(R5,{ref:s,style:{top:(j==null?void 0:j.top)!==void 0?`${j.top}px`:void 0,bottom:(j==null?void 0:j.bottom)!==void 0?`${j.bottom}px`:void 0,left:(j==null?void 0:j.left)!==void 0?`${j.left}px`:void 0,right:(j==null?void 0:j.right)!==void 0?`${j.right}px`:void 0,maxHeight:j!=null&&j.maxHeight?`${j.maxHeight}px`:void 0,visibility:j?"visible":"hidden"},onClick:C=>C.stopPropagation(),children:i==="qr"?t.jsxs(t.Fragment,{children:[t.jsx(yl,{children:"Setup Two-Factor Authentication"}),t.jsx("div",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-muted)",marginBottom:"var(--space-8u)"},children:"Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)"}),t.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:"var(--space-8u)"},children:x?t.jsx("div",{style:{width:"calc(var(--size-50u) + var(--space-24u) + var(--space-1u))",height:"calc(var(--size-50u) + var(--space-24u) + var(--space-1u))",display:"flex",alignItems:"center",justifyContent:"center",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",background:"var(--color-input-background)"},children:"Loading..."}):d?t.jsx("div",{style:{border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-4u)",background:"var(--color-foreground-inverse)"},children:t.jsx(Ws,{value:d,size:150,title:"QR Code for Two-Factor Authentication Setup","aria-label":"Scan this QR code with your authenticator app to set up two-factor authentication"})}):t.jsx("div",{style:{width:"calc(var(--size-50u) + var(--space-24u) + var(--space-1u))",height:"calc(var(--size-50u) + var(--space-24u) + var(--space-1u))",display:"flex",alignItems:"center",justifyContent:"center",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",background:"var(--color-input-background)",color:"var(--color-error)"},children:"QR Code Not Available"})}),f&&t.jsxs("div",{style:{background:"var(--color-input-background)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-4u)",marginBottom:"var(--space-8u)",fontSize:"var(--font-size-sm)"},children:[t.jsx("div",{style:{color:"var(--color-secondary-text)",marginBottom:"var(--space-2u)"},children:"Or enter manually:"}),t.jsx("code",{style:{fontFamily:"monospace",wordBreak:"break-all",color:"var(--color-secondary-text)"},children:f})]}),t.jsx(bl,{children:t.jsx(N,{onClick:()=>h("verify"),disabled:x||!d,children:"I've Scanned the Code"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(yl,{children:"Verify Your Authenticator"}),t.jsx("div",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-muted)",marginBottom:"var(--space-8u)"},children:"Enter two consecutive codes from your authenticator app"}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-4u)",marginBottom:"var(--space-8u)"},children:[t.jsx(le,{id:"totp-code-1",type:"text",placeholder:"000000",value:m[0],onChange:C=>{const _=C.target.value.replace(/[^0-9]/g,"").substring(0,6);g([_,m[1]])},maxLength:6,style:{textAlign:"center",fontFamily:"monospace"},"aria-label":"First verification code from authenticator app"}),t.jsx(le,{id:"totp-code-2",type:"text",placeholder:"000000",value:m[1],onChange:C=>{const _=C.target.value.replace(/[^0-9]/g,"").substring(0,6);g([m[0],_])},maxLength:6,style:{textAlign:"center",fontFamily:"monospace"},"aria-label":"Second verification code from authenticator app"})]}),t.jsxs(bl,{children:[t.jsx(N,{$outline:!0,onClick:()=>h("qr"),children:"Back"}),t.jsx(N,{onClick:S,disabled:x||m.some(C=>C.length!==6),children:x?"Verifying...":"Verify"})]})]})}):null},T5=l.div`
|
|
5707
5707
|
position: fixed;
|
|
5708
5708
|
background: var(--color-popover);
|
|
5709
5709
|
border-radius: var(--radius-md);
|
|
@@ -5789,9 +5789,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5789
5789
|
color: var(--color-secondary-text);
|
|
5790
5790
|
padding: ${e=>e.$first?"0":"var(--space-8u) 0 0"};
|
|
5791
5791
|
margin-bottom: var(--space-4u);
|
|
5792
|
-
`,K5=()=>{var se,ye,$e,Be,st,nt,xt;const{deployment:e}=Se(),{user:r,updatePassword:a,removePassword:o,setupAuthenticator:s,verifyAuthenticator:i,deleteAuthenticator:h,generateBackupCodes:d,regenerateBackupCodes:u,updateProfile:f,getPasskeys:p,registerPasskey:m,deletePasskey:g}=dr(),{toast:x}=Xt(),[b,v]=c.useState((r==null?void 0:r.second_factor_policy)||"none"),[w,E]=c.useState(!1),j=async ae=>{try{await f({second_factor_policy:ae}),v(ae),x("2FA requirement updated successfully","info")}catch(Le){x(Le.message||"Failed to update 2FA requirement","error")}},[S,C]=c.useState(!1),[_,k]=c.useState(!1),[y,L]=c.useState(!1),[
|
|
5792
|
+
`,K5=()=>{var se,ye,$e,Be,st,nt,xt;const{deployment:e}=Se(),{user:r,updatePassword:a,removePassword:o,setupAuthenticator:s,verifyAuthenticator:i,deleteAuthenticator:h,generateBackupCodes:d,regenerateBackupCodes:u,updateProfile:f,getPasskeys:p,registerPasskey:m,deletePasskey:g}=dr(),{toast:x}=Xt(),[b,v]=c.useState((r==null?void 0:r.second_factor_policy)||"none"),[w,E]=c.useState(!1),j=async ae=>{try{await f({second_factor_policy:ae}),v(ae),x("2FA requirement updated successfully","info")}catch(Le){x(Le.message||"Failed to update 2FA requirement","error")}},[S,C]=c.useState(!1),[_,k]=c.useState(!1),[y,L]=c.useState(!1),[$,H]=c.useState(!1),F=c.useRef(null),M=c.useRef(null),R=c.useRef(null),A=c.useRef(null),[z,Z]=c.useState([]),[P,O]=c.useState(!1),[I,T]=c.useState(!1),[G,D]=c.useState(!1),[W,Y]=c.useState(!1),[J,ie]=c.useState(null),he=c.useRef(null),[ee,xe]=c.useState("table"),[te,B]=c.useState(""),[Je,Te]=c.useState(""),[Ue,Ge]=c.useState(""),[me,Q]=c.useState(["",""]),[ce,ne]=c.useState([]),[q,ue]=c.useState(!1),[de,K]=c.useState(!1),[pe]=c.useState(!1),[qe,Oe]=c.useState(!1),Ke=(se=e==null?void 0:e.auth_settings)==null?void 0:se.auth_factors_enabled,ht=($e=(ye=e==null?void 0:e.auth_settings)==null?void 0:ye.password)==null?void 0:$e.enabled;if(!(Ke!=null&&Ke.authenticator)&&!(Ke!=null&&Ke.backup_code)&&!ht)return null;const X=async(ae,Le)=>{await a(ae,Le),await r.refetch(),x("Password updated successfully","info")},oe=async ae=>{await o(ae),await r.refetch(),x("Password removed successfully","info")},we=()=>{var Ft,U,re,ge,Re,Pe;if(!r)return!1;const ae=(Ft=r.user_email_addresses)==null?void 0:Ft.some(et=>et.verified),Le=(U=r.user_phone_numbers)==null?void 0:U.some(et=>et.verified),dt=r.social_connections&&r.social_connections.length>0,He=e==null?void 0:e.auth_settings;return(He==null?void 0:He.first_factor)==="email_otp"&&ae||((re=He==null?void 0:He.magic_link)==null?void 0:re.enabled)&&ae||((ge=He==null?void 0:He.passkey)==null?void 0:ge.enabled)||((Re=He==null?void 0:He.auth_factors_enabled)==null?void 0:Re.phone_otp)&&Le||dt&&((Pe=e==null?void 0:e.social_connections)==null?void 0:Pe.some(et=>et.enabled))},De=async()=>{if(me.some(ae=>ae.length!==6)){x("Please enter both 6-digit verification codes","error");return}try{if(K(!0),await i(Ue,me),await r.refetch(),Ke!=null&&Ke.backup_code){const ae=await d();ne(ae),await r.refetch(),xe("backup")}else xe("success")}catch(ae){x(ae.message||"Invalid verification codes","error")}finally{K(!1)}},ze=()=>{xe("table"),B(""),Te(""),Ge(""),Q(["",""]),ne([]),x("Two-factor authentication setup completed successfully!","info")},Qe=async()=>{var ae;if((ae=r==null?void 0:r.user_authenticator)!=null&&ae.id)try{Oe(!0),await h(r.user_authenticator.id),await r.refetch(),E(!1),x("Two-factor authentication removed successfully","info")}catch(Le){x(Le.message||"Failed to remove authenticator","error")}finally{Oe(!1)}},_t=async()=>{if(!q)try{ue(!0);const ae=await u();ne(ae),await r.refetch(),H(!0),x("New backup codes generated","info")}catch(ae){x(ae.message||"Failed to generate backup codes","error")}finally{ue(!1)}},er=()=>{const ae=ce.join(`
|
|
5793
5793
|
`);navigator.clipboard.writeText(ae).then(()=>{x("Backup codes copied to clipboard","info")}).catch(()=>{x("Failed to copy backup codes","error")})},tr=()=>{const ae=ce.join(`
|
|
5794
|
-
`),Le=new Blob([ae],{type:"text/plain"}),dt=URL.createObjectURL(Le),He=document.createElement("a");He.href=dt,He.download="wacht-backup-codes.txt",He.click(),URL.revokeObjectURL(dt),x("Backup codes downloaded","info")},Wt=async()=>{var ae,Le;if((Le=(ae=e==null?void 0:e.auth_settings)==null?void 0:ae.passkey)!=null&&Le.enabled)try{H(!0);const dt=await p();I(dt.data||[])}catch{x("Failed to load passkeys","error")}finally{H(!1)}},hr=async ae=>{try{P(!0),await m(ae||void 0),await Wt(),x("Passkey registered successfully!","info")}catch(Le){throw x(Le.message||"Failed to register passkey","error"),Le}finally{P(!1)}},fr=async ae=>{try{await g(ae),await Wt(),x("Passkey removed","info")}catch(Le){x(Le.message||"Failed to remove passkey","error")}};c.useEffect(()=>{Wt()},[(st=(Be=e==null?void 0:e.auth_settings)==null?void 0:Be.passkey)==null?void 0:st.enabled]);const bt=[];return ht&&bt.push({id:"password",name:"Password",description:"Secure your account with a strong password",status:r!=null&&r.has_password?"Enabled":"Disabled",actions:r!=null&&r.has_password?["change"]:["setup"],group:"sign-in"}),(xt=(nt=e==null?void 0:e.auth_settings)==null?void 0:nt.passkey)!=null&&xt.enabled&&bt.push({id:"passkey",name:"Passkeys",description:"Sign in faster with fingerprint, face, or screen lock",status:$.length>0?`${$.length} registered`:"",actions:$.length>0?["manage","add"]:["add"],group:"sign-in"}),Ke!=null&&Ke.authenticator&&bt.push({id:"authenticator",name:"Authenticator App",description:"Use an authenticator app for extra security",status:r!=null&&r.user_authenticator?"Enabled":"Disabled",actions:r!=null&&r.user_authenticator?["remove"]:["setup"],group:"sign-in"}),r!=null&&r.user_authenticator&&bt.push({id:"backup_codes",name:"Backup Codes",description:"Recovery codes if you lose your authenticator",status:r!=null&&r.backup_codes_generated?"Generated":"Not Generated",actions:["generate"],group:"recovery"}),r!=null&&r.user_authenticator&&bt.push({id:"second_factor_policy",name:"Require 2FA",description:"Require a second factor for all sign-ins",status:b==="enforced"?"Enforced":"Optional",actions:["toggle"],group:"recovery"}),ee!=="table"?t.jsxs(t.Fragment,{children:[t.jsxs(Sx,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(Rt,{size:16}),t.jsxs("span",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,color:"var(--color-foreground)"},children:[ee==="qr"&&"Setup Two-Factor Authentication",ee==="verify"&&"Verify Your Authenticator",ee==="backup"&&"Save Your Backup Codes",ee==="success"&&"Setup Complete!"]})]}),t.jsx(N,{onClick:()=>xe("table"),style:{padding:"var(--space-4u) var(--space-8u)",fontSize:"var(--font-size-lg)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",color:"var(--color-foreground)",fontWeight:"500",cursor:"pointer",transition:"all 0.2s ease"},children:"← Back"})]}),t.jsxs("div",{style:{maxWidth:"calc(var(--size-50u) * 5)",margin:"0 auto",textAlign:"center",padding:"var(--space-12u)"},children:[ee==="qr"&&t.jsxs(t.Fragment,{children:[t.jsx("p",{style:{color:"var(--color-secondary-text)",marginBottom:"var(--space-12u)"},children:"Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)"}),t.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:"var(--space-12u)"},children:pe?t.jsx("div",{style:{width:"calc(var(--size-50u) * 2)",height:"calc(var(--size-50u) * 2)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-input-background)"},children:t.jsxs("div",{style:{textAlign:"center"},children:[t.jsx("div",{style:{width:"var(--size-12u)",height:"var(--size-12u)",border:"var(--border-width-regular) solid var(--color-border)",borderTop:"var(--border-width-regular) solid var(--color-primary)",borderRadius:"50%",animation:`${yx} 1s linear infinite`,margin:"0 auto var(--space-4u)"}}),t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-secondary-text)"},children:"Loading QR Code..."})]})}):te?t.jsx("div",{style:{border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-8u)",background:"var(--color-background)"},children:t.jsx(Bs,{value:te,size:200,level:"M",marginSize:0})}):t.jsx("div",{style:{width:"calc(var(--size-50u) * 2)",height:"calc(var(--size-50u) * 2)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-input-background)",color:"var(--color-error)",fontSize:"var(--font-size-lg)",textAlign:"center"},children:"QR Code Not Available"})}),t.jsxs("div",{style:{background:"var(--color-input-background)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-6u)",marginBottom:"var(--space-12u)"},children:[t.jsx("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-secondary-text)",margin:"0 0 var(--space-4u) 0"},children:"Or enter this code manually:"}),t.jsx("code",{style:{fontFamily:"monospace",fontSize:"var(--font-size-lg)",wordBreak:"break-all"},children:Je||"Loading..."})]}),t.jsx(N,{onClick:()=>xe("verify"),disabled:!te||!Je,style:{padding:"var(--space-5u) var(--space-10u)",background:!te||!Je?"var(--color-border)":"var(--color-primary)",color:!te||!Je?"var(--color-secondary-text)":"var(--color-background)",border:`var(--border-width-thin) solid ${!te||!Je?"var(--color-border)":"var(--color-primary)"}`,cursor:!te||!Je?"not-allowed":"pointer"},children:"I've Scanned the Code"})]}),ee==="verify"&&t.jsxs(t.Fragment,{children:[t.jsx("p",{style:{color:"var(--color-secondary-text)",marginBottom:"var(--space-12u)"},children:"Enter two consecutive codes from your authenticator app to verify setup"}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center",marginBottom:"var(--space-12u)"},children:[t.jsx(le,{type:"text",placeholder:"000000",value:me[0],onChange:ae=>{const Le=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);Q([Le,me[1]])},maxLength:6,style:{width:"var(--size-50u)",textAlign:"center",fontFamily:"monospace"}}),t.jsx(le,{type:"text",placeholder:"000000",value:me[1],onChange:ae=>{const Le=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);Q([me[0],Le])},maxLength:6,style:{width:"var(--size-50u)",textAlign:"center",fontFamily:"monospace"}})]}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center"},children:[t.jsx(N,{onClick:()=>xe("qr"),style:{padding:"var(--space-4u) var(--space-8u)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)"},children:"Back"}),t.jsx(N,{onClick:De,disabled:de||me.some(ae=>ae.length!==6),style:{padding:"var(--space-4u) var(--space-8u)",background:"var(--color-primary)",color:"var(--color-foreground-inverse)",border:"var(--border-width-thin) solid var(--color-primary)"},children:de?"Verifying...":"Verify & Continue"})]})]}),ee==="backup"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{background:"var(--color-warning-background)",border:"var(--border-width-thin) solid var(--color-warning-border)",borderRadius:"var(--radius-md)",padding:"var(--space-8u)",marginBottom:"var(--space-12u)",display:"flex",alignItems:"flex-start",gap:"var(--space-6u)",textAlign:"left"},children:[t.jsx(ia,{size:16,style:{color:"var(--color-warning)",marginTop:"var(--space-1u)"}}),t.jsxs("div",{children:[t.jsx("div",{style:{fontWeight:500,marginBottom:"var(--space-2u)"},children:"Important!"}),t.jsx("div",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-secondary-text)"},children:"Store these codes safely. Each code can only be used once if you lose access to your authenticator device."})]})]}),t.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"var(--space-4u)",marginBottom:"var(--space-12u)",maxWidth:"calc(var(--size-50u) * 3)",margin:"0 auto var(--space-12u) auto"},children:ce.map((ae,Le)=>t.jsx("div",{style:{background:"var(--color-input-background)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-4u)",fontFamily:"monospace",fontSize:"var(--font-size-sm)",textAlign:"center",cursor:"pointer"},onClick:()=>navigator.clipboard.writeText(ae),children:ae},Le))}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center",marginBottom:"var(--space-12u)"},children:[t.jsx(N,{onClick:er,style:{padding:"var(--space-4u) var(--space-8u)",fontSize:"var(--font-size-lg)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)"},children:"Copy All"}),t.jsxs(N,{onClick:tr,style:{padding:"var(--space-4u) var(--space-8u)",fontSize:"var(--font-size-lg)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsx(Rd,{size:16,style:{marginRight:"var(--space-2u)"}}),"DownloadSimple"]})]}),t.jsx(N,{onClick:ze,style:{padding:"var(--space-5u) var(--space-10u)",background:"var(--color-primary)",color:"var(--color-foreground-inverse)",border:"var(--border-width-thin) solid var(--color-primary)"},children:"Complete Setup"})]}),ee==="success"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{marginBottom:"var(--space-12u)"},children:[t.jsx(ct,{size:48,style:{color:"var(--color-success)",marginBottom:"var(--space-8u)"}}),t.jsx("h3",{style:{fontSize:"var(--font-size-2xl)",fontWeight:600,margin:"0 0 var(--space-4u) 0"},children:"All Set!"}),t.jsx("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-secondary-text)",margin:0},children:"Your account is now protected with two-factor authentication."})]}),t.jsx(N,{onClick:ze,style:{padding:"var(--space-5u) var(--space-10u)",background:"var(--color-primary)",color:"var(--color-foreground-inverse)",border:"var(--border-width-thin) solid var(--color-primary)"},children:"Continue to Security"})]})]})]}):t.jsx(t.Fragment,{children:bt.length?t.jsx("div",{children:bt.map((ae,Le)=>{const dt=Le>0?bt[Le-1].group:null,He=ae.group!==dt,Tt=bt[Le+1],Ft=Tt&&Tt.group===ae.group;return t.jsxs("div",{children:[He&&t.jsx(q5,{$first:Le===0,children:ae.group==="sign-in"?"Sign-in methods":"Recovery"}),t.jsxs(Ex,{style:He?{paddingTop:0}:void 0,children:[t.jsxs(Ax,{children:[t.jsx("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",fontWeight:400,color:"var(--color-foreground)"},children:t.jsx("span",{children:ae.name})}),t.jsx("div",{style:{fontSize:"var(--font-size-md)",color:"var(--color-secondary-text)"},children:ae.description})]}),t.jsx(zx,{children:t.jsxs("div",{style:{position:"relative"},children:[ae.id==="password"&&t.jsx(t.Fragment,{children:r!=null&&r.has_password?t.jsxs("div",{style:{display:"flex",gap:"var(--space-4u)"},children:[t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:M,onClick:()=>k(!0),children:"Change"}),_&&t.jsx(xl,{triggerRef:M,onClose:()=>k(!1),onChangePassword:X})]}),we()&&t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",ref:T,onClick:()=>L(!0),children:"Remove"}),y&&t.jsx(L5,{triggerRef:T,onClose:()=>L(!1),onRemovePassword:oe})]})]}):t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:M,onClick:()=>k(!0),children:"Setup"}),_&&t.jsx(xl,{triggerRef:M,onClose:()=>k(!1),onChangePassword:X,isSetup:!0})]})}),ae.id==="authenticator"&&!(r!=null&&r.user_authenticator)&&t.jsx(t.Fragment,{children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:R,onClick:()=>C(!0),disabled:pe,children:pe?"Setting up...":"Setup"}),S&&t.jsx(P5,{triggerRef:R,onClose:()=>C(!1),onSetupTOTP:async()=>{const U=await s();return Ge(U.id),U},onVerifyTOTP:async U=>{await i(Ue,U),await r.refetch(),x("Two-factor authentication enabled successfully!","info")}})]})}),ae.id==="authenticator"&&(r==null?void 0:r.user_authenticator)&&t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,onClick:()=>E(!0),disabled:qe,style:{cursor:qe?"not-allowed":"pointer",opacity:qe?.6:1},children:qe?"Removing...":"Remove"}),w&&t.jsx(ta,{title:"Remove MFA and reset policy to default?",onConfirm:Qe,onCancel:()=>E(!1)})]}),ae.id==="backup_codes"&&t.jsx(t.Fragment,{children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:A,onClick:_t,disabled:q,children:q?"Generating...":r!=null&&r.backup_codes_generated?"Regenerate":"Generate"}),z&&t.jsx(V5,{triggerRef:A,codes:ce,onClose:()=>O(!1),onCopy:er,onDownload:tr})]})}),ae.id==="second_factor_policy"&&t.jsx(Tr,{checked:b==="enforced",onChange:U=>{j(U?"enforced":"none")}}),ae.id==="passkey"&&t.jsxs("div",{style:{display:"flex",gap:"var(--space-4u)",alignItems:"center"},children:[t.jsxs(N,{$outline:!0,$size:"sm",onClick:()=>D(!G),style:{color:"var(--color-foreground)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"var(--space-3u)",whiteSpace:"nowrap",flexShrink:0,width:"calc(var(--size-50u) + var(--space-5u))",height:"var(--size-18u)"},children:[G?"Hide":"Manage"," ","(",$.length,")",t.jsx(ur,{size:14,style:{transform:G?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:he,onClick:()=>Y(!0),disabled:Z,style:{cursor:Z?"not-allowed":"pointer",opacity:Z?.7:1,whiteSpace:"nowrap",minWidth:"var(--size-40u)",width:"auto",height:"var(--size-18u)"},children:Z?"Adding...":"Add"}),W&&t.jsx(G5,{triggerRef:he,onClose:()=>Y(!1),onAddPasskey:hr})]})]})]})})]}),ae.id==="passkey"&&G&&t.jsx("div",{style:{padding:"var(--space-6u) 0",borderTop:"var(--border-width-thin) solid var(--color-border)",marginTop:"var(--space-4u)"},children:F?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-8u)"},children:t.jsx(Ee,{})}):$.length===0?t.jsx("div",{style:{textAlign:"center",padding:"var(--space-8u)",color:"var(--color-secondary-text)",fontSize:"var(--font-size-md)"},children:"No passkeys registered yet"}):t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-4u)"},children:$.map(U=>t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"var(--space-5u) var(--space-6u)",background:"var(--color-input-background)",borderRadius:"var(--radius-md)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-1u)"},children:[t.jsx("span",{style:{fontWeight:500,fontSize:"var(--font-size-md)",color:"var(--color-foreground)"},children:U.name||"Unnamed Passkey"}),t.jsxs("span",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-secondary-text)"},children:[U.device_type==="platform"?"This device":"Security key",U.last_used_at&&` • Last used ${new Date(U.last_used_at).toLocaleDateString()}`]})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",onClick:()=>ie(U.id),style:{flexShrink:0,width:"auto"},children:"Remove"}),J===U.id&&t.jsx(ta,{title:`Remove "${U.name||"Unnamed Passkey"}"?`,onConfirm:()=>{fr(U.id),ie(null)},onCancel:()=>ie(null)})]})]},U.id))})}),Ft&&t.jsx("div",{style:{height:"var(--border-width-thin)",background:"var(--color-border)",margin:"0"}})]},ae.id)})}):t.jsx(At,{title:"No security features available",description:"Contact your administrator to enable security features."})})},Y5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e,children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"a",x1:3.217,x2:44.781,y1:15,y2:15,gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#d93025"}),t.jsx("stop",{offset:1,stopColor:"#ea4335"})]}),t.jsxs("linearGradient",{id:"b",x1:20.722,x2:41.504,y1:47.679,y2:11.684,gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#fcc934"}),t.jsx("stop",{offset:1,stopColor:"#fbbc04"})]}),t.jsxs("linearGradient",{id:"c",x1:26.598,x2:5.816,y1:46.502,y2:10.506,gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#1e8e3e"}),t.jsx("stop",{offset:1,stopColor:"#34a853"})]})]}),t.jsx("circle",{cx:24,cy:23.995,r:12,style:{fill:"#fff"}}),t.jsx("path",{d:"M3.215 36A24 24 0 1 0 12 3.215 24 24 0 0 0 3.215 36Zm31.177-18A12 12 0 1 1 18 13.608 12 12 0 0 1 34.392 18Z",style:{fill:"none"}}),t.jsx("path",{d:"M24 12h20.781a23.994 23.994 0 0 0-41.564.003L13.607 30l.01-.002A11.985 11.985 0 0 1 24 12Z",style:{fill:"url(#a)"}}),t.jsx("circle",{cx:24,cy:24,r:9.5,style:{fill:"#1a73e8"}}),t.jsx("path",{d:"M34.391 30.003 24.001 48A23.994 23.994 0 0 0 44.78 12.003H23.999l-.003.01a11.985 11.985 0 0 1 10.395 17.99Z",style:{fill:"url(#b)"}}),t.jsx("path",{d:"M13.609 30.003 3.218 12.006A23.994 23.994 0 0 0 24.003 48l10.39-17.997-.007-.007a11.985 11.985 0 0 1-20.777.007Z",style:{fill:"url(#c)"}})]}),Q5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 512 512",...e,children:[t.jsxs("defs",{children:[t.jsxs("radialGradient",{id:"g",cx:"210%",cy:"-100%",r:"290%",children:[t.jsx("stop",{offset:.1,stopColor:"#ffe226"}),t.jsx("stop",{offset:.79,stopColor:"#ff7139"})]}),t.jsxs("radialGradient",{id:"c",cx:"49%",cy:"40%",r:"128%",gradientTransform:"matrix(.82 0 0 1 .088 0)",children:[t.jsx("stop",{offset:.3,stopColor:"#960e18"}),t.jsx("stop",{offset:.35,stopColor:"#b11927",stopOpacity:.74}),t.jsx("stop",{offset:.43,stopColor:"#db293d",stopOpacity:.34}),t.jsx("stop",{offset:.5,stopColor:"#f5334b",stopOpacity:.09}),t.jsx("stop",{offset:.53,stopColor:"#ff3750",stopOpacity:0})]}),t.jsxs("radialGradient",{id:"d",cx:"48%",cy:"-12%",r:"140%",children:[t.jsx("stop",{offset:.13,stopColor:"#fff44f"}),t.jsx("stop",{offset:.53,stopColor:"#ff980e"})]}),t.jsxs("radialGradient",{id:"e",cx:"22.76%",cy:"110.11%",r:"100%",children:[t.jsx("stop",{offset:.35,stopColor:"#3a8ee6"}),t.jsx("stop",{offset:.67,stopColor:"#9059ff"}),t.jsx("stop",{offset:1,stopColor:"#c139e6"})]}),t.jsxs("radialGradient",{id:"f",cx:"52%",cy:"33%",r:"59%",gradientTransform:"scale(.9 1)",children:[t.jsx("stop",{offset:.21,stopColor:"#9059ff",stopOpacity:0}),t.jsx("stop",{offset:.97,stopColor:"#6e008b",stopOpacity:.6})]}),t.jsxs("radialGradient",{id:"b",cx:"87.4%",cy:"-12.9%",r:"128%",gradientTransform:"matrix(.8 0 0 1 .178 .129)",children:[t.jsx("stop",{offset:.13,stopColor:"#ffbd4f"}),t.jsx("stop",{offset:.28,stopColor:"#ff980e"}),t.jsx("stop",{offset:.47,stopColor:"#ff3750"}),t.jsx("stop",{offset:.78,stopColor:"#eb0878"}),t.jsx("stop",{offset:.86,stopColor:"#e50080"})]}),t.jsxs("radialGradient",{id:"h",cx:"84%",cy:"-41%",r:"180%",children:[t.jsx("stop",{offset:.11,stopColor:"#fff44f"}),t.jsx("stop",{offset:.46,stopColor:"#ff980e"}),t.jsx("stop",{offset:.72,stopColor:"#ff3647"}),t.jsx("stop",{offset:.9,stopColor:"#e31587"})]}),t.jsxs("radialGradient",{id:"i",cx:"16.1%",cy:"-18.6%",r:"348.8%",gradientTransform:"scale(1 .47) rotate(84 .279 -.297)",children:[t.jsx("stop",{offset:0,stopColor:"#fff44f"}),t.jsx("stop",{offset:.3,stopColor:"#ff980e"}),t.jsx("stop",{offset:.57,stopColor:"#ff3647"}),t.jsx("stop",{offset:.74,stopColor:"#e31587"})]}),t.jsxs("radialGradient",{id:"j",cx:"18.9%",cy:"-42.5%",r:"238.4%",children:[t.jsx("stop",{offset:.14,stopColor:"#fff44f"}),t.jsx("stop",{offset:.48,stopColor:"#ff980e"}),t.jsx("stop",{offset:.66,stopColor:"#ff3647"}),t.jsx("stop",{offset:.9,stopColor:"#e31587"})]}),t.jsxs("radialGradient",{id:"k",cx:"159.3%",cy:"-44.72%",r:"313.1%",children:[t.jsx("stop",{offset:.09,stopColor:"#fff44f"}),t.jsx("stop",{offset:.63,stopColor:"#ff980e"})]}),t.jsxs("linearGradient",{id:"a",x1:"87.25%",x2:"9.4%",y1:"15.5%",y2:"93.1%",children:[t.jsx("stop",{offset:.05,stopColor:"#fff44f"}),t.jsx("stop",{offset:.37,stopColor:"#ff980e"}),t.jsx("stop",{offset:.53,stopColor:"#ff3647"}),t.jsx("stop",{offset:.7,stopColor:"#e31587"})]}),t.jsxs("linearGradient",{id:"l",x1:"80%",x2:"18%",y1:"14%",y2:"84%",children:[t.jsx("stop",{offset:.17,stopColor:"#fff44f",stopOpacity:.8}),t.jsx("stop",{offset:.6,stopColor:"#fff44f",stopOpacity:0})]})]}),t.jsx("path",{fill:"url(#a)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0 .039.015.136.047.4C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484a120.249 120.249 0 0 0-66.142 25.488 71.355 71.355 0 0 0-6.225-4.7 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.442 26.913c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-.212 1.061-.324 1.586-.452 2.116-2.08 12.7-2.365 15-.022.177-.032.347-.053.524a229.066 229.066 0 0 0-3.9 33.157c0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746zM201.716 354.447c1.124.537 2.18 1.124 3.334 1.639.048.033.114.07.163.1a126.191 126.191 0 0 1-3.497-1.739zm55.053-144.93zm198.131-30.59-.032-.233c.012.085.027.174.04.259z"}),t.jsx("path",{fill:"url(#b)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0-.058.011.048.036.226.012.085.027.174.04.259 22.675 61.47 10.322 123.978-7.479 162.175-27.539 59.1-94.215 119.67-198.576 116.716C136.1 454.651 36.766 370.988 18.223 261.41c-3.379-17.28 0-26.054 1.7-40.084-2.071 10.816-2.86 13.94-3.9 33.157 0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746z"}),t.jsx("path",{fill:"url(#c)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0-.058.011.048.036.226.012.085.027.174.04.259 22.675 61.47 10.322 123.978-7.479 162.175-27.539 59.1-94.215 119.67-198.576 116.716C136.1 454.651 36.766 370.988 18.223 261.41c-3.379-17.28 0-26.054 1.7-40.084-2.071 10.816-2.86 13.94-3.9 33.157 0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746z"}),t.jsx("path",{fill:"url(#d)",d:"M361.922 194.6c.524.368 1 .734 1.493 1.1a130.706 130.706 0 0 0-22.31-29.112C266.4 91.892 321.516 4.626 330.811.194c.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484 2.8-.194 5.592-.429 8.442-.429 45.051 0 84.289 24.77 105.301 61.487z"}),t.jsx("path",{fill:"url(#e)",d:"M256.772 209.514c-.393 5.978-21.514 26.593-28.9 26.593-68.339 0-79.432 41.335-79.432 41.335 3.027 34.81 27.261 63.475 56.611 78.643 1.339.692 2.694 1.317 4.05 1.935a132.768 132.768 0 0 0 7.059 2.886 106.743 106.743 0 0 0 31.271 6.031c119.78 5.618 142.986-143.194 56.545-186.408 22.137-3.85 45.115 5.053 57.947 14.067-21.012-36.714-60.25-61.484-105.3-61.484-2.85 0-5.641.235-8.442.429a120.249 120.249 0 0 0-66.142 25.488c3.664 3.1 7.8 7.244 16.514 15.828 16.302 16.067 58.13 32.705 58.219 34.657z"}),t.jsx("path",{fill:"url(#f)",d:"M256.772 209.514c-.393 5.978-21.514 26.593-28.9 26.593-68.339 0-79.432 41.335-79.432 41.335 3.027 34.81 27.261 63.475 56.611 78.643 1.339.692 2.694 1.317 4.05 1.935a132.768 132.768 0 0 0 7.059 2.886 106.743 106.743 0 0 0 31.271 6.031c119.78 5.618 142.986-143.194 56.545-186.408 22.137-3.85 45.115 5.053 57.947 14.067-21.012-36.714-60.25-61.484-105.3-61.484-2.85 0-5.641.235-8.442.429a120.249 120.249 0 0 0-66.142 25.488c3.664 3.1 7.8 7.244 16.514 15.828 16.302 16.067 58.13 32.705 58.219 34.657z"}),t.jsx("path",{fill:"url(#g)",d:"M170.829 151.036a244.042 244.042 0 0 1 4.981 3.3 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7 1.155-.033 36.014-.66 53.543 10.732z"}),t.jsx("path",{fill:"url(#h)",d:"M18.223 261.41C36.766 370.988 136.1 454.651 248.855 457.844c104.361 2.954 171.037-57.62 198.576-116.716 17.8-38.2 30.154-100.7 7.479-162.175l-.008-.026-.032-.233c-.025-.178-.04-.284-.036-.226 0 .039.015.136.047.4 8.524 55.661-19.79 109.584-64.051 146.044l-.133.313c-86.245 70.223-168.774 42.368-185.484 30.966a144.108 144.108 0 0 1-3.5-1.743c-50.282-24.029-71.054-69.838-66.6-109.124-42.457 0-56.934-35.809-56.934-35.809s38.119-27.179 88.358-3.541c46.53 21.893 90.228 3.543 90.233 3.541-.089-1.952-41.917-18.59-58.223-34.656-8.713-8.584-12.85-12.723-16.514-15.828a71.355 71.355 0 0 0-6.225-4.7 282.929 282.929 0 0 0-4.981-3.3c-17.528-11.392-52.388-10.765-53.543-10.735h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.442 26.919c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-8.65 37.842-4.44 57.199z"}),t.jsx("path",{fill:"url(#i)",d:"M341.105 166.587a130.706 130.706 0 0 1 22.31 29.112c1.323.994 2.559 1.985 3.608 2.952 54.482 50.2 25.936 121.2 23.807 126.26 44.261-36.46 72.575-90.383 64.051-146.044C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1-9.291 4.428-64.407 91.694 10.298 166.389z"}),t.jsx("path",{fill:"url(#j)",d:"M367.023 198.651c-1.049-.967-2.285-1.958-3.608-2.952-.489-.368-.969-.734-1.493-1.1-12.832-9.014-35.81-17.917-57.947-14.067 86.441 43.214 63.235 192.026-56.545 186.408a106.743 106.743 0 0 1-31.271-6.031 134.51 134.51 0 0 1-7.059-2.886c-1.356-.618-2.711-1.243-4.05-1.935.048.033.114.07.163.1 16.71 11.4 99.239 39.257 185.484-30.966l.133-.313c2.129-5.054 30.675-76.057-23.807-126.258z"}),t.jsx("path",{fill:"url(#k)",d:"M148.439 277.443s11.093-41.335 79.432-41.335c7.388 0 28.509-20.615 28.9-26.593s-43.7 18.352-90.233-3.541c-50.239-23.638-88.358 3.541-88.358 3.541s14.477 35.809 56.934 35.809c-4.453 39.286 16.319 85.1 66.6 109.124 1.124.537 2.18 1.124 3.334 1.639-29.348-15.169-53.582-43.834-56.609-78.644z"}),t.jsx("path",{fill:"url(#l)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0 .039.015.136.047.4C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484 2.8-.194 5.592-.429 8.442-.429 45.053 0 84.291 24.77 105.3 61.484-12.832-9.014-35.81-17.917-57.947-14.067 86.441 43.214 63.235 192.026-56.545 186.408a106.743 106.743 0 0 1-31.271-6.031 134.51 134.51 0 0 1-7.059-2.886c-1.356-.618-2.711-1.243-4.05-1.935.048.033.114.07.163.1a144.108 144.108 0 0 1-3.5-1.743c1.124.537 2.18 1.124 3.334 1.639-29.35-15.168-53.584-43.833-56.611-78.643 0 0 11.093-41.335 79.432-41.335 7.388 0 28.509-20.615 28.9-26.593-.089-1.952-41.917-18.59-58.223-34.656-8.713-8.584-12.85-12.723-16.514-15.828a71.355 71.355 0 0 0-6.225-4.7 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.435 26.916c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-.212 1.061-.324 1.586-.452 2.116-2.486 12.853-2.77 15.156-.022.177.021-.176 0 0a279.565 279.565 0 0 0-3.544 33.53c0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746zm-23.841 12.341c.012.085.027.174.04.259l-.008-.026-.032-.233z"})]}),J5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:250.076,height:248.707,viewBox:"0 0 66.166 65.804",...e,children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"b",children:[t.jsx("stop",{offset:0,stopColor:"#06c2e7"}),t.jsx("stop",{offset:.25,stopColor:"#0db8ec"}),t.jsx("stop",{offset:.5,stopColor:"#12aef1"}),t.jsx("stop",{offset:.75,stopColor:"#1f86f9"}),t.jsx("stop",{offset:1,stopColor:"#107ddd"})]}),t.jsxs("linearGradient",{id:"a",children:[t.jsx("stop",{offset:0,stopColor:"#bdbdbd"}),t.jsx("stop",{offset:1,stopColor:"#fff"})]}),t.jsx("linearGradient",{xlinkHref:"#a",id:"d",x1:412.975,x2:412.975,y1:237.608,y2:59.392,gradientTransform:"translate(206.79 159.773) scale(.35154)",gradientUnits:"userSpaceOnUse"}),t.jsx("filter",{id:"f",width:1.042,height:1.045,x:-.021,y:-.022,colorInterpolationFilters:"sRGB",children:t.jsx("feGaussianBlur",{stdDeviation:.958})}),t.jsx("filter",{id:"c",width:1.096,height:1.096,x:-.048,y:-.048,colorInterpolationFilters:"sRGB",children:t.jsx("feGaussianBlur",{stdDeviation:3.564})}),t.jsx("radialGradient",{xlinkHref:"#b",id:"e",cx:413.061,cy:136.818,r:82.125,fx:413.061,fy:136.818,gradientTransform:"translate(194.545 155.58) scale(.38143)",gradientUnits:"userSpaceOnUse"})]}),t.jsx("path",{d:"M502.083 148.5a89.108 89.108 0 0 1-89.108 89.108 89.108 89.108 0 0 1-89.108-89.108 89.108 89.108 0 0 1 89.108-89.108 89.108 89.108 0 0 1 89.108 89.108Z",filter:"url(#c)",opacity:.53,paintOrder:"markers stroke fill",transform:"matrix(.33865 0 0 .3261 -106.77 -14.478)"}),t.jsx("path",{fill:"url(#d)",stroke:"#cdcdcd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.093,d:"M383.294 211.977a31.325 31.325 0 0 1-31.325 31.325 31.325 31.325 0 0 1-31.326-31.325 31.325 31.325 0 0 1 31.326-31.325 31.325 31.325 0 0 1 31.325 31.325z",paintOrder:"markers stroke fill",transform:"translate(-318.886 -180.595)"}),t.jsx("path",{fill:"url(#e)",d:"M380.84 211.977a28.87 28.87 0 0 1-28.871 28.87 28.87 28.87 0 0 1-28.871-28.87 28.87 28.87 0 0 1 28.87-28.87 28.87 28.87 0 0 1 28.871 28.87z",paintOrder:"markers stroke fill",transform:"translate(-318.886 -180.595)"}),t.jsx("path",{fill:"#f4f2f3",d:"M33.083 4.017a.42.42 0 0 0-.421.42v4.856a.42.42 0 1 0 .842 0V4.438a.42.42 0 0 0-.421-.421zm-2.754.174a.42.42 0 0 0-.46.463l.212 2.03a.42.42 0 1 0 .837-.087l-.212-2.03a.42.42 0 0 0-.377-.376zm5.527.002a.42.42 0 0 0-.377.375l-.214 2.03a.42.42 0 1 0 .837.089l.214-2.031a.42.42 0 0 0-.46-.463zM27.5 4.6a.42.42 0 0 0-.41.508l1.005 4.75a.42.42 0 1 0 .824-.174l-1.005-4.75A.42.42 0 0 0 27.5 4.6zm11.183.004a.42.42 0 0 0-.414.333l-1.009 4.75a.42.42 0 1 0 .824.175l1.009-4.75a.42.42 0 0 0-.41-.508zm-13.883.757a.42.42 0 0 0-.437.55l.632 1.942a.42.42 0 1 0 .8-.26l-.63-1.942a.42.42 0 0 0-.365-.29zm16.568.001a.42.42 0 0 0-.364.29l-.632 1.942a.42.42 0 1 0 .8.26l.632-1.942a.42.42 0 0 0-.436-.55zM22.13 6.34a.42.42 0 0 0-.377.592l1.972 4.437a.42.42 0 1 0 .77-.342l-1.972-4.437a.42.42 0 0 0-.393-.25zm21.937.015a.42.42 0 0 0-.392.25l-1.978 4.434a.42.42 0 1 0 .769.343l1.978-4.434a.42.42 0 0 0-.377-.593zM19.654 7.65a.42.42 0 0 0-.394.63l1.02 1.77a.42.42 0 1 0 .73-.421L19.989 7.86a.42.42 0 0 0-.335-.21zm26.858 0a.419.419 0 0 0-.335.21l-1.021 1.769a.42.42 0 1 0 .73.42l1.02-1.768a.42.42 0 0 0-.394-.63zm-29.265 1.5a.422.422 0 0 0-.326.669l2.85 3.93a.42.42 0 1 0 .682-.494l-2.85-3.93a.42.42 0 0 0-.356-.174zm31.702.022a.42.42 0 0 0-.356.174l-2.856 3.926a.42.42 0 1 0 .681.495l2.856-3.926a.42.42 0 0 0-.325-.669zm-33.852 1.783a.42.42 0 0 0-.335.702l1.366 1.518a.42.42 0 1 0 .626-.563l-1.366-1.518a.42.42 0 0 0-.291-.14zm35.975.003a.421.421 0 0 0-.29.139l-1.367 1.517a.42.42 0 1 0 .625.564l1.367-1.518a.42.42 0 0 0-.335-.702zm-38.037 1.977a.42.42 0 0 0-.26.733l3.61 3.249a.42.42 0 1 0 .563-.626l-3.609-3.248a.42.42 0 0 0-.304-.108zm40.109.014a.419.419 0 0 0-.304.108l-3.61 3.245a.42.42 0 1 0 .562.626l3.61-3.245a.42.42 0 0 0-.258-.734zm-41.823 2.19a.42.42 0 0 0-.262.762l1.652 1.2a.42.42 0 1 0 .495-.681l-1.652-1.2a.42.42 0 0 0-.233-.081zm43.535.015a.421.421 0 0 0-.233.08l-1.653 1.2a.42.42 0 1 0 .495.681l1.653-1.2a.42.42 0 0 0-.262-.76zM9.72 17.49a.42.42 0 0 0-.18.785l4.204 2.427a.42.42 0 1 0 .42-.729L9.96 17.546a.42.42 0 0 0-.24-.056zm46.728 0a.417.417 0 0 0-.24.056l-4.205 2.427a.42.42 0 1 0 .42.73l4.206-2.428a.42.42 0 0 0-.181-.785zM8.508 19.996a.42.42 0 0 0-.18.806l1.866.832a.42.42 0 1 0 .343-.77l-1.866-.831a.42.42 0 0 0-.163-.037zm49.158.017a.42.42 0 0 0-.164.037l-1.865.83a.42.42 0 1 0 .342.77l1.866-.831a.42.42 0 0 0-.179-.806zM7.429 22.615a.42.42 0 0 0-.094.82l4.615 1.504a.42.42 0 1 0 .261-.8l-4.616-1.504a.421.421 0 0 0-.166-.02zm51.314.018a.408.408 0 0 0-.166.02l-4.617 1.5a.42.42 0 1 0 .26.801l4.617-1.5a.42.42 0 0 0-.094-.82zM6.756 25.365a.42.42 0 0 0-.09.833l1.998.424a.42.42 0 1 0 .175-.823l-1.998-.425a.413.413 0 0 0-.085-.009zm52.655.004a.518.518 0 0 0-.085.009l-1.998.424a.42.42 0 1 0 .175.823l1.998-.424a.42.42 0 0 0-.09-.833zM6.247 28.13a.42.42 0 0 0-.003.838l4.828.51a.42.42 0 1 0 .089-.837l-4.829-.51a.432.432 0 0 0-.085 0zm53.676.037a.386.386 0 0 0-.085 0l-4.83.504a.42.42 0 1 0 .088.837l4.83-.504a.42.42 0 0 0-.003-.837zM6.165 30.96a.42.42 0 1 0 0 .842h2.043a.42.42 0 1 0 0-.842zm51.793 0a.42.42 0 1 0 0 .842h2.043a.42.42 0 1 0 0-.842zm-46.803 2.295a.384.384 0 0 0-.085 0l-4.83.504a.42.42 0 1 0 .088.838l4.83-.504a.42.42 0 0 0-.003-.838zm43.853.03a.42.42 0 0 0-.003.838l4.828.51a.42.42 0 1 0 .089-.837l-4.828-.51a.434.434 0 0 0-.086-.001zM8.748 36.13a.43.43 0 0 0-.085.009l-1.998.424a.42.42 0 1 0 .175.823l1.998-.424a.42.42 0 0 0-.09-.833zm48.67.004a.42.42 0 0 0-.09.833l1.997.424a.42.42 0 1 0 .175-.824l-1.998-.424a.413.413 0 0 0-.085-.01zM12.111 37.79a.408.408 0 0 0-.166.02l-4.617 1.5a.42.42 0 1 0 .26.801l4.617-1.5a.42.42 0 0 0-.094-.82zm41.937.015a.42.42 0 0 0-.094.82l4.616 1.504a.42.42 0 1 0 .26-.8l-4.615-1.504a.421.421 0 0 0-.167-.02zM10.35 41.08a.42.42 0 0 0-.163.036l-1.866.831a.42.42 0 1 0 .342.769l1.866-.83a.42.42 0 0 0-.179-.806zm45.459.016a.42.42 0 0 0-.18.805l1.865.832a.42.42 0 1 0 .343-.769l-1.865-.832a.42.42 0 0 0-.163-.036zm-41.826.912a.417.417 0 0 0-.24.056L9.538 44.49a.42.42 0 1 0 .421.73l4.205-2.428a.42.42 0 0 0-.181-.785zm38.2 0a.42.42 0 0 0-.181.785l4.205 2.427a.42.42 0 1 0 .42-.729l-4.204-2.427a.42.42 0 0 0-.24-.056zm-39.249 3.562a.421.421 0 0 0-.233.08l-1.653 1.2a.42.42 0 1 0 .495.682l1.653-1.2a.42.42 0 0 0-.262-.762zm40.288.015a.42.42 0 0 0-.262.762l1.652 1.2a.42.42 0 1 0 .495-.681l-1.652-1.2a.42.42 0 0 0-.233-.081zm-36.544.145a.418.418 0 0 0-.304.108l-3.61 3.245a.42.42 0 1 0 .562.626l3.61-3.245a.42.42 0 0 0-.258-.734zm32.8.011a.421.421 0 0 0-.26.734l3.609 3.248a.42.42 0 1 0 .563-.625l-3.608-3.249a.42.42 0 0 0-.304-.107zm-29.375 3.084a.42.42 0 0 0-.355.173l-2.856 3.927a.42.42 0 1 0 .68.495l2.857-3.926a.42.42 0 0 0-.326-.669zm25.936.018a.421.421 0 0 0-.326.668l2.85 3.93a.42.42 0 1 0 .682-.494l-2.851-3.93a.42.42 0 0 0-.355-.174zm-29.623.606a.421.421 0 0 0-.29.14l-1.367 1.517a.42.42 0 1 0 .625.563l1.367-1.517a.42.42 0 0 0-.335-.703zm33.331.002a.42.42 0 0 0-.335.702l1.366 1.518a.42.42 0 1 0 .626-.563l-1.366-1.518a.42.42 0 0 0-.291-.139zm-25.655 1.684a.419.419 0 0 0-.393.25l-1.978 4.433a.42.42 0 1 0 .77.343l1.977-4.434a.42.42 0 0 0-.376-.592zm17.955.012a.42.42 0 0 0-.377.592l1.972 4.437a.42.42 0 1 0 .77-.342l-1.972-4.437a.42.42 0 0 0-.393-.25zm-21.431 1.359a.419.419 0 0 0-.335.21l-1.021 1.768a.42.42 0 1 0 .729.421l1.02-1.769a.42.42 0 0 0-.393-.63zm24.934 0a.42.42 0 0 0-.394.63l1.021 1.77a.42.42 0 1 0 .73-.422l-1.022-1.769a.42.42 0 0 0-.335-.21zm-17.054.063a.42.42 0 0 0-.415.334l-1.009 4.749a.42.42 0 1 0 .824.175l1.009-4.75a.42.42 0 0 0-.41-.508zm9.16.003a.42.42 0 0 0-.41.508l1.006 4.75a.42.42 0 1 0 .823-.175l-1.006-4.75a.42.42 0 0 0-.414-.333zm-4.573.48a.42.42 0 0 0-.421.42v4.855a.42.42 0 1 0 .842 0v-4.855a.42.42 0 0 0-.421-.42zm-7.727 1.568a.42.42 0 0 0-.364.29l-.631 1.942a.42.42 0 1 0 .8.26l.632-1.942a.42.42 0 0 0-.437-.55zm15.45 0a.42.42 0 0 0-.437.55l.632 1.943a.42.42 0 1 0 .8-.26l-.63-1.942a.42.42 0 0 0-.365-.29zm-10.365 1.083a.42.42 0 0 0-.378.375l-.213 2.03a.42.42 0 1 0 .837.088l.214-2.03a.42.42 0 0 0-.46-.463zm5.267.002a.42.42 0 0 0-.46.463l.212 2.03a.42.42 0 1 0 .837-.088l-.212-2.03a.42.42 0 0 0-.377-.375z",paintOrder:"markers stroke fill"}),t.jsx("path",{d:"m469.096 100.607-65.51 38.061-41.42 65.207 60.595-44.882z",filter:"url(#f)",opacity:.409,paintOrder:"markers stroke fill",transform:"translate(-112.095 -20.822) scale(.35154)"}),t.jsx("path",{fill:"#ff5150",d:"m36.383 34.838-6.6-6.913 23.416-15.752z",paintOrder:"markers stroke fill"}),t.jsx("path",{fill:"#f1f1f1",d:"m36.383 34.838-6.6-6.913L12.966 50.59z",paintOrder:"markers stroke fill"}),t.jsx("path",{d:"m12.967 50.59 23.416-15.752L53.2 12.173z",opacity:.243})]}),X5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:[t.jsxs("defs",{children:[t.jsxs("radialGradient",{id:"b",cx:161.8,cy:68.9,r:95.4,gradientTransform:"matrix(1 0 0 -.95 0 248.8)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:.7,stopOpacity:0}),t.jsx("stop",{offset:.9,stopOpacity:.5}),t.jsx("stop",{offset:1})]}),t.jsxs("radialGradient",{id:"d",cx:-340.3,cy:63,r:143.2,gradientTransform:"matrix(.15 -.99 -.8 -.12 176.6 -125.4)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:.8,stopOpacity:0}),t.jsx("stop",{offset:.9,stopOpacity:.5}),t.jsx("stop",{offset:1})]}),t.jsxs("radialGradient",{id:"e",cx:113.4,cy:570.2,r:202.4,gradientTransform:"matrix(-.04 1 2.13 .08 -1179.5 -106.7)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#35c1f1"}),t.jsx("stop",{offset:.1,stopColor:"#34c1ed"}),t.jsx("stop",{offset:.2,stopColor:"#2fc2df"}),t.jsx("stop",{offset:.3,stopColor:"#2bc3d2"}),t.jsx("stop",{offset:.7,stopColor:"#36c752"})]}),t.jsxs("radialGradient",{id:"f",cx:376.5,cy:568,r:97.3,gradientTransform:"matrix(.28 .96 .78 -.23 -303.8 -148.5)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#66eb6e"}),t.jsx("stop",{offset:1,stopColor:"#66eb6e",stopOpacity:0})]}),t.jsxs("linearGradient",{id:"a",x1:63.3,x2:241.7,y1:84,y2:84,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#0c59a4"}),t.jsx("stop",{offset:1,stopColor:"#114a8b"})]}),t.jsxs("linearGradient",{id:"c",x1:157.3,x2:46,y1:161.4,y2:40.1,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#1b9de2"}),t.jsx("stop",{offset:.2,stopColor:"#1595df"}),t.jsx("stop",{offset:.7,stopColor:"#0680d7"}),t.jsx("stop",{offset:1,stopColor:"#0078d4"})]})]}),t.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{fill:"url(#a)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{isolation:"isolate",opacity:.35,fill:"url(#b)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{fill:"url(#c)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{opacity:.41,fill:"url(#d)",isolation:"isolate"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#e)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#f)"},transform:"translate(-4.6 -5)"})]}),ew=e=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,role:"img","aria-label":"Opera",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"opera-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",stopColor:"#FF1B2D"}),t.jsx("stop",{offset:"50%",stopColor:"#CC0000"}),t.jsx("stop",{offset:"100%",stopColor:"#A02128"})]})}),t.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"url(#opera-gradient)"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"6.5",ry:"8.5",fill:"none",stroke:"#fff",strokeWidth:"1.2",opacity:"0.9"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"3.5",ry:"5.5",fill:"#fff"}),t.jsx("path",{d:"M12 8.5c-1.4 0-2.5 1.6-2.5 3.5s1.1 3.5 2.5 3.5 2.5-1.6 2.5-3.5-1.1-3.5-2.5-3.5z",fill:"url(#opera-gradient)"})]}),tw=e=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,role:"img","aria-label":"Brave",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"brave-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",stopColor:"#FB542B"}),t.jsx("stop",{offset:"50%",stopColor:"#FF6B35"}),t.jsx("stop",{offset:"100%",stopColor:"#FF4500"})]})}),t.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"url(#brave-gradient)"}),t.jsx("path",{d:"M12 3.5l1.5 2h2.5l-.8 3 1.3 2.5-2.5.8v2.7l-2-.7-2 .7v-2.7l-2.5-.8L8.8 8.5 8 5.5h2.5L12 3.5z",fill:"#fff"}),t.jsx("path",{d:"M12 6.5c-.8 0-1.5.7-1.5 1.5v3c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5V8c0-.8-.7-1.5-1.5-1.5z",fill:"url(#brave-gradient)"}),t.jsx("circle",{cx:"12",cy:"16",r:"1",fill:"url(#brave-gradient)"})]}),rw=()=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",style:{color:"var(--color-secondary-text)"},children:[t.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5",opacity:"0.6"}),t.jsx("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"0.5",opacity:"0.3"}),t.jsx("path",{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z",fill:"currentColor",opacity:"0.5"}),t.jsx("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"}),t.jsx("text",{x:"12",y:"16.5",textAnchor:"middle",fill:"currentColor",fontSize:"6",opacity:"0.7",children:"?"})]}),aw=({browser:e})=>{const r=(e==null?void 0:e.toLowerCase())||"",a={width:20,height:20};return r.includes("chrome")?t.jsx(Y5,{...a}):r.includes("firefox")?t.jsx(Q5,{...a}):r.includes("safari")?t.jsx(J5,{...a}):r.includes("edge")?t.jsx(X5,{...a}):r.includes("opera")?t.jsx(ew,{...a}):r.includes("brave")?t.jsx(tw,{...a}):t.jsx(rw,{})},nw=()=>{const{signins:e,removeSignin:r,refetch:a,loading:o}=v0(),{refetch:s}=at(),{toast:i}=Xt(),h=e,d=async f=>{try{await r(f),await Promise.all([a(),s()]),i("Session ended successfully","info")}catch(p){i(p.message||"Failed to end session. Please try again.","error")}},u=f=>{if(!f||f.trim()==="")return"Unknown";const p=new Date(f);if(isNaN(p.getTime()))return"Unknown";const g=Math.floor((new Date().getTime()-p.getTime())/(1e3*60));return g<1?"Just now":g<60?`${g}m ago`:g<1440?`${Math.floor(g/60)}h ago`:p.toLocaleDateString()};return o?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-10u)"},children:t.jsx(Ee,{})}):t.jsx("div",{children:h&&h.length>0?t.jsx(t.Fragment,{children:t.jsx(Us,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Browser & Device"}),t.jsx(Ie,{children:"Location"}),t.jsx(Ie,{children:"Last Active"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:h.map(f=>t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(Mx,{children:t.jsx(aw,{browser:f.browser||"Unknown"})}),t.jsxs("div",{children:[t.jsx("div",{children:f.browser||"Unknown Browser"}),f.device&&t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)"},children:f.device})]})]})}),t.jsx(Ye,{children:t.jsxs("div",{children:[t.jsx("div",{children:f.city&&f.country?`${f.city}, ${f.country}`:"Unknown location"}),f.ip_address&&t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)"},children:f.ip_address})]})}),t.jsx(Ye,{children:u(f.last_active_at)}),t.jsx(Bt,{children:t.jsxs(N,{$size:"sm",$outline:!0,$destructive:!0,onClick:()=>d(f.id),children:[t.jsx($r,{size:12,style:{marginRight:4}}),"Sign out"]})})]},f.id))})]})})}):t.jsx(At,{title:"No active sessions",description:"You don't have any active sessions at the moment."})})},ow=l(nu)`
|
|
5794
|
+
`),Le=new Blob([ae],{type:"text/plain"}),dt=URL.createObjectURL(Le),He=document.createElement("a");He.href=dt,He.download="wacht-backup-codes.txt",He.click(),URL.revokeObjectURL(dt),x("Backup codes downloaded","info")},Wt=async()=>{var ae,Le;if((Le=(ae=e==null?void 0:e.auth_settings)==null?void 0:ae.passkey)!=null&&Le.enabled)try{O(!0);const dt=await p();Z(dt.data||[])}catch{x("Failed to load passkeys","error")}finally{O(!1)}},hr=async ae=>{try{T(!0),await m(ae||void 0),await Wt(),x("Passkey registered successfully!","info")}catch(Le){throw x(Le.message||"Failed to register passkey","error"),Le}finally{T(!1)}},fr=async ae=>{try{await g(ae),await Wt(),x("Passkey removed","info")}catch(Le){x(Le.message||"Failed to remove passkey","error")}};c.useEffect(()=>{Wt()},[(st=(Be=e==null?void 0:e.auth_settings)==null?void 0:Be.passkey)==null?void 0:st.enabled]);const bt=[];return ht&&bt.push({id:"password",name:"Password",description:"Secure your account with a strong password",status:r!=null&&r.has_password?"Enabled":"Disabled",actions:r!=null&&r.has_password?["change"]:["setup"],group:"sign-in"}),(xt=(nt=e==null?void 0:e.auth_settings)==null?void 0:nt.passkey)!=null&&xt.enabled&&bt.push({id:"passkey",name:"Passkeys",description:"Sign in faster with fingerprint, face, or screen lock",status:z.length>0?`${z.length} registered`:"",actions:z.length>0?["manage","add"]:["add"],group:"sign-in"}),Ke!=null&&Ke.authenticator&&bt.push({id:"authenticator",name:"Authenticator App",description:"Use an authenticator app for extra security",status:r!=null&&r.user_authenticator?"Enabled":"Disabled",actions:r!=null&&r.user_authenticator?["remove"]:["setup"],group:"sign-in"}),r!=null&&r.user_authenticator&&bt.push({id:"backup_codes",name:"Backup Codes",description:"Recovery codes if you lose your authenticator",status:r!=null&&r.backup_codes_generated?"Generated":"Not Generated",actions:["generate"],group:"recovery"}),r!=null&&r.user_authenticator&&bt.push({id:"second_factor_policy",name:"Require 2FA",description:"Require a second factor for all sign-ins",status:b==="enforced"?"Enforced":"Optional",actions:["toggle"],group:"recovery"}),ee!=="table"?t.jsxs(t.Fragment,{children:[t.jsxs(Sx,{children:[t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(Rt,{size:16}),t.jsxs("span",{style:{fontSize:"var(--font-size-lg)",fontWeight:500,color:"var(--color-foreground)"},children:[ee==="qr"&&"Setup Two-Factor Authentication",ee==="verify"&&"Verify Your Authenticator",ee==="backup"&&"Save Your Backup Codes",ee==="success"&&"Setup Complete!"]})]}),t.jsx(N,{onClick:()=>xe("table"),style:{padding:"var(--space-4u) var(--space-8u)",fontSize:"var(--font-size-lg)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",color:"var(--color-foreground)",fontWeight:"500",cursor:"pointer",transition:"all 0.2s ease"},children:"← Back"})]}),t.jsxs("div",{style:{maxWidth:"calc(var(--size-50u) * 5)",margin:"0 auto",textAlign:"center",padding:"var(--space-12u)"},children:[ee==="qr"&&t.jsxs(t.Fragment,{children:[t.jsx("p",{style:{color:"var(--color-secondary-text)",marginBottom:"var(--space-12u)"},children:"Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)"}),t.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:"var(--space-12u)"},children:pe?t.jsx("div",{style:{width:"calc(var(--size-50u) * 2)",height:"calc(var(--size-50u) * 2)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-input-background)"},children:t.jsxs("div",{style:{textAlign:"center"},children:[t.jsx("div",{style:{width:"var(--size-12u)",height:"var(--size-12u)",border:"var(--border-width-regular) solid var(--color-border)",borderTop:"var(--border-width-regular) solid var(--color-primary)",borderRadius:"50%",animation:`${yx} 1s linear infinite`,margin:"0 auto var(--space-4u)"}}),t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-secondary-text)"},children:"Loading QR Code..."})]})}):te?t.jsx("div",{style:{border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-8u)",background:"var(--color-background)"},children:t.jsx(Ws,{value:te,size:200,level:"M",marginSize:0})}):t.jsx("div",{style:{width:"calc(var(--size-50u) * 2)",height:"calc(var(--size-50u) * 2)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--color-input-background)",color:"var(--color-error)",fontSize:"var(--font-size-lg)",textAlign:"center"},children:"QR Code Not Available"})}),t.jsxs("div",{style:{background:"var(--color-input-background)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-6u)",marginBottom:"var(--space-12u)"},children:[t.jsx("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-secondary-text)",margin:"0 0 var(--space-4u) 0"},children:"Or enter this code manually:"}),t.jsx("code",{style:{fontFamily:"monospace",fontSize:"var(--font-size-lg)",wordBreak:"break-all"},children:Je||"Loading..."})]}),t.jsx(N,{onClick:()=>xe("verify"),disabled:!te||!Je,style:{padding:"var(--space-5u) var(--space-10u)",background:!te||!Je?"var(--color-border)":"var(--color-primary)",color:!te||!Je?"var(--color-secondary-text)":"var(--color-background)",border:`var(--border-width-thin) solid ${!te||!Je?"var(--color-border)":"var(--color-primary)"}`,cursor:!te||!Je?"not-allowed":"pointer"},children:"I've Scanned the Code"})]}),ee==="verify"&&t.jsxs(t.Fragment,{children:[t.jsx("p",{style:{color:"var(--color-secondary-text)",marginBottom:"var(--space-12u)"},children:"Enter two consecutive codes from your authenticator app to verify setup"}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center",marginBottom:"var(--space-12u)"},children:[t.jsx(le,{type:"text",placeholder:"000000",value:me[0],onChange:ae=>{const Le=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);Q([Le,me[1]])},maxLength:6,style:{width:"var(--size-50u)",textAlign:"center",fontFamily:"monospace"}}),t.jsx(le,{type:"text",placeholder:"000000",value:me[1],onChange:ae=>{const Le=ae.target.value.replace(/[^0-9]/g,"").substring(0,6);Q([me[0],Le])},maxLength:6,style:{width:"var(--size-50u)",textAlign:"center",fontFamily:"monospace"}})]}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center"},children:[t.jsx(N,{onClick:()=>xe("qr"),style:{padding:"var(--space-4u) var(--space-8u)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)"},children:"Back"}),t.jsx(N,{onClick:De,disabled:de||me.some(ae=>ae.length!==6),style:{padding:"var(--space-4u) var(--space-8u)",background:"var(--color-primary)",color:"var(--color-foreground-inverse)",border:"var(--border-width-thin) solid var(--color-primary)"},children:de?"Verifying...":"Verify & Continue"})]})]}),ee==="backup"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{background:"var(--color-warning-background)",border:"var(--border-width-thin) solid var(--color-warning-border)",borderRadius:"var(--radius-md)",padding:"var(--space-8u)",marginBottom:"var(--space-12u)",display:"flex",alignItems:"flex-start",gap:"var(--space-6u)",textAlign:"left"},children:[t.jsx(ia,{size:16,style:{color:"var(--color-warning)",marginTop:"var(--space-1u)"}}),t.jsxs("div",{children:[t.jsx("div",{style:{fontWeight:500,marginBottom:"var(--space-2u)"},children:"Important!"}),t.jsx("div",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-secondary-text)"},children:"Store these codes safely. Each code can only be used once if you lose access to your authenticator device."})]})]}),t.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"var(--space-4u)",marginBottom:"var(--space-12u)",maxWidth:"calc(var(--size-50u) * 3)",margin:"0 auto var(--space-12u) auto"},children:ce.map((ae,Le)=>t.jsx("div",{style:{background:"var(--color-input-background)",border:"var(--border-width-thin) solid var(--color-border)",borderRadius:"var(--radius-md)",padding:"var(--space-4u)",fontFamily:"monospace",fontSize:"var(--font-size-sm)",textAlign:"center",cursor:"pointer"},onClick:()=>navigator.clipboard.writeText(ae),children:ae},Le))}),t.jsxs("div",{style:{display:"flex",gap:"var(--space-6u)",justifyContent:"center",marginBottom:"var(--space-12u)"},children:[t.jsx(N,{onClick:er,style:{padding:"var(--space-4u) var(--space-8u)",fontSize:"var(--font-size-lg)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)"},children:"Copy All"}),t.jsxs(N,{onClick:tr,style:{padding:"var(--space-4u) var(--space-8u)",fontSize:"var(--font-size-lg)",background:"var(--color-background)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsx(Rd,{size:16,style:{marginRight:"var(--space-2u)"}}),"DownloadSimple"]})]}),t.jsx(N,{onClick:ze,style:{padding:"var(--space-5u) var(--space-10u)",background:"var(--color-primary)",color:"var(--color-foreground-inverse)",border:"var(--border-width-thin) solid var(--color-primary)"},children:"Complete Setup"})]}),ee==="success"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{marginBottom:"var(--space-12u)"},children:[t.jsx(ct,{size:48,style:{color:"var(--color-success)",marginBottom:"var(--space-8u)"}}),t.jsx("h3",{style:{fontSize:"var(--font-size-2xl)",fontWeight:600,margin:"0 0 var(--space-4u) 0"},children:"All Set!"}),t.jsx("p",{style:{fontSize:"var(--font-size-lg)",color:"var(--color-secondary-text)",margin:0},children:"Your account is now protected with two-factor authentication."})]}),t.jsx(N,{onClick:ze,style:{padding:"var(--space-5u) var(--space-10u)",background:"var(--color-primary)",color:"var(--color-foreground-inverse)",border:"var(--border-width-thin) solid var(--color-primary)"},children:"Continue to Security"})]})]})]}):t.jsx(t.Fragment,{children:bt.length?t.jsx("div",{children:bt.map((ae,Le)=>{const dt=Le>0?bt[Le-1].group:null,He=ae.group!==dt,Tt=bt[Le+1],Ft=Tt&&Tt.group===ae.group;return t.jsxs("div",{children:[He&&t.jsx(q5,{$first:Le===0,children:ae.group==="sign-in"?"Sign-in methods":"Recovery"}),t.jsxs(Ex,{style:He?{paddingTop:0}:void 0,children:[t.jsxs(Ax,{children:[t.jsx("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",fontWeight:400,color:"var(--color-foreground)"},children:t.jsx("span",{children:ae.name})}),t.jsx("div",{style:{fontSize:"var(--font-size-md)",color:"var(--color-secondary-text)"},children:ae.description})]}),t.jsx(zx,{children:t.jsxs("div",{style:{position:"relative"},children:[ae.id==="password"&&t.jsx(t.Fragment,{children:r!=null&&r.has_password?t.jsxs("div",{style:{display:"flex",gap:"var(--space-4u)"},children:[t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:M,onClick:()=>k(!0),children:"Change"}),_&&t.jsx(wl,{triggerRef:M,onClose:()=>k(!1),onChangePassword:X})]}),we()&&t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",ref:R,onClick:()=>L(!0),children:"Remove"}),y&&t.jsx(L5,{triggerRef:R,onClose:()=>L(!1),onRemovePassword:oe})]})]}):t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:M,onClick:()=>k(!0),children:"Setup"}),_&&t.jsx(wl,{triggerRef:M,onClose:()=>k(!1),onChangePassword:X,isSetup:!0})]})}),ae.id==="authenticator"&&!(r!=null&&r.user_authenticator)&&t.jsx(t.Fragment,{children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:F,onClick:()=>C(!0),disabled:pe,children:pe?"Setting up...":"Setup"}),S&&t.jsx(P5,{triggerRef:F,onClose:()=>C(!1),onSetupTOTP:async()=>{const U=await s();return Ge(U.id),U},onVerifyTOTP:async U=>{await i(Ue,U),await r.refetch(),x("Two-factor authentication enabled successfully!","info")}})]})}),ae.id==="authenticator"&&(r==null?void 0:r.user_authenticator)&&t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,onClick:()=>E(!0),disabled:qe,style:{cursor:qe?"not-allowed":"pointer",opacity:qe?.6:1},children:qe?"Removing...":"Remove"}),w&&t.jsx(ta,{title:"Remove MFA and reset policy to default?",onConfirm:Qe,onCancel:()=>E(!1)})]}),ae.id==="backup_codes"&&t.jsx(t.Fragment,{children:t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:A,onClick:_t,disabled:q,children:q?"Generating...":r!=null&&r.backup_codes_generated?"Regenerate":"Generate"}),$&&t.jsx(V5,{triggerRef:A,codes:ce,onClose:()=>H(!1),onCopy:er,onDownload:tr})]})}),ae.id==="second_factor_policy"&&t.jsx(Tr,{checked:b==="enforced",onChange:U=>{j(U?"enforced":"none")}}),ae.id==="passkey"&&t.jsxs("div",{style:{display:"flex",gap:"var(--space-4u)",alignItems:"center"},children:[t.jsxs(N,{$outline:!0,$size:"sm",onClick:()=>D(!G),style:{color:"var(--color-foreground)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"var(--space-3u)",whiteSpace:"nowrap",flexShrink:0,width:"calc(var(--size-50u) + var(--space-5u))",height:"var(--size-18u)"},children:[G?"Hide":"Manage"," ","(",z.length,")",t.jsx(ur,{size:14,style:{transform:G?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$size:"sm",ref:he,onClick:()=>Y(!0),disabled:I,style:{cursor:I?"not-allowed":"pointer",opacity:I?.7:1,whiteSpace:"nowrap",minWidth:"var(--size-40u)",width:"auto",height:"var(--size-18u)"},children:I?"Adding...":"Add"}),W&&t.jsx(G5,{triggerRef:he,onClose:()=>Y(!1),onAddPasskey:hr})]})]})]})})]}),ae.id==="passkey"&&G&&t.jsx("div",{style:{padding:"var(--space-6u) 0",borderTop:"var(--border-width-thin) solid var(--color-border)",marginTop:"var(--space-4u)"},children:P?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-8u)"},children:t.jsx(Ee,{})}):z.length===0?t.jsx("div",{style:{textAlign:"center",padding:"var(--space-8u)",color:"var(--color-secondary-text)",fontSize:"var(--font-size-md)"},children:"No passkeys registered yet"}):t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-4u)"},children:z.map(U=>t.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"var(--space-5u) var(--space-6u)",background:"var(--color-input-background)",borderRadius:"var(--radius-md)",border:"var(--border-width-thin) solid var(--color-border)"},children:[t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"var(--space-1u)"},children:[t.jsx("span",{style:{fontWeight:500,fontSize:"var(--font-size-md)",color:"var(--color-foreground)"},children:U.name||"Unnamed Passkey"}),t.jsxs("span",{style:{fontSize:"var(--font-size-xs)",color:"var(--color-secondary-text)"},children:[U.device_type==="platform"?"This device":"Security key",U.last_used_at&&` • Last used ${new Date(U.last_used_at).toLocaleDateString()}`]})]}),t.jsxs("div",{style:{position:"relative"},children:[t.jsx(N,{$destructive:!0,$size:"sm",onClick:()=>ie(U.id),style:{flexShrink:0,width:"auto"},children:"Remove"}),J===U.id&&t.jsx(ta,{title:`Remove "${U.name||"Unnamed Passkey"}"?`,onConfirm:()=>{fr(U.id),ie(null)},onCancel:()=>ie(null)})]})]},U.id))})}),Ft&&t.jsx("div",{style:{height:"var(--border-width-thin)",background:"var(--color-border)",margin:"0"}})]},ae.id)})}):t.jsx(At,{title:"No security features available",description:"Contact your administrator to enable security features."})})},Y5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e,children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"a",x1:3.217,x2:44.781,y1:15,y2:15,gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#d93025"}),t.jsx("stop",{offset:1,stopColor:"#ea4335"})]}),t.jsxs("linearGradient",{id:"b",x1:20.722,x2:41.504,y1:47.679,y2:11.684,gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#fcc934"}),t.jsx("stop",{offset:1,stopColor:"#fbbc04"})]}),t.jsxs("linearGradient",{id:"c",x1:26.598,x2:5.816,y1:46.502,y2:10.506,gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#1e8e3e"}),t.jsx("stop",{offset:1,stopColor:"#34a853"})]})]}),t.jsx("circle",{cx:24,cy:23.995,r:12,style:{fill:"#fff"}}),t.jsx("path",{d:"M3.215 36A24 24 0 1 0 12 3.215 24 24 0 0 0 3.215 36Zm31.177-18A12 12 0 1 1 18 13.608 12 12 0 0 1 34.392 18Z",style:{fill:"none"}}),t.jsx("path",{d:"M24 12h20.781a23.994 23.994 0 0 0-41.564.003L13.607 30l.01-.002A11.985 11.985 0 0 1 24 12Z",style:{fill:"url(#a)"}}),t.jsx("circle",{cx:24,cy:24,r:9.5,style:{fill:"#1a73e8"}}),t.jsx("path",{d:"M34.391 30.003 24.001 48A23.994 23.994 0 0 0 44.78 12.003H23.999l-.003.01a11.985 11.985 0 0 1 10.395 17.99Z",style:{fill:"url(#b)"}}),t.jsx("path",{d:"M13.609 30.003 3.218 12.006A23.994 23.994 0 0 0 24.003 48l10.39-17.997-.007-.007a11.985 11.985 0 0 1-20.777.007Z",style:{fill:"url(#c)"}})]}),Q5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:512,height:512,viewBox:"0 0 512 512",...e,children:[t.jsxs("defs",{children:[t.jsxs("radialGradient",{id:"g",cx:"210%",cy:"-100%",r:"290%",children:[t.jsx("stop",{offset:.1,stopColor:"#ffe226"}),t.jsx("stop",{offset:.79,stopColor:"#ff7139"})]}),t.jsxs("radialGradient",{id:"c",cx:"49%",cy:"40%",r:"128%",gradientTransform:"matrix(.82 0 0 1 .088 0)",children:[t.jsx("stop",{offset:.3,stopColor:"#960e18"}),t.jsx("stop",{offset:.35,stopColor:"#b11927",stopOpacity:.74}),t.jsx("stop",{offset:.43,stopColor:"#db293d",stopOpacity:.34}),t.jsx("stop",{offset:.5,stopColor:"#f5334b",stopOpacity:.09}),t.jsx("stop",{offset:.53,stopColor:"#ff3750",stopOpacity:0})]}),t.jsxs("radialGradient",{id:"d",cx:"48%",cy:"-12%",r:"140%",children:[t.jsx("stop",{offset:.13,stopColor:"#fff44f"}),t.jsx("stop",{offset:.53,stopColor:"#ff980e"})]}),t.jsxs("radialGradient",{id:"e",cx:"22.76%",cy:"110.11%",r:"100%",children:[t.jsx("stop",{offset:.35,stopColor:"#3a8ee6"}),t.jsx("stop",{offset:.67,stopColor:"#9059ff"}),t.jsx("stop",{offset:1,stopColor:"#c139e6"})]}),t.jsxs("radialGradient",{id:"f",cx:"52%",cy:"33%",r:"59%",gradientTransform:"scale(.9 1)",children:[t.jsx("stop",{offset:.21,stopColor:"#9059ff",stopOpacity:0}),t.jsx("stop",{offset:.97,stopColor:"#6e008b",stopOpacity:.6})]}),t.jsxs("radialGradient",{id:"b",cx:"87.4%",cy:"-12.9%",r:"128%",gradientTransform:"matrix(.8 0 0 1 .178 .129)",children:[t.jsx("stop",{offset:.13,stopColor:"#ffbd4f"}),t.jsx("stop",{offset:.28,stopColor:"#ff980e"}),t.jsx("stop",{offset:.47,stopColor:"#ff3750"}),t.jsx("stop",{offset:.78,stopColor:"#eb0878"}),t.jsx("stop",{offset:.86,stopColor:"#e50080"})]}),t.jsxs("radialGradient",{id:"h",cx:"84%",cy:"-41%",r:"180%",children:[t.jsx("stop",{offset:.11,stopColor:"#fff44f"}),t.jsx("stop",{offset:.46,stopColor:"#ff980e"}),t.jsx("stop",{offset:.72,stopColor:"#ff3647"}),t.jsx("stop",{offset:.9,stopColor:"#e31587"})]}),t.jsxs("radialGradient",{id:"i",cx:"16.1%",cy:"-18.6%",r:"348.8%",gradientTransform:"scale(1 .47) rotate(84 .279 -.297)",children:[t.jsx("stop",{offset:0,stopColor:"#fff44f"}),t.jsx("stop",{offset:.3,stopColor:"#ff980e"}),t.jsx("stop",{offset:.57,stopColor:"#ff3647"}),t.jsx("stop",{offset:.74,stopColor:"#e31587"})]}),t.jsxs("radialGradient",{id:"j",cx:"18.9%",cy:"-42.5%",r:"238.4%",children:[t.jsx("stop",{offset:.14,stopColor:"#fff44f"}),t.jsx("stop",{offset:.48,stopColor:"#ff980e"}),t.jsx("stop",{offset:.66,stopColor:"#ff3647"}),t.jsx("stop",{offset:.9,stopColor:"#e31587"})]}),t.jsxs("radialGradient",{id:"k",cx:"159.3%",cy:"-44.72%",r:"313.1%",children:[t.jsx("stop",{offset:.09,stopColor:"#fff44f"}),t.jsx("stop",{offset:.63,stopColor:"#ff980e"})]}),t.jsxs("linearGradient",{id:"a",x1:"87.25%",x2:"9.4%",y1:"15.5%",y2:"93.1%",children:[t.jsx("stop",{offset:.05,stopColor:"#fff44f"}),t.jsx("stop",{offset:.37,stopColor:"#ff980e"}),t.jsx("stop",{offset:.53,stopColor:"#ff3647"}),t.jsx("stop",{offset:.7,stopColor:"#e31587"})]}),t.jsxs("linearGradient",{id:"l",x1:"80%",x2:"18%",y1:"14%",y2:"84%",children:[t.jsx("stop",{offset:.17,stopColor:"#fff44f",stopOpacity:.8}),t.jsx("stop",{offset:.6,stopColor:"#fff44f",stopOpacity:0})]})]}),t.jsx("path",{fill:"url(#a)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0 .039.015.136.047.4C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484a120.249 120.249 0 0 0-66.142 25.488 71.355 71.355 0 0 0-6.225-4.7 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.442 26.913c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-.212 1.061-.324 1.586-.452 2.116-2.08 12.7-2.365 15-.022.177-.032.347-.053.524a229.066 229.066 0 0 0-3.9 33.157c0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746zM201.716 354.447c1.124.537 2.18 1.124 3.334 1.639.048.033.114.07.163.1a126.191 126.191 0 0 1-3.497-1.739zm55.053-144.93zm198.131-30.59-.032-.233c.012.085.027.174.04.259z"}),t.jsx("path",{fill:"url(#b)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0-.058.011.048.036.226.012.085.027.174.04.259 22.675 61.47 10.322 123.978-7.479 162.175-27.539 59.1-94.215 119.67-198.576 116.716C136.1 454.651 36.766 370.988 18.223 261.41c-3.379-17.28 0-26.054 1.7-40.084-2.071 10.816-2.86 13.94-3.9 33.157 0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746z"}),t.jsx("path",{fill:"url(#c)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0-.058.011.048.036.226.012.085.027.174.04.259 22.675 61.47 10.322 123.978-7.479 162.175-27.539 59.1-94.215 119.67-198.576 116.716C136.1 454.651 36.766 370.988 18.223 261.41c-3.379-17.28 0-26.054 1.7-40.084-2.071 10.816-2.86 13.94-3.9 33.157 0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746z"}),t.jsx("path",{fill:"url(#d)",d:"M361.922 194.6c.524.368 1 .734 1.493 1.1a130.706 130.706 0 0 0-22.31-29.112C266.4 91.892 321.516 4.626 330.811.194c.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484 2.8-.194 5.592-.429 8.442-.429 45.051 0 84.289 24.77 105.301 61.487z"}),t.jsx("path",{fill:"url(#e)",d:"M256.772 209.514c-.393 5.978-21.514 26.593-28.9 26.593-68.339 0-79.432 41.335-79.432 41.335 3.027 34.81 27.261 63.475 56.611 78.643 1.339.692 2.694 1.317 4.05 1.935a132.768 132.768 0 0 0 7.059 2.886 106.743 106.743 0 0 0 31.271 6.031c119.78 5.618 142.986-143.194 56.545-186.408 22.137-3.85 45.115 5.053 57.947 14.067-21.012-36.714-60.25-61.484-105.3-61.484-2.85 0-5.641.235-8.442.429a120.249 120.249 0 0 0-66.142 25.488c3.664 3.1 7.8 7.244 16.514 15.828 16.302 16.067 58.13 32.705 58.219 34.657z"}),t.jsx("path",{fill:"url(#f)",d:"M256.772 209.514c-.393 5.978-21.514 26.593-28.9 26.593-68.339 0-79.432 41.335-79.432 41.335 3.027 34.81 27.261 63.475 56.611 78.643 1.339.692 2.694 1.317 4.05 1.935a132.768 132.768 0 0 0 7.059 2.886 106.743 106.743 0 0 0 31.271 6.031c119.78 5.618 142.986-143.194 56.545-186.408 22.137-3.85 45.115 5.053 57.947 14.067-21.012-36.714-60.25-61.484-105.3-61.484-2.85 0-5.641.235-8.442.429a120.249 120.249 0 0 0-66.142 25.488c3.664 3.1 7.8 7.244 16.514 15.828 16.302 16.067 58.13 32.705 58.219 34.657z"}),t.jsx("path",{fill:"url(#g)",d:"M170.829 151.036a244.042 244.042 0 0 1 4.981 3.3 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7 1.155-.033 36.014-.66 53.543 10.732z"}),t.jsx("path",{fill:"url(#h)",d:"M18.223 261.41C36.766 370.988 136.1 454.651 248.855 457.844c104.361 2.954 171.037-57.62 198.576-116.716 17.8-38.2 30.154-100.7 7.479-162.175l-.008-.026-.032-.233c-.025-.178-.04-.284-.036-.226 0 .039.015.136.047.4 8.524 55.661-19.79 109.584-64.051 146.044l-.133.313c-86.245 70.223-168.774 42.368-185.484 30.966a144.108 144.108 0 0 1-3.5-1.743c-50.282-24.029-71.054-69.838-66.6-109.124-42.457 0-56.934-35.809-56.934-35.809s38.119-27.179 88.358-3.541c46.53 21.893 90.228 3.543 90.233 3.541-.089-1.952-41.917-18.59-58.223-34.656-8.713-8.584-12.85-12.723-16.514-15.828a71.355 71.355 0 0 0-6.225-4.7 282.929 282.929 0 0 0-4.981-3.3c-17.528-11.392-52.388-10.765-53.543-10.735h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.442 26.919c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-8.65 37.842-4.44 57.199z"}),t.jsx("path",{fill:"url(#i)",d:"M341.105 166.587a130.706 130.706 0 0 1 22.31 29.112c1.323.994 2.559 1.985 3.608 2.952 54.482 50.2 25.936 121.2 23.807 126.26 44.261-36.46 72.575-90.383 64.051-146.044C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1-9.291 4.428-64.407 91.694 10.298 166.389z"}),t.jsx("path",{fill:"url(#j)",d:"M367.023 198.651c-1.049-.967-2.285-1.958-3.608-2.952-.489-.368-.969-.734-1.493-1.1-12.832-9.014-35.81-17.917-57.947-14.067 86.441 43.214 63.235 192.026-56.545 186.408a106.743 106.743 0 0 1-31.271-6.031 134.51 134.51 0 0 1-7.059-2.886c-1.356-.618-2.711-1.243-4.05-1.935.048.033.114.07.163.1 16.71 11.4 99.239 39.257 185.484-30.966l.133-.313c2.129-5.054 30.675-76.057-23.807-126.258z"}),t.jsx("path",{fill:"url(#k)",d:"M148.439 277.443s11.093-41.335 79.432-41.335c7.388 0 28.509-20.615 28.9-26.593s-43.7 18.352-90.233-3.541c-50.239-23.638-88.358 3.541-88.358 3.541s14.477 35.809 56.934 35.809c-4.453 39.286 16.319 85.1 66.6 109.124 1.124.537 2.18 1.124 3.334 1.639-29.348-15.169-53.582-43.834-56.609-78.644z"}),t.jsx("path",{fill:"url(#l)",d:"M478.711 166.353c-10.445-25.124-31.6-52.248-48.212-60.821 13.52 26.505 21.345 53.093 24.335 72.936 0 .039.015.136.047.4C427.706 111.135 381.627 83.823 344 24.355c-1.9-3.007-3.805-6.022-5.661-9.2a73.716 73.716 0 0 1-2.646-4.972A43.7 43.7 0 0 1 332.1.677a.626.626 0 0 0-.546-.644.818.818 0 0 0-.451 0c-.034.012-.084.051-.12.065-.053.021-.12.069-.176.1.027-.036.083-.117.1-.136-60.37 35.356-80.85 100.761-82.732 133.484 2.8-.194 5.592-.429 8.442-.429 45.053 0 84.291 24.77 105.3 61.484-12.832-9.014-35.81-17.917-57.947-14.067 86.441 43.214 63.235 192.026-56.545 186.408a106.743 106.743 0 0 1-31.271-6.031 134.51 134.51 0 0 1-7.059-2.886c-1.356-.618-2.711-1.243-4.05-1.935.048.033.114.07.163.1a144.108 144.108 0 0 1-3.5-1.743c1.124.537 2.18 1.124 3.334 1.639-29.35-15.168-53.584-43.833-56.611-78.643 0 0 11.093-41.335 79.432-41.335 7.388 0 28.509-20.615 28.9-26.593-.089-1.952-41.917-18.59-58.223-34.656-8.713-8.584-12.85-12.723-16.514-15.828a71.355 71.355 0 0 0-6.225-4.7 111.338 111.338 0 0 1-.674-58.732c-24.688 11.241-43.89 29.01-57.85 44.7h-.111c-9.527-12.067-8.855-51.873-8.312-60.184-.114-.515-7.107 3.63-8.023 4.255a175.073 175.073 0 0 0-23.486 20.12 210.478 210.478 0 0 0-22.435 26.916c0 .012-.007.026-.011.038 0-.013.007-.026.011-.038a202.838 202.838 0 0 0-32.247 72.805c-.115.521-.212 1.061-.324 1.586-.452 2.116-2.486 12.853-2.77 15.156-.022.177.021-.176 0 0a279.565 279.565 0 0 0-3.544 33.53c0 .41-.025.816-.025 1.227C16 388.418 123.6 496 256.324 496c118.865 0 217.56-86.288 236.882-199.63.407-3.076.733-6.168 1.092-9.271 4.777-41.21-.53-84.525-15.587-120.746zm-23.841 12.341c.012.085.027.174.04.259l-.008-.026-.032-.233z"})]}),J5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:250.076,height:248.707,viewBox:"0 0 66.166 65.804",...e,children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"b",children:[t.jsx("stop",{offset:0,stopColor:"#06c2e7"}),t.jsx("stop",{offset:.25,stopColor:"#0db8ec"}),t.jsx("stop",{offset:.5,stopColor:"#12aef1"}),t.jsx("stop",{offset:.75,stopColor:"#1f86f9"}),t.jsx("stop",{offset:1,stopColor:"#107ddd"})]}),t.jsxs("linearGradient",{id:"a",children:[t.jsx("stop",{offset:0,stopColor:"#bdbdbd"}),t.jsx("stop",{offset:1,stopColor:"#fff"})]}),t.jsx("linearGradient",{xlinkHref:"#a",id:"d",x1:412.975,x2:412.975,y1:237.608,y2:59.392,gradientTransform:"translate(206.79 159.773) scale(.35154)",gradientUnits:"userSpaceOnUse"}),t.jsx("filter",{id:"f",width:1.042,height:1.045,x:-.021,y:-.022,colorInterpolationFilters:"sRGB",children:t.jsx("feGaussianBlur",{stdDeviation:.958})}),t.jsx("filter",{id:"c",width:1.096,height:1.096,x:-.048,y:-.048,colorInterpolationFilters:"sRGB",children:t.jsx("feGaussianBlur",{stdDeviation:3.564})}),t.jsx("radialGradient",{xlinkHref:"#b",id:"e",cx:413.061,cy:136.818,r:82.125,fx:413.061,fy:136.818,gradientTransform:"translate(194.545 155.58) scale(.38143)",gradientUnits:"userSpaceOnUse"})]}),t.jsx("path",{d:"M502.083 148.5a89.108 89.108 0 0 1-89.108 89.108 89.108 89.108 0 0 1-89.108-89.108 89.108 89.108 0 0 1 89.108-89.108 89.108 89.108 0 0 1 89.108 89.108Z",filter:"url(#c)",opacity:.53,paintOrder:"markers stroke fill",transform:"matrix(.33865 0 0 .3261 -106.77 -14.478)"}),t.jsx("path",{fill:"url(#d)",stroke:"#cdcdcd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.093,d:"M383.294 211.977a31.325 31.325 0 0 1-31.325 31.325 31.325 31.325 0 0 1-31.326-31.325 31.325 31.325 0 0 1 31.326-31.325 31.325 31.325 0 0 1 31.325 31.325z",paintOrder:"markers stroke fill",transform:"translate(-318.886 -180.595)"}),t.jsx("path",{fill:"url(#e)",d:"M380.84 211.977a28.87 28.87 0 0 1-28.871 28.87 28.87 28.87 0 0 1-28.871-28.87 28.87 28.87 0 0 1 28.87-28.87 28.87 28.87 0 0 1 28.871 28.87z",paintOrder:"markers stroke fill",transform:"translate(-318.886 -180.595)"}),t.jsx("path",{fill:"#f4f2f3",d:"M33.083 4.017a.42.42 0 0 0-.421.42v4.856a.42.42 0 1 0 .842 0V4.438a.42.42 0 0 0-.421-.421zm-2.754.174a.42.42 0 0 0-.46.463l.212 2.03a.42.42 0 1 0 .837-.087l-.212-2.03a.42.42 0 0 0-.377-.376zm5.527.002a.42.42 0 0 0-.377.375l-.214 2.03a.42.42 0 1 0 .837.089l.214-2.031a.42.42 0 0 0-.46-.463zM27.5 4.6a.42.42 0 0 0-.41.508l1.005 4.75a.42.42 0 1 0 .824-.174l-1.005-4.75A.42.42 0 0 0 27.5 4.6zm11.183.004a.42.42 0 0 0-.414.333l-1.009 4.75a.42.42 0 1 0 .824.175l1.009-4.75a.42.42 0 0 0-.41-.508zm-13.883.757a.42.42 0 0 0-.437.55l.632 1.942a.42.42 0 1 0 .8-.26l-.63-1.942a.42.42 0 0 0-.365-.29zm16.568.001a.42.42 0 0 0-.364.29l-.632 1.942a.42.42 0 1 0 .8.26l.632-1.942a.42.42 0 0 0-.436-.55zM22.13 6.34a.42.42 0 0 0-.377.592l1.972 4.437a.42.42 0 1 0 .77-.342l-1.972-4.437a.42.42 0 0 0-.393-.25zm21.937.015a.42.42 0 0 0-.392.25l-1.978 4.434a.42.42 0 1 0 .769.343l1.978-4.434a.42.42 0 0 0-.377-.593zM19.654 7.65a.42.42 0 0 0-.394.63l1.02 1.77a.42.42 0 1 0 .73-.421L19.989 7.86a.42.42 0 0 0-.335-.21zm26.858 0a.419.419 0 0 0-.335.21l-1.021 1.769a.42.42 0 1 0 .73.42l1.02-1.768a.42.42 0 0 0-.394-.63zm-29.265 1.5a.422.422 0 0 0-.326.669l2.85 3.93a.42.42 0 1 0 .682-.494l-2.85-3.93a.42.42 0 0 0-.356-.174zm31.702.022a.42.42 0 0 0-.356.174l-2.856 3.926a.42.42 0 1 0 .681.495l2.856-3.926a.42.42 0 0 0-.325-.669zm-33.852 1.783a.42.42 0 0 0-.335.702l1.366 1.518a.42.42 0 1 0 .626-.563l-1.366-1.518a.42.42 0 0 0-.291-.14zm35.975.003a.421.421 0 0 0-.29.139l-1.367 1.517a.42.42 0 1 0 .625.564l1.367-1.518a.42.42 0 0 0-.335-.702zm-38.037 1.977a.42.42 0 0 0-.26.733l3.61 3.249a.42.42 0 1 0 .563-.626l-3.609-3.248a.42.42 0 0 0-.304-.108zm40.109.014a.419.419 0 0 0-.304.108l-3.61 3.245a.42.42 0 1 0 .562.626l3.61-3.245a.42.42 0 0 0-.258-.734zm-41.823 2.19a.42.42 0 0 0-.262.762l1.652 1.2a.42.42 0 1 0 .495-.681l-1.652-1.2a.42.42 0 0 0-.233-.081zm43.535.015a.421.421 0 0 0-.233.08l-1.653 1.2a.42.42 0 1 0 .495.681l1.653-1.2a.42.42 0 0 0-.262-.76zM9.72 17.49a.42.42 0 0 0-.18.785l4.204 2.427a.42.42 0 1 0 .42-.729L9.96 17.546a.42.42 0 0 0-.24-.056zm46.728 0a.417.417 0 0 0-.24.056l-4.205 2.427a.42.42 0 1 0 .42.73l4.206-2.428a.42.42 0 0 0-.181-.785zM8.508 19.996a.42.42 0 0 0-.18.806l1.866.832a.42.42 0 1 0 .343-.77l-1.866-.831a.42.42 0 0 0-.163-.037zm49.158.017a.42.42 0 0 0-.164.037l-1.865.83a.42.42 0 1 0 .342.77l1.866-.831a.42.42 0 0 0-.179-.806zM7.429 22.615a.42.42 0 0 0-.094.82l4.615 1.504a.42.42 0 1 0 .261-.8l-4.616-1.504a.421.421 0 0 0-.166-.02zm51.314.018a.408.408 0 0 0-.166.02l-4.617 1.5a.42.42 0 1 0 .26.801l4.617-1.5a.42.42 0 0 0-.094-.82zM6.756 25.365a.42.42 0 0 0-.09.833l1.998.424a.42.42 0 1 0 .175-.823l-1.998-.425a.413.413 0 0 0-.085-.009zm52.655.004a.518.518 0 0 0-.085.009l-1.998.424a.42.42 0 1 0 .175.823l1.998-.424a.42.42 0 0 0-.09-.833zM6.247 28.13a.42.42 0 0 0-.003.838l4.828.51a.42.42 0 1 0 .089-.837l-4.829-.51a.432.432 0 0 0-.085 0zm53.676.037a.386.386 0 0 0-.085 0l-4.83.504a.42.42 0 1 0 .088.837l4.83-.504a.42.42 0 0 0-.003-.837zM6.165 30.96a.42.42 0 1 0 0 .842h2.043a.42.42 0 1 0 0-.842zm51.793 0a.42.42 0 1 0 0 .842h2.043a.42.42 0 1 0 0-.842zm-46.803 2.295a.384.384 0 0 0-.085 0l-4.83.504a.42.42 0 1 0 .088.838l4.83-.504a.42.42 0 0 0-.003-.838zm43.853.03a.42.42 0 0 0-.003.838l4.828.51a.42.42 0 1 0 .089-.837l-4.828-.51a.434.434 0 0 0-.086-.001zM8.748 36.13a.43.43 0 0 0-.085.009l-1.998.424a.42.42 0 1 0 .175.823l1.998-.424a.42.42 0 0 0-.09-.833zm48.67.004a.42.42 0 0 0-.09.833l1.997.424a.42.42 0 1 0 .175-.824l-1.998-.424a.413.413 0 0 0-.085-.01zM12.111 37.79a.408.408 0 0 0-.166.02l-4.617 1.5a.42.42 0 1 0 .26.801l4.617-1.5a.42.42 0 0 0-.094-.82zm41.937.015a.42.42 0 0 0-.094.82l4.616 1.504a.42.42 0 1 0 .26-.8l-4.615-1.504a.421.421 0 0 0-.167-.02zM10.35 41.08a.42.42 0 0 0-.163.036l-1.866.831a.42.42 0 1 0 .342.769l1.866-.83a.42.42 0 0 0-.179-.806zm45.459.016a.42.42 0 0 0-.18.805l1.865.832a.42.42 0 1 0 .343-.769l-1.865-.832a.42.42 0 0 0-.163-.036zm-41.826.912a.417.417 0 0 0-.24.056L9.538 44.49a.42.42 0 1 0 .421.73l4.205-2.428a.42.42 0 0 0-.181-.785zm38.2 0a.42.42 0 0 0-.181.785l4.205 2.427a.42.42 0 1 0 .42-.729l-4.204-2.427a.42.42 0 0 0-.24-.056zm-39.249 3.562a.421.421 0 0 0-.233.08l-1.653 1.2a.42.42 0 1 0 .495.682l1.653-1.2a.42.42 0 0 0-.262-.762zm40.288.015a.42.42 0 0 0-.262.762l1.652 1.2a.42.42 0 1 0 .495-.681l-1.652-1.2a.42.42 0 0 0-.233-.081zm-36.544.145a.418.418 0 0 0-.304.108l-3.61 3.245a.42.42 0 1 0 .562.626l3.61-3.245a.42.42 0 0 0-.258-.734zm32.8.011a.421.421 0 0 0-.26.734l3.609 3.248a.42.42 0 1 0 .563-.625l-3.608-3.249a.42.42 0 0 0-.304-.107zm-29.375 3.084a.42.42 0 0 0-.355.173l-2.856 3.927a.42.42 0 1 0 .68.495l2.857-3.926a.42.42 0 0 0-.326-.669zm25.936.018a.421.421 0 0 0-.326.668l2.85 3.93a.42.42 0 1 0 .682-.494l-2.851-3.93a.42.42 0 0 0-.355-.174zm-29.623.606a.421.421 0 0 0-.29.14l-1.367 1.517a.42.42 0 1 0 .625.563l1.367-1.517a.42.42 0 0 0-.335-.703zm33.331.002a.42.42 0 0 0-.335.702l1.366 1.518a.42.42 0 1 0 .626-.563l-1.366-1.518a.42.42 0 0 0-.291-.139zm-25.655 1.684a.419.419 0 0 0-.393.25l-1.978 4.433a.42.42 0 1 0 .77.343l1.977-4.434a.42.42 0 0 0-.376-.592zm17.955.012a.42.42 0 0 0-.377.592l1.972 4.437a.42.42 0 1 0 .77-.342l-1.972-4.437a.42.42 0 0 0-.393-.25zm-21.431 1.359a.419.419 0 0 0-.335.21l-1.021 1.768a.42.42 0 1 0 .729.421l1.02-1.769a.42.42 0 0 0-.393-.63zm24.934 0a.42.42 0 0 0-.394.63l1.021 1.77a.42.42 0 1 0 .73-.422l-1.022-1.769a.42.42 0 0 0-.335-.21zm-17.054.063a.42.42 0 0 0-.415.334l-1.009 4.749a.42.42 0 1 0 .824.175l1.009-4.75a.42.42 0 0 0-.41-.508zm9.16.003a.42.42 0 0 0-.41.508l1.006 4.75a.42.42 0 1 0 .823-.175l-1.006-4.75a.42.42 0 0 0-.414-.333zm-4.573.48a.42.42 0 0 0-.421.42v4.855a.42.42 0 1 0 .842 0v-4.855a.42.42 0 0 0-.421-.42zm-7.727 1.568a.42.42 0 0 0-.364.29l-.631 1.942a.42.42 0 1 0 .8.26l.632-1.942a.42.42 0 0 0-.437-.55zm15.45 0a.42.42 0 0 0-.437.55l.632 1.943a.42.42 0 1 0 .8-.26l-.63-1.942a.42.42 0 0 0-.365-.29zm-10.365 1.083a.42.42 0 0 0-.378.375l-.213 2.03a.42.42 0 1 0 .837.088l.214-2.03a.42.42 0 0 0-.46-.463zm5.267.002a.42.42 0 0 0-.46.463l.212 2.03a.42.42 0 1 0 .837-.088l-.212-2.03a.42.42 0 0 0-.377-.375z",paintOrder:"markers stroke fill"}),t.jsx("path",{d:"m469.096 100.607-65.51 38.061-41.42 65.207 60.595-44.882z",filter:"url(#f)",opacity:.409,paintOrder:"markers stroke fill",transform:"translate(-112.095 -20.822) scale(.35154)"}),t.jsx("path",{fill:"#ff5150",d:"m36.383 34.838-6.6-6.913 23.416-15.752z",paintOrder:"markers stroke fill"}),t.jsx("path",{fill:"#f1f1f1",d:"m36.383 34.838-6.6-6.913L12.966 50.59z",paintOrder:"markers stroke fill"}),t.jsx("path",{d:"m12.967 50.59 23.416-15.752L53.2 12.173z",opacity:.243})]}),X5=e=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:[t.jsxs("defs",{children:[t.jsxs("radialGradient",{id:"b",cx:161.8,cy:68.9,r:95.4,gradientTransform:"matrix(1 0 0 -.95 0 248.8)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:.7,stopOpacity:0}),t.jsx("stop",{offset:.9,stopOpacity:.5}),t.jsx("stop",{offset:1})]}),t.jsxs("radialGradient",{id:"d",cx:-340.3,cy:63,r:143.2,gradientTransform:"matrix(.15 -.99 -.8 -.12 176.6 -125.4)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:.8,stopOpacity:0}),t.jsx("stop",{offset:.9,stopOpacity:.5}),t.jsx("stop",{offset:1})]}),t.jsxs("radialGradient",{id:"e",cx:113.4,cy:570.2,r:202.4,gradientTransform:"matrix(-.04 1 2.13 .08 -1179.5 -106.7)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#35c1f1"}),t.jsx("stop",{offset:.1,stopColor:"#34c1ed"}),t.jsx("stop",{offset:.2,stopColor:"#2fc2df"}),t.jsx("stop",{offset:.3,stopColor:"#2bc3d2"}),t.jsx("stop",{offset:.7,stopColor:"#36c752"})]}),t.jsxs("radialGradient",{id:"f",cx:376.5,cy:568,r:97.3,gradientTransform:"matrix(.28 .96 .78 -.23 -303.8 -148.5)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#66eb6e"}),t.jsx("stop",{offset:1,stopColor:"#66eb6e",stopOpacity:0})]}),t.jsxs("linearGradient",{id:"a",x1:63.3,x2:241.7,y1:84,y2:84,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#0c59a4"}),t.jsx("stop",{offset:1,stopColor:"#114a8b"})]}),t.jsxs("linearGradient",{id:"c",x1:157.3,x2:46,y1:161.4,y2:40.1,gradientTransform:"matrix(1 0 0 -1 0 266)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:0,stopColor:"#1b9de2"}),t.jsx("stop",{offset:.2,stopColor:"#1595df"}),t.jsx("stop",{offset:.7,stopColor:"#0680d7"}),t.jsx("stop",{offset:1,stopColor:"#0078d4"})]})]}),t.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{fill:"url(#a)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M235.7 195.5a93.7 93.7 0 0 1-10.6 4.7 101.9 101.9 0 0 1-35.9 6.4c-47.3 0-88.5-32.5-88.5-74.3a31.5 31.5 0 0 1 16.4-27.3c-42.8 1.8-53.8 46.4-53.8 72.5 0 74 68.1 81.4 82.8 81.4 7.9 0 19.8-2.3 27-4.6l1.3-.4a128.3 128.3 0 0 0 66.6-52.8 4 4 0 0 0-5.3-5.6Z",style:{isolation:"isolate",opacity:.35,fill:"url(#b)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{fill:"url(#c)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M110.3 246.3A79.2 79.2 0 0 1 87.6 225a80.7 80.7 0 0 1 29.5-120c3.2-1.5 8.5-4.1 15.6-4a32.4 32.4 0 0 1 25.7 13 31.9 31.9 0 0 1 6.3 18.7c0-.2 24.5-79.6-80-79.6-43.9 0-80 41.6-80 78.2a130.2 130.2 0 0 0 12.1 56 128 128 0 0 0 156.4 67 75.5 75.5 0 0 1-62.8-8Z",style:{opacity:.41,fill:"url(#d)",isolation:"isolate"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#e)"},transform:"translate(-4.6 -5)"}),t.jsx("path",{d:"M157 153.8c-.9 1-3.4 2.5-3.4 5.6 0 2.6 1.7 5.2 4.8 7.3 14.3 10 41.4 8.6 41.5 8.6a59.6 59.6 0 0 0 30.3-8.3 61.4 61.4 0 0 0 30.4-52.9c.3-22.4-8-37.3-11.3-43.9C228 28.8 182.3 5 132.6 5a128 128 0 0 0-128 126.2c.5-36.5 36.8-66 80-66 3.5 0 23.5.3 42 10a72.6 72.6 0 0 1 30.9 29.3c6.1 10.6 7.2 24.1 7.2 29.5s-2.7 13.3-7.8 19.9Z",style:{fill:"url(#f)"},transform:"translate(-4.6 -5)"})]}),ew=e=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,role:"img","aria-label":"Opera",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"opera-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",stopColor:"#FF1B2D"}),t.jsx("stop",{offset:"50%",stopColor:"#CC0000"}),t.jsx("stop",{offset:"100%",stopColor:"#A02128"})]})}),t.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"url(#opera-gradient)"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"6.5",ry:"8.5",fill:"none",stroke:"#fff",strokeWidth:"1.2",opacity:"0.9"}),t.jsx("ellipse",{cx:"12",cy:"12",rx:"3.5",ry:"5.5",fill:"#fff"}),t.jsx("path",{d:"M12 8.5c-1.4 0-2.5 1.6-2.5 3.5s1.1 3.5 2.5 3.5 2.5-1.6 2.5-3.5-1.1-3.5-2.5-3.5z",fill:"url(#opera-gradient)"})]}),tw=e=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,role:"img","aria-label":"Brave",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"brave-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",stopColor:"#FB542B"}),t.jsx("stop",{offset:"50%",stopColor:"#FF6B35"}),t.jsx("stop",{offset:"100%",stopColor:"#FF4500"})]})}),t.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"url(#brave-gradient)"}),t.jsx("path",{d:"M12 3.5l1.5 2h2.5l-.8 3 1.3 2.5-2.5.8v2.7l-2-.7-2 .7v-2.7l-2.5-.8L8.8 8.5 8 5.5h2.5L12 3.5z",fill:"#fff"}),t.jsx("path",{d:"M12 6.5c-.8 0-1.5.7-1.5 1.5v3c0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5V8c0-.8-.7-1.5-1.5-1.5z",fill:"url(#brave-gradient)"}),t.jsx("circle",{cx:"12",cy:"16",r:"1",fill:"url(#brave-gradient)"})]}),rw=()=>t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",style:{color:"var(--color-secondary-text)"},children:[t.jsx("circle",{cx:"12",cy:"12",r:"11",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5",opacity:"0.6"}),t.jsx("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"0.5",opacity:"0.3"}),t.jsx("path",{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z",fill:"currentColor",opacity:"0.5"}),t.jsx("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"}),t.jsx("text",{x:"12",y:"16.5",textAnchor:"middle",fill:"currentColor",fontSize:"6",opacity:"0.7",children:"?"})]}),aw=({browser:e})=>{const r=(e==null?void 0:e.toLowerCase())||"",a={width:20,height:20};return r.includes("chrome")?t.jsx(Y5,{...a}):r.includes("firefox")?t.jsx(Q5,{...a}):r.includes("safari")?t.jsx(J5,{...a}):r.includes("edge")?t.jsx(X5,{...a}):r.includes("opera")?t.jsx(ew,{...a}):r.includes("brave")?t.jsx(tw,{...a}):t.jsx(rw,{})},nw=()=>{const{signins:e,removeSignin:r,refetch:a,loading:o}=x0(),{refetch:s}=at(),{toast:i}=Xt(),h=e,d=async f=>{try{await r(f),await Promise.all([a(),s()]),i("Session ended successfully","info")}catch(p){i(p.message||"Failed to end session. Please try again.","error")}},u=f=>{if(!f||f.trim()==="")return"Unknown";const p=new Date(f);if(isNaN(p.getTime()))return"Unknown";const g=Math.floor((new Date().getTime()-p.getTime())/(1e3*60));return g<1?"Just now":g<60?`${g}m ago`:g<1440?`${Math.floor(g/60)}h ago`:p.toLocaleDateString()};return o?t.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"var(--space-10u)"},children:t.jsx(Ee,{})}):t.jsx("div",{children:h&&h.length>0?t.jsx(t.Fragment,{children:t.jsx(Bs,{children:t.jsxs(Dt,{children:[t.jsx(Nt,{children:t.jsxs(lt,{children:[t.jsx(Ie,{children:"Browser & Device"}),t.jsx(Ie,{children:"Location"}),t.jsx(Ie,{children:"Last Active"}),t.jsx(Ie,{})]})}),t.jsx(Ut,{children:h.map(f=>t.jsxs(lt,{children:[t.jsx(Ye,{children:t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-4u)"},children:[t.jsx(Mx,{children:t.jsx(aw,{browser:f.browser||"Unknown"})}),t.jsxs("div",{children:[t.jsx("div",{children:f.browser||"Unknown Browser"}),f.device&&t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)"},children:f.device})]})]})}),t.jsx(Ye,{children:t.jsxs("div",{children:[t.jsx("div",{children:f.city&&f.country?`${f.city}, ${f.country}`:"Unknown location"}),f.ip_address&&t.jsx("div",{style:{fontSize:"var(--font-size-sm)",color:"var(--color-muted)"},children:f.ip_address})]})}),t.jsx(Ye,{children:u(f.last_active_at)}),t.jsx(Bt,{children:t.jsxs(N,{$size:"sm",$outline:!0,$destructive:!0,onClick:()=>d(f.id),children:[t.jsx($r,{size:12,style:{marginRight:4}}),"Sign out"]})})]},f.id))})]})})}):t.jsx(At,{title:"No active sessions",description:"You don't have any active sessions at the moment."})})},ow=l(nu)`
|
|
5795
5795
|
display: flex;
|
|
5796
5796
|
justify-content: center;
|
|
5797
5797
|
align-items: center;
|
|
@@ -5853,7 +5853,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5853
5853
|
`,lw=l.span`
|
|
5854
5854
|
font-size: var(--font-size-lg);
|
|
5855
5855
|
color: var(--color-popover-foreground);
|
|
5856
|
-
`,dw=(e,r)=>`${(e==null?void 0:e[0])||""}${(r==null?void 0:r[0])||""}`.toUpperCase()||"U",vu=()=>{var C,_,k,y,L,
|
|
5856
|
+
`,dw=(e,r)=>`${(e==null?void 0:e[0])||""}${(r==null?void 0:r[0])||""}`.toUpperCase()||"U",vu=()=>{var C,_,k,y,L,$,H,F;const{loading:e,user:r,updateProfilePicture:a}=dr(),{deployment:o}=Se(),[s,i]=c.useState("profile"),[h,d]=c.useState(null),[u,f]=c.useState("info"),[p,m]=c.useState(!1),g=c.useRef(null),x=c.useCallback((M,R="info")=>{d(M),f(R),setTimeout(()=>d(null),3e3)},[d]),b=async M=>{var A;const R=(A=M.target.files)==null?void 0:A[0];if(R){if(R.size>2*1024*1024){x("File size cannot exceed 2MB","error");return}if(!R.type.startsWith("image/")){x("Please select a valid image file","error");return}try{m(!0),await a(R),await(r==null?void 0:r.refetch()),x("Profile picture updated","info")}catch(z){x((z==null?void 0:z.message)||"Failed to update profile picture","error")}finally{m(!1),g.current&&(g.current.value="")}}};if(e)return t.jsx(fe,{children:t.jsx(ow,{children:t.jsx(Ee,{})})});const v=o==null?void 0:o.auth_settings,w=(C=v==null?void 0:v.email_address)==null?void 0:C.enabled,E=(_=v==null?void 0:v.phone_number)==null?void 0:_.enabled,j=((k=o==null?void 0:o.social_connections)==null?void 0:k.some(M=>M.enabled))||!1,S=((y=v==null?void 0:v.password)==null?void 0:y.enabled)||((L=v==null?void 0:v.auth_factors_enabled)==null?void 0:L.authenticator)||(($=v==null?void 0:v.auth_factors_enabled)==null?void 0:$.phone_otp)||((H=v==null?void 0:v.auth_factors_enabled)==null?void 0:H.backup_code);return t.jsx(fe,{children:t.jsx(jx,{children:t.jsx(au.Provider,{value:{screen:null,setScreen:()=>{},toast:x},children:t.jsxs(nu,{children:[r&&t.jsxs(Lx,{className:"mac-page-header",children:[t.jsxs(sw,{type:"button",onClick:()=>{var M;return(M=g.current)==null?void 0:M.click()},disabled:p,title:"Change profile picture","aria-label":"Change profile picture",children:[r.profile_picture_url?t.jsx("img",{src:r.profile_picture_url,alt:""}):dw(r.first_name,r.last_name),t.jsx("span",{className:"hover-overlay",children:p?t.jsx(Ee,{size:14}):t.jsx(zs,{size:16})})]}),t.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:b}),t.jsxs(Rx,{children:[t.jsx(Px,{children:`${r.first_name||""} ${r.last_name||""}`.trim()||r.username||"Account"}),((F=r.primary_email_address)==null?void 0:F.email)&&t.jsx(Tx,{children:r.primary_email_address.email})]})]}),t.jsx(_x,{children:t.jsxs(kx,{children:[t.jsx(Wr,{$isActive:s==="profile",onClick:()=>i("profile"),children:t.jsxs(Gr,{children:[t.jsx(Aa,{size:16}),"Profile"]})}),w&&t.jsx(Wr,{$isActive:s==="email",onClick:()=>i("email"),children:t.jsxs(Gr,{children:[t.jsx(In,{size:16}),"Email"]})}),E&&t.jsx(Wr,{$isActive:s==="phone",onClick:()=>i("phone"),children:t.jsxs(Gr,{children:[t.jsx(Mf,{size:16}),"Phone"]})}),j&&t.jsx(Wr,{$isActive:s==="social",onClick:()=>i("social"),children:t.jsxs(Gr,{children:[t.jsx(zf,{size:16}),"Connections"]})}),S&&t.jsx(Wr,{$isActive:s==="security",onClick:()=>i("security"),children:t.jsxs(Gr,{children:[t.jsx(Rt,{size:16}),"Security"]})}),t.jsx(Wr,{$isActive:s==="sessions",onClick:()=>i("sessions"),children:t.jsxs(Gr,{children:[t.jsx(Lf,{size:16}),"Sessions"]})})]})}),t.jsxs(Cx,{children:[s==="profile"&&t.jsx(Zx,{}),s==="email"&&w&&t.jsx(Nx,{}),s==="phone"&&E&&t.jsx(Yx,{}),s==="social"&&j&&t.jsx(f5,{}),s==="security"&&S&&t.jsx(K5,{}),s==="sessions"&&t.jsx(nw,{})]}),h&&t.jsx(iw,{children:t.jsxs(cw,{children:[u==="error"?t.jsx(ia,{size:16,color:"var(--color-error)"}):t.jsx(ct,{size:16,color:"var(--color-success)"}),t.jsx(lw,{children:h})]})})]})})})})},xu=({isOpen:e,onClose:r,title:a,showHeader:o,headerContent:s,footerContent:i,customContent:h,children:d,showCloseButton:u})=>t.jsx(Ve,{isOpen:e,onClose:r,children:t.jsx(Ve.Overlay,{children:t.jsxs(Ve.Content,{style:{width:"900px",maxWidth:"min(90vw, 100vw - 16px)"},children:[o&&t.jsx(Ve.Header,{showCloseButton:u,children:s||a}),h||d||t.jsx(vu,{}),i&&t.jsx(Ve.Footer,{children:i})]})})}),uw=l.div`
|
|
5857
5857
|
position: relative;
|
|
5858
5858
|
`,pw=l.button`
|
|
5859
5859
|
display: flex;
|
|
@@ -5933,7 +5933,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
5933
5933
|
overflow-y: auto;
|
|
5934
5934
|
display: flex;
|
|
5935
5935
|
flex-direction: column;
|
|
5936
|
-
`,
|
|
5936
|
+
`,jl=l.div`
|
|
5937
5937
|
height: var(--border-width-thin);
|
|
5938
5938
|
background: var(--color-border);
|
|
5939
5939
|
flex-shrink: 0;
|
|
@@ -6095,7 +6095,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6095
6095
|
white-space: nowrap;
|
|
6096
6096
|
overflow: hidden;
|
|
6097
6097
|
text-overflow: ellipsis;
|
|
6098
|
-
`,
|
|
6098
|
+
`,_l=l.div`
|
|
6099
6099
|
font-size: var(--font-size-xs);
|
|
6100
6100
|
font-weight: 400;
|
|
6101
6101
|
color: var(--color-secondary-text);
|
|
@@ -6188,7 +6188,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6188
6188
|
&:disabled {
|
|
6189
6189
|
cursor: default;
|
|
6190
6190
|
}
|
|
6191
|
-
`,
|
|
6191
|
+
`,kl=bu,Cl=l(bu)`
|
|
6192
6192
|
padding-left: 30px;
|
|
6193
6193
|
position: relative;
|
|
6194
6194
|
&::before {
|
|
@@ -6200,7 +6200,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6200
6200
|
width: 1px;
|
|
6201
6201
|
background: var(--color-border);
|
|
6202
6202
|
}
|
|
6203
|
-
`,
|
|
6203
|
+
`,Sl=l.div`
|
|
6204
6204
|
width: 20px;
|
|
6205
6205
|
height: 20px;
|
|
6206
6206
|
min-width: 20px;
|
|
@@ -6219,7 +6219,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6219
6219
|
height: 100%;
|
|
6220
6220
|
object-fit: cover;
|
|
6221
6221
|
}
|
|
6222
|
-
`,
|
|
6222
|
+
`,El=l.div`
|
|
6223
6223
|
width: 18px;
|
|
6224
6224
|
height: 18px;
|
|
6225
6225
|
min-width: 18px;
|
|
@@ -6238,7 +6238,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6238
6238
|
height: 100%;
|
|
6239
6239
|
object-fit: cover;
|
|
6240
6240
|
}
|
|
6241
|
-
`,
|
|
6241
|
+
`,xs=l.span`
|
|
6242
6242
|
flex: 1;
|
|
6243
6243
|
min-width: 0;
|
|
6244
6244
|
font-size: var(--font-size-md);
|
|
@@ -6246,7 +6246,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6246
6246
|
overflow: hidden;
|
|
6247
6247
|
text-overflow: ellipsis;
|
|
6248
6248
|
white-space: nowrap;
|
|
6249
|
-
`,
|
|
6249
|
+
`,Al=l(xs)`
|
|
6250
6250
|
font-size: var(--font-size-sm);
|
|
6251
6251
|
`,Zo=l.div`
|
|
6252
6252
|
display: flex;
|
|
@@ -6290,13 +6290,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6290
6290
|
opacity: 0.5;
|
|
6291
6291
|
cursor: not-allowed;
|
|
6292
6292
|
}
|
|
6293
|
-
`,
|
|
6293
|
+
`,zl=l.div`
|
|
6294
6294
|
display: flex;
|
|
6295
6295
|
align-items: center;
|
|
6296
6296
|
gap: var(--space-3u);
|
|
6297
6297
|
padding: var(--space-1u) var(--space-1u) 0;
|
|
6298
6298
|
min-width: 0;
|
|
6299
|
-
|
|
6299
|
+
`,$l=l.div`
|
|
6300
6300
|
width: 24px;
|
|
6301
6301
|
height: 24px;
|
|
6302
6302
|
min-width: 24px;
|
|
@@ -6311,13 +6311,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6311
6311
|
font-weight: 500;
|
|
6312
6312
|
flex-shrink: 0;
|
|
6313
6313
|
img { width: 100%; height: 100%; object-fit: cover; }
|
|
6314
|
-
|
|
6314
|
+
`,Ml=l.div`
|
|
6315
6315
|
display: flex;
|
|
6316
6316
|
flex-direction: column;
|
|
6317
6317
|
gap: 1px;
|
|
6318
6318
|
min-width: 0;
|
|
6319
6319
|
flex: 1;
|
|
6320
|
-
`,
|
|
6320
|
+
`,Ll=l.div`
|
|
6321
6321
|
font-size: var(--font-size-md);
|
|
6322
6322
|
font-weight: 400;
|
|
6323
6323
|
color: var(--color-popover-foreground);
|
|
@@ -6325,7 +6325,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6325
6325
|
white-space: nowrap;
|
|
6326
6326
|
overflow: hidden;
|
|
6327
6327
|
text-overflow: ellipsis;
|
|
6328
|
-
`,
|
|
6328
|
+
`,Rl=l.div`
|
|
6329
6329
|
display: flex;
|
|
6330
6330
|
align-items: center;
|
|
6331
6331
|
gap: 2px;
|
|
@@ -6352,11 +6352,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6352
6352
|
opacity: 0.5;
|
|
6353
6353
|
cursor: not-allowed;
|
|
6354
6354
|
}
|
|
6355
|
-
`,
|
|
6355
|
+
`,Pl=l.div`
|
|
6356
6356
|
border-top: var(--border-width-thin) solid var(--color-border);
|
|
6357
6357
|
padding: var(--space-2u);
|
|
6358
6358
|
flex-shrink: 0;
|
|
6359
|
-
`,
|
|
6359
|
+
`,Tl=l.button`
|
|
6360
6360
|
display: flex;
|
|
6361
6361
|
align-items: center;
|
|
6362
6362
|
gap: var(--space-3u);
|
|
@@ -6382,7 +6382,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6382
6382
|
cursor: not-allowed;
|
|
6383
6383
|
opacity: 0.6;
|
|
6384
6384
|
}
|
|
6385
|
-
`,
|
|
6385
|
+
`,Fl=l.div`
|
|
6386
6386
|
width: 20px;
|
|
6387
6387
|
height: 20px;
|
|
6388
6388
|
min-width: 20px;
|
|
@@ -6390,7 +6390,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6390
6390
|
align-items: center;
|
|
6391
6391
|
justify-content: center;
|
|
6392
6392
|
flex-shrink: 0;
|
|
6393
|
-
`,Ws=({showName:e=!0,onCreateOrg:r,showOrgSwitcher:a=!0,narrowBreakpoint:o=640})=>{var we,De,ze,Qe,_t,er,tr,Wt,hr,fr,bt;const[s,i]=c.useState(!1),[h,d]=c.useState(!1),[u,f]=c.useState(typeof window<"u"&&window.innerWidth<o),[p,m]=c.useState(!1),[g,x]=c.useState("org"),[b,v]=c.useState(null),[w,E]=c.useState({top:0,left:0,maxHeight:400}),[j,S]=c.useState(new Set),[C,_]=c.useState(null),k=c.useRef(null),y=c.useRef(null),L=c.useRef(null),z=wt({triggerRef:k,isOpen:s,minWidth:300}),O=qt(!1),R=qt(!1),M=qt(!1),T=qt(!1),A=qt(!1),{session:$,signOut:I,switchSignIn:F,switchOrganization:H,switchWorkspace:Z,refetch:P}=at(),{navigateToSignIn:G}=jt(),{deployment:D}=Se(),{activeOrganization:W,activeMembership:Y,leave:J}=cr(),{organizationMemberships:ie}=Jt(),{workspaces:he}=lr(),{activeWorkspace:ee,activeMembership:xe,leave:te}=Vt(),B=(we=$==null?void 0:$.active_signin)==null?void 0:we.user,Je=((ze=(De=D==null?void 0:D.auth_settings)==null?void 0:De.multi_session_support)==null?void 0:ze.enabled)??!1,Te=((Qe=D==null?void 0:D.b2b_settings)==null?void 0:Qe.workspaces_enabled)??!1,Ue=((_t=D==null?void 0:D.b2b_settings)==null?void 0:_t.allow_users_to_create_orgs)??!1,Ge=!W,me=c.useMemo(()=>{var ye;const se={};for(const $e of he||[]){const Be=(ye=$e.organization)==null?void 0:ye.id;Be&&(se[Be]||(se[Be]=[]),se[Be].push($e))}return se},[he]),Q=ie||[],ce=c.useCallback(()=>{if(!y.current)return;const se=y.current.getBoundingClientRect(),ye=300,$e=8,Be=window.innerWidth<o;if(f(Be),Be){E({top:se.top,left:se.left,maxHeight:se.height});return}const st=Math.min(Math.max(se.height,520),window.innerHeight-se.top-16),nt=se.right+$e+ye<=window.innerWidth-8;E({top:se.top,left:nt?se.right+$e:se.left-$e-ye,maxHeight:st})},[o]),ne=c.useCallback(()=>{ce(),d(!0)},[ce]),q=c.useCallback(se=>{S(ye=>{const $e=new Set(ye);return $e.has(se)?$e.delete(se):$e.add(se),$e})},[]);c.useEffect(()=>{W&&Te&&S(se=>{if(se.has(W.id))return se;const ye=new Set(se);return ye.add(W.id),ye})},[W,Te]),c.useEffect(()=>{x(Te&&ee?"ws":"org")},[Te,ee==null?void 0:ee.id]),c.useEffect(()=>{const se=()=>{f(window.innerWidth<o),h&&ce()};return window.addEventListener("resize",se),()=>window.removeEventListener("resize",se)},[o,h,ce]),c.useEffect(()=>{s||(d(!1),m(!1))},[s]),c.useEffect(()=>{if(!s)return;const se=setTimeout(()=>{const ye=$e=>{var st,nt,xt;const Be=$e.target;(st=k.current)!=null&&st.contains(Be)||(nt=y.current)!=null&&nt.contains(Be)||(xt=L.current)!=null&&xt.contains(Be)||i(!1)};return document.addEventListener("mousedown",ye),()=>document.removeEventListener("mousedown",ye)},50);return()=>clearTimeout(se)},[s]);const ue=se=>se.split(" ").filter(Boolean).map(ye=>ye[0]).join("").toUpperCase().slice(0,2),de=(se,ye,$e,Be,st)=>t.jsx(st,{children:se?t.jsx("img",{src:ye,alt:$e}):ue(`${$e||""} ${Be||""}`)}),K=async se=>{try{await I(se),await P(),i(!1)}catch{}},pe=async se=>{try{await F(se),await P(),i(!1)}catch{}},qe=async se=>{if(!p){m(!0);try{await H(se),await P(),d(!1)}catch{}finally{m(!1)}}},Oe=async se=>{if(!p){m(!0);try{await Z(se),await P(),d(!1)}catch{}finally{m(!1)}}},Ke=()=>{O.open(),i(!1)},ht=[...($==null?void 0:$.signins)||[]].sort((se,ye)=>{const $e=se.user.id===(B==null?void 0:B.id),Be=ye.user.id===(B==null?void 0:B.id);return $e===Be?0:$e?-1:1}),X=((er=ht.find(se=>se.user.id===(B==null?void 0:B.id)))==null?void 0:er.id)||"",oe=((Wt=(tr=Y==null?void 0:Y.roles)==null?void 0:tr[0])==null?void 0:Wt.name)??null;return t.jsx(fe,{children:t.jsxs(uw,{children:[t.jsxs(pw,{ref:k,onClick:()=>i(!s),children:[de(B==null?void 0:B.has_profile_picture,B==null?void 0:B.profile_picture_url,B==null?void 0:B.first_name,B==null?void 0:B.last_name,wu),e&&t.jsx(hw,{children:`${(B==null?void 0:B.first_name)||""} ${(B==null?void 0:B.last_name)||""}`.trim()})]}),typeof window<"u"&&An.createPortal(t.jsxs(fe,{children:[t.jsxs(fw,{ref:y,$position:z,$isOpen:s&&!(u&&h),$maxHeight:z==null?void 0:z.maxHeight,children:[t.jsx(gw,{children:t.jsxs(vw,{children:[de(B==null?void 0:B.has_profile_picture,B==null?void 0:B.profile_picture_url,B==null?void 0:B.first_name,B==null?void 0:B.last_name,xw),t.jsxs(ww,{children:[t.jsx(bw,{children:`${(B==null?void 0:B.first_name)||""} ${(B==null?void 0:B.last_name)||""}`.trim()}),t.jsx(yw,{children:(hr=B==null?void 0:B.primary_email_address)==null?void 0:hr.email})]})]})}),t.jsxs(Sw,{children:[a&&t.jsxs(jw,{$active:h,onClick:ne,style:{marginBottom:"var(--space-2u)"},children:[t.jsx(_w,{children:W?W.image_url?t.jsx("img",{src:W.image_url,alt:W.name}):(fr=W.name)==null?void 0:fr.charAt(0).toUpperCase():B!=null&&B.has_profile_picture?t.jsx("img",{src:B.profile_picture_url,alt:B.first_name}):ue(`${(B==null?void 0:B.first_name)||""} ${(B==null?void 0:B.last_name)||""}`)}),t.jsx(kw,{children:(W==null?void 0:W.name)??"Personal account"}),oe&&t.jsx(Cw,{children:oe})]}),t.jsxs(Ew,{onClick:Ke,children:[t.jsx(zr,{}),t.jsx(Aw,{children:"Manage account"}),t.jsx(zw,{children:"⌘,"})]})]}),t.jsx(yl,{}),t.jsxs($w,{children:[t.jsx(Mw,{children:"Accounts"}),Je?ht.map(({user:se,id:ye})=>{var Be;const $e=se.id===(B==null?void 0:B.id);return t.jsxs(Po,{$active:$e,onClick:$e?void 0:()=>pe(ye),children:[$e?t.jsx(To,{children:t.jsx(ct,{})}):t.jsx(Lw,{}),t.jsx(Fo,{children:(Be=se.primary_email_address)==null?void 0:Be.email}),$e&&t.jsx(jl,{children:"Current"})]},se.id)}):B&&t.jsxs(Po,{$active:!0,children:[t.jsx(To,{children:t.jsx(ct,{})}),t.jsx(Fo,{children:(bt=B.primary_email_address)==null?void 0:bt.email}),t.jsx(jl,{children:"Current"})]}),Je&&t.jsxs(Po,{onClick:()=>{G(),i(!1)},children:[t.jsx(To,{style:{color:"var(--color-secondary-text)"},children:t.jsx(kt,{})}),t.jsx(Fo,{style:{color:"var(--color-secondary-text)"},children:"Add account"})]})]}),t.jsx(yl,{}),t.jsx(Rw,{children:t.jsxs(Pw,{onClick:()=>K(X),children:[t.jsx($r,{}),"Sign out"]})})]}),t.jsxs(mw,{ref:L,$top:w.top,$left:w.left,$isOpen:s&&h,$maxHeight:w.maxHeight,children:[u&&t.jsxs(Tw,{onClick:()=>d(!1),children:[t.jsx(sa,{size:13}),"Back"]}),(()=>{var Le;if(Ge)return null;const se=Te&&!!ee,ye=!!((Le=Y==null?void 0:Y.eligibility_restriction)!=null&&Le.type)&&Y.eligibility_restriction.type!=="none",$e=!!W&&!ye&&Vs(Y),Be=se&&!ye&&Ns(xe),st=se?g:"org",nt=async()=>{if(J){v("org");try{await J(),await P(),d(!1)}catch{}finally{v(null)}}},xt=async()=>{if(te){v("ws");try{await te(),d(!1)}catch{}finally{v(null)}}},ae=()=>{if(!se)return null;const dt=st==="org"?"ws":"org",He=dt==="ws"?"Switch to workspace context":"Switch to organization context";return t.jsx(Ow,{type:"button",onClick:()=>x(dt),title:He,"aria-label":He,children:t.jsx(pd,{size:12})})};return t.jsxs(Iw,{children:[st==="org"&&W&&t.jsxs(Al,{children:[ae(),t.jsx(zl,{children:W.image_url?t.jsx("img",{src:W.image_url,alt:W.name}):ue(W.name)}),t.jsx($l,{children:t.jsx(Ml,{children:W.name})}),t.jsxs(Ll,{children:[$e&&t.jsx(dn,{onClick:()=>{M.open(),i(!1)},title:"Organization settings","aria-label":"Organization settings",children:t.jsx(zr,{size:14})}),t.jsx(dn,{$destructive:!0,onClick:nt,disabled:b==="org",title:"Leave organization","aria-label":"Leave organization",children:t.jsx($r,{size:14})})]})]}),st==="ws"&&se&&t.jsxs(Al,{children:[ae(),t.jsx(zl,{children:ee.image_url?t.jsx("img",{src:ee.image_url,alt:ee.name}):ue(ee.name)}),t.jsx($l,{children:t.jsx(Ml,{children:ee.name})}),t.jsxs(Ll,{children:[Be&&t.jsx(dn,{onClick:()=>{A.open(),i(!1)},title:"Workspace settings","aria-label":"Workspace settings",children:t.jsx(zr,{size:14})}),t.jsx(dn,{$destructive:!0,onClick:xt,disabled:b==="ws",title:"Leave workspace","aria-label":"Leave workspace",children:t.jsx($r,{size:14})})]})]})]})})(),t.jsxs(Fw,{children:[t.jsxs(_l,{$active:Ge,onClick:()=>{Ge||qe(void 0)},disabled:p,style:Ge?{cursor:"default"}:void 0,children:[t.jsx(Cl,{$personal:!0,children:B!=null&&B.has_profile_picture?t.jsx("img",{src:B.profile_picture_url,alt:B.first_name}):t.jsx(Aa,{size:12})}),t.jsx(vs,{children:"Personal account"}),Ge&&t.jsx(Zo,{children:t.jsx("span",{className:"sp-check",style:{display:"inline-flex"},children:t.jsx(Io,{size:13})})})]}),Q.map(se=>{var xt,ae;const ye=se.organization,$e=ye.id===(W==null?void 0:W.id),Be=j.has(ye.id),st=Te?me[ye.id]||[]:[],nt=!!((xt=se.eligibility_restriction)!=null&&xt.type)&&se.eligibility_restriction.type!=="none";return t.jsxs(c.Fragment,{children:[t.jsxs(_l,{$active:$e,onClick:()=>{nt||(Te?q(ye.id):$e||qe(ye.id))},disabled:p,style:nt?{opacity:.55,cursor:"not-allowed"}:$e&&!Te?{cursor:"default"}:void 0,title:(ae=se.eligibility_restriction)==null?void 0:ae.message,children:[t.jsx(Cl,{children:ye.image_url?t.jsx("img",{src:ye.image_url,alt:ye.name}):ue(ye.name)}),t.jsx(vs,{children:ye.name}),t.jsxs(Zo,{children:[nt&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),$e&&!Te&&t.jsx(Io,{size:13}),Te&&t.jsx(Zw,{size:11,$open:Be})]})]}),Te&&Be&&t.jsxs(t.Fragment,{children:[st.map(Le=>{var Ft,U;const dt=$e&&(ee==null?void 0:ee.id)===Le.id,He=Le,Tt=((Ft=He.eligibility_restriction)==null?void 0:Ft.type)&&He.eligibility_restriction.type!=="none";return t.jsxs(kl,{$active:dt,onClick:()=>{!dt&&!Tt&&Oe(Le.id)},disabled:p,style:Tt||nt?{opacity:.55,cursor:"not-allowed"}:dt?{cursor:"default"}:void 0,title:(U=He.eligibility_restriction)==null?void 0:U.message,children:[t.jsx(Sl,{children:He.image_url?t.jsx("img",{src:He.image_url,alt:He.name}):ue(He.name).charAt(0)}),t.jsx(El,{children:He.name}),t.jsxs(Zo,{children:[Tt&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),dt&&t.jsx(Io,{size:12})]})]},Le.id)}),!nt&&t.jsxs(kl,{onClick:()=>{_(ye.id),T.open()},disabled:p,children:[t.jsx(Sl,{style:{background:"transparent",border:"1px dashed var(--color-border)"},children:t.jsx(kt,{size:10})}),t.jsx(El,{children:"New workspace"})]})]})]},ye.id)})]}),(()=>{var nt,xt,ae;const se=((ie==null?void 0:ie.length)??0)>0,ye=()=>Ue&&t.jsx(Rl,{children:t.jsxs(Pl,{onClick:()=>{r?(r(),i(!1)):R.open()},disabled:p,children:[t.jsx(Tl,{children:t.jsx(kt,{size:12})}),"New organization"]})});if(!Te||!se)return ye();const $e=!!((nt=Y==null?void 0:Y.eligibility_restriction)!=null&&nt.type)&&Y.eligibility_restriction.type!=="none",Be=((ae=(xt=ie==null?void 0:ie[0])==null?void 0:xt.organization)==null?void 0:ae.id)??null,st=W&&!$e?W.id:Be;return t.jsx(Rl,{children:t.jsxs(Pl,{onClick:()=>{_(st),T.open()},disabled:p,children:[t.jsx(Tl,{children:t.jsx(kt,{size:12})}),"New workspace"]})})})()]})]}),document.body),t.jsx(xu,{isOpen:O.isOpen,onClose:O.close}),a&&t.jsxs(t.Fragment,{children:[t.jsx(D1,{isOpen:R.isOpen,onClose:R.close}),t.jsx(G1,{isOpen:M.isOpen,onClose:M.close}),Te&&t.jsxs(t.Fragment,{children:[t.jsx(Fs,{isOpen:T.isOpen,onClose:()=>{T.close(),_(null)},organizationId:C||void 0}),t.jsx(Os,{isOpen:A.isOpen,onClose:A.close})]})]})]})})},Hw=l.div`
|
|
6393
|
+
`,Gs=({showName:e=!0,onCreateOrg:r,showOrgSwitcher:a=!0,narrowBreakpoint:o=640})=>{var we,De,ze,Qe,_t,er,tr,Wt,hr,fr,bt;const[s,i]=c.useState(!1),[h,d]=c.useState(!1),[u,f]=c.useState(typeof window<"u"&&window.innerWidth<o),[p,m]=c.useState(!1),[g,x]=c.useState("org"),[b,v]=c.useState(null),[w,E]=c.useState({top:0,left:0,maxHeight:400}),[j,S]=c.useState(new Set),[C,_]=c.useState(null),k=c.useRef(null),y=c.useRef(null),L=c.useRef(null),$=wt({triggerRef:k,isOpen:s,minWidth:300}),H=qt(!1),F=qt(!1),M=qt(!1),R=qt(!1),A=qt(!1),{session:z,signOut:Z,switchSignIn:P,switchOrganization:O,switchWorkspace:I,refetch:T}=at(),{navigateToSignIn:G}=jt(),{deployment:D}=Se(),{activeOrganization:W,activeMembership:Y,leave:J}=cr(),{organizationMemberships:ie}=Jt(),{workspaces:he}=lr(),{activeWorkspace:ee,activeMembership:xe,leave:te}=Vt(),B=(we=z==null?void 0:z.active_signin)==null?void 0:we.user,Je=((ze=(De=D==null?void 0:D.auth_settings)==null?void 0:De.multi_session_support)==null?void 0:ze.enabled)??!1,Te=((Qe=D==null?void 0:D.b2b_settings)==null?void 0:Qe.workspaces_enabled)??!1,Ue=((_t=D==null?void 0:D.b2b_settings)==null?void 0:_t.allow_users_to_create_orgs)??!1,Ge=!W,me=c.useMemo(()=>{var ye;const se={};for(const $e of he||[]){const Be=(ye=$e.organization)==null?void 0:ye.id;Be&&(se[Be]||(se[Be]=[]),se[Be].push($e))}return se},[he]),Q=ie||[],ce=c.useCallback(()=>{if(!y.current)return;const se=y.current.getBoundingClientRect(),ye=300,$e=8,Be=window.innerWidth<o;if(f(Be),Be){E({top:se.top,left:se.left,maxHeight:se.height});return}const st=Math.min(Math.max(se.height,520),window.innerHeight-se.top-16),nt=se.right+$e+ye<=window.innerWidth-8;E({top:se.top,left:nt?se.right+$e:se.left-$e-ye,maxHeight:st})},[o]),ne=c.useCallback(()=>{ce(),d(!0)},[ce]),q=c.useCallback(se=>{S(ye=>{const $e=new Set(ye);return $e.has(se)?$e.delete(se):$e.add(se),$e})},[]);c.useEffect(()=>{W&&Te&&S(se=>{if(se.has(W.id))return se;const ye=new Set(se);return ye.add(W.id),ye})},[W,Te]),c.useEffect(()=>{x(Te&&ee?"ws":"org")},[Te,ee==null?void 0:ee.id]),c.useEffect(()=>{const se=()=>{f(window.innerWidth<o),h&&ce()};return window.addEventListener("resize",se),()=>window.removeEventListener("resize",se)},[o,h,ce]),c.useEffect(()=>{s||(d(!1),m(!1))},[s]),c.useEffect(()=>{if(!s)return;const se=setTimeout(()=>{const ye=$e=>{var st,nt,xt;const Be=$e.target;(st=k.current)!=null&&st.contains(Be)||(nt=y.current)!=null&&nt.contains(Be)||(xt=L.current)!=null&&xt.contains(Be)||i(!1)};return document.addEventListener("mousedown",ye),()=>document.removeEventListener("mousedown",ye)},50);return()=>clearTimeout(se)},[s]);const ue=se=>se.split(" ").filter(Boolean).map(ye=>ye[0]).join("").toUpperCase().slice(0,2),de=(se,ye,$e,Be,st)=>t.jsx(st,{children:se?t.jsx("img",{src:ye,alt:$e}):ue(`${$e||""} ${Be||""}`)}),K=async se=>{try{await Z(se),await T(),i(!1)}catch{}},pe=async se=>{try{await P(se),await T(),i(!1)}catch{}},qe=async se=>{if(!p){m(!0);try{await O(se),await T(),d(!1)}catch{}finally{m(!1)}}},Oe=async se=>{if(!p){m(!0);try{await I(se),await T(),d(!1)}catch{}finally{m(!1)}}},Ke=()=>{H.open(),i(!1)},ht=[...(z==null?void 0:z.signins)||[]].sort((se,ye)=>{const $e=se.user.id===(B==null?void 0:B.id),Be=ye.user.id===(B==null?void 0:B.id);return $e===Be?0:$e?-1:1}),X=((er=ht.find(se=>se.user.id===(B==null?void 0:B.id)))==null?void 0:er.id)||"",oe=((Wt=(tr=Y==null?void 0:Y.roles)==null?void 0:tr[0])==null?void 0:Wt.name)??null;return t.jsx(fe,{children:t.jsxs(uw,{children:[t.jsxs(pw,{ref:k,onClick:()=>i(!s),children:[de(B==null?void 0:B.has_profile_picture,B==null?void 0:B.profile_picture_url,B==null?void 0:B.first_name,B==null?void 0:B.last_name,wu),e&&t.jsx(hw,{children:`${(B==null?void 0:B.first_name)||""} ${(B==null?void 0:B.last_name)||""}`.trim()})]}),typeof window<"u"&&An.createPortal(t.jsxs(fe,{children:[t.jsxs(fw,{ref:y,$position:$,$isOpen:s&&!(u&&h),$maxHeight:$==null?void 0:$.maxHeight,children:[t.jsx(gw,{children:t.jsxs(vw,{children:[de(B==null?void 0:B.has_profile_picture,B==null?void 0:B.profile_picture_url,B==null?void 0:B.first_name,B==null?void 0:B.last_name,xw),t.jsxs(ww,{children:[t.jsx(bw,{children:`${(B==null?void 0:B.first_name)||""} ${(B==null?void 0:B.last_name)||""}`.trim()}),t.jsx(yw,{children:(hr=B==null?void 0:B.primary_email_address)==null?void 0:hr.email})]})]})}),t.jsxs(Sw,{children:[a&&t.jsxs(jw,{$active:h,onClick:ne,style:{marginBottom:"var(--space-2u)"},children:[t.jsx(_w,{children:W?W.image_url?t.jsx("img",{src:W.image_url,alt:W.name}):(fr=W.name)==null?void 0:fr.charAt(0).toUpperCase():B!=null&&B.has_profile_picture?t.jsx("img",{src:B.profile_picture_url,alt:B.first_name}):ue(`${(B==null?void 0:B.first_name)||""} ${(B==null?void 0:B.last_name)||""}`)}),t.jsx(kw,{children:(W==null?void 0:W.name)??"Personal account"}),oe&&t.jsx(Cw,{children:oe})]}),t.jsxs(Ew,{onClick:Ke,children:[t.jsx(zr,{}),t.jsx(Aw,{children:"Manage account"}),t.jsx(zw,{children:"⌘,"})]})]}),t.jsx(jl,{}),t.jsxs($w,{children:[t.jsx(Mw,{children:"Accounts"}),Je?ht.map(({user:se,id:ye})=>{var Be;const $e=se.id===(B==null?void 0:B.id);return t.jsxs(Po,{$active:$e,onClick:$e?void 0:()=>pe(ye),children:[$e?t.jsx(To,{children:t.jsx(ct,{})}):t.jsx(Lw,{}),t.jsx(Fo,{children:(Be=se.primary_email_address)==null?void 0:Be.email}),$e&&t.jsx(_l,{children:"Current"})]},se.id)}):B&&t.jsxs(Po,{$active:!0,children:[t.jsx(To,{children:t.jsx(ct,{})}),t.jsx(Fo,{children:(bt=B.primary_email_address)==null?void 0:bt.email}),t.jsx(_l,{children:"Current"})]}),Je&&t.jsxs(Po,{onClick:()=>{G(),i(!1)},children:[t.jsx(To,{style:{color:"var(--color-secondary-text)"},children:t.jsx(kt,{})}),t.jsx(Fo,{style:{color:"var(--color-secondary-text)"},children:"Add account"})]})]}),t.jsx(jl,{}),t.jsx(Rw,{children:t.jsxs(Pw,{onClick:()=>K(X),children:[t.jsx($r,{}),"Sign out"]})})]}),t.jsxs(mw,{ref:L,$top:w.top,$left:w.left,$isOpen:s&&h,$maxHeight:w.maxHeight,children:[u&&t.jsxs(Tw,{onClick:()=>d(!1),children:[t.jsx(sa,{size:13}),"Back"]}),(()=>{var Le;if(Ge)return null;const se=Te&&!!ee,ye=!!((Le=Y==null?void 0:Y.eligibility_restriction)!=null&&Le.type)&&Y.eligibility_restriction.type!=="none",$e=!!W&&!ye&&Ds(Y),Be=se&&!ye&&Us(xe),st=se?g:"org",nt=async()=>{if(J){v("org");try{await J(),await T(),d(!1)}catch{}finally{v(null)}}},xt=async()=>{if(te){v("ws");try{await te(),d(!1)}catch{}finally{v(null)}}},ae=()=>{if(!se)return null;const dt=st==="org"?"ws":"org",He=dt==="ws"?"Switch to workspace context":"Switch to organization context";return t.jsx(Ow,{type:"button",onClick:()=>x(dt),title:He,"aria-label":He,children:t.jsx(pd,{size:12})})};return t.jsxs(Iw,{children:[st==="org"&&W&&t.jsxs(zl,{children:[ae(),t.jsx($l,{children:W.image_url?t.jsx("img",{src:W.image_url,alt:W.name}):ue(W.name)}),t.jsx(Ml,{children:t.jsx(Ll,{children:W.name})}),t.jsxs(Rl,{children:[$e&&t.jsx(dn,{onClick:()=>{M.open(),i(!1)},title:"Organization settings","aria-label":"Organization settings",children:t.jsx(zr,{size:14})}),t.jsx(dn,{$destructive:!0,onClick:nt,disabled:b==="org",title:"Leave organization","aria-label":"Leave organization",children:t.jsx($r,{size:14})})]})]}),st==="ws"&&se&&t.jsxs(zl,{children:[ae(),t.jsx($l,{children:ee.image_url?t.jsx("img",{src:ee.image_url,alt:ee.name}):ue(ee.name)}),t.jsx(Ml,{children:t.jsx(Ll,{children:ee.name})}),t.jsxs(Rl,{children:[Be&&t.jsx(dn,{onClick:()=>{A.open(),i(!1)},title:"Workspace settings","aria-label":"Workspace settings",children:t.jsx(zr,{size:14})}),t.jsx(dn,{$destructive:!0,onClick:xt,disabled:b==="ws",title:"Leave workspace","aria-label":"Leave workspace",children:t.jsx($r,{size:14})})]})]})]})})(),t.jsxs(Fw,{children:[t.jsxs(kl,{$active:Ge,onClick:()=>{Ge||qe(void 0)},disabled:p,style:Ge?{cursor:"default"}:void 0,children:[t.jsx(Sl,{$personal:!0,children:B!=null&&B.has_profile_picture?t.jsx("img",{src:B.profile_picture_url,alt:B.first_name}):t.jsx(Aa,{size:12})}),t.jsx(xs,{children:"Personal account"}),Ge&&t.jsx(Zo,{children:t.jsx("span",{className:"sp-check",style:{display:"inline-flex"},children:t.jsx(Io,{size:13})})})]}),Q.map(se=>{var xt,ae;const ye=se.organization,$e=ye.id===(W==null?void 0:W.id),Be=j.has(ye.id),st=Te?me[ye.id]||[]:[],nt=!!((xt=se.eligibility_restriction)!=null&&xt.type)&&se.eligibility_restriction.type!=="none";return t.jsxs(c.Fragment,{children:[t.jsxs(kl,{$active:$e,onClick:()=>{nt||(Te?q(ye.id):$e||qe(ye.id))},disabled:p,style:nt?{opacity:.55,cursor:"not-allowed"}:$e&&!Te?{cursor:"default"}:void 0,title:(ae=se.eligibility_restriction)==null?void 0:ae.message,children:[t.jsx(Sl,{children:ye.image_url?t.jsx("img",{src:ye.image_url,alt:ye.name}):ue(ye.name)}),t.jsx(xs,{children:ye.name}),t.jsxs(Zo,{children:[nt&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),$e&&!Te&&t.jsx(Io,{size:13}),Te&&t.jsx(Zw,{size:11,$open:Be})]})]}),Te&&Be&&t.jsxs(t.Fragment,{children:[st.map(Le=>{var Ft,U;const dt=$e&&(ee==null?void 0:ee.id)===Le.id,He=Le,Tt=((Ft=He.eligibility_restriction)==null?void 0:Ft.type)&&He.eligibility_restriction.type!=="none";return t.jsxs(Cl,{$active:dt,onClick:()=>{!dt&&!Tt&&Oe(Le.id)},disabled:p,style:Tt||nt?{opacity:.55,cursor:"not-allowed"}:dt?{cursor:"default"}:void 0,title:(U=He.eligibility_restriction)==null?void 0:U.message,children:[t.jsx(El,{children:He.image_url?t.jsx("img",{src:He.image_url,alt:He.name}):ue(He.name).charAt(0)}),t.jsx(Al,{children:He.name}),t.jsxs(Zo,{children:[Tt&&t.jsx(Mr,{size:12,color:"var(--color-error)"}),dt&&t.jsx(Io,{size:12})]})]},Le.id)}),!nt&&t.jsxs(Cl,{onClick:()=>{_(ye.id),R.open()},disabled:p,children:[t.jsx(El,{style:{background:"transparent",border:"1px dashed var(--color-border)"},children:t.jsx(kt,{size:10})}),t.jsx(Al,{children:"New workspace"})]})]})]},ye.id)})]}),(()=>{var nt,xt,ae;const se=((ie==null?void 0:ie.length)??0)>0,ye=()=>Ue&&t.jsx(Pl,{children:t.jsxs(Tl,{onClick:()=>{r?(r(),i(!1)):F.open()},disabled:p,children:[t.jsx(Fl,{children:t.jsx(kt,{size:12})}),"New organization"]})});if(!Te||!se)return ye();const $e=!!((nt=Y==null?void 0:Y.eligibility_restriction)!=null&&nt.type)&&Y.eligibility_restriction.type!=="none",Be=((ae=(xt=ie==null?void 0:ie[0])==null?void 0:xt.organization)==null?void 0:ae.id)??null,st=W&&!$e?W.id:Be;return t.jsx(Pl,{children:t.jsxs(Tl,{onClick:()=>{_(st),R.open()},disabled:p,children:[t.jsx(Fl,{children:t.jsx(kt,{size:12})}),"New workspace"]})})})()]})]}),document.body),t.jsx(xu,{isOpen:H.isOpen,onClose:H.close}),a&&t.jsxs(t.Fragment,{children:[t.jsx(D1,{isOpen:F.isOpen,onClose:F.close}),t.jsx(G1,{isOpen:M.isOpen,onClose:M.close}),Te&&t.jsxs(t.Fragment,{children:[t.jsx(Zs,{isOpen:R.isOpen,onClose:()=>{R.close(),_(null)},organizationId:C||void 0}),t.jsx(Hs,{isOpen:A.isOpen,onClose:A.close})]})]})]})})},Hw=l.div`
|
|
6394
6394
|
padding: var(--space-6u) var(--space-8u);
|
|
6395
6395
|
background: ${e=>e.$unread?"var(--color-accent)":"transparent"};
|
|
6396
6396
|
transition: background-color 0.2s ease;
|
|
@@ -6525,7 +6525,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6525
6525
|
z-index: 100000;
|
|
6526
6526
|
display: flex;
|
|
6527
6527
|
flex-direction: column;
|
|
6528
|
-
`,
|
|
6528
|
+
`,Zl=l.button`
|
|
6529
6529
|
background: transparent;
|
|
6530
6530
|
border: none;
|
|
6531
6531
|
text-align: left;
|
|
@@ -6611,14 +6611,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6611
6611
|
align-items: center;
|
|
6612
6612
|
justify-content: center;
|
|
6613
6613
|
padding: var(--size-20u);
|
|
6614
|
-
`,
|
|
6614
|
+
`,Il=l.div`
|
|
6615
6615
|
padding: calc(var(--size-20u) + var(--space-10u)) var(--space-10u);
|
|
6616
6616
|
display: flex;
|
|
6617
6617
|
flex-direction: column;
|
|
6618
6618
|
align-items: center;
|
|
6619
6619
|
justify-content: center;
|
|
6620
6620
|
text-align: center;
|
|
6621
|
-
`,
|
|
6621
|
+
`,Ol=l.div`
|
|
6622
6622
|
width: var(--size-24u);
|
|
6623
6623
|
height: var(--size-24u);
|
|
6624
6624
|
border-radius: 50%;
|
|
@@ -6628,17 +6628,17 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6628
6628
|
justify-content: center;
|
|
6629
6629
|
margin-bottom: var(--space-8u);
|
|
6630
6630
|
color: var(--color-muted);
|
|
6631
|
-
`,
|
|
6631
|
+
`,Hl=l.h3`
|
|
6632
6632
|
font-size: var(--font-size-lg);
|
|
6633
6633
|
font-weight: 400;
|
|
6634
6634
|
color: var(--color-popover-foreground);
|
|
6635
6635
|
margin: 0 0 var(--space-2u) 0;
|
|
6636
|
-
`,
|
|
6636
|
+
`,Vl=l.p`
|
|
6637
6637
|
font-size: var(--font-size-md);
|
|
6638
6638
|
color: var(--color-secondary-text);
|
|
6639
6639
|
margin: 0;
|
|
6640
6640
|
line-height: 1.4;
|
|
6641
|
-
`,ju=c.forwardRef(({scope:e="all",onAction:r,fullWidth:a,maxHeight:o,className:s},i)=>{const[h,d]=c.useState("inbox"),[u,f]=c.useState(!1),[p,m]=c.useState(!1),g=c.useRef(null),x={scope:e,limit:20,is_archived:h==="archive",is_starred:h==="starred",is_read:u?!1:void 0},{notifications:b,loading:v,error:w,hasMore:E,loadMore:j,markAsRead:S,markAsUnread:C,markAllAsRead:_,archiveAllRead:k,archiveNotification:y,starNotification:L}=
|
|
6641
|
+
`,ju=c.forwardRef(({scope:e="all",onAction:r,fullWidth:a,maxHeight:o,className:s},i)=>{const[h,d]=c.useState("inbox"),[u,f]=c.useState(!1),[p,m]=c.useState(!1),g=c.useRef(null),x={scope:e,limit:20,is_archived:h==="archive",is_starred:h==="starred",is_read:u?!1:void 0},{notifications:b,loading:v,error:w,hasMore:E,loadMore:j,markAsRead:S,markAsUnread:C,markAllAsRead:_,archiveAllRead:k,archiveNotification:y,starNotification:L}=C0(x);c.useEffect(()=>{if(!p)return;const M=R=>{g.current&&!g.current.contains(R.target)&&m(!1)};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[p]);const $=async M=>{switch(M.type){case"read":await S(M.id);break;case"unread":await C(M.id);break;case"archive":await y(M.id);break;case"star":await L(M.id);break;case"custom":r==null||r(M.payload);break}},H=()=>{_(),m(!1)},F=()=>{k(),m(!1)};return t.jsxs(Gw,{ref:i,$fullWidth:a,$maxHeight:o,className:s,children:[t.jsxs(qw,{children:[t.jsxs(Kw,{children:[t.jsx(un,{$active:h==="inbox",onClick:()=>d("inbox"),children:"Inbox"}),t.jsx(un,{$active:h==="archive",onClick:()=>d("archive"),children:"Archive"}),t.jsx(un,{$active:h==="starred",onClick:()=>d("starred"),children:"Starred"})]}),t.jsxs(Jw,{onClick:()=>f(!u),children:[t.jsx(Xw,{$active:u}),t.jsx(eb,{children:"Unread Only"})]}),t.jsx(Yw,{onClick:()=>m(!p),style:{padding:"var(--space-2u)"},children:t.jsx(Cf,{size:16})}),p&&t.jsxs(Qw,{ref:g,style:{top:"var(--size-18u)",right:"var(--space-6u)"},children:[h==="inbox"&&t.jsxs(Zl,{onClick:H,children:[t.jsx(_f,{})," Mark all as read"]}),t.jsxs(Zl,{onClick:F,children:[t.jsx(cd,{})," Archive all read"]})]})]}),t.jsx(tb,{children:v?t.jsx(rb,{children:t.jsx(Ee,{})}):w?t.jsxs(Il,{children:[t.jsx(Ol,{children:t.jsx(Ai,{size:24,style:{color:"var(--color-error)"}})}),t.jsx(Hl,{children:"Failed to load notifications"}),t.jsx(Vl,{children:w.message||"An unexpected error occurred."})]}):b.length===0?t.jsxs(Il,{children:[t.jsx(Ol,{children:t.jsx(Ai,{size:24})}),t.jsx(Hl,{children:"No notifications"}),t.jsx(Vl,{children:"You're all caught up!"})]}):t.jsxs(t.Fragment,{children:[b.map(M=>t.jsx(yu,{notification:M,onAction:$},M.id)),E&&t.jsx("div",{style:{padding:"var(--space-6u)",display:"flex",justifyContent:"center"},children:t.jsx(un,{$active:!1,onClick:j,style:{fontSize:"var(--font-size-sm)"},children:"Load more"})})]})})]})}),ab=l.div`
|
|
6642
6642
|
position: fixed;
|
|
6643
6643
|
${e=>{var r;return((r=e.$position)==null?void 0:r.top)!==void 0?`top: ${e.$position.top}px;`:""}}
|
|
6644
6644
|
${e=>{var r;return((r=e.$position)==null?void 0:r.bottom)!==void 0?`bottom: ${e.$position.bottom}px;`:""}}
|
|
@@ -6730,20 +6730,20 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6730
6730
|
box-shadow: var(--shadow-sm);
|
|
6731
6731
|
line-height: 1;
|
|
6732
6732
|
transition: all 0.2s ease;
|
|
6733
|
-
`;function ku({className:e,showBadge:r=!0,scope:a="all",onAction:o}){const[s,i]=c.useState(!1),h=c.useRef(null),d=c.useRef(null),u=c.useRef(null),{count:f,refetch:p}=
|
|
6733
|
+
`;function ku({className:e,showBadge:r=!0,scope:a="all",onAction:o}){const[s,i]=c.useState(!1),h=c.useRef(null),d=c.useRef(null),u=c.useRef(null),{count:f,refetch:p}=S0({scope:a}),m=async x=>{await p(),o==null||o(x.payload)},g=wt({triggerRef:u,isOpen:s,minWidth:Math.min(450,typeof window<"u"?window.innerWidth-32:300),defaultMaxHeight:550});return c.useEffect(()=>{if(!s)return;const x=setTimeout(()=>{const b=v=>{var E,j;const w=v.target;(E=h.current)!=null&&E.contains(w)||(j=d.current)!=null&&j.contains(w)||i(!1)};return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}},50);return()=>{clearTimeout(x)}},[s]),t.jsx(fe,{children:t.jsxs(nb,{ref:h,className:e,children:[t.jsxs(sb,{ref:u,onClick:()=>i(!s),$hasUnread:f>0,"aria-label":f>0?`${f} unread notifications`:"Notifications",children:[t.jsx(bf,{strokeWidth:1}),r&&f>0&&t.jsx(ib,{$dotOnly:f<=9,children:f>9?"9+":""})]}),typeof window<"u"&&s&&An.createPortal(t.jsx(fe,{children:t.jsx(_u,{ref:d,position:g,scope:a,onAction:m,onClose:()=>i(!1)})}),document.body)]})})}const cb=l.div`
|
|
6734
6734
|
display: flex;
|
|
6735
6735
|
align-items: center;
|
|
6736
6736
|
gap: 8px;
|
|
6737
|
-
`,lb=({showName:e=!0,showNotifications:r=!0})=>t.jsxs(cb,{children:[r&&t.jsx(ku,{}),t.jsx(
|
|
6737
|
+
`,lb=({showName:e=!0,showNotifications:r=!0})=>t.jsxs(cb,{children:[r&&t.jsx(ku,{}),t.jsx(Gs,{showName:e})]}),db=({children:e})=>{var o;const{session:r,loading:a}=at();return a||!((o=r.signins)!=null&&o.length)||!r.active_signin?null:t.jsx(t.Fragment,{children:e})},ub=({children:e})=>{var o;const{loading:r,session:a}=at();return r||(o=a.signins)!=null&&o.length&&a.active_signin?null:t.jsx(t.Fragment,{children:e})},Cu=gt`
|
|
6738
6738
|
0% { background-position: calc(var(--size-50u) * -10) 0; }
|
|
6739
6739
|
100% { background-position: calc(var(--size-50u) * 10) 0; }
|
|
6740
6740
|
`,pb=gt`
|
|
6741
6741
|
from { transform: rotate(0deg); }
|
|
6742
6742
|
to { transform: rotate(360deg); }
|
|
6743
|
-
`,
|
|
6743
|
+
`,Dl=l(yt)`
|
|
6744
6744
|
animation: ${pb} 1s linear infinite;
|
|
6745
6745
|
flex-shrink: 0;
|
|
6746
|
-
`,
|
|
6746
|
+
`,Nl=l.div`
|
|
6747
6747
|
display: flex;
|
|
6748
6748
|
width: calc(var(--size-50u) * 6);
|
|
6749
6749
|
max-width: 100vw;
|
|
@@ -6825,13 +6825,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6825
6825
|
@media (max-width: 520px) {
|
|
6826
6826
|
display: none;
|
|
6827
6827
|
}
|
|
6828
|
-
`,
|
|
6828
|
+
`,Ul=l.div`
|
|
6829
6829
|
flex: 1;
|
|
6830
6830
|
display: flex;
|
|
6831
6831
|
flex-direction: column;
|
|
6832
6832
|
min-width: 0;
|
|
6833
6833
|
overflow: hidden;
|
|
6834
|
-
`,
|
|
6834
|
+
`,Bl=l.div`
|
|
6835
6835
|
padding: var(--space-8u) var(--space-8u) var(--space-5u);
|
|
6836
6836
|
border-bottom: var(--border-width-thin) solid var(--color-border);
|
|
6837
6837
|
`,yb=l.div`
|
|
@@ -6842,7 +6842,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6842
6842
|
`,jb=l.div`
|
|
6843
6843
|
font-size: var(--font-size-md);
|
|
6844
6844
|
color: var(--color-secondary-text);
|
|
6845
|
-
`,
|
|
6845
|
+
`,Wl=l.div`
|
|
6846
6846
|
flex: 1;
|
|
6847
6847
|
overflow-y: auto;
|
|
6848
6848
|
`,_b=l.div`
|
|
@@ -6980,7 +6980,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
6980
6980
|
background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
|
|
6981
6981
|
background-size: calc(var(--size-50u) * 10) 100%;
|
|
6982
6982
|
animation: ${Cu} 2s infinite linear;
|
|
6983
|
-
`,Tb=({onAccountSelect:e,showAddAccount:r=!0})=>{var y,L,
|
|
6983
|
+
`,Tb=({onAccountSelect:e,showAddAccount:r=!0})=>{var y,L,$,H,F;const{session:a,loading:o,switchSignIn:s,signOut:i}=at(),{deployment:h}=Se(),{navigateToSignIn:d,navigate:u}=jt(),[f,p]=c.useState(null),[m,g]=c.useState(null),x=a==null?void 0:a.active_signin,b=(a==null?void 0:a.signins)||[],v=((L=(y=h==null?void 0:h.auth_settings)==null?void 0:y.multi_session_support)==null?void 0:L.enabled)??!1,w=($=h==null?void 0:h.ui_settings)==null?void 0:$.logo_image_url,E=(H=h==null?void 0:h.ui_settings)==null?void 0:H.app_name;c.useEffect(()=>{o||b.length||d()},[o,b,d]);const j=M=>M.split(" ").map(R=>R[0]).join("").toUpperCase().slice(0,2),S=async M=>{var R;g(M);try{if(await s(M),e)e(M),g(null);else{let A=ft(h,new URLSearchParams(window.location.search).get("redirect_uri"));if(A||(A=(R=h.ui_settings)==null?void 0:R.after_signin_redirect_url),A){let z;try{z=new URL(A)}catch{z=new URL(A,window.location.origin)}(h==null?void 0:h.mode)==="staging"&&z.searchParams.set("__dev_session__",mt(h.backend_host)??""),u(z.toString())}else g(null)}}catch{g(null)}},C=async(M,R)=>{M.stopPropagation(),p(R);try{await i(R)}catch{}finally{p(null)}},_=()=>{var R;let M=ft(h,new URLSearchParams(window.location.search).get("redirect_uri"));M||(M=(R=h.ui_settings)==null?void 0:R.after_signin_redirect_url),d(M)},k=()=>t.jsxs(hb,{children:[t.jsxs(fb,{children:[w?t.jsx(mb,{src:w,alt:E||"App"}):t.jsx(gb,{children:t.jsx(Pf,{size:20})}),t.jsxs(vb,{children:[t.jsx(xb,{children:E||"Your App"}),t.jsx(wb,{children:"Select or switch between your accounts"})]})]}),t.jsx(bb,{})]});return o?t.jsx(fe,{children:t.jsxs(Nl,{children:[k(),t.jsxs(Ul,{children:[t.jsx(Bl,{children:t.jsx(Oo,{$width:"55%"})}),t.jsx(Wl,{children:[1,2,3].map(M=>t.jsxs(Lb,{children:[t.jsx(Rb,{}),t.jsxs(Pb,{children:[t.jsx(Oo,{$width:"45%"}),t.jsx(Oo,{$width:"65%"})]})]},M))})]})]})}):b.length?t.jsx(fe,{children:t.jsxs(Nl,{children:[k(),t.jsxs(Ul,{children:[t.jsxs(Bl,{children:[t.jsx(yb,{children:"Your accounts"}),t.jsx(jb,{children:"Select one to continue"})]}),t.jsxs(Wl,{children:[b.map(({user:M,id:R})=>{var T,G;if(!M)return null;const A=R===(x==null?void 0:x.id),z=m===R,Z=f===R,P=`${M.first_name||""} ${M.last_name||""}`.trim(),O=P||((T=M.primary_email_address)==null?void 0:T.email)||M.username||"User",I=((G=M.primary_email_address)==null?void 0:G.email)||M.username;return t.jsxs(_b,{$isActive:A,$isSwitching:z,$clickable:!A,onClick:()=>!A&&S(R),children:[t.jsx(kb,{$isActive:A,children:z?t.jsx(Dl,{size:14}):M.has_profile_picture?t.jsx("img",{src:M.profile_picture_url,alt:P}):j(O)}),t.jsxs(Cb,{children:[t.jsx(Sb,{children:O}),I&&I!==O&&t.jsx(Eb,{children:I})]}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"var(--space-3u)",flexShrink:0},children:[A&&t.jsx(jf,{size:16,weight:"fill",style:{color:"var(--color-primary)"}}),t.jsx(Ab,{onClick:D=>C(D,R),disabled:Z,title:"Sign out",children:Z?t.jsx(Dl,{size:13}):t.jsx($r,{size:13})})]})]},R)}),r&&v&&t.jsxs(Su,{onClick:_,children:[t.jsx(zb,{children:t.jsx(kt,{size:13})}),"Add account"]})]}),t.jsxs($b,{children:["Don't have an account?"," ",t.jsx(Mb,{children:t.jsx(Pt,{to:`${(F=h.ui_settings)==null?void 0:F.sign_up_page_url}${window.location.search}`,children:"Sign up"})})]})]})]})}):null},Fb=()=>{const{navigateToSignIn:e}=jt();return c.useEffect(()=>{e()},[e]),null},Zb=()=>{const{navigateToSignUp:e}=jt();return c.useEffect(()=>{e()},[e]),null},Ib=l.div`
|
|
6984
6984
|
width: 100%;
|
|
6985
6985
|
max-width: 100%;
|
|
6986
6986
|
height: calc(calc(var(--size-50u) * 4) + calc(var(--size-50u) * 2));
|
|
@@ -7110,7 +7110,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7110
7110
|
background: var(--color-border);
|
|
7111
7111
|
border-radius: var(--space-1u);
|
|
7112
7112
|
}
|
|
7113
|
-
`,
|
|
7113
|
+
`,Gl=l.button`
|
|
7114
7114
|
display: grid;
|
|
7115
7115
|
grid-template-columns: auto 1fr auto;
|
|
7116
7116
|
align-items: center;
|
|
@@ -7140,7 +7140,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7140
7140
|
visibility: visible;
|
|
7141
7141
|
opacity: 1;
|
|
7142
7142
|
}
|
|
7143
|
-
`,
|
|
7143
|
+
`,ql=l.div`
|
|
7144
7144
|
visibility: hidden;
|
|
7145
7145
|
opacity: 0;
|
|
7146
7146
|
position: absolute;
|
|
@@ -7173,7 +7173,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7173
7173
|
border-style: solid;
|
|
7174
7174
|
border-color: transparent transparent transparent var(--color-border);
|
|
7175
7175
|
}
|
|
7176
|
-
`,
|
|
7176
|
+
`,Kl=l.div`
|
|
7177
7177
|
width: var(--size-20u);
|
|
7178
7178
|
height: var(--size-20u);
|
|
7179
7179
|
border-radius: var(--radius-md);
|
|
@@ -7187,21 +7187,21 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7187
7187
|
font-size: var(--font-size-lg);
|
|
7188
7188
|
font-weight: 400;
|
|
7189
7189
|
flex-shrink: 0;
|
|
7190
|
-
`,
|
|
7190
|
+
`,Yl=l.img`
|
|
7191
7191
|
width: 100%;
|
|
7192
7192
|
height: 100%;
|
|
7193
7193
|
object-fit: cover;
|
|
7194
|
-
`,
|
|
7194
|
+
`,Ql=l.div`
|
|
7195
7195
|
flex: 1;
|
|
7196
7196
|
min-width: 0;
|
|
7197
|
-
`,
|
|
7197
|
+
`,Jl=l.div`
|
|
7198
7198
|
font-size: var(--font-size-lg);
|
|
7199
7199
|
font-weight: 400;
|
|
7200
7200
|
color: var(--color-card-foreground);
|
|
7201
7201
|
overflow: hidden;
|
|
7202
7202
|
text-overflow: ellipsis;
|
|
7203
7203
|
white-space: nowrap;
|
|
7204
|
-
`,
|
|
7204
|
+
`,Xl=l.div`
|
|
7205
7205
|
display: flex;
|
|
7206
7206
|
align-items: center;
|
|
7207
7207
|
gap: var(--space-2u);
|
|
@@ -7214,7 +7214,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7214
7214
|
width: var(--size-8u);
|
|
7215
7215
|
height: var(--size-8u);
|
|
7216
7216
|
}
|
|
7217
|
-
`,
|
|
7217
|
+
`,e0=l.div`
|
|
7218
7218
|
color: var(--color-secondary-text);
|
|
7219
7219
|
display: flex;
|
|
7220
7220
|
align-items: center;
|
|
@@ -7223,7 +7223,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7223
7223
|
width: var(--size-8u);
|
|
7224
7224
|
height: var(--size-8u);
|
|
7225
7225
|
}
|
|
7226
|
-
`,
|
|
7226
|
+
`,t0=l.div`
|
|
7227
7227
|
text-align: center;
|
|
7228
7228
|
padding: var(--space-16u) var(--space-8u);
|
|
7229
7229
|
display: flex;
|
|
@@ -7233,22 +7233,22 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7233
7233
|
align-items: center;
|
|
7234
7234
|
justify-content: center;
|
|
7235
7235
|
color: var(--color-secondary-text);
|
|
7236
|
-
`,
|
|
7236
|
+
`,r0=l.div`
|
|
7237
7237
|
font-size: var(--font-size-lg);
|
|
7238
7238
|
font-weight: 400;
|
|
7239
7239
|
color: var(--color-card-foreground);
|
|
7240
7240
|
margin-bottom: var(--space-2u);
|
|
7241
|
-
`,
|
|
7241
|
+
`,a0=l.div`
|
|
7242
7242
|
font-size: var(--font-size-md);
|
|
7243
7243
|
color: var(--color-secondary-text);
|
|
7244
7244
|
margin-bottom: var(--space-8u);
|
|
7245
7245
|
line-height: 1.5;
|
|
7246
|
-
`,
|
|
7246
|
+
`,n0=l(N)`
|
|
7247
7247
|
width: auto;
|
|
7248
7248
|
margin: 0 auto;
|
|
7249
7249
|
padding: var(--space-3u) var(--space-8u);
|
|
7250
7250
|
font-size: var(--font-size-md);
|
|
7251
|
-
`,Yb=()=>{var
|
|
7251
|
+
`,Yb=()=>{var F,M;const{organizationMemberships:e,refetch:r,loading:a}=Jt(),{workspaces:o}=lr(),{switchOrganization:s,switchWorkspace:i}=at(),{deployment:h}=Se(),[d,u]=c.useState(null),[f,p]=c.useState("orgList"),[m,g]=c.useState(null),x=(h==null?void 0:h.b2b_settings.workspaces_enabled)??!1,b=(h==null?void 0:h.b2b_settings.allow_users_to_create_orgs)??!1,v=c.useRef(!1);c.useEffect(()=>{if(!(v.current||!e)){if(v.current=!0,e.length===0){p("createOrg");return}if(!x){p("orgList");return}if(!o||o.length===0){const R=e.find(A=>{var z,Z;return!((z=A.eligibility_restriction)!=null&&z.type)||((Z=A.eligibility_restriction)==null?void 0:Z.type)==="none"});if(R){g(R.organization.id),p("createWorkspace");return}}p("orgList")}},[e,o,x]);const w=R=>R.split(" ").map(A=>A[0]).join("").toUpperCase().slice(0,2),E=async R=>{if(x){g(R.id),p("workspaceList");return}u(R.id);try{await s(R.id)}finally{u(null)}},j=async R=>{u(R.id);try{await i(R.id)}finally{u(null)}},S=async R=>{var z;await r();const A=((z=R==null?void 0:R.data)==null?void 0:z.organization)||(R==null?void 0:R.organization)||R;if(!x){p("orgList");return}A!=null&&A.id?(g(A.id),p("createWorkspace")):p("orgList")},C=()=>{},_=async()=>{g(null),p("orgList")},k=(F=e==null?void 0:e.find(R=>R.organization.id===m))==null?void 0:F.organization,y=m?o==null?void 0:o.filter(R=>R.organization.id===m):[];if(a)return null;if(f==="createOrg")return t.jsx(Ve.Body,{style:{padding:0},children:t.jsx(Hn,{onSuccess:S,onCancel:()=>p("orgList")})});if(f==="createWorkspace"&&m)return t.jsx(Ve.Body,{style:{padding:0},children:t.jsx(Fs,{organizationId:m,onSuccess:C,onCancel:()=>p("workspaceList"),onCreateOrganization:()=>p("createOrg")})});const L=f==="workspaceList",$=L?"Select a workspace":"Select an organization",H=L?`Choose a workspace in ${(k==null?void 0:k.name)||""}`:`to continue to ${((M=h==null?void 0:h.ui_settings)==null?void 0:M.app_name)||"App"}`;return t.jsxs(Ib,{children:[t.jsxs(Ob,{children:[t.jsxs(Hb,{children:[t.jsx(Xe,{placement:"left"}),t.jsxs(Wb,{children:[t.jsx(Gb,{children:$}),t.jsx(qb,{children:H})]})]}),t.jsx(Gs,{showName:!0})]}),t.jsxs(Vb,{children:[t.jsxs(Db,{children:[t.jsxs(Nb,{children:[L&&t.jsx(Bb,{onClick:_,"aria-label":"Go back",title:"Go back",children:t.jsx(sa,{})}),t.jsx(Ub,{children:L?"Workspaces":"Your organizations"})]}),t.jsx(Kb,{children:L?t.jsx(t.Fragment,{children:y&&y.length>0?y.map(R=>{var z,Z,P;const A=((z=R.eligibility_restriction)==null?void 0:z.type)!=="none"&&((Z=R.eligibility_restriction)==null?void 0:Z.type)!==void 0;return t.jsxs(Gl,{onClick:()=>!A&&j(R),disabled:d===R.id||A,style:{opacity:A?.6:1},children:[A&&t.jsx(ql,{className:"warning-popover",children:(P=R.eligibility_restriction)==null?void 0:P.message}),t.jsx(Kl,{children:R.image_url?t.jsx(Yl,{src:R.image_url,alt:R.name}):w(R.name).charAt(0)}),t.jsxs(Ql,{children:[t.jsx(Jl,{children:R.name}),t.jsxs(Xl,{children:[t.jsx(kn,{}),"Workspace"]})]}),t.jsxs(e0,{children:[A&&t.jsx(Mr,{size:16,style:{color:"var(--color-error)"}}),t.jsx(Ea,{})]})]},R.id)}):t.jsxs(t0,{children:[t.jsx(r0,{children:"No workspaces yet"}),t.jsxs(a0,{children:["Create your first workspace for"," ",(k==null?void 0:k.name)||"this organization"]}),t.jsxs(n0,{onClick:()=>p("createWorkspace"),children:[t.jsx(kt,{}),"Create workspace"]})]})}):e&&e.length>0?e.map(R=>{var D,W,Y,J,ie;const A=R.organization,z=o==null?void 0:o.filter(he=>he.organization.id===A.id),Z=(z==null?void 0:z.length)||0,P=A.member_count,O=((W=(D=R.roles)==null?void 0:D[0])==null?void 0:W.name)||"No role",I=R.roles.length-1,T=I>0?`${O.charAt(0).toUpperCase()+O.slice(1)} +${I}`:O.charAt(0).toUpperCase()+O.slice(1),G=((Y=R.eligibility_restriction)==null?void 0:Y.type)!=="none"&&((J=R.eligibility_restriction)==null?void 0:J.type)!==void 0;return t.jsxs(Gl,{onClick:()=>!G&&E(A),disabled:d===A.id||G,style:{opacity:G?.6:1},children:[G&&t.jsx(ql,{className:"warning-popover",children:(ie=R.eligibility_restriction)==null?void 0:ie.message}),t.jsx(Kl,{children:A.image_url?t.jsx(Yl,{src:A.image_url,alt:A.name}):w(A.name)}),t.jsxs(Ql,{children:[t.jsx(Jl,{children:A.name}),t.jsx(Xl,{children:x?t.jsxs(t.Fragment,{children:[t.jsx(kn,{}),Z," ","workspace",Z!==1?"s":""]}):t.jsxs(t.Fragment,{children:[t.jsx(gd,{}),T," •"," ",P," member",P!==1?"s":""]})})]}),t.jsxs(e0,{children:[G&&t.jsx(Mr,{size:16,style:{color:"var(--color-error)"}}),t.jsx(Ea,{})]})]},A.id)}):t.jsxs(t0,{children:[t.jsx(r0,{children:"No organizations yet"}),t.jsx(a0,{children:b?"Create your first organization to get started":"You don't have access to any organizations yet"}),b&&t.jsxs(n0,{onClick:()=>p("createOrg"),children:[t.jsx(kt,{}),"Create organization"]})]})})]}),L&&m&&t.jsxs(N,{$outline:!0,style:{marginTop:"var(--space-4u)"},onClick:()=>p("createWorkspace"),disabled:d!==null,children:[t.jsx(kt,{size:12}),"Create workspace"]}),!L&&e&&e.length>0&&b&&t.jsxs(N,{$outline:!0,style:{marginTop:x?"var(--space-4u)":"var(--space-6u)"},onClick:()=>p("createOrg"),disabled:d!==null,children:[t.jsx(kt,{size:12}),"Create new organization"]})]})]})},Qb=l(Ve.Content)`
|
|
7252
7252
|
padding: 0;
|
|
7253
7253
|
width: calc(var(--size-50u) * 9);
|
|
7254
7254
|
max-width: 90vw;
|
|
@@ -7259,5 +7259,5 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
7259
7259
|
width: calc(100vw - var(--space-10u));
|
|
7260
7260
|
max-width: calc(100vw - var(--space-10u));
|
|
7261
7261
|
}
|
|
7262
|
-
`,Jb=({children:e})=>{var m,g,x,b;const{activeOrganization:r}=cr(),{activeWorkspace:a}=Vt(),{deployment:o}=Se(),{loading:s,orgMembership:i,workspaceMembership:h}=
|
|
7262
|
+
`,Jb=({children:e})=>{var m,g,x,b;const{activeOrganization:r}=cr(),{activeWorkspace:a}=Vt(),{deployment:o}=Se(),{loading:s,orgMembership:i,workspaceMembership:h}=w0(),d=(o==null?void 0:o.b2b_settings.workspaces_enabled)??!1,u=((m=i==null?void 0:i.eligibility_restriction)==null?void 0:m.type)!=="none"&&((g=i==null?void 0:i.eligibility_restriction)==null?void 0:g.type)!==void 0,f=((x=h==null?void 0:h.eligibility_restriction)==null?void 0:x.type)!=="none"&&((b=h==null?void 0:h.eligibility_restriction)==null?void 0:b.type)!==void 0;return s?null:(u||f||!r?!1:d?a?(h==null?void 0:h.workspace.id)===a.id&&h.organization_id===r.id:!1:!0)?t.jsx(t.Fragment,{children:e}):t.jsx(fe,{children:t.jsx(Ve,{isOpen:!0,children:t.jsx(Ve.Overlay,{children:t.jsx(Qb,{children:t.jsx(Yb,{})})})})})},Xb=e=>{const r=e.toLowerCase().trim();return["javascript:","data:","vbscript:"].some(s=>r.startsWith(s))?!0:["http://","https://","//","ftp://","ftps://","mailto:","tel:","sms:","file:","blob:"].some(s=>r.startsWith(s))},e7=e=>{const r=e.toLowerCase().trim();return!["javascript:","data:","vbscript:"].some(o=>r.startsWith(o))};exports.AcceptInvite=bg;exports.AuthFormImage=Xe;exports.CreateOrganizationForm=Hn;exports.CreateWorkspaceDialog=Zs;exports.CreateWorkspaceForm=Fs;exports.DefaultStylesProvider=fe;exports.DeploymentInitialized=ih;exports.DeploymentInitializing=ch;exports.DeploymentProvider=Ru;exports.Dialog=Ve;exports.DialogTrigger=Km;exports.Dropdown=La;exports.DropdownDivider=y1;exports.DropdownItem=ir;exports.DropdownItems=Ra;exports.DropdownTrigger=Pa;exports.Form=Ot;exports.FormGroup=ke;exports.Input=le;exports.Label=be;exports.MagicLinkVerification=hg;exports.ManageAccount=vu;exports.ManageAccountDialog=xu;exports.ManageOrganization=W1;exports.ManageWorkspace=Y1;exports.ManageWorkspaceDialog=Hs;exports.NavigateToSignIn=Fb;exports.NavigateToSignUp=Zb;exports.NavigationLink=Pt;exports.NotificationBell=ku;exports.NotificationItem=yu;exports.NotificationPanel=ju;exports.NotificationPopover=_u;exports.OAuthProvider=s0;exports.ORG_ADMIN_PERMISSIONS=Q1;exports.ORG_MANAGEMENT_PERMISSIONS=J1;exports.OTPInput=pr;exports.OrganizationSwitcher=ru;exports.PhoneNumberInput=Ma;exports.PhoneVerification=T1;exports.ProfileCompletion=I1;exports.RequireActiveTenancy=Jb;exports.SSOCallback=ng;exports.SignInForm=Z6;exports.SignUpForm=Pm;exports.SignedIn=db;exports.SignedInAccounts=Tb;exports.SignedOut=ub;exports.SimpleDialog=qm;exports.Spinner=Ee;exports.Switch=Tr;exports.TwoFactorMethodSelector=P1;exports.TwoFactorVerification=Z1;exports.UserButton=Gs;exports.UserControls=lb;exports.WORKSPACE_ADMIN_PERMISSIONS=X1;exports.WORKSPACE_MANAGEMENT_PERMISSIONS=eu;exports.WaitlistForm=X6;exports.canManageOrganization=Ds;exports.canManageWorkspace=Us;exports.clearTokenCache=Mt;exports.hasIncompleteProfile=fg;exports.hasOrgPermission=Vs;exports.hasWorkspacePermission=Ns;exports.isExternalUrl=Xb;exports.isOrgAdmin=cx;exports.isSafeUrl=e7;exports.isWorkspaceAdmin=lx;exports.redirectToProfileCompletion=mg;exports.useActiveOrganization=cr;exports.useActiveTenancy=w0;exports.useActiveWorkspace=Vt;exports.useActorMcpServers=$p;exports.useActorProjectSearch=xp;exports.useActorProjects=vp;exports.useActorThreadSearch=yp;exports.useAgentSession=up;exports.useAgentThread=jp;exports.useAgentThreadAssignments=kp;exports.useAgentThreadConversation=dp;exports.useAgentThreadFilesystem=_p;exports.useAgentThreadTaskGraphs=Ap;exports.useApiAuthAppSession=rh;exports.useApiAuthAuditAnalytics=oh;exports.useApiAuthAuditLogs=nh;exports.useApiAuthAuditTimeseries=sh;exports.useApiAuthKeys=ah;exports.useClient=je;exports.useCreateWebhookEndpoint=Qp;exports.useDeployment=Se;exports.useExternalAgentConnections=Mp;exports.useForgotPassword=_0;exports.useInvitation=M0;exports.useMagicLinkVerification=j0;exports.useNavigation=jt;exports.useNotificationStream=k0;exports.useNotificationUnreadCount=S0;exports.useNotifications=C0;exports.useOrganizationList=Ht;exports.useOrganizationMemberships=Jt;exports.useProjectTaskBoardItem=Ep;exports.useProjectTaskBoardItemComments=zp;exports.useProjectTasks=Sp;exports.useProjectThreadFeed=bp;exports.useProjectThreads=wp;exports.useSSOCallback=y0;exports.useSession=at;exports.useSignIn=i0;exports.useSignUp=c0;exports.useUser=dr;exports.useUserSignins=x0;exports.useWaitlist=b0;exports.useWebhookAnalytics=eh;exports.useWebhookAppSession=qp;exports.useWebhookDeliveries=Xp;exports.useWebhookEndpoints=Yp;exports.useWebhookEvents=Jp;exports.useWebhookStats=Kp;exports.useWebhookTimeseries=th;exports.useWorkspaceList=lr;exports.useWorkspaceMemberships=zn;Object.keys(qs).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>qs[e]})});
|
|
7263
7263
|
//# sourceMappingURL=index.cjs.js.map
|